Repository navigation
fix(plugin-approvals): a fan-out where one branch fails is abandoned, never approved, on the door and the reconciler - #39013
Conversation
… and the reconciler, red first (#38988) Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
… never approved, on the door and the reconciler (#38988) The routed-failure reading leaves out a failure logged after the run's end, as the stop reading does. A new module, approval-fanout-judge.ts, reads whether a run that ended without completing (a refusing end included) left a branch of a fan-out open from which a step can still follow; the run is then read as ended between two steps. approval-service.ts takes the call sites only. Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
…dAt for the caller's late reading (#38988) Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
…nout-judge Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 1 package(s): 15 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 9 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 6 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 5050b36a5d1e44639be767bd96a96a97344e8685 && git checkout 5050b36a5d1e44639be767bd96a96a97344e8685
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin c748e7dfd647ca9b4e679d59425f358c9ff84b04 b7ecc1468a1ac225cdc8a70f124698e5de5b95e4 && git checkout -B drift-repro c748e7dfd647ca9b4e679d59425f358c9ff84b04 && git merge --no-ff b7ecc1468a1ac225cdc8a70f124698e5de5b95e4
node scripts/docs-audit/affected-docs.mjs --json c748e7dfd647ca9b4e679d59425f358c9ff84b04
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhKEbEnW8pwZRgK2gJ Final green head · 2026-12-02T00:51Z · zone osa-data
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head b744b4e · 2026-12-02T00:53Z |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract reviewServed-tier: PR #39013 · card #38988 · reviewed 2026-12-02T00:59Z. Read: the card's body and all 8 comments (ruling 7329430078 included), the PR body, the net diff against Scope: ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentThe contract: ruling 7329430078, "When the run ends, any approval step on the other branch that has not finished counts as not done. The record is judged abandoned or withdrawn, and it is never marked approved with an approver missing." M1 (must-fix) — a branch that logged its first node by the run's end and is still running is not read as open, so the door still writes S1 (should-fix) — the "group was taken" test is not tied to the edge, so a label the node did not take can be read as an open fan-out; the docblock's "never invent one" and the changeset's "the branch it did not take is not read as open" do not hold. The S2 (should-fix) — a N1 (nit) — N2 (nit) — the docblock's "one Held against the cited code, and standing: a Implemented-by: VERDICT: FAIL |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 review · PR #39013 (#38988) · head b744b4e · 2026-12-02T01:01ZVERDICT: NOT ACCEPTED on this head. I adopt the contract-tier record 7331212150 (FAIL): M1 must-fix, and S1 and S2 should-fix. The fix head owes an L2 delta that names them closed, and an L1 delta.
Next: the fix head, then the L2 delta from this lane's resumable reviewer, then the L1 delta. No landing before both. |
…et label and a rejection to a refusing end, red first (#38988) Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
…ntier and ties a taken group to its own target (#38988) M1: a branch is open where the first node on it the run had not logged by its end stands between two steps, not only at the fan-out's direct target. S1: a labelled group is read as taken only on a logged target no other group of the node names. S2: a skipped step is no node that ran. N1: the run's end instant is read once. N2: the docblock says an edge with no label forms a group of its own. Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
…d stays rejected, with a branch still open (#38988) The seat's confirmed reading of ruling 7329430078: the ruling is about a record marked approved with an approver missing, and a rejection is an approver's decision. The fan-out judge's refused arm does not read a run whose approval's latest request is rejected. Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
…, label and rejection readings do (#38988) Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
…nout-judge Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhKEbEnW8pwZRgK2gJ Final green head · patch round 1 · 2026-12-02T01:49Z · zone osa-data
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 51ecf07 · 2026-12-02T01:51Z |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract reviewServed-tier: Delta round 2 on PR #39013 · card #38988 · reviewed 2026-12-02T01:54Z. It follows record 7331212150 (FAIL on Scope: M1: closed N1 and N2 of round 1 are fixed as well (the run's end instant is read once; the docblock says edges with no label form one group of their own). ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentThe contract: ruling 7329430078, "When the run ends, any approval step on the other branch that has not finished counts as not done. The record is judged abandoned or withdrawn, and it is never marked approved with an approver missing." What closed, against the tree: the walk M2 (must-fix) — the frontier walk stops, toward approved, at any node on the open branch whose continuation is not an unconditional edge. S3 (should-fix) — target ownership is evidence of the label a node took, not knowledge of it, and it errs both ways. Toward approved: N3 (nit) — the code comment on the rejected guard and the changeset give a reason ("a rejection is an approver's decision") that would cover a failed, cancelled or timed-out run as well, while the guard is on the refused arm alone. The PR body says so; the comment could. Q1, the rejected guard on the refused arm ( Held against the cited code, and standing: a branch that reaches an Implemented-by: VERDICT: FAIL |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 delta · PR #39013 (#38988) · b744b4e → 51ecf07 · 2026-12-02T01:55ZVERDICT: NOT ACCEPTED on this head. I adopt the delta contract record 7332253435 (FAIL).
Next: the fix head, then L2 delta round 3 and the L1 delta. |
…oval step's label by its decision, red first (#38988) Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
…d an approval step's decision off what the platform records (#38988) M2: on a branch, a conditional or default target with neither a step nor a skipped step logged after the visit is undecided or running, and is read as the frontier. A label-routing node whose label is not recorded and not shown by a target only one group names reads every group (open), never none. S3: an approval step's label is its request's decision, read exactly (approvalStepLabels); target ownership stays for other label-routing nodes. Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
…arm only, and why (#38988) Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhKEbEnW8pwZRgK2gJ Final green head · patch round 2 · 2026-12-02T03:11Z · zone osa-data
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 40b23f4 · 2026-12-02T03:12Z |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract reviewServed-tier: Delta round 3 on PR #39013 · card #38988 · reviewed 2026-12-02T03:16Z. It follows the round 2 record on Scope: M2: closed N3 of round 2 is fixed as well (the comment on the rejected guard says it is on the refused arm only, and why). ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentThe contract: ruling 7329430078, "When the run ends, any approval step on the other branch that has not finished counts as not done. The record is judged abandoned or withdrawn, and it is never marked approved with an approver missing." What closed, against the tree. M2: S4 (should-fix) — on a S5 (should-fix) — where the flow's body cannot be read, a branch that had logged nothing by the run's end is not seen, and the judge answers nothing open. N4 (nit) — on a node that chose a label the judge could not read, conditional and default edges are all read as undecided, though the engine walks only the claimed label's edges and logs no Tried against the tree, and standing: an approval step logs its step as it pauses, after its request is written, so the request opened last by the step's Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 delta · PR #39013 (#38988) · head 40b23f4 · 2026-12-02T03:18ZREWORK. Contract L2 delta round 3 on this head is a PASS. It closes Before landing
Read and right on this head
Next: a fix head. I then run a round 4 delta at contract tier naming S4 and S5, and post an L1 delta. |
…readable body, red first (#38988) On the real engine at 40b23f4: a decision with conditions whose other label names a node a sibling branch ran reads that label as taken, and the door writes approved with the second step never asked; and where the flow's body cannot be read and the open branch has logged nothing, the reconciler answers finished. Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
… label's evidence, and an unreadable body is not nothing open (#38988) S4: on a node that chose a label not recorded, a target only one label names shows that label only where no other node the run logged before it has an edge into it (nor another visit of the node); otherwise every group is read, toward open. S5: where the run's flow body cannot be read and no branch logged after the end, the placement answers undetermined within the age bound, and past it, where the judgement before read the same, places the run at the step last decided (stoodState 'body'), the rule for a run that cannot be read. N4: the docblock names the label-chosen-but-unread case. Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhKEbEnW8pwZRgK2gJ Final green head · patch round 3 · 2026-12-02T04:10Z · zone osa-data
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 491eff0 · 2026-12-02T04:11Z |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract reviewServed-tier: Delta round 4 on PR #39013 · card #38988 · reviewed 2026-12-02T04:15Z. It follows the round 3 record on Scope: S4: closed N4 of round 3 is fixed as well (the docblock and the changeset name the reading of conditional and default edges on a node whose label could not be read). ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentThe contract: ruling 7329430078, "When the run ends, any approval step on the other branch that has not finished counts as not done. The record is judged abandoned or withdrawn, and it is never marked approved with an approver missing." What closed, against the tree. S4: S6 (should-fix) — a S7 (should-fix) — the stricter evidence test now reads a branch as open in a flow with no fan-out. Tried against the tree, and standing: a failure step counts as the node having run, in the evidence test and in the predecessor test alike; a late or nested step is never a visit; the default route of a decision (the Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 delta · PR #39013 (#38988) · head 491eff0 · 2026-12-02T04:16ZREWORK. Contract L2 delta round 4 on this head is a PASS. It closes S6 must be fixed (toward a false "approved"). I read it against the engine. In S7 is new in this round, in the tolerated direction (wrong abandon). A note on convergence. Four rounds have each closed their findings and found a new way to infer a label that wasn't recorded. The rule that cannot be fooled toward approved is: on a node that chooses a label whose label is not recorded, read every group. That closes S6 outright and makes S4's ownership test unnecessary. Its cost is a wrong abandon in some flows, which is the direction ADR-0162 tolerates and the class S7 already is. If the evidence narrowing stays, follow the record's closing condition: narrow only where every declared label has an edge and a default route exists, count the node's own edges of every kind, and pin the no-default cell. I have asked the seat to choose between the two. Next: a fix head. I then run a round 5 delta at contract tier naming S6 and S7, and post an L1 delta. Landing also waits on #39025. |
…wn conditional edge, red first, and the cost control (#38988) On the real engine at 491eff0: a decision that answers a label no edge carries runs every out-edge, and a decision's own conditional edge of the label it took reaches a target its other label names; in both the door writes approved with the second step never asked. The cost control pins the put-back the read-every-group rule accepts where a decision's label is not recorded. Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
…whose label is not recorded (#38988) S6 of contract review 7334730161, by the rule the seat confirmed in 7334756396: where the label a node took is not recorded (a decision that declares conditions, an approval step with no request row), every group is read, always. The evidence narrowing (target ownership, the S4 predecessor test) is removed rather than refined: a logged target is no knowledge of the label, and a label no edge carries makes the engine run every edge. The recorded label (an approval step's request decision) still decides. The cost, a put-back after a branch the node did not take (S7), is the direction ADR-0162 tolerates and the seat accepted. Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
…nout-judge Brings in the ENOBUFS fix for check:closed-ceremony-text (#39027). Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhKEbEnW8pwZRgK2gJ Final green head · patch round 4 · 2026-12-02T05:32Z · zone osa-data
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head b7ecc14 · 2026-12-02T05:33Z |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract reviewServed-tier: Delta round 5 on PR #39013 · card #38988 · reviewed 2026-12-02T05:35Z. It follows the round 4 record on Scope: S6: closed S7 is closed by the seat's acceptance, ruling 7334756396, not by a fix: a branch a node did not take can be read as open and the record put back, also in a flow with no fan-out. It is pinned as the control No must-fix, no should-fix. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentThe contract: ruling 7329430078 ("never marked approved with an approver missing"), as read by the seat's ruling 7334756396. Does the tree implement exactly that rule. Yes. Is every path to a false approved from S4 and S6 closed. Yes, each traced on the code:
Did removing the narrowing break what closed earlier. No. M2: the conditional and default reading and the frontier walk are unchanged. S3: an approval step's label is still read off the request its visit opened, so the label it did not take is not read; with no request row every group is read, toward open. S5: Q1 (the rejected guard on the refused arm) is unchanged and holds. Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 delta · PR #39013 (#38988) · head b7ecc14 · 2026-12-02T05:36ZACCEPT, on head
Next: zone landing. The merge closes #38988. |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhKEbEnW8pwZRgK2gJ 2026-12-02T05:37Z · Landing: on head b7ecc14 the contract L2 delta round 5 is PASS with nothing open (7336099791; S6 closed by the fix, S7 closed by the seat's acceptance 7334756396) and the L1 delta is ACCEPT (7336112775). Not governed, 1061 lines ≤ 3000, CI 41 success / 0 failure, mergeable clean. Ready for review and auto-merge (squash). |
…38985-failed-run-orphan-approval Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ Co-authored-by: Claude <noreply@anthropic.com>
Fixes #38988
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
@objectstack/plugin-approvalsonly. Per the maintainer's ruling 7329430078 on this card ("判作废"): for an approval flow that fans out where one branch fails, the result is abandoned, never approved.Item 3 (N5's routed-failure half),
approval-service.ts. The routed-failure reading leaves out a failure logged after the run'scompletedAt(loggedAfterEnd), as the stop reading does. A paused run has no end and is read as before. Applied alone this flipsfork_fail_bothtoapprovedon the reconciler (measured, below), so it lands with the judge.The fan-out-aware judge, new module
approval-fanout-judge.ts.openBranchAtEndanswers whether a run that ended without completing (failed, cancelled, timed out, refused) left a branch of a fan-out open from which a step can still follow:condition, notisDefault, notfault, onelabel) number two or more, at least one target logged after it by the end (so the group was taken); a target of that group with nothing logged after the node by the end is an open branch. A node that routes by its decision (an approval'sapprove/reject) takes one label, so the label it did not take is not open;runFlowBodyreads the body under the run's key (getRunFlow, elsegetFlow), never throwing;openBranchWhyis the timeline sentence.Call sites,
approval-service.ts(+22 / -1). InplaceApprovalRun's terminal arm: a refused run asks the judge before its "reached an end" return; any other non-completed run asks it after the stop reading, so an existing stop between two steps keeps its sentence (the #38691 pins). A run that ended before the latest request opened (answered) is not judged, as before. The answer is the ordinaryendedWhy, soreadCarryingRunandjudgeApprovalAfterDoorabandon it by the existing path: the record is put back and the timeline names the branch.dag-traversal.ts,run-resume.tsandapproval-node.tsare untouched.With items 1 and 2 and the docblocks N2-N4 merged in #39000, this finishes the card's Done-when.
Tests
Red first on the real engine (kernel, ObjectQL, automation engine, approval node, sqlite), test commit 8d6993f over base f13adae
The last describe of
approval-fanout-late-steps-38988.test.tswas the held reading (doorapproved, reconcilerrecalled); it now pins the ruled reading:fork_fail_both, door and reconciler:AssertionError: the door: expected 'approved' to be 'recalled'fork_refuse_fail), door and reconciler:AssertionError: the door: expected 'approved' to be 'recalled'label_fail(an approval routing by its decision, the branch not taken leads to the second step): green on base, green after.Tests 2 failed | 3 passed (5)Item 3 alone (the routed-failure filter, no judge):
AssertionError: expected { finished: 1 } to deeply equal { abandoned: 1 }on both cells: the reconciler flips to approved, the flip the card held for.Green at b744b4e
approval-fanout-judge-38988.test.ts14 fixture cases,approval-fanout-late-steps-38988.test.ts,approval-fanout-stop-38691.test.ts):Test Files 3 passed (3),Tests 23 passed (23)pnpm --filter @objectstack/plugin-approvals test(at 89be400; the merge of main after it touches no file of this package):Test Files 146 passed (146),Tests 2294 passed (2294), every 37767 后续:审批读取的 fan-out 判断与引擎注释收尾(N14–N17、N23、stopOf) #38691 pin includedpnpm --filter @objectstack/plugin-approvals typecheck: exit 0 (includescheck:test-typecheck)Ablations (on-disk mutation, restored by hash)
Tests 2 failed | 7 passed (9), the reconciler namesits node 'late' failed between two stepsinstead of the open branch.Tests 2 failed | 7 passed (9),expected { finished: 1 } to deeply equal { abandoned: 1 }.Acceptance notes
Verification
Read first:
approval-fanout-judge.tsopenBranchAtEnd(the group-taken test and the label grouping);approval-service.tsplaceApprovalRunterminal arm (where the judge sits relative to the stop reading); the last describe ofapproval-fanout-late-steps-38988.test.ts.Two minutes:
pnpm --filter @objectstack/plugin-approvals exec vitest run src/approval-fanout-late-steps-38988.test.tsshows 5 passed; the fan-out cells writerecalledon both the door and the reconciler, the control writesapproved.Local gates at b744b4e:
dispatch-gates.mjs --ran: 74 derived families accounted for, 72 run, 2 NOT-MEASURED (check:dual-build-cjs-loads,check:i18n: exit 3 PREREQUISITE NOT MET, a full workspace build; CI runs them).Patch round 1 (contract review 7331212150, L1 7331234706)
fork_two_deep:fork→note1→note2(fails) → end;late1→late2(running) →second).shared_notify(rejected,notifyfails) staysrejectedwith no put-back line. Fixtures cover the unlabelled-group-on-a-labelled-node variant and the refusing-end variant.skippedstep is not read as the node having run (fixture).rejected, even with another taken branch still open. Real-engine controlreject_fork_refusecovers the door and the reconciler.Acceptance note (Q1 reading): ruling 7329430078 says an approval whose fan-out has a failed branch is never marked approved with an approver missing. The seat confirmed the narrow reading: a rejection is an approver's decision, so when the latest request is rejected, the refused arm of the judge does not read the run, and rejected stays rejected. Only the refused arm skips; a failed, cancelled or timed-out run is judged as before.
Changeset: both sentences the review flagged are now true of the pinned cells, and the changeset states the Q1 reading.
Patch round 2 (contract review 7332253435, L1 7332267098)
The judge now reads what the platform records, and where a fact is not recorded it reads the branch as open (the put-back), never as nothing open.
skippedstep the engine writes for an edge it passed over. With neither, it is undecided or still running, and it is the frontier where it stands between two steps. A node that routes by a label, whose label is not recorded and is not shown by a target only one group names, reads every group. Pinned on the real engine at the door and at the reconciler (fork_decision:fork→note(fails) → end;late1→dec→ conditional →late2(running) →second).approved→approve,rejected→reject,returned→revise; pending, recalled or cancelled → every edge), read offsys_approval_requestby run, node and opening time. Target ownership is kept only for other nodes that route by a label. Real-engine pins:approved_shared(approved, the shared target fails,preprunning) →recalled;reject_audit(rejected, a downstream node the approve group also names fails) → staysrejected.d91d5c69red first,40b23f49fix): target ownership was also applied to a node that routes by no label but whose out-edges carry labels. The engine runs every out-edge of such a node, but the judge read the fan-out as one branch and the door wroteapprovedwith the second step never asked (real engine,labelled_fork). Ownership now applies only where the step's recordednodeTypeisapproval, ordecisionwithconditionsdeclared in the body. Any other node, custom ones included, reads every group.Where the judge still infers: the label a
decisionwithconditionstook (the step does not record it), and the label of an approval step with no request row in hand (an empty slate it approved itself). These are read off which targets logged. A conditional target's step is matched by node id, not byskippedBy.nodeId; the flow-registration gate that refuses two branches reaching a pausing node keeps that unambiguous for any target that leads to a step.Acceptance notes:
fork_decisionandapproved_sharedalso pass on the round-1 code: the reconciler judges after the open branch has logged its late step, and the late-step half of the judge answers that. The door halves tell round 1 and round 2 apart, the same design as round 1's two-deep cell.approved_sharedstays green with S3 ablated, because M2's rule that an unreadable label reads every group already puts it back. S3 is carried byreject_auditandshared_notify, which go red without it.rejectwhile the request readsrecalled, so the judge reads every edge of that visit. That errs toward open.Patch round 3 (contract review 7333739245, L1 7333760961)
decisionthat declaresconditions, or an approval step with no request row), a target only one label names now shows that label only if no other node the run logged before it has an edge of any kind into that target,faultincluded, and no other visit of the same node does either. Only then can this visit alone have run it. A target that a sibling branch, or another route, could have run is not evidence, and every group is read (toward open). Pinned red first on the real engine at the door and at the reconciler (dec_sibling:first(approved) →fork→ {audit,dec};dec:high→prep(running) →second,low→audit;decanswershigh, andaudit, run by the sibling, fails afterdeclogged). Result:recalled, with the timeline namingprep. Before the fix:approved.stoodStatekindbody). The run has stopped at the step last decided. Where a step can follow that step, the approval is put back; where none can, it is finished. Pinned on the real engine:fork_fail_bothwith the open branch held so that it logs nothing and the body hidden after the run fails. First reconcile{ undetermined: 1 }, not approved; aged reconcile{ abandoned: 1 },recalled, timeline says the flow cannot be read. Before the fix:{ finished: 1 }.Acceptance notes:
placeApprovalRun. It reuses the walk's existingaged/standsarguments and adds onestoodStatekind. Unlike the walk's ownplacedpath, the S5 rule writes no "flow did not continue" notice in the finished case; there the outcome is the plain mirror.dec_siblingalso passes without the S4 guard, becausepreplogs late and the late-step half answers it. The door half tells the two apart, as in rounds 1 and 2.491eff0a(dev report 7334613265): red first at40b23f49(test commit40b72514); fan-out files 41/41; plugin-approvals 146 files / 2319 tests; ablations S4 (2 cells red) and S5 (1 cell red); 74 derived gates all run, 0 NOT MEASURED.Patch round 4 (contract review 7334730161, L1 7334739130, seat reading 7334756396)
decisionthat declaresconditions, or an approval step with no request row), the judge reads every group of its out-edges, always. The evidence narrowing is removed rather than refined. That covers target ownership and the round-3 predecessor test (onlyFrom). A logged target is not knowledge of the label, and a decision that answers a label no edge carries makes the engine run every edge. The recorded label (an approval step's request decision, S3) still decides. Pinned red first on the real engine:dec_nodefault(decdeclareshighandlow, neither holds, no default route;prep→secondandtidyrun together;tidyfails) →recalledat the door and at the reconciler, timeline namingprep; before:approved. Alsodec_own_cond(decanswershigh, whose own conditional edge reachesaudit, whichlownames too;preprunning, the sibling fails) →recalledat the door, timeline namingprep; before:approved.dec_low_notify(approved,first→dec;decanswerslow→notify, which fails;high→second, followed by a third step). The record is put back (recalled), and the timeline namessecond, a branch that never ran. That is the direction ADR-0162 D5 tolerates as a resubmission. Note: the cell carries a third step becausesecondmust stand between two steps to be read as open; withsecondas the last step, nothing is open there and the record keepsapproved.late, not nothing open. In the "only one label names it" cell, the case where onlydecleads toauditnow readsprep, not nothing open. In the cell where no target of a group was logged, an approval step with no request row now readsa, not nothing open.origin/mainmerged atb7ecc146(it carries the closed-ceremony-text fix, fix(scripts): tree-scaled git listings in two gate scripts read past the 1 MiB default buffer #39027). It touches no file of the package.Acceptance note (seat's reading 7334756396): where a node's label is not recorded, the judge can put a record back after a branch the node did not take, also in a flow with no parallel branches (
dec_low_notify). It never marks a record approved while a branch the engine ran could still lead to a step.8b6d5808/b7ecc146(dev report 7335581345): red first at491eff0a(test commit410f4073); fan-out files 46/46; plugin-approvals 146 files / 2322 tests; ablation (evidence narrowing put back) → 10 cells red; 74 derived gates run, 0 NOT MEASURED.🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