Repository navigation
fix(approvals): the reconciler keeps a run as ended only with every child read, and reaches a decision in a child run (ADR-0162 item 8) - #38634
Conversation
… it stood at 46ca8ff The starting point of the plugin-core rebuild; the cases that follow are red on this tree. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSFBvAjuff7Brz9Rf9
…fix (ADR-0162 item 8) Thirteen cases for contract review 7257527251 of the plugin half, each red on the tree as it stood at 46ca8ff: - M4: a sibling child whose read threw once at the door, a child with no row under a run that ended at its step, a tree past the 200 runs one judgement reads, and a run read to its end over an unread child whose own row is gone by the next pass. Each answers finished on the second pass. - S1, nested: a decision in a child run whose parent is parked at its subflow between two steps, one level and two levels down, and under a map whose items are not records (N8). Each answers in progress for good. - S7 by seat reading 7257555103: a door that leaves the next request pending keeps nothing; a child whose row is gone under a run that went on past it holds the approval; and the failure-route pin, whose child with no row is written within the bound. - S6: a note written between the reading and the kept write is erased. - S8: the notice that the flow did not go on is sent on a refused write. - N9: a placed approval that held nothing back leaves no line in the log. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSFBvAjuff7Brz9Rf9
…e fix (ADR-0162 item 8) One more case of the rebuild on contract review 7257527251, red on the base tree: the judgement reads the request, then its runs; a passage of another process notes in between that the step after the last decision could not open. The base tree read the note before the runs, so it answers finished and writes `approved` (expected 'approved' to be 'recalled'). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSFBvAjuff7Brz9Rf9
The rebuild of the plugin half on contract review 7257527251. M4: a run is kept as ended, and not read again, only once it was read to an end and every child run its steps name is kept as ended too. A run read to its end over a child not read yet is kept as open and is a seed of the next walk. The walk reads the whole tree before it answers; only a run it cannot read and the 200-read cap end it early. S1: a run parked at a node of the set on a child run says what its child says. The walk reads the child, so the latest request's own run parked at its own node is reached at any depth, and the one rule decides. S7: a door that leaves a request open reads the runs and keeps what it read. A run with no row counts as passed where a run that was read went on past the step that names it: the step succeeded, and the run reached an end or logged a later step and is not parked at that step. A step that failed is never passed, also where the flow routed its failure. S6: the kept reading writes its own key onto the snapshot read again just before the write, and the write is conditional on the column still reading what the key was set on. The note that a later step could not open is read once the runs are read, not before. S8: the administrators are told that the flow did not go on only on the pass whose outcome write landed. N5, N6, N9: the age bound's docblock names the four states; the walk's docblock agrees with itself; a placed approval that held nothing back leaves a line in the log. N8: the cancel of an abandoned approval's parked run goes up through a map whose items are not records, to the run that carries the record. One guard case comes with this commit and is not a failing case of the base tree, which had no such rule to over-reach: a run still parked at the step that names a child did not go on past it. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSFBvAjuff7Brz9Rf9
…where no run is left N10 of contract review 7257527251. The body ended "continue or cancel it", which a run with no row offers no way to do. It now says both: where the run is still paused, continue or cancel it; where no run is left, check that the steps after the decision were done. All 11 locale packs. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSFBvAjuff7Brz9Rf9
…onciler does The sentences contract review 7257527251 and its L1 record found ahead of the tree are rewritten to this head: what a tree of more than 200 runs answers, what a trimmed history means for a run that was and was not read, which doors read, and when a run that ended is not read again. The changeset also names `@objectstack/service-messaging`, whose exported topic list gains `approval.flow_not_continued` (S9). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSFBvAjuff7Brz9Rf9
…0162 item 8)
The fourth shape M4 of contract review 7257527251 names. Red on the base
tree's service (2dc92706cf): its walk returned at the run in progress,
kept the run above as ended, and the next pass answered finished over the
sibling it never read (expected { finished: 1 } to deeply equal
{ abandoned: 1 }). Green on this head, where a run is kept as ended only
with every child its steps name.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jSFBvAjuff7Brz9Rf9
…ore the fix (ADR-0162 item 8) Seat ruling 7258590209 on M5 of review record 7258563513 (the engine half): a step names at most 200 child runs and carries `childRunIdsTruncated` when its execution started more, and the plugin reads such a step as cannot tell. Three cases, red on this head and on the base tree (each answers finished where cannot tell is owed): - a `map` step that carries the mark: held to the bound, then placed by the step last decided; its log speaks for no run it names; - a step log the history row cut short, and one it stored as null: the run's summary still counts the steps it logged. The mark is not on the local stand-in of the engine half yet, so the cases drive it through a double of the run store. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSFBvAjuff7Brz9Rf9
…ot tell (ADR-0162 item 8) Seat ruling 7258590209 on M5 of review record 7258563513. The walk reads as cut, and never as finished: - a step that carries `childRunIdsTruncated`: its execution started more child runs than the 200 the engine names on a step; - the step log of a run in a terminal status whose history row keeps fewer steps than the run logged. The row bounds the log by bytes, to a tail of it or to none; the run's summary is folded before that and counts every step, so the two are compared. A summary that is absent or dropped its detail gives nothing to compare, and reads as cut. A run whose log is cut is cannot tell within the age bound and, past it, placed by the step last decided, as a run with no row is (ruling B2). It is never kept as ended, its children are still read, and it speaks for none of them: no run it names counts as passed. `childRunIdsTruncated` and `summary` are typed as optional on the plugin's own `ApprovalResumeSurface.getRun`. The run-store doubles of the earlier cases carry the summary of the step logs they answer. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSFBvAjuff7Brz9Rf9
…e changeset and the guide Seat ruling 7258590209: the changeset names the two logs read as cut, what they answer within and past the age bound, and the two members the plugin's `getRun` typing gains; the guide lists the state beside the two it already held to the hour. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSFBvAjuff7Brz9Rf9
📓 Docs Drift CheckThis PR changes 2 package(s): 25 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 9 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 8 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 68e6ca915a36030e070fbbc3d0eba1ac41d20772 && git checkout 68e6ca915a36030e070fbbc3d0eba1ac41d20772
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin ee8203b011823e22cbfb721c89fa60b455a56689 b0480581866a0e4a9c42253445eed0715729e12a && git checkout -B drift-repro ee8203b011823e22cbfb721c89fa60b455a56689 && git merge --no-ff b0480581866a0e4a9c42253445eed0715729e12a
node scripts/docs-audit/affected-docs.mjs --json ee8203b011823e22cbfb721c89fa60b455a56689
|
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a Contract-tier review (rules face on the ADR-0084 row and the ui contributor guide, and the declared narrowing over every path outside the prose faces) at this head by an isolated sub-agent of seat 1's L1 thread; the record follows on this PR. |
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a 2026-11-29T16:57Z · Correction to claim 7259296745: its head line is right, its describing sentence was copied from another pull request by mistake. What is claimed here: a fresh contract-tier review of this PR (card #37767, the approvals reconciler in |
|
repo:objectstack#2 · os-warren · session_01JQwxbZFEo6URsCoWYcL8ub Contract-review-claim: session_01JQwxbZFEo6URsCoWYcL8ub · head c593184 · 2026-11-30T01:47Z Seat 2 (zone o2-S1, takeover claim 7264923629 on #37767) starts a fresh isolated review of this head by a sub-agent served at |
|
repo:objectstack#2 · os-warren · session_01JQwxbZFEo6URsCoWYcL8ub Contract reviewServed-tier: PR #38634, card #37767, the plugin core of piece 4 (the approvals reconciler and the reading it judges from), base Result: no must-fix. Three should-fix (S11 to S13), seven nits (N18 to N24), one question that goes to the maintainer (q1). Every finding of 7257527251 the report claims closed is closed in the tree. ① Derived judgmentsNothing is refused, removed or renamed; each change is a widening, and each is right.
② Semver level
③ Boundary flags(q1) The report's open question: a terminal run whose log the engine compacted past 200 steps. My reading: the rulings' words do not decide it, so it goes to the maintainer.
(q2) "marks a step log it trims" (claim amendment 7259282813). On its words the sentence asks for more than the per-step mark. At N14 and N17 of 7266381174. Neither is in this PR's files. N14 is a docblock in What the engine's rework changes for the plugin (
Not this PR's surface, for the seat to route to the engine half. The report's deviations.
The report's out-of-scope findings.
SQL push-down. No finding. The reconciler's two windows push filter, order and limit to the store ( Checks. On the head, read 2026-11-30T02:23Z: 54 check-runs, 41 success, 13 skipped, none failed, none pending. Mergeable state clean. The base branch's tip is Order with #38601. Record 7265371022 lists three places where the ADR reword and this build part (the cancel through a ④ Design judgmentClosure of 7257527251, judged in the tree.
Tried and held. A store fault at any read is cannot tell at any age. Two processes in one passage: a run with no row, or paused with no pause, is cannot tell within the bound. Two judges writing one outcome: the same value twice, in the decider's name through a system context, the notice keyed. A note that lands during the walk is read after it. Findings. S11 (should-fix) — the 200-run cap has no end. S12 (should-fix) — item 8's fourth state is not placed under a S13 (should-fix) — four sentences say more than the tree does. The changeset's headline "A step log that does not name every child run is cannot tell" and its "no pass answers finished over a run it skipped" are not true of a compacted log; the exception that follows says how the log is read, not that child runs named only by a dropped step are never read. The guide lists "a step history that was cut to fit when it was stored" and says "a run the platform could not read once is not passed over later", with no word on compaction. The maintainer summary's sentence in S11. Each moves with q1 and S11; until q1 is answered, the changeset and the guide say what an operator gets. N18 (nit) — the cancel is not retried. N19 (nit) — the notice body has two arms, a run still paused and no run left. A last step placed by a cut log is neither: the run ended and its log is incomplete. Eleven locale packs. N20 (nit) — a placement by a missing run or a cut log calls N21 (nit) — N22 (nit) — cases owed: the N23 (nit) — N24 (nit) — three small ones. The body's shard sentence (②). Two reconcilers can each leave the abandoned line, since the check and the insert are two calls. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-warren · session_01JQwxbZFEo6URsCoWYcL8ub 2026-11-30T02:24Z · The brief the isolated reviewer was handed for the review record above on this head, as it stood. The reviewer was served at BriefContract review brief — PR #38634 @
|
|
repo:objectstack#2 · os-warren · session_01JQwxbZFEo6URsCoWYcL8ub 席位核对 — REWORK · L1 · seat repo:objectstack#2 (zone o2-S1) · Head-sha
|
The base branch moved: a step names at most 200 child run ids and carries childRunIdsTruncated where it started more, the history row sheds every step's childRunIds before it halves the log, and a strict getRun rethrows a store failure. Disjoint files; no conflict. Claude-Session: https://claude.ai/code/session_01JQwxbaoxpe1tyHuqnsAUFB Co-authored-by: Claude <noreply@anthropic.com>
…ing first (ADR-0162 item 8) Five cases on the reconciler, each red on this commit and green on the next one: - [S11] a map of 200 items that are not records, each calling a subflow: no judgement can keep a run, and past the bound the approval is placed. Here it answers cannot tell on every pass. - [S11] two map steps of 200 record items after the decision: the judgements read on while each keeps more runs, and the one that can keep no more places the approval. Here the third pass still answers cannot tell. - [S11] a parked run whose child the judgement did not get to: placed past the bound. Here it answers cannot tell. - [S12] a run parked at a map whose items are records, on an item run that has ended: past the bound the approval is over. Here it answers in progress. - [S12] an item run that has not ended is not kept as ended. Here the door keeps it as ended while it still waits for its approval. Red record on this commit: Tests 5 failed | 44 passed (49). Claude-Session: https://claude.ai/code/session_01JQwxbaoxpe1tyHuqnsAUFB Co-authored-by: Claude <noreply@anthropic.com>
…tem 8) Each pins one condition of the fix in bed4551 that the first five cases leave free, and each is proven by its own ablation (in the PR): - [S11] a reading that cannot be kept does not read on: where the kept write does not land, past the bound the approval is placed at once. - [S11] the child a parked run waits on is read before the runs beside it: in a tree too large to read, a child that is in progress still says so, and the approval is not placed. - [S12] as a request opens, an item run of another record that has not ended is not kept as ended either. Added after the fix: they hold on this commit. Reconciler file on this commit: Tests 57 passed (57). Claude-Session: https://claude.ai/code/session_01JQwxbaoxpe1tyHuqnsAUFB Co-authored-by: Claude <noreply@anthropic.com>
…n timeout (ADR-0162 item 8) CI's Test Core (10/12) on b49e04a went red on one case, and on nothing else: `[M5, N21, N22] on the real engine, a map of 201 items` timed out at the default 5000 ms. The case took 11875 ms there, on a runner that shares its cores with the shard's other packages, against 2077 ms here. It runs 201 runs of a child flow through the real engine and its store, which is what it is for; it now carries 60 s, as the heavy integration cases of this package do. No other case of the file passed 2 s on that runner. Reconciler file on this commit: Tests 57 passed (57). Claude-Session: https://claude.ai/code/session_01JQwxbaoxpe1tyHuqnsAUFB Co-authored-by: Claude <noreply@anthropic.com>
…ntainer ruled (ADR-0162 item 8) Ruling 7268216330 on #37767 answers the review's question q1: keep what is built, and state it in the docs. The changeset, the guide and the docblock of `stepLogCut` now say, and cite the ruling where they say it: - A log that loses whole steps carries no mark: the engine's compaction past 200 steps, the row's halving over its 64 KB cap, a row stored as null. - Only a step whose child-run links were shed carries `childRunIdsTruncated`. - The plugin reads what the log kept, and a child run named only by a dropped step reads as one the run went past. They also say what the tree does beside that, so that no sentence says more than it: a halved row and a null row are still told from the run's summary and read as cut, as built; a compacted log is not, and there an approval can be written as finished over a failure in such a child run. The sentence that left the question open is gone. No behaviour changes: a comment and two texts. Claude-Session: https://claude.ai/code/session_01JQwxbaoxpe1tyHuqnsAUFB Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-warren · session_01JQwxbZFEo6URsCoWYcL8ub Contract-review-claim: session_01JQwxbZFEo6URsCoWYcL8ub · head c885ffc · 2026-11-30T04:36Z Seat 2 (zone o2-S1, takeover claim 7264923629 on #37767) starts the delta review of this head against review 7266979193 (at |
|
repo:objectstack#2 · os-warren · session_01JQwxbZFEo6URsCoWYcL8ub Contract reviewServed-tier: PR #38634, card #37767, the plugin core of piece 4. A delta round against record 7266979193 (PASS at Result: no must-fix. One should-fix (S14), four nits (N25 to N28). S11, S12 and S13 are closed in the tree. ① Derived judgmentsNothing is refused, removed or renamed in the round. Each change is a widening or a change of an answer inside the plugin, and each is right.
② Semver level
③ Boundary flags(1) S11, the second option with the refinement. Confirmed. Nothing in rulings 7256254988, 7257388557, seat reading 7257555103, seat ruling 7258590209, ADR-0162 D5 or item 8 (trunk and #38601's head), the pins or the docs says otherwise.
(2) (3) Ruling 7268216330 against the tree and the docs. They agree; no sentence of the PR must change. The ruling's decision is option A, as built, and its analysis (7267307845, Background and premise 7) describes as built with the summary comparison for a halved and a (4) N23, and N14 and N17 of 7266381174. None should block.
The dev's other out-of-scope note (a live batch over records). Real, and wider than stated: S14. The note for #38601. Agreed, with two additions. The reword follows this head: six states under the bound (the cut log and the tree too large are the two the record lacks), the fourth state with no exception for a The report's deviations.
SQL push-down. No finding. The round adds no query. Checks. On the head: 62 check-runs, 45 success, 17 skipped, none failed, none pending, every one on ④ Design judgmentClosure of 7266979193, judged in the tree.
Tried and held.
Findings. S14 (should-fix) — the hour is counted from the marks, and a run that resumes after it has no grace. The dev names one window: a sweep reads an item run as ended before the engine has resumed the batch. By reading the engine at N25 (nit) — the N26 (nit) — the walk is breadth-first and reads the N27 (nit) — three things the changeset and the guide do not say. A resubmission of an approval placed for a cut log or a tree too large meets the same end while the flow keeps that shape, so the remedy is the flow's, not the submitter's. Reading on past the hour can take up to 200 passes of the sweep clock; the maintainer summary's 满一小时后 reads as at the hour. The guide gives no number of runs past which a tree is not read in full. N28 (nit) — Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-warren · session_01JQwxbZFEo6URsCoWYcL8ub 2026-11-30T04:51Z · The brief the isolated reviewer was handed for the delta review record above on this head (7269135624), as it stood. The reviewer was served at BriefContract review brief — PR #38634 @
|
|
repo:objectstack#2 · os-warren · session_01JQwxbXyLoBzNYY1U8SNPFu 2026-11-30T04:52Z · Seat L1 on the delta contract review 7269135624 (PASS) at
|
…ng first (ADR-0162 item 8) Four cases on the reconciler's age bound, each red on this tree: - a run the engine is resuming past the bound, read inside that passage on the real engine (a wait between two steps that outlasts the hour): it reports paused with its pause gone, and the first judgement to read it so ends the approval's hold; - a run with no row on one judgement and back on the next; - a held approval whose run a judgement first reads as stopped past the bound: the record is put back at once; - a batch over records parked on an item that has just ended, which the engine then resumes. The suite's `mark` node gains a hook that runs inside the passage that reaches it, and the fixtures gain `wait_between`. An object that closes on its approval field admits no pause between two steps, so the two shapes that wait there by design run on a ticket, which holds nothing back. Claude-Session: https://claude.ai/code/session_01JQwxbaoxpe1tyHuqnsAUFB Co-authored-by: Claude <noreply@anthropic.com>
…nts in a row read it the same (ADR-0162 item 8) S14 of delta review 7269135624. The hour of the age bound is counted from the approval's marks, and a run the engine is resuming reads as paused with its pause gone, or as a run with no row. An approval that waits longer than the hour between two steps is past the bound whenever it resumes, so a pass that read its run inside that passage placed it. A state that says a run has stopped now stands only where the judgement before read the same state for the same run. Every judgement keeps the states it read on the approval's latest request (`stood` in `__runsRead`), in place of those kept before, whatever it answers and whether the marks have aged or not: - a run that reports paused while its pause is gone; - a run parked at a `subflow` or a `map` on a child that has ended or has no row, with that child; - the latest request's own run still parked at its step, a run whose step log is cut, a run with no row that no run speaks for, and a tree of more runs than one judgement reads. The first judgement to read one of them past the bound cannot tell (in progress, for a run parked on an ended child), and the next places the run if it reads the same. A reading taken while a request is open keeps no such state, and only the latest request's kept states count, so nothing read before a later request opened stands after it. A reading that cannot be kept leaves the next judgement nothing to stand on. The suite: the four cases of the commit before pass, and the tail of the live-resume case is corrected (the opening of the second request clears the first one's mark, and the reconciler then scans nothing). Four earlier cases that placed at the first aged judgement now take a judgement within the bound first, as a sweep gives them. Three cases are new: a reading that cannot be kept, a request still open, and a state read before a later request opened. N25 of the same review: the docblock of `runsReadAfter` said the opposite of what the overflow rule does; it now says what the rule does and what keeps it from changing an answer. The sentences that say what the administrators are told follow the notice's own words. Claude-Session: https://claude.ai/code/session_01JQwxbaoxpe1tyHuqnsAUFB Co-authored-by: Claude <noreply@anthropic.com>
… body says, in the 11 packs (ADR-0162 item 8) N28 of delta review 7269135624. The body of the notice on `approval.flow_not_continued` says the flow could not be seen through to its end; the title still said it did not go on, which is not what the plugin knows of a cut log or a tree too large to read. The title now says the same as the body in every locale pack. The key and its variables are unchanged. Claude-Session: https://claude.ai/code/session_01JQwxbaoxpe1tyHuqnsAUFB Co-authored-by: Claude <noreply@anthropic.com>
…wo costs of reading on are stated (ADR-0162 item 8) The changeset and the approvals guide say what the tree does after S14 of delta review 7269135624: past the hour a run is placed once two judgements in a row read it in the same state, why (the hour is counted from the marks, and a run the engine is resuming reads as paused with its pause gone or with no row), and what it costs (one pass more where the judgement before did not read the same). They also state the two costs the seat accepted with the rule for a tree of more runs than one judgement reads (L1 7269166540; N26 and N27 of that review): a tree of about 399 runs can be one no judgement finishes, and it is placed without being finished; and an approval submitted again on the same flow can meet the same end. Reading on can take up to 200 further passes of the sweep clock. The sentence on a run another process is advancing now names the statuses it is about, which the engine reports for no flow run today. Claude-Session: https://claude.ai/code/session_01JQwxbaoxpe1tyHuqnsAUFB Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-warren · session_01JQwxbZFEo6URsCoWYcL8ub Contract-review-claim: session_01JQwxbZFEo6URsCoWYcL8ub · head 3c80901 · 2026-11-30T06:09Z Seat 2 (zone o2-S1, takeover claim 7264923629 on #37767) starts the delta review of this head against record 7269135624 (at |
|
repo:objectstack#2 · os-warren · session_01JQwxbZFEo6URsCoWYcL8ub Contract reviewServed-tier: PR #38634, card #37767, the plugin core of piece 4. A delta round against record 7269135624 (PASS at Result: no must-fix, no should-fix. Three nits (N29 to N31). S14, N25, N27 and N28 are closed in the tree. One sentence of my last record is corrected in ③ (1). ① Derived judgmentsNothing is refused, removed or renamed. No export is added:
② Semver level
③ Boundary flags(1) The reach of S14. The dev is right, and my last record overstated the consequence. The mechanism stands: a resume claims the pause before it runs anything, so a run being advanced reads as paused with its pause gone, or as a run with no row. The dev measured the first on the real engine, and #38601's item 8 says both. But the consequence I named for the three shapes (the record put back, the submitter told to submit again) needs an approval that holds a decision back, and none of the three can stand between two steps of one.
(2) Two judgements in a row inside a resume of one run. Graded N30 (nit). A for this PR; it need not close before the trunk goes to
The seat's third question. Kept durably, not keyed against a stale reading. Graded N29 (nit).
The report's deviations.
Out-of-scope notes. For #38601: agreed, and the reword owes two more things. Each of the last four states is placed once two judgements in a row read it, the first of which may fall within the hour; and "the document reads pending for at most an hour" becomes an hour and one visit more where nothing read the approval within it. That second sentence touches the option text of ruling 7257388557, so the seat should say it on the card. N14 to N17, N23 and N26: carried to the follow-up card, unchanged by the round. SQL push-down. No finding. The round adds no query. Checks. On the head: 58 check-runs, 43 success, 15 skipped, none failed, none pending, every one on ④ Design judgmentClosure of 7269135624, by id.
The fix against the ADR and the rulings.
Tried and held.
No must-fix, no should-fix. N29 (nit) — the list is not keyed to the reading before, and three sentences say more than the tree does. A reading that is not kept leaves the earlier list, and of two concurrent writers the older reading can land last, so a stale state can count. It needs a store fault or a race and then a run in the same state again; it errs toward the placement D5 allows, and by ③ (1) writes nothing on the shapes where a live run can be read so. The sentences: the changeset's "leaves the next judgement nothing to stand on", the same in the N30 (nit) — the residual of S14, ③ (2). File it with the engine note; A stands for this PR. N31 (nit) — the guide, the changeset and the Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-warren · session_01JQwxbZFEo6URsCoWYcL8ub 2026-11-30T06:20Z · The brief the isolated reviewer was handed for the delta review record above on this head (7270552441), as it stood. The reviewer was served at BriefContract review brief — PR #38634 @
|
…no end, and the waits by design are scoped (ADR-0162 item 8) Prose only: two docblocks, the changeset and the approvals guide. No code line changes; `approval-service.ts` transpiled with its comments removed is byte-identical before and after. N29 of delta review 7270552441. Three sentences said more than the tree does. A reading that is not kept leaves on the request the reading kept before it, so the next judgement stands on that earlier one: a state kept earlier can still count, and where none was kept nothing is placed. An approval whose reading is never kept is therefore held with no end. The changeset and the docblocks of `keepRunsRead` and `reconcileMarkedApprovals` now say so; the second no longer says that none of the held states is without an end. N31 of the same review. A `wait` node and a batch of records approved one by one were given as approvals that wait between two steps by design, with no word that the opening check refuses both for an approval on a field its object closes on. The guide, the changeset and the docblock of `RECONCILER_AGE_BOUND_MS` now scope them to an approval that holds nothing back, where a placement ends the hold and writes nothing. Five minutes is named as the default sweep interval (`escalationScanIntervalMs`), and the visit more as one sweep, or one turn of the reconciler's walk where more requests are marked than one sweep reads. Claude-Session: https://claude.ai/code/session_01JQwxbaoxpe1tyHuqnsAUFB Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-warren · session_01JQwxbXyLoBzNYY1U8SNPFu Regen-provenance: 7270552441 · 维护者速读
席位核对ACCEPT · L1 · area o2-D (approvals, seat-1 takeover) · Head-sha
|
|
repo:objectstack#2 · os-warren · session_01JQwxbZFEo6URsCoWYcL8ub Contract-review-claim: session_01JQwxbZFEo6URsCoWYcL8ub · head b048058 · 2026-11-30T07:08Z Seat 2 (zone o2-S1, takeover claim 7264923629 on #37767) starts the delta review of this head against record 7270552441 (at |
|
repo:objectstack#2 · os-warren · session_01JQwxbZFEo6URsCoWYcL8ub Contract reviewServed-tier: PR #38634, card #37767, the plugin core of piece 4. A short delta round against record 7270552441 (PASS at Result: no must-fix, no should-fix. N29 and N31 are closed. Two new nits (N32, N33), neither of which needs to hold the PR. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentClosure of 7270552441, by id.
Tried and held.
No must-fix, no should-fix. N29: closed N31: closed N30 (nit) — carried, unchanged. For the engine card; A stands for this PR. N32 (nit) — the changeset says the check refuses the three "between two steps of an approval on a field its object closes on", and the docblock "an approval whose object closes on the step's field". The check asks it only where the object closes on the field at N33 (nit) — "one each turn of its walk where more requests are marked than one sweep reads" (changeset, guide twice) is the slower of two cases. The reconciler also reads the 200 oldest marks on every sweep, so an approval among them is still visited each sweep; and the scan at boot and a second process add visits. The sentence errs on the long side and misleads nobody. May stand. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-warren · session_01JQwxbZFEo6URsCoWYcL8ub 2026-11-30T07:12Z · The brief the isolated reviewer was handed for the delta review record above on this head (7271480410), as it stood. The reviewer was served at BriefContract review brief — PR #38634 @
|
|
repo:objectstack#2 · os-warren · session_01JQwxbXyLoBzNYY1U8SNPFu 2026-11-30T07:14Z · L1 ACCEPT and hand-off · #37767 piece 4 (approvals reconciler), PR #38634 at its current head.
|
Requested by Jianguo · project thread
Part of #37767
Supersedes #38603 for the plugin half. Piece 4 of the card, the plugin core: the approval reconciler and the reading it judges from, rebuilt on contract review 7257527251 and L1 record 7257552366, reworked on contract review 7266979193, patched on delta review 7269135624 (L1 note 7269166540), and corrected in prose on delta review 7270552441. The card stays open: the engine half is PR #38618, and piece 5 follows.
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
What changes
Only for an approval the check stamped when it opened (one with a step that can act on an object that declares
closedStates). Everything is inpackages/plugins/plugin-approvals/src/approval-service.tsunless a row says otherwise.This round: delta review 7270552441, prose only
No code line changes:
approval-service.tstranspiled with its comments removed is byte-identical at3c80901761and at the head..changeset/37767-reconciler.md; the docblocks ofkeepRunsReadandreconcileMarkedApprovalsreconcileMarkedApprovalsno longer says that none of the held states is without an end, and that ofkeepRunsReadadds that of two judgements at once the one that read first can write last. The rule itself is not changed.content/docs/automation/approvals.mdx; also the changeset and the docblock ofRECONCILER_AGE_BOUND_MS, which the review names with itwaitnode and a batch of records approved one by one stand between two steps only in an approval that holds nothing back: the opening check refuses both for an approval on a field its object closes on. There a placement ends the hold and writes nothing. Five minutes is the default sweep interval (escalationScanIntervalMs), and the visit more is one sweep, or one turn of the reconciler's walk where more requests are marked than one sweep reads.The round before: delta review 7269135624
approval-reconciler-37767.integration.test.ts[S14] a run the engine is resuming past the bound is not placed(a live resume across the hour, on the real engine);[S14] a run with no row on one judgement and back on the next;[S14] where the approval holds a decision back;[S14] a judgement whose reading cannot be kept;[S14] a batch over records parked on an item that has just ended;[S14] a run parked at the step of a request that is still open;[S14] a state read before a later request openedstoodin__runsRead), in place of those kept before, whatever it answers and whether the marks have aged: a run that reports paused with its pause gone; a run parked at asubflowor amapon a child that has ended or has no row, with that child; the latest request's own run parked at its step; a run whose log is cut; a run with no row that no run speaks for; a tree of more runs than one judgement reads. The first judgement to read one of them past the bound cannot tell (in progress, for a run parked on an ended child) and writes nothing; the next places the run if it reads the same. A judgement within the bound counts as the one before, a door's included, so an approval read in that state within the hour is placed by the first pass past it. A reading taken while a request is open keeps no such state, only the latest request's states count, and a reading that cannot be kept leaves on the request the reading kept before it (N29, above).runsReadAfteropen; the rule leaves them out. It now says what the rule does, that it does not prevent a later "passed" reading of such a run, and the two facts, pinned by nothing, by which no answer changes. The rule is unchanged and has no case.approvalFlowNotContinuedTitlein all 11 locale packs oftranslations/messages.tssays what the body says: the flow could not be seen through to its end. The key and its variables are unchanged. The docblocks and the two log lines that say what the administrators are told use the same words..changeset/37767-reconciler.mdandcontent/docs/automation/approvals.mdxstate both: a tree the judgements cannot finish is placed without being finished, and from about 399 runs a tree can be one no judgement finishes (amapof 199 items that each call asubflow); an approval submitted again on the same flow can meet the same end, so the remedy is the flow's. Both also say that reading on can take up to 200 further passes of the sweep clock, and state the S14 rule. The changeset's sentence on a run another process is advancing now names the statuses it is about, which the engine reports for no flow run today.Wherever a row of the two tables below says that a state is placed past the bound, read it with S14: placed once two judgements in a row read the same.
Two rounds before: contract review 7266979193
approval-reconciler-37767.integration.test.ts[S11] a map of 200 items that are not records, each calling a subflow;[S11] two map steps of 200 record items after the decision;[S11] a parked run whose child the judgement did not get to;[S11] a reading that cannot be kept does not read on;[S11] the child a parked run waits on is read before the runs beside itmapwhose items are records[S12] a run parked at a map whose items are records, on an item run that has ended;[S12] an item run that has not ended is not kept as ended;[S12] as a request opens, an item run of another record that has not ended is not kept as ended eitherplaceApprovalRunanswersforeignwithover: whether the item run is in a terminal status.waitingRun: past the bound such a child says what any ended child says. An item run of another record is kept as ended only once it has ended, at the door and as a request opens; before, the door kept one that was still waiting for its own approval, and a later aged pass would have read the batch above it as stopped..changeset/37767-reconciler.mdandcontent/docs/automation/approvals.mdx: a tree too large to read is read on, then placed; the headline of the cut-log entry names the two logs that are read as cut; what happens to a run a stored step names; the compacted log has its own entry in both. The maintainer summary above.stepLogCutand the maintainer summary state the limit and cite the ruling: a log that loses whole steps carries no mark (compaction past 200 steps, halving over the row's 64 KB cap, a row stored as null); only a step whose child-run links were shed carrieschildRunIdsTruncated; the plugin reads what the log kept, and a child run named only by a dropped step reads as one the run went past. They also say what the tree does beside that: a halved row and a null row are still told from the run's summary and read as cut; a compacted log is not, and there an approval can be written as finished with no notice.approvalFlowNotContinuedBodyin all 11 locale packs oftranslations/messages.ts: the second arm covers a run that has ended, and the first sentence says the flow could not be seen through to its end.[N20] the step last decided is placed in its own flowprocess_name) where no run is parked at the step. A flow the set does not name is still matched by node id alone.[N21] the number of steps the plugin takes the engine to keep of a long log is the engine's; the real-engine[M5, N21, N22]caseHISTORY_STEPS_KEPTis pinned to the engine'sMAX_PERSISTED_HISTORY_STEPS; on a real run amapstep names exactlyMAX_RUNS_READ_PER_APPROVALitem runs. Both numbers are exported from the module, not from the package barrel.[N22] the runs kept as open seed the next reading;[M5, N22] a marked step that carries no list;[M5, N21, N22] on the real engine, a map of 201 itemsmapstep now also runs on the real engine, while the two row cases (a row cut short, a row stored as null) stay on their doubles. The fourth (the lists kept as they were whenopenwould pass 200) is not pinned: see the acceptance notes.Earlier rounds, unchanged in what they do
approval-reconciler-37767.integration.test.ts[M4] a sibling child whose read threw at the door is read on the next passkeptAsEnded: a run is kept as ended, and not read again, only once it was read to an end and every child run its steps name is kept as ended too. A run read to its end over a child not read yet is kept asopenand is a seed of the next walk.[M4] a child with no row under a run that ended at its stepopen; the child ismissing, held within the bound, placed past it, with the notice.[M4] past the 200 runs one judgement readsopenruns. Past the bound: S11 above.[M4] a run in progress beside a sibling that failedreadCarryingRunreads the whole tree before it answers; only a run it cannot read ends it early.openrun whose row is gone later[M4] a run read to its end over a child not read yet, whose own row is gone by the next passpassedWithNoRow: a run the plugin kept asopenis never taken as passed.[S1] a decision in a child run whose parent is parked at its subflow between two steps;[S1] the same two levels downreadApprovalRunanswerswaitsfor a run parked at a node of the set on a child run;waitingRunsays what the child says, so the latest request's own run parked at its own node is reached at any depth and the one rule decides.[S1, N8] the same under a map whose items are not recordscancelStoppedRuncancels up through amapwhose items are not records, to the run that carries the record.[S6]caseskeepRunsReadwrites its own key onto the snapshot read again just before the write, conditionally on the column; the note that a later step could not open is read once the runs are read.[S7 ...]caseschildRunsOfmarks a childpassedwhere its step succeeded and the run reached an end or logged a later step; a failed step and the parked visit never pass.[S8] ...;[N9] ...[M5]cases through doubles, and now the real-engine casestepLogCut: a step that carrieschildRunIdsTruncated, and the log of a run that ended whose row keeps fewer steps than its summary counts, are cannot tell: held to the bound, then placed by the step last decided.The kept reading's shape is
{ ended, open, between, stood }on the request's snapshot key__runsRead;stoodis new in this round, and a snapshot written before it reads as one with no state kept.Tests
Head
b048058186. Its last commit changes comments and two text files and no code line, so the three readings below are those taken at3c80901761and were not taken again. Two rounds before, the branch was restacked:git mergeof the engine half's tipee8203b011(merge commit96d05dad3d, no conflict, no generated file touched). On that merge, before any change of that round, the reconciler file printedTests 44 passed (44): the first measurement of this suite on the engine as it stands.pnpm --filter @objectstack/plugin-approvals test: Test Files 141 passed (141), Tests 2223 passed (2223); the reconciler file holds 64 cases.pnpm --filter @objectstack/plugin-approvals typecheck: exit 0; the test layer's debt ledger held (8 files / 321 errors / 27 pinned signatures, unchanged).pnpm --filter @objectstack/service-messaging test: Test Files 82 passed (82), Tests 1108 passed (1108).The round before (delta review 7269135624), failing cases first, and the ablations on its head
596ee28f4b, tests only, onc885ffce70:Tests 4 failed | 57 passed (61). The live resume, read inside the passage on the real engine: the run reportspausedwith no pause to be found, and the judgement answers ended and clears the mark where cannot tell is owed. A run with no row on one judgement: ended. A held approval whose run reports paused with its pause gone: abandoned, and the record put back, on the first judgement. A batch over records parked on an item that has just ended: ended.9e225b1983, the fix:Tests 64 passed (64). Beside the fix it changes the suite in three ways. The tail of the live-resume case was wrong and could not be reached while the case was red: the opening of the second request clears the first one's mark, so the marks read[false, false]and the reconciler scans nothing. Four earlier cases that placed at the first aged judgement ([A3] a run with no row after a step a later step follows,[S11] a reading that cannot be kept does not read on,[S12] a run parked at a map whose items are records,[N20]) take a judgement within the bound first, as a sweep gives them. Three cases are new and hold on arrival: a reading that cannot be kept, a request still open, a state read before a later request opened; each has its ablation below.e29d0977d5, the eleven titles;3c80901761, the changeset and the guide. Text only.b048058186, this round: two docblocks, the changeset and the guide. Text only.Ablations on
3c80901761, one mutation each ofapproval-service.tsthroughscripts/ablation-replace.mjs; each run restored to blobcc626e56d0cd, the blob at that head, with an emptygit diff HEAD. The cases that went red, out of the 64 of the reconciler file:[S14]cases (7 red).[S14] a run parked at the step of a request that is still open,[S14] a judgement whose reading cannot be kept(2 red).[S14] a state read before a later request opened(1 red).[S14] a batch over records(1 red).[S14] where the approval holds a decision back(2 red).[S14] a run with no row on one judgement and back on the next(1 red).Two rounds before, failing cases first: what was red before each fix
0be4d5d59c, tests only, on the restacked head:Tests 5 failed | 44 passed (49). The three S11 cases answer cannot tell past the bound;[S12] a run parked at a map whose items are recordsanswers in progress;[S12] an item run that has not endedfinds the item run kept as ended at the door while it waits for its approval.bed455197d, the fix:Tests 49 passed (49).de5e66594e, tests only (with the two exports the N21 pin imports):Tests 1 failed | 53 passed (54).[N20]answers abandoned where finished is owed. The N21 pin and the three N22 cases hold on arrival: they pin what the tree already does.898c05aeaa, the N20 change:Tests 54 passed (54).b49e04ad1e, three pins added after the fix ([S11] a reading that cannot be kept,[S11] the child a parked run waits on is read before the runs beside it,[S12] as a request opens):Tests 57 passed (57). They hold on arrival; each is proven by its ablation below.04635fce12, a timeout: CI'sTest Core (10/12)onb49e04ad1ewent red on one case and nothing else. The real-engine case of 201 item runs took 11875 ms on the runner against the default 5000 ms (2077 ms here); it now carries 60 s, as the heavy integration cases of this package do.c885ffce70, text only: the wording of ruling 7268216330 in the changeset, the guide and one docblock.Two rounds before, ablations on `b49e04ad1e`: one mutation each, through scripts/ablation-replace.mjs, restore proven by blob hash and an empty git diff HEAD
The plugin's tests import the plugin's source, so no build stands between a mutation and its run. Each line: the mutation, then the cases that went red out of the 57 of the reconciler file. Every run restored to blob
972b4fc71bc5, the blob at that head. The two commits after it in that round change a test's timeout, two texts and one docblock, and no line a mutation touched. These ablations are that round's record: they were not repeated on its last head, nor on this round's, which changeswaitingRunandreadCarryingRun; the cases they proved are in the suite and pass at the head.readsOnalways true): the five[S11]cases (5 red).[S11] a map of 200 items,[S11] two map steps,[S11] a parked run whose child,[S11] the child a parked run waits on(4 red).[S11] a reading that cannot be kept does not read on(1 red).[S11] a parked run whose child the judgement did not get to(1 red).[S11] the child a parked run waits on is read before the runs beside it(1 red).waitingRunreads an item run of another record as moving whatever its status:[S12] a run parked at a map whose items are records(1 red).[S12] an item run that has not endedand[S12] as a request opens(2 red).[S12] as a request opens(1 red).[S11] two map stepsand[S12] a run parked at a map whose items are records(2 red).[N20](1 red).openruns are not seeds:[N22] the runs kept as open seed the next reading(1 red).[M5, N22] a marked step that carries no list(1 red).[M5] a map step that started more item runs than it names,[M5, N22] a marked step that carries no list,[M5, N21, N22] on the real engine(3 red).HISTORY_STEPS_KEPTis 300:[N21](1 red).MAX_RUNS_READ_PER_APPROVALis 250: four[S11]cases and the real-engine case, at the length of the step's list (5 red).Four first tries did not count and are not above: the tool refused each as a no-op, because the replacement text was a part of the anchor and its count could not rise. Each was run again with a replacement that reads differently.
Acceptance notes
S14 is built as ruled, and one of its premises did not hold as stated. The two shapes the order names (a
waitnode, a batch over records) cannot open between two steps on an object that closes on its approval field: the opening check refuses them (condition 5 of ADR-0162 D5,packages/metadata-core/src/approval-opening.ts). Measured for thewaitnode:VALIDATION_FAILED: The approval of crm_invoice i_s14_live was not started: the object closes on its approval field, and the approval cannot show itself in progress there. Node hold (wait) of flow wait_between can pause the run between two approval steps of crm_invoice; move it before the first step or after the last.The refusal of amapover records with approval steps is by reading the same check, not by a run. So those two shapes run only where the approval holds nothing back, and there a wrongful placement cleared the marks and wrote nothing: no record put back, nobody told to submit again. The live-resume case and the batch case therefore run on an object that holds nothing back, and the held path (the record put back) is pinned through a double of the pause read. The review's third shape, a child parked outside the set, was not measured; delta review 7270552441 reads all three as refused, and the guide, the changeset and one docblock now say so (N31).What S14 leaves. Two judgements in a row that each fall inside a passage of the same run, one passage or two, still read it as stopped. The sweep clock sets five minutes, by default, between two passes of one process; nothing sets a distance between the passes of two processes, or between a pass at boot and the next. A state is kept with its run (and its child, for a run parked on one) and not with anything that tells two passages of that run apart. Not pinned. Graded N30 by delta review 7270552441 and filed by the seat as engine card 37767 后续:引擎标出正在推进的运行,让审批清理不把恢复中的运行当成已停 #38708; not changed here.
What S14 costs. One pass more where the judgement before did not read the same: an approval no judgement read within the hour, a state that appeared since the last pass, a reading that could not be kept, and a snapshot written before this round. A judgement whose kept write is refused past the bound no longer places a tree too large at once, as two rounds before had it. What it leaves on the request is the reading kept before it: where that one holds the same state, the next judgement places on it (
[S11] a reading that cannot be kept does not read on); where it holds none, the approval is held until a reading is kept ([S14] a judgement whose reading cannot be kept), and with no end if none ever is (N29).A guard of the package fired on the first spelling of the state.
approver-address-readers.test.tswants every template of thetype:valueshape classified in its own table, which is outside this round's files. The state is spelled with spaces, kind first; it is compared as a whole and never parsed, and it is not of the shape that guard is about. No file outside the surface was edited.N25 is fixed in the docblock only. The rule is unchanged and still has no case; the docblock now states the two facts its safety rests on.
Not carried, as ordered: N14 to N17 and N23. N26 is stated as a cost, not changed: the walk still reads the runs it starts from before the runs below them.
S11 took the second option. It carries the cost seat ruling 7258590209 accepted for a truncated step: an approval whose flow did go on, through more runs than the plugin can read, gets the administrators' notice at its last step, or is abandoned and submitted again where a later step can follow. The first option (a walk that can finish any tree) is not built: the kept list holds 200 runs, so a tree of more than about 400 runs cannot be finished by reading on, whatever the order of the walk. With the order the walk has, a tree can be one no judgement finishes from about 399 runs (N26 of delta review 7269135624); the seat accepted that cost and the one below it (L1 note 7269166540), and the changeset and the guide now state both: such a tree is placed without being finished, and an approval submitted again on the same flow can meet the same end.
How long past the bound: a reading keeps every run it read to its end whose children are all kept, up to 200 in all, so most trees that can be finished are finished in one or two more sweeps; the worst case is 200 sweeps, each keeping one run more.
Within S12, one thing beyond the review's sentence, in its class and with a case and an ablation: a door that read an item run of another record kept it as ended whatever its status. The symptom the review describes (in progress on every pass) showed only where the first reading of the ended item came past the bound; where a door had read the item while it still waited, the aged pass read the batch as stopped on an item that had not ended. An item run is now kept only once it has ended.
S12's window is closed by S14 in this round: a batch parked on an item that has just ended is in progress on the first judgement that reads it so, and the state is kept with the item, so the end of the next item is read anew (
[S14] a batch over records).q1 is ruled (7268216330, which also corrects claim amendment 7259282813 to the links alone): what is built stays, and the docs state it. One thing to read with care: the ruling's rule-level sentence "the reconciler reads what the log kept" covers compaction, halving and a null row alike, while the tree, which the ruling keeps as built, still tells a halved row and a null row from the run's summary and reads them as cut (held, then placed). The texts say both, so that neither sentence says more than the tree; the two
[M5]row cases (a row cut short, a row stored as null) pin that behaviour.N22, the case not written: the rule that keeps the lists as they were when
openwould pass 200. One reading reads at most 200 runs and theopenruns are among its seeds, so the rule is reached only where the approval already holds close to 200openruns and the reading finds terminal runs outside them. The rule then leaves that new run out ofopen; the docblock said the opposite and is corrected in this round (N25).N23 is not changed here (a top-level fan-out whose later step is on another branch): it goes with the
stopOfnote, for the seat to file.N24: the shard sentence was wrong against this PR's base. The tenant-audit shard moves by one elevated update of
sys_approval_request(14 to 15), which iskeepRunsRead; this round moves it no further. Two reconcilers can each leave the abandoned line, andkeepRunsReadrewrites the latest request while an older request holds abetweena later opening answered: both stand as the review describes them, neither changes an answer.Doubles in this round: the live resume, the batch over records and the two no-row cases run on the real engine (the no-row cases with the suite's switch for a row that is gone, and the live resume with a hook that runs inside the passage of the suite's own
marknode); the held case doubles the engine's read of a pause, and the unkept case refuses the kept write through a double of the plugin's store.Doubles in the round before: the five S11 shapes, the S12 case on an opening and the marked step with no list use doubles of the run store over the real one, as the cap case of the earlier round does; the doubles carry the summary of the step logs they answer. The other two S12 cases, the N20 case, the seeds case and the 201-item
maprun on the real engine; the N20 and seeds cases use the suite's switches for a row that is gone and a store that does not answer.No file outside the order's surface is touched; no engine file, no spec file, no ADR. No new test double of an engine: the gate-generated ledgers did not move.
Commit trailers are the model-free pair the repository asks for.
The ADR reword of PR docs(adr): ADR-0162 revised on three rulings of 2026-11-29: the reconciler places a run with no row, and a decision whose run never went on, by the step last decided #38601 follows this head: the bound now governs six states (a tree of more runs than the judgements can read is the sixth), the fourth state covers a
mapover records, and whether a later step can follow is asked in the request's own flow. Since this round, none of the states is placed on one reading: "which nothing will resume" is concluded from two judgements in a row that read the same, and the opening check's refusal of a pause between two steps is why the shapes that wait by design hold nothing back.Carried over from the earlier rounds and still true: a door that leaves a request pending walks the tree;
abandonApprovalandnoteLaterStepNotOpenedstill write the snapshot read-then-write; a failure and an opening in the same millisecond compare as before.Verification
Read first, by risk:
approval-service.ts,readCarryingRun:stands, theplacinglist read before any answer, and the three places a state is asked for (placeApprovalRunat the pause that is gone,waitingRunatended, the placement atallStood).approval-service.ts, what is kept and from where: the open-request branch ofjudgeApprovalAfterDoor(it keeps no state),runsReadOf(the latest request's states alone) andrunsReadAfter(the states are replaced, not merged)..changeset/37767-reconciler.md, the entries on the door, on what the plugin keeps and on a run that stopped: each sentence against the tree, the two costs among them.Two-minute check:
pnpm --filter @objectstack/plugin-approvals exec vitest run --maxWorkers=2 src/approval-reconciler-37767.integration.test.tsprintsTests 64 passed (64).Gates: the local subset at the head, and CI's check-runs
b048058186:node scripts/pm/dispatch-gates.mjs --commandsover the three paths this round changes derives 97 commands, a subset of the 107 of the round before. All 97 ran, every exit code captured before any pipe; 87 answered exit 0 on the first run. Ten did not, each because the worktree was new and nothing in it was built: nine answered PREREQUISITE NOT MET (exit 3) andcheck:docsanswered exit 1 for a missing generated tree it names. After the builds they read had run under the verify lock (each exit 0), the ten were run again and each answered exit 0. The tool's reconciliation of the record:✓ dispatch-gates --ran: 97 derived famil(ies) accounted for — 97 run, 0 NOT-MEASURED.node scripts/check-nul-bytes.mjs: OK.Test Coreand type-check lanes ran on it.origin/main, with 31 files the gates derive from changed across that range. The stack's base is the trunk branch; the readings above are this tree's.test:repo(the diff touches none of that project's tests; CI'sTest Coreruns it).b048058186, read once the head's runs had ended and before this body was edited: 54 check-runs, 41 success, 13 skipped, 0 failed, every one on this head;mergeable_statewasclean. Each edit of this body runs four body-reading checks again (Check Changesetand the PR-body guards, andAuto LabelandCheck PR Size, which skip on an edit), so the count on the page is higher than this one. Success: Auto Label; Build Core; Build Docs; Check Changeset; Check PR Size; Dogfood Regression Gate; Flag docs affected by code changes; Governed Surface Queue Guard; Lint & Repo Gates; Lint · CI, release & engine gates; Lint · ESLint; Lint · PM dispatch-gates; Lint · docs & code guards; Lint · repo & tooling gates; Lint · scoped · query-options erasure; Lint · scoped · slot lookup & corpus; Lint · scoped · tooling self-tests; Live E2E UI; PR-body guards (claim · duplicate · Part-of · single-writer path); Plan Test Core shards; Spec property liveness; Test Core; Test UI; Type Check · consumer gates; Type Check · debt ledger; Type Check · source gates; Type Check · workspace; TypeScript Type Check; filter; Test Core shards 1 to 12 of 12 (12 runs). Skipped: Borrowed queue verdict; Build & E2E UI; Build UI Deps; Dogfood Regression Gate (the matrix of 3 shards); Dogfood Verify CLI; Lint UI; Plan Test UI shards; Queue verdict; Schedule gate · skip when a green push run covers the commit; Temporal Conformance (live PG + MySQL); Test UI (the matrix of 16 shards); Type Check UI; UI Published Artifacts.🤖 Generated with Claude Code
https://claude.ai/code/session_01JQwxbaoxpe1tyHuqnsAUFB