Skip to content

feat(flow): one verdict kernel, a fail-open harness and a fold ratchet - #2476

Open
abrichr wants to merge 13 commits into
mainfrom
claude/fail-open-general
Open

abrichr wants to merge 13 commits into
mainfrom
claude/fail-open-general

Conversation

@abrichr

@abrichr abrichr commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

What this adds

Reviews kept finding the same fail-open bugs one pull request at a time. This change fixes those shapes once. packages/flow/docs/FAIL_CLOSED.md names them C1 to C7.

  • A verdict kernel, openadapt_flow/verdict.py. The obligations are fixed from the plan before any check runs, and settle matches results against them. None of these ever passes: an empty set, a missing or unplanned result, a result bound to another run, two results that disagree, a set over the limit, an unlisted code. HELD can be created only from a complete observation. Result.nothing_else holds a "nothing else changed" claim only on a complete read. Any change refutes it, even on a partial read.

  • A fail-open harness, tests/failopen. It runs 15 generic mutations (M1 to M16; M13 waits for the signer vectors) against every @verdict_site, from one spec per site. It checks the verdict at three levels, REFUTED < NOT_CHECKED < HELD. A mutation that adds a copy or turns a result bad never raises the level. A removal may move REFUTED to NOT_CHECKED, never to HELD. A site that ranks an unread result above a refutation must state the reason (C7).

  • A fold ratchet, scripts/check_verdict_folds.py, in the required ci smoke job. It counts hand-written folds by kind across the whole repository. Three kinds are new:

    • swallow_wide: a broad except that logs and falls through.
    • says_unchanged: a "nothing changed" literal.
    • empty_change_set: an emptiness test over a set that may be a partial read.

    A file that doesn't parse fails the check.

Sites on the kernel

Site Behaviour change
hard_invariants.judge_hard_invariants None on all 50,000 small inputs. A hand-written "held" no longer holds.
runtime/effects/versions.judge_versions A duplicate, missing-history or no-new-version row no longer hides another user's version. The frame is refuted, not left "not checked".
verify_run._aggregate, _observed Settled against cfg.effects, so a missing or unplanned verdict never passes. An unlisted observed code is unknown, not present.
receipt_record._line None on generated inputs.
receipt_record._tally_lines An unlisted line check keeps the run from VERIFIED.
tx/wire_tap.relay_redirect_location Registered now that #2470 has merged. Its import-boundary test (tests/test_tx_wire_tap.py) now allows exactly from openadapt_flow.verdict_sites import verdict_site, a stdlib-only marker.

Each migration has a differential test against a copy vendored from main before the move. The remaining sites are a checklist in FAIL_CLOSED.md.

Evidence

All of it is synthetic. The harness flags 14 fail-open bugs rebuilt from this repository's history (pinned pre-fix copies) plus one live connector site, and it passes their fixes. All 12 kernel mutants are killed. Two sites on main stay owned, with a strict xfail per case: governed_safety.check (#2258) and connector.status_from_report. No real-app run was made.

