Repository navigation
doxBench rail: no pending proposal set is cleared in silence (#80), and a fallback-shape timeout reads as one (#287) - #293
Merged
brettheap merged 2 commits intoAug 24, 2026
Conversation
…nd a fallback-shape timeout reads as one (#287) #80, RULED by Brett Heap 2026-08-24. The replacement-on-success stands — a new turn is the only stale-proposal recovery there is — so what is fixed is the SILENCE, on all three paths that clear a pending set. * SEND gets the house TWO-PRESS ARM (repo-selector.js's filter trash; this rail's own retired Unload control). The first press with an unreviewed set refuses through recordLocalFailure, names the pending TARGETS in a fixed sentence built from buffer keys alone, relabels the control "Send and discard", announces on the live region, and never consults the transport; the second press sends. The arm is keyed by the sentence's own subject, so any change to the pending set re-arms from scratch — no timer, no blur, and no click-time snapshot: only a token is remembered, recomputed each press. A terminal-only set (applied/rejected) never arms. * REKEY and the DOCUMENT SWITCH get the NOTICE form, because neither is a press and neither is refusable by the time it reaches the clear: the tile has already moved onto its new scope key, and the canvas has already moved its active buffer with the thread already read. Each states, on the clear, which unreviewed targets went, on the same two channels. #287. serve.py falls back to the pre-identity {ok,error,message} shape when a released failure body fails wire self-validation, and the rail's kind check then answered TRANSPORT_REFUSED — so a genuine 504 model_timeout read as "the chat transport refused this turn". The existing code-whitelist idiom now carries model_timeout for that shape, onto the rail's OWN sentence chosen from the CODE. Exactly one entry: v1-shaped bodies (they carry a kind this rail cannot read) and unparseable bodies stay transport refusals, and no sibling code is mapped without a fixed sentence to map it to. RED-first throughout. Two existing pins were re-pinned rather than relaxed: the W-3 apply/settle race probe now presses through the arm it newly meets, and the send-title a11y pin follows sendTitle's fourth argument while asserting the same one-selector claim. Co-Authored-By: Claude Fable 5 <[email protected]>
…lly does Adversarial review of the two-press arm. Two findings, both about the record rather than the behaviour. THE RENDER-TIME CLEAR WAS UNPINNED. The arm has two observers that drop a stale token -- `discardArmedFor` (every render) and `submit`'s fall-through (every press) -- and `test_the_arm_cannot_outlive_the_set_it_was_about` says in its docstring that both are covered. Only the press is. Removing `if (token === null) discardArm = null;` from the predicate fails no test: `test_an_emptied_pending_set_disarms` calls it on an empty set, whose token is null, so the match fails whether or not the token was cleared. Mutation-tested before and after. This is a coverage gap and not a live defect, and the difference is worth stating rather than glossing: a new pending set only ever arrives through `settleTurnSuccess`, i.e. through a press that already cleared the token, so `submit` covers every sequence a view can actually produce. The predicate's clear is the earlier of two guards, which is exactly why nothing noticed it was unasserted. The new case drives it alone -- arm, empty the set, let ONE `discardArmedFor` call observe it, then hand back a set naming the same buffer with no press in between -- and asserts it is unarmed. With the clear removed it reads armed: a control labelled "Send and discard" for a set nobody was ever warned about. The older case's docstring now says which observer it drives and points at the new one for the other, instead of claiming both. "THIS SURFACE'S OWN RULING" NAMED NO RULING. The switch-path comment justified notice-over-arm partly on a recorded ruling that changing the selection "needs no confirmation because it replaces no content". That phrasing exists nowhere but in that comment. What IS checkable, and is what the comment now says, is the selector's observable shape on main: it refuses a change for exactly one reason (a turn in flight, P2-9) and refuses BEFORE `select()` commits, and every other change commits unconfirmed -- so an arm here would have to be hoisted into that pre-commit position, which is a change to the selector's behaviour and not this fix's to make. The structural half of the argument was always sound and is untouched: by the time `adoptThreadTranscript` runs, `await select(wanted)` has already moved the canvas, so there is nothing left to refuse. No behaviour changed: one comment and one test case. 23 discard tests (was 22), 179 across the four doxBench suites this branch touches. Co-Authored-By: Claude Opus 5 <[email protected]>
There was a problem hiding this comment.
Pull request overview
This PR implements two 2026-08-24 rulings in the doxBench chat rail: (1) ensure pending proposal sets are never cleared silently (Send/rekey/document switch), and (2) ensure a model_timeout delivered in a legacy fallback error shape is rendered as a timeout rather than as a generic transport refusal.
Changes:
- Add a two-press “Send and discard” arm when Send would discard non-terminal (unreviewed) proposals, plus fixed-vocabulary notices for rekey and document-switch clears.
- Recognize and whitelist-map the legacy
{ok:false,error,message}fallback failure shape somodel_timeoutrenders with the rail’s timeout sentence. - Add/adjust test coverage to pin the new behaviors, including fixed-vocabulary guarantees and a11y/title wiring.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/ideation-dashboard/test_doxbench_proposal_discard.py | New end-to-end harness tests covering Send arm + rekey/switch discard notices and fixed-vocabulary constraints. |
| tests/ideation-dashboard/test_doxbench_chat_view.py | Updates an existing race probe to press through the new Send arm; adds tests for fallback-shape timeout vocabulary mapping. |
| tests/ideation-dashboard/test_doxbench_accessibility.py | Updates pin to reflect sendTitle arity change and ensure the title still comes from the same selector path. |
| scripts/ideation_dashboard/web/views/doxbench-chat.js | Implements Send two-press arm + rekey/switch discard notices; adds fallback-shape recognition and model_timeout whitelist mapping. |
| scripts/ideation_dashboard/web/views/doxbench-chat-model.js | Adds pendingProposalTargets() selector for non-terminal proposal targets in declared render order. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+156
to
+161
| function fallbackShapedPayload(payload) { | ||
| return Boolean(payload) && typeof payload === "object" | ||
| && payload.ok === false | ||
| && !Object.prototype.hasOwnProperty.call(payload, "kind") | ||
| && typeof payload.error === "string"; | ||
| } |
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
brettheap
deleted the
fix/doxbench-chat-discard-notice-and-timeout-code
branch
September 4, 2026 19:25
brettheap
added a commit
that referenced
this pull request
Sep 9, 2026
… green Brett Heap, in session, 2026-09-08T23:51Z, verbatim: "ratify 293 and 817 when green, then realize them" — recorded on openxFactory #745 and mirrored on codexFactory #232. The same word ratified the codexFactory sibling at #293, which answers MQ-1 and box 1.2: the same word, not separately. "WHEN GREEN" WAS NOT TRUE WHEN THE WORD WAS GIVEN, and it is recorded rather than smoothed. pytest-suite was red at head d4f3196 for two causes, both this packet's own, and both are fixed IN THE PACKET and never in a test: (1) tests/doc-health/test_modified_block_currency_self_gate.py reported the packet's `## MODIFIED` block as an UNDECLARED pending block. The requirement it restates is not in canon — it is ADDED by the still-active `mirror-floor-regeneration-automation` (ratified 2026-09-06, PR #708) — so `govern-sibling-added-modified-deltas` requires the pairing to be declared. The block now carries the reserved `Modified over ...'s addition by ... (...)` marker, in the same form and the same position the sibling packet `amend-mirror-floor-regeneration-merge-authority` uses for the OTHER requirement of the same parent. The two deltas are disjoint, which was checked rather than assumed, and the marker says so. (2) tests/sequenced_after/test_sweep.py reported the packet as in the corpus with no ledger row. The row was written by the sanctioned tool (`validate-sequenced-after.py . --seed-ledger --moved-by '#817'`), not by hand. Its `moved_on` reads 2026-09-09 and that is CORRECT: the seeder stamps UTC and the word of 23:51Z was followed within the hour by a UTC midnight. It is the first row this repository has stamped through issue #790's UTC-clock fix. The tool also refreshed the file's header comment to its current template; that is generated output and is not hand-reverted. Measured after both fixes, on the tree merged up to main f03fd87: doc-health modified-block-currency reports this packet in NO finding; test_modified_block_currency_self_gate.py 19 passed; validate-sequenced-after.py passes (43 active changes, 10 declaring); tests/sequenced_after + tests/review_lane_pin 351 passed, 2 skipped; the three suites together 1946 passed, 2 skipped; openspec validate --strict valid and --all --strict 102 passed with the one pre-existing `disposition-codexfactory-declared-renames` failure that main carries too. M-1 through M-7 stand as recommended; no veto was entered. NOTHING IS REALIZED BY THIS COMMIT: no workflow, script or contract byte of the lane moves, nothing in codexFactory is touched. It ticks exactly four boxes — 1.1, 1.2, 5.1 and 5.2 — each because that box's own condition is the ratifying word or commit. Boxes 1.3 (MQ-2) and 1.4 (MQ-3) STAY OPEN and neither blocks realization (1), which is the FIRST of the pair to land. Lane: openxfactory-2
brettheap
added a commit
that referenced
this pull request
Sep 9, 2026
…published rule, so this slice respells them `relocate-review-authority-floor-mirror` landed its OpenSpec Records entry on `main` (#817/#818) between this slice being cut and this reconciliation. The entry cites the companion codexFactory issue and pull request four times: :593 [codexFactory #232](codeXfactory/codeXfactory#232) :598 [codexFactory #293](codeXfactory/codeXfactory#293) :617 [codexFactory #232](codeXfactory/codeXfactory#232) :623 [codexFactory #293](codeXfactory/codeXfactory#293) DECIDED AGAINST THE PUBLISHED RULE, NOT BY EYE. The sweep evidence's § 5 already ruled this exact shape, four times over, for the citations this slice respells at `:1001`, `:1002`, `:1113` and `:1115`: *"kept-current index citation; issue NUMBERS carry through a transfer"* -> **RENAME**. The four new lines are the same shape in the same block of the same file, so they take the same verdict, and `README.md` stays a mixed file — renamed in ten lines now, frozen in three. THE THREE FROZEN LINES ARE UNTOUCHED and re-checked by hand, because the respelling was line-targeted and could have taken one by accident: `:1127` (this packet's own dated measurement — respelling it would make the record claim the change is about the identity it moves TO), `:1782` and `:1794` (the completed, dated factory-origin mint act). `git grep -o -i 'opensoft/codexFactory' -- README.md` now returns EXACTLY those three. Consequence for this slice's arithmetic, stated rather than left to be recomputed: B4 now respells **30** occurrences and freezes **4** (three in `README.md`, one at `docs/dogfood-content-migration-plan.md`), a scope of **34 across 15 files** — up from 26 respelled / 30 scope. The union of the four slices is **113 of main's 412 occurrences across 55 of 174 files**. The per-slice re-derivation and the closed residual go in the sweep evidence addendum in the next commit. Nothing about the freeze moved: `docs/dogfood-content-migration-plan.md:49` stays frozen for the reason #805's body names — it is prose that a literal sweep cannot judge, and its verdict was taken per line. Lane: provenance-autonomous-merge Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap
added a commit
that referenced
this pull request
Sep 11, 2026
The 5.5a note this PR added conflated codexFactory relocate-review- authority-floor's ratification PR (#293) with the realization that actually moved the artifact, and cited d1f8bf1b — a reference-sweep commit named in the council record, not the landing commit — as if it were the move. Copilot review flagged this on the open thread. Corrected to name #293 and its openxFactory mirror #817 only as the ratification pair (ratified together 2026-09-08), and to cite the real three-step realization chain the archived mirror packet records: openxFactory #823 -> 5c782f2 (step 1, dual-path acceptance lands), codexFactory #297 -> 8165d1f3 (step 2, the artifact lands at floor/openxfactory-review-authority-floor.yaml, 2026-09-09T04:28:48Z), and openxFactory #829 -> 82c9f05 (step 3, the superseded path is dropped). Each PR and merge sha verified with `gh pr view`. The archive citation (#925 -> 17a3b81) is unchanged. No other dated note is touched. Checkbox counts unchanged (7 open, 27 ticked) and `openspec validate extend-merge-master-envelope-to- floor-bot-lanes --strict` reports the change valid. Refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap
added a commit
that referenced
this pull request
Sep 11, 2026
Walk-record dated append: Part C ran and STOPPED — 3.8 window EMPTY; step 5b unprovable by the route the design names. Brett Heap's word 'Merge 948 then 384 now' (2026-09-11T03:01:28Z). Lane: hermes-wallet-exercise. OrganizationAdmin bypass on Brett Heap's explicit word; precedent #289/#292/#293 (codexFactory), #583/#941 (openxFactory)
brettheap
added a commit
that referenced
this pull request
Sep 11, 2026
…envelope-to-floor-bot-lanes on Brett Heap's rulings (bookkeeping only) (#944) * Tick boxes 2.7, 2.9, 3.5, 5.1, 5.2, 5.5, 5.5a of extend-merge-master-envelope-to-floor-bot-lanes on Brett Heap's rulings Brett Heap gave three selections 2026-09-11 ~02:20Z, in session to lane openxfactory-2, on a multi-choice question, recorded on openxFactory #745 (comment 5628477104): "Yes, tick all five" (5.1, 5.2, 5.5 as already recorded; 2.9 and 3.5 N/A under the standing scope, since they apply only under a veto of N-1 toward (b), which did not happen), "(e) stands as taken; tick 5.5a", and "Successor's arming discharges 2.7; tick it". This is bookkeeping only: flips the seven checkboxes and appends one dated note per box carrying the ruling and its evidence, plus a status paragraph at the end of the file. No proposal.md, design.md or spec delta touched. Still open by their own text: 3.1, 3.3, 3.4, 3.6, 4.1, 4.2, 4.4. The packet is NOT archived. Refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Amend: cite PR #944 by number in the seven ticked-box notes The prior commit left "Ticked by this PR." as a placeholder since the PR number did not exist yet at authoring time. Now that PR #944 exists, amend each of the seven notes (2.7, 2.9, 3.5, 5.1, 5.2, 5.5a, 5.5) to cite it by number, matching this packet's own established citation style ("Ticked by PR #927."). Refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Fix 5.5a's evidence note: distinguish ratification from realization The 5.5a note this PR added conflated codexFactory relocate-review- authority-floor's ratification PR (#293) with the realization that actually moved the artifact, and cited d1f8bf1b — a reference-sweep commit named in the council record, not the landing commit — as if it were the move. Copilot review flagged this on the open thread. Corrected to name #293 and its openxFactory mirror #817 only as the ratification pair (ratified together 2026-09-08), and to cite the real three-step realization chain the archived mirror packet records: openxFactory #823 -> 5c782f2 (step 1, dual-path acceptance lands), codexFactory #297 -> 8165d1f3 (step 2, the artifact lands at floor/openxfactory-review-authority-floor.yaml, 2026-09-09T04:28:48Z), and openxFactory #829 -> 82c9f05 (step 3, the superseded path is dropped). Each PR and merge sha verified with `gh pr view`. The archive citation (#925 -> 17a3b81) is unchanged. No other dated note is touched. Checkbox counts unchanged (7 open, 27 ticked) and `openspec validate extend-merge-master-envelope-to- floor-bot-lanes --strict` reports the change valid. Refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Fix the status heading's undercount: four owner's-act boxes, not a pair Copilot flagged that the "### 2026-09-11" heading this PR appended said the ruling "ticks the remaining owner's-act pair," when the PR actually ticks four Group 5 (owner's-act) boxes -- 5.1, 5.2, 5.5 and 5.5a (5.3 and 5.4 were already ticked by PR #927). The heading also never named 2.7, the successor-discharged box, at all. Corrected the heading to "ticks the four remaining owner's-act boxes, both scope-gated boxes, and the successor-discharged box": four (5.1, 5.2, 5.5, 5.5a) + both (2.9, 3.5, N/A under the standing scope) + one (2.7) accounts for exactly the seven boxes this PR ticks, matching the body paragraph beneath it (which already listed all seven correctly) and the PR title. No other text touched; checkbox counts unchanged (7 open, 27 ticked). `openspec validate --all --strict` reports the same 3 pre-existing failures as origin/main (fa94dfb) -- disposition-codexfactory-declared- renames, disposition-codexfactory-floor-relocation-retitle, repo- boundary-governance -- and extend-merge-master-envelope-to-floor-bot- lanes itself passes. `tests/doc-health` (1689 tests) passes unchanged. Refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Executes two rulings of 2026-08-24. Closes #80 and #287.
#80 — no pending proposal set is cleared in silence
The filed defect was one path: a Send replaces the pending proposal set with the new turn's, and the operator's unreviewed work went with nothing said. The replacement itself is a ruling and is untouched — a new turn is the only stale-proposal recovery there is. The defect is the SILENCE, and it was on three paths.
One rule, two forms. Which form a path gets follows whether the path is still refusable when it reaches the clear:
repo-selector.js's filter trash; this rail's own retired Unload).await select(wanted)has already run under the pre-existing selection-first/transcript-second order contract. Refusing would leave document B's canvas showing document A's conversation — the exact defect the switch exists to close.I checked both notice-path arguments against
mainrather than taking them: the order contract is real and pre-existing (await select(wanted)thenawait switchThread(wanted)), and F1 is on the record as the post-Save rekey fix. Notice-not-arm is faithful to the ruling — the ruling is the RULE (no silent clear), applied to all three; only the form is delegated, and an "arm" on an act that has already committed would name a choice the operator does not have.The arm's design. Last gate in
submit, after the unsettled-buffer and no-model refusals — verified from source that the ordering rationale holds: put it first and the ladder alternates between two sentences forever, because the arm is consumed each time the impossible refusal fires. The refusal lands throughrecordLocalFailureat idle, notsettleTurnFailure:onBegin(begun)andtransports.chatTurn(request)both come strictly after the gate, so no flight was ever entered and the transport is untouched on the first press.Disarm is a token match, not a latch. No timer, no blur, no click-time snapshot: only a token of the pending target list is remembered, and each press recomputes it from the state that press was handed. Reviewing or applying between presses re-arms with the narrowed sentence; a settled turn or a rekey replaces the set.
Fixed vocabulary. The model exports
pendingProposalTargets, which returns buffer KEYS only, filtered to non-terminal records. Every sentence is composed from those keys, so no summary or content can reach a notice. Pinned with plantedSUMMARY-THAT-MUST-NEVER-BE-ECHOED/CONTENT-THAT-MUST-NEVER-BE-ECHOEDneedles asserted absent from the note. The title is covered transitively and better than by a second needle:sendTitle == noteTextis pinned, so the hover text cannot carry what the note is pinned not to carry.No fourth path. I re-checked the
staging-workbench.jsdrawCanvas remount the builder cleared as a suspect:chatSnapshotserializesproposalsandrestoreChatStatereads them back, so a remount round-trips the pending set. It is not a silent-discard path, and "all three paths" holds.#287 — a fallback-shape timeout reads as a timeout
serve.pyfalls back to the pre-identity{ok, error, message}shape when a released failure body fails its own wire self-validation, and the rail's kind check then answered TRANSPORT_REFUSED — so a genuine 504model_timeouttold the operator the transport refused. The shape is now recognized structurally (ok === false, no ownkind, stringerror) rather than by status code, and the code whitelist carries exactly one entry, onto the rail's own sentence chosen from the CODE.Pinned behaviourally, not just by inspection: the released envelope is unchanged; the fallback-shape timeout maps and its message differs from the server's; a fallback-shape sibling (
model_failed) deliberately does not map; v1-shaped and unparseable bodies stay transport refusals.Two moved pins, both re-pinned rather than relaxed
The W-3 apply/settle race probe adds one press to get through the arm it newly meets; every line after it is unchanged, so the race is still its subject. The a11y send-title pin follows
sendTitle's fourth argument while still asserting the one-selector claim and themodelReasonpath.Review commit (
bfe83c67) — two findings, both about the record1. The arm's second observer was unpinned. The token is dropped by two observers —
discardArmedForon every render,submit's fall-through on every press — andtest_the_arm_cannot_outlive_the_set_it_was_aboutclaimed in its docstring that both were covered. Only the press was. Removingif (token === null) discardArm = null;from the predicate failed no test: the existing empty-set case calls it on a set whose token is null, so the match fails whether or not the token was cleared. Mutation-tested before and after.Worth stating exactly: this is a coverage gap, not a live defect. A new pending set only ever arrives through
settleTurnSuccess— through a press that already cleared the token — sosubmitcovers every sequence a view can actually produce. The predicate's clear is the earlier of two guards, which is precisely why nothing noticed it was unasserted. The new case drives it alone (arm → empty → onediscardArmedForobservation → a same-named set, no press in between) and reads armed under the mutation: a control labelled "Send and discard" for a set nobody was warned about. The older docstring now says which observer it drives.2. "This surface's own ruling" named no ruling. The switch-path comment justified notice-over-arm partly on a recorded ruling that changing the selection "needs no confirmation because it replaces no content." That phrasing exists nowhere but in that comment. What is checkable — and what it now says — is the selector's observable shape on
main: it refuses for exactly one reason (a turn in flight, P2-9) and refuses beforeselect()commits; everything else commits unconfirmed. So an arm would have to be hoisted into that pre-commit position, which is a change to the selector and not this fix's to make. The structural half was always sound and is untouched.No behaviour changed by the review commit: one comment, one test case.
Suite
I could not run
pytest tests/in any checkout — shared or fresh — becausetest_header_value_readers.pyexists under bothtests/doc-health/andtests/ideation-dashboard/and collides on import. Pre-existing and unrelated.tests/ideation-dashboard/test_doxbench_bridge.pyalso hangs in my environment onfake_omp_child.py, identically on baseline and branch (I confirmed both stuck on the same fixture before killing my own PIDs). Excluding just that module:3747d287Delta +29 = the claimed +28 plus my one review test. And the builder's absolutes reconcile exactly once the 60-test bridge module they could run is added back: 3925 + 60 = 3985, and 3953 + 60 = 4013. Both claimed figures confirmed.
Targeted: 179 passed across the four doxBench suites this branch touches;
test_doxbench_proposals.py(the ruled replacement pin) green at 9.RED re-derived
model_timeoutwhitelist entrytest_a_fallback_shape_timeout_is_a_timeout_not_a_transport_refusalsubmitdiscardArmedForbfe83c67Expect
REVIEW_REQUIRED. Not merging.🤖 Generated with Claude Code