verify_run.py and runtime/effects/** are protected paths, so this change needs the cross-vendor review posted below.

The fold baseline was measured again after the merge of main. For every kind, the branch's count is at or below that of a clean origin/main measured with the same detector.

Fail-open blockers kept coming back one PR at a time. This fixes the
classes once:

- openadapt_flow/verdict.py: obligations fixed from the plan, settle(),
  allow-list codes, run binding, trust labels. An empty set, a short read,
  a raised probe, another run's result or an unknown code never passes.
- tests/failopen: 13 generic mutations run against every @verdict_site.
  The self-test flags 14 historical bugs rebuilt from this repository's
  code and passes their fixes; three live sites on main are strict xfails
  owned by #2470, #2258 and the connector status follow-up.
- scripts/check_verdict_folds.py: fails CI when a file gains a
  hand-written fold; never on a drop.
- verify_run: an empty or unpaired effect list is INDETERMINATE, unknown
  and unchecked (latent behind min_length=1).

See packages/flow/docs/FAIL_CLOSED.md.
…rness

- settle matches on subject key and run binding; obligations dedupe on both
- a HELD token is bound to its subject, so replace() can't move it
- observe refuses to map an exception to Observed
- owned sites list their exact known failures (strict xfail per case)
- pre-fix controls are pinned copies, never live code; S3b shows the
  undo fix still passes an unlisted per-write code
- the ratchet compares per-kind totals, so moving code into a new module
  is not a new fold, judges each exit of an except, refuses a site id on
  two functions, and runs in the smoke job on every change
@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: REQUEST CHANGES

From: Codex
Reviewed-Head: f6d8d0d

One result can discharge two planned obligations. Obligations.fix retains distinct bindings for the same subject key. binding_mismatches treats an unset expected binding as a wildcard, and settle considers each obligation independently. A plan with one run-bound obligation and another for the same key and run with an additional nonce counts two obligations. A single matching result can put both in held. used only helps classify unexpected results. Reject ambiguous overlapping obligations, coalesce them before fixing the denominator if they mean the same check, or assign evidence to distinct obligations without reuse. Add this case alongside the existing different-run test. Obligation identity · Binding comparison · Settlement

The run-binding guarantee needs a boundary. Observed carries a value and a completeness flag. Result.held seals the subject supplied by its caller; it cannot check which run produced the observation. A result already bound to another run is correctly refused for a fully bound obligation. A prior run’s observation tagged with the current subject during construction is indistinguishable from a current read. Bind at observation time if verification requires that provenance, or state explicitly in the capability and API docs that the adapter must establish it. The migrated _aggregate uses list positions and a caller-supplied verdict code. The verify_run caller does append one verdict per configured effect, but the fold itself cannot detect a missing planned effect or establish run provenance. Observed value · Result construction · Migration

Two CI behaviors need correction.

  • The fold check compares repository-wide totals by kind. --update-baseline instead lowers the allowance at each old path and discards the moved counts. In the existing file-split test, the accepted total of five becomes a baseline of two after an update. The next check on identical source fails. Preserve the allowed totals across moves and test the full compare → update → compare sequence. Baseline update · Existing split case
  • The owned-site check compares a set of failure messages. Its key omits both the seed and the field being mutated. Governed safety has two field selectors and several seeds, so an additional failure with an already-known mutation message can disappear in that set. Include stable case and field identities before claiming that each new failure, or each repaired case, changes the result. Failure identity · Owned-site check · Governed-safety cases

Evidence and compatibility. The historical self-test registers 14 pinned controls. The fifteenth case in the PR table is the live connector site. Please report those separately and describe the ratchet as repository-wide by kind. The synthetic evidence still exceeds the stated threshold of eight historical controls. For the three supported effect verdicts, I found the prior precedence preserved. Empty effects and tier-count mismatches now return the conservative results described. The two other protected judges gain registration decorators and retain their judgment logic. These changes apply across applications. I reviewed source, existing test assertions and control registrations. I did not run a lab case or a new held-out benchmark. Historical registrations · Live connector site

- HELD is minted only inside the kernel's constructors, so replace() can't
  copy or restore it; one result claimed by two obligations conflicts
- known failures carry the seed and lens, so a new case can't hide
- the ratchet checks every @verdict_site has a spec on every change, finds
  conditional sites, judges every branch of a returned value, and lowers
  the baseline per kind so a moved fold keeps its allowance
- M7 is out of P1; the S5 seeds plan 20 runs and a gate needing all 20
  passes
@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: REQUEST CHANGES

From: Codex
Reviewed-Head: ff07a95

The previous false pass is fixed. When one result matches two distinct planned obligations, settle now marks both conflicting. The new test covers that overlap. One correctness issue remains in the same matcher: it counts occurrences of id(result) inside each obligation’s match list. For one obligation, receiving the same result object twice therefore makes it conflicting, while receiving two equal results as separate objects leaves it held. The verdict should depend on the evidence, irrespective of how the caller stored or deserialized it. Count distinct claiming obligation indices for each result. Add the single-obligation repeat alongside the new two-obligation case. Matcher · Regression

dataclasses.replace can no longer create or restore HELD. The provenance boundary from the previous review still needs to be stated. Observed carries a value and a completeness flag, and Result.held accepts the caller’s subject separately. Binding checks protect a correctly attributed result. The adapter must establish which run produced the observation. Make that precondition explicit in the API and capability text. Observed · HELD constructor

The two CI fixes address the earlier findings. Moving folds between files retains the per-kind allowance after a baseline update, with a regression covering the next comparison. Owned failures now distinguish the seed and the field being mutated. Merging main retained its smoke checks and pinned setup action while adding the verdict ratchet to that job. Baseline regression · Failure accounting · Merged workflow

Please restore this PR’s description. It currently describes Cloud flight-recorder tables and migration 0117, while this diff changes Flow’s verdict kernel. The capability row and its generated copy also still need the earlier evidence corrections. There are 14 pinned historical controls plus one live connector site. Each site runs the mutations it supports, and the ratchet checks repository-wide totals per kind. The evidence is synthetic. I checked immutable source, registrations and test assertions without running another suite. Capability row · Generated copy · Ratchet description

@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: REQUEST CHANGES

From: Gemini
Reviewed-Head: ff07a95

Gemini run on ff07a95 (model gemini-3.1-pro-preview). Codex was tried first on this head, read-only with the diff on stdin, but stopped on its usage limit (resets Nov 27) before it wrote a review, so this review comes from Gemini. Gemini saw the full diff against the merge base 94674746182f, including every new file in full. It had no access to the rest of the repository.

The reviewer was asked to look for fail-open gaps in the harness itself: checkers that can avoid registering, holes in the kernel, missing mutations, weak properties, owned bookkeeping that could hide failures, and CI wiring.

Blockers

  1. The swallow detector misses a broad except that falls through (packages/flow/scripts/check_verdict_folds.py, lines 238-251). The handler is counted only when its body contains an open return, continue or pass. A handler such as except Exception: logger.error("failed") has none of those. It falls through to the code after it and is never counted. That is the most common way an exception gets swallowed, and it passes the ratchet.

Non-blocking

  1. Misleading M3 label (packages/flow/tests/failopen/harness.py, about line 99). When spec.vacuous is set and spec.plan is not None, M3 empties the results but keeps the plan, yet it is labelled "no results and no plan".
  2. M7 tests the kernel's duplicate check, not the site (harness.py, about line 128). M7 appends the same object again (items + [items[0]]). settle counts it twice by id(r) and reports "conflicting". The mutation therefore never asks whether a site accepts two separate results that agree. It still passes because expect defaults to "no_better".

Poster's notes (checked against the code at this head; not part of Gemini's final verdict)

  • The spec-presence check can be satisfied by accident. An earlier Gemini run on the same head was cut off by its token limit, but before stopping it raised this point. SPEC_ID = re.compile(r"""["']([\w.\-]+)["']""") in check_verdict_folds.py (line 362) collects every quoted word in tests/failopen/sites/*.py, including "held", "owned" and "C1". A site whose id equals any string in those files passes unregistered_sites(), which is the check that runs on every change. test_registry_complete.py covers this gap only when the Flow test lane runs, so the every-change gate is weaker than it looks. Matching only the id= or SiteSpec(...) argument would close it.
  • Other broad handlers the detector misses. It also skips except (Exception, ValueError): (a tuple) and except builtins.Exception: (an attribute), because it treats a handler as broad only when it names Exception or BaseException directly. Separately, count_file returns an empty count for a file that fails to parse, so that file contributes no folds.

… lines on the kernel

- check_verdict_folds: count a broad handler that falls through, leaves by
  break, or names Exception in a tuple or by attribute (swallow_wide); add
  says_unchanged and empty_change_set for "nothing else changed" claims; a
  file that doesn't parse fails; a spec id is an id= or factory argument.
- verdict: count the obligations that claim a result, not repeats of it;
  add Result.nothing_else (any change refutes, zero holds only on a
  complete read).
- harness: three-level monotonicity (P6), M7 appends a separate equal
  copy, M3 says when the plan is kept, M15 partial "nothing else" read,
  M16 a result turned bad.
- hard_invariants and versions build verdicts with settle; versions no
  longer lets a duplicate or missing-history row hide another author.
- verify_run._aggregate/_observed settle against cfg.effects;
  receipt_record._line and _tally_lines move onto the kernel.
- wire_tap is a registered site now that #2470 merged.
- Baseline measured again after merging main; every kind is at or below
  a clean origin/main.
…ovenance boundary

A handler that only logs a not-checked word still swallows; only a call that
stores the value records it. M15 must not raise a refuted seed. Observed and
Result.held say the adapter establishes which run produced a read.
@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: REQUEST CHANGES

From: Gemini
Reviewed-Head: f34a1ec

Gemini run on f34a1ec (model gemini-3.1-pro-preview, finish reason STOP). Codex is unavailable until Nov 27. Gemini saw the full diff against the merge base with origin/main, except the vendored pre-fix copies, the generated llms-full.txt and the fold baseline JSON. It had no access to the rest of the repository.

Blockers

  1. scripts/check_verdict_folds.py, line 359: _empty_change_set only checks if the right side of the comparison is empty. A check written as 0 == len(changes) or [] == changes avoids the ratchet.
    Fix: Check both sides for emptiness.

            left, right = node.left, node.comparators[0]
            def is_empty(expr: ast.AST) -> bool:
                return (
                    (isinstance(expr, ast.Constant) and expr.value == 0)
                    or (isinstance(expr, (ast.List, ast.Tuple, ast.Set)) and not expr.elts)
                    or (
                        isinstance(expr, ast.Call)
                        and getattr(expr.func, "id", "") in ("set", "list", "tuple", "dict")
                        and not expr.args
                    )
                )
            return (is_empty(right) and about_changes(left)) or (is_empty(left) and about_changes(right))
  2. scripts/check_verdict_folds.py, line 328: slice_count requires n.slice.lower is None. A slice written as lines[0:256] avoids the ratchet.
    Fix: Allow the lower bound to be the constant 0.

                and (n.slice.lower is None or (isinstance(n.slice.lower, ast.Constant) and n.slice.lower.value == 0))
  3. scripts/check_verdict_folds.py, line 282: bool_fold requires node.func to be an ast.Name. A fold written as builtins.all(...) avoids the ratchet.
    Fix: Check the attr as well.

            elif (
                isinstance(node, ast.Call)
                and getattr(node.func, "id", getattr(node.func, "attr", "")) in ("all", "any")
                and node.args
                and any(fold_names.search(n) for n in _names(node.args[0]))
            ):
  4. openadapt_flow/verify_run.py, line 3016: _observed returns "conflicting" instead of "unknown" when there is an unplanned verdict alongside a refuted planned verdict, contradicting its docstring ("unknown when one was not read, has no verdict, or was not planned").
    Fix: Check for unexpected results or an empty plan.

        if not settled.total or settled.total != len(settled.held) + len(settled.refuted) or settled.unexpected:
            return "unknown"  # something planned was not read, or not planned

Non-blocking

None.

The empty-change test is read from either side, a [0:N] slice counts like
[:N], builtins.all/any count as folds, and an unplanned verdict beside a
refuted one makes _observed unknown.
@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Gemini
Reviewed-Head: c151226

Gemini run on c151226 (model gemini-3.1-pro-preview, finish reason STOP). This is the re-review after the four blockers from the review on f34a1ec. Gemini saw the fix diff for this round and the full diff against the merge base with origin/main. The vendored pre-fix copies, llms-full.txt and the fold baseline JSON were left out. It had no access to the rest of the repository.

Previous blockers

  1. Fixed.
  2. Fixed.
  3. Fixed.
  4. Fixed.

Blockers

None.

Non-blocking

None.

@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

From: Claude
Reviewed-Head: c151226

Author declaration: Claude wrote the changes on this branch up to and including c151226. The Gemini review above is the cross-vendor review for this head.

@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Gemini
Reviewed-Head: 7a5f6e4

Gemini run on 7a5f6e4 (model gemini-3.1-pro-preview, finish reason STOP). The only change since the approved head c151226 is documentation and two spec note strings, made after the coordinator's sign-off: FAIL_CLOSED.md now records how the fold baseline was measured and why unread-first precedence stays. Gemini saw that delta, along with the per-kind counts to check against.

Blockers

None.

Non-blocking

None.

@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

From: Claude
Reviewed-Head: 7a5f6e4

Author declaration: Claude wrote the changes on this branch up to and including 7a5f6e4. The Gemini review above is the cross-vendor review for this head.

abrichr added a commit that referenced this pull request Nov 22, 2026
…t test

KeyResult.code says why, from a fixed set (CODES), so a caller can tell
"not found" from "found but unreadable" without matching English text.
The planted-mutant check of the fail-open spec is now a test; it skips
until the harness from #2476 is on the branch.
abrichr added a commit that referenced this pull request Nov 22, 2026
…he merge

The merge of #2476 into the form stack kept the stack's frame-scoped tick
check, which read TOP_TICKS_JS as a list; #2476 had changed it to return
{ticks, stalled}. 28 frame tests failed with KeyError: 0.
# Conflicts:
#	packages/flow/CHANGELOG.md
#	packages/flow/openadapt_flow/receipt_record.py
yunusarda-sudo pushed a commit to yunusarda-sudo/OpenAdapt that referenced this pull request Nov 22, 2026
An effect location is pack data for one place a careful person would look
again to see an intended value: the demonstration path and start condition,
a locator, the expected value, a codec (including a template codec for one
summary row that shows two values, and a split-date codec), the expected
count and an optional baseline.

evaluate_all judges every planned value as held, refuted or not_checked.
A location that can't be reached, found or read is not_checked. The check
level follows the start condition, and the receipt word comes from
check_level.outcome_word when it is available. It is registered as a
verdict site for the fail-open harness (OpenAdaptAI#2476) through a small compat
module, so it works on main today and picks up the real decorator and
ladder when they merge.
@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Claude
Reviewed-Head: 847be95

I found no P0 or P1. I could not find an input on which a migrated site returns a pass where main did not, or one that turns absent, errored, partial or unlisted evidence into a pass. Every behaviour change I traced moves toward fail-closed.

Cross-vendor review required. This branch was written by Claude. It touches protected paths in .github/agent-safety-manifest.json: packages/flow/openadapt_flow/verify_run.py and packages/flow/openadapt_flow/runtime/effects/versions.py (area verification-authority). A non-Claude review at this head is required before merge. This review does not satisfy that.

What I checked

Kernel (verdict.py). I read every line and probed it directly with a stdlib-only loader (not the test suite):

  • An empty obligation set never passes.
  • A missing result, an unplanned result, a result with a mismatched binding, and two results that disagree all keep passes false.
  • A result that two obligations claim is conflicting.
  • over_limit blocks the pass; nothing is truncated.
  • HELD requires Observed(complete=True). Result(..., Status.HELD) and dataclasses.replace(..., status=HELD) both raise.
  • from_code maps unlisted codes and non-strings to NOT_CHECKED.
  • nothing_else refutes on any change, holds zero only on a complete read, and rejects bool, float and negative counts.
  • label() returns HELD only when passes is true, whatever precedence is given (an empty precedence gives NOT_CHECKED).
  • trust_label names a signer only for a verified TrustSource.

Sites.

  • verify_run._aggregate and _observed: one verdict is appended per cfg.effects entry; the loop raises rather than skipping. The positional pairing therefore cannot misalign silently, and a short list leaves an obligation missing. Empty effects now give INDETERMINATE (on main, CONFIRMED). Unread still outranks refuted, as on main.
  • readback_class: empty verdicts and a tier count that differs from the verdict count are now unchecked.
  • receipt_record._line and _tally_lines: occurrence-numbered hashes keep two effects with the same contract as two obligations. An unlisted line check now blocks VERIFIED. A run with zero lines stays VERIFIED, as on main; that is pre-existing.
  • versions.judge_versions: the per-target search no longer stops at the first not-checked problem, so a duplicate, null or no-new-version row can no longer hide an another_author or extra_steps refutation. A target with zero targets or a create-only target holds, as on main. Whether _read_versions can return a capped read is pre-existing and not changed here.
  • hard_invariants: a hand-written InvariantResult("...", "held", ...) no longer holds. The only production constructor is judge_hard_invariants.

Fuzzer can fail. test_kernel_mutants.py fails when a mutant's source text is missing, so it can't stop mutating silently. test_selftest.py requires each vendored pre-fix copy to be flagged by a named mutator, and requires each post-fix copy to be clean. test_sites.py is a strict per-case xfail in both directions.

App names. None in verdict.py, verdict_sites.py, the migrated sites, check_verdict_folds.py or verdict_folds.toml.

CI at this head (run 45066888583). The kernel, kernel mutant, selftest, registry, migration and fold-check tests all passed in the flow unit shards. I did not run the tests or the fuzzer locally: the load average stayed above 15 (35 to 54). The vendored-history test skips in CI because the checkout is shallow, so the vendored copies are not compared with history there. Two jobs fail for reasons outside this change:

protected-safety-review is red until the cross-vendor review lands.

Findings (P2 unless marked; none blocks)

  1. P2: the kernel has a permissive default (its own C4). Observed.complete defaults to True, and observe(fn) wraps any returned value as Observed(value), which is complete. A probe that returns the first page of a capped query is therefore holdable unless the adapter remembers complete=False. observe has no production caller yet, so nothing is exposed today. Make complete a required argument before the first adapter uses it.
  2. P2: Obligations.fix silently collapses duplicate planned subjects. settle(Obligations.fix([a, a]), [held(a)]).passes is True, so two planned writes with the same key settle as one (an incomplete denominator at the kernel level). Every current site builds unique keys ({i}:{kind}, {hash}#{n}, target:{n}, line index), so nothing is exposed today. Consider raising on a duplicate rather than deduping, or document that the key must carry an occurrence index.
  3. P2: a repeated check now holds in HardInvariantVerdict. Two results for one obligation that agree settle as held. HardInvariantVerdict((scope, scope, cardinality, deletes)) with a held scope is held; on main it was not_checked (len(self.checks) != 3). The new docstring still says "repeated ... is not checked". This is only reachable by hand-building a verdict, but it contradicts the docstring and removes an old guard. Either restore the length check or treat a repeat as conflicting.
  4. P2: the new authority files are not protected. verdict.py, verdict_sites.py, scripts/verdict_folds_baseline.json, verdict_folds.toml and tests/failopen/** are not in agent-safety-manifest.json or CODEOWNERS. verify_run now takes its CONFIRMED decision from verdict.settle, so a later change to the kernel could weaken a protected verdict without the cross-vendor gate. Add them to verification-authority in a follow-up.
  5. P2: one decorator exempts a function from every ratchet kind. A function marked @verdict_site is exempt from all fold kinds. Its spec only has to make one mutation apply and have one pass seed. readback_class is decorated and exempt but still folds by hand with all()/any() (correctly, as far as I can see). A thin spec is enough to exempt new hand-written folds. Consider a minimum set of applicable mutators per spec, or keep counting inside sites that don't call settle.
  6. P2: the ratchet's scope is narrower than the PR body says. The PR body says it counts "across the whole repository". It scans packages/flow/openadapt_flow, openadapt/ and scripts/ci/, not packages/types, which holds receipt_outcome, nor packages/agent or packages/desktop.
  7. P2: the evidence claims don't match the code.
    • The PR body and FAIL_CLOSED.md (lines 167 to 175 and 302) say governed_safety.check stays owned with a strict xfail. tests/failopen/sites/governed_safety.py registers it as kind site with no known failures, and CI passes it as clean.
    • Two self-test pairs, S5_gate_min_scored and S5_gate_head, include seed in their accepted catches, and S5_gate_head is caught only by seed. That is a P0 seed disagreement written by hand, not a generated mutation, so "the harness flags 14 bugs" counts at least one that no mutation caught.
  8. P3: wrong import module. scripts/ci/check_windows_governed_safety.py imports verdict_site from openadapt_flow.verdict, which doesn't define it (it lives in openadapt_flow.verdict_sites). The ImportError fallback therefore always runs, and the function never registers in SITES. The AST-based registry check hides this. The fix is a one-line change.
  9. Note: production subjects are unbound. Every migrated site builds subjects with no run_id, nonce or digest. Run binding (rule 5 in FAIL_CLOSED.md) is tested in the kernel, but no production site uses it yet. Each site's results come from the same in-memory run, so I found no exploit. Binding only starts to protect anything once an adapter sets it.

# Conflicts:
#	packages/flow/CHANGELOG.md
@abrichr

abrichr commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Gemini
Reviewed-Head: f250b48

VERDICT: APPROVE

Independent cross-vendor delta review of f250b488238203b1f8f04a3400b4fedb2c42f616 (Claude-authored claude/fail-open-general; I authored none of this PR).

  • Pure origin/main merges only: All four commits since Gemini's APPROVE at 7a5f6e45 (#7072429534) are Merge remote-tracking branch 'origin/main' into HEAD (847be951, 10ed8172, 93dc3a99, f250b488). No PR-unique verdict-kernel, fail-open harness, or fold-ratchet logic changed.
  • Note: PR currently shows CONFLICTING against main and needs a clean main merge before landing.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant