Skip to content

doxBench T104 F5–F10 wave: R-12 closed per the ruling, 28 findings fixed test-first - #70

Merged
brettheap merged 23 commits into
mainfrom
change/doxbench-t104-f5-f10-wave
Aug 6, 2026
Merged

brettheap merged 23 commits into
mainfrom
change/doxbench-t104-f5-f10-wave

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

The batched follow-up wave from Brett's T104 Disposition 2 (2026-08-02), run 2026-08-04/05 against the runtime's new home. Seven slices, one commit per family, every fix RED-first.

What closed

  • R-12, per the binding ruling (doxbench-r12-ruling.md): _require_buffer_binding accepts a buffer based on the session's own recorded base — ref name AND revision, with byte-precise per-document divergence against the session's current text. base_ref keeps its provenance meaning; rekeyDoxBenchState and the byte-identity pin stand untouched. The base is recorded at OPEN (registry entry + the owner marker's durable half), sticky across regenerates, recovered by the bootstrap. FR-038 → EVIDENCED.
  • F5: lone-surrogate turns refuse instead of dropping the connection; first-edit reads through the widened body reader (a 400k buffer fits; honest measured 413 over the cap); the refused-body drain closes the carried "65kb test" flake at its root; firstEditVerdict carries the server's verb where the reader consumes it; display vs wire transcript split; visible Apply refusal; persisted model ids validated against the catalog; in-rail unavailability posture.
  • F6: onIdentitySettled fires from Discard/switch/Save; the editor refuses visibly before load and after a load/hash failure instead of throwing and silently overwriting keystrokes; EOL-preserving textarea round-trip (FR-045 client half); the absent-outline Save pin drives the real seam.
  • F7: guarded sessionStorage read at the composition root; session-end clear passes the storage seam; card-action focus restored by identity; viewer images keep alt, get a labeled retry on failure, and survive preview rebuilds.
  • F8/F9: the zero-assertion roster test made honest; dir="auto"/autocomplete="off" on authoring surfaces; picker-label flex; narrow-viewport has-rail override; dead-rule cleanup.
  • F10: the FR-032 base revalidation reads the served lens (CRLF documents no longer refused-forever) with newline="" on governed writes; first-edit joins EXECUTING_VERBS; catalog failures distinguished (stale token / unreadable / configured-none); over-bound pastes refused visibly.
  • FR-010: selection/scroll write-back across tab switches, pinned by a shim that now drops scrollTop on hide (reverse-RED shown). FR-010 + FR-045 → EVIDENCED in the archived change's realization mapping; the change's one open row is the operator-gated screen-reader legs (CHK034a/CHK034b).

Triage before fixing

All 34 F5–F10 findings re-verified at this head: 28 still present and fixed here; F5-3/F5-10 already fixed by earlier waves; F5-4/F5-9 partial (completed here); the order-dependent 65kb test no longer reproduced but its real root was found and fixed anyway.

Verification

Dashboard suite 2527/18 (base) → 2611/19 (+84 pins, one deliberate explicit skip). Full tests/ at the rebased head: 4413 passed / 21 skipped / 1 failed — the failure (hermes_runtime_contracts release inventory) reproduces at pristine origin/main and touches nothing this wave changed. OpenSpec strict validation 54/54.

Repo-side record for the 010 feature: codexFactory PR from fix/doxbench-t104-f5-f10-wave. T104 itself stays open pending the reviewer's targeted re-review of this wave.

🤖 Generated with Claude Code

brettheap and others added 7 commits August 5, 2026 01:44
T104 F5–F10 wave, slice 1, realizing the reviewer's binding ruling of
2026-08-02 (R-12, FR-038). The defect was in the comparison, not the
field: `_require_buffer_binding` compared ref NAMES, conflating "same
ref name" with "same base bytes", so after a partial Save every buffer
the Save did not land was permanently refused.

The guard now accepts a buffer whose base names the ref the session
branched FROM at the session's own recorded base revision — acceptance
on the REVISION, never the name alone — and still refuses once the
session has diverged past that base for the buffer's own document,
byte-precise against the session's current text read through the same
lens the client hashes (`doxbench_hash.served_text`). `base_ref` keeps
its provenance meaning and `rekeyDoxBenchState`'s byte-identity pin
stands untouched.

The base is recorded where it is known and nowhere later: the OPEN
stamps `(base_ref, base_revision)` on the registry entry and durably in
the owner marker; it is sticky across snapshot regenerates (the same
rule the owner rides), and the bootstrap recovers marker-first, then
from git's own fork point. None degrades to the original name-equality
binding — advisory, never a refusal.

Guards, per the ruling: the post-partial-Save turn SUCCEEDS for the
un-landed buffer; the diverged session still refuses; a session with no
recorded base keeps the old refusal; the original pin is re-purposed as
the provenance record. FR-038 moves PARTIAL → EVIDENCED in the archived
change's realization mapping. Full dashboard suite at this tree:
2542 passed / 19 skipped (baseline 2527/18).

Co-Authored-By: Claude Fable 5 <[email protected]>
…les and tests

T104 F5–F10 wave, slice 2: family F9 (styles / markup / accessibility)
and F8 (a test that passed with the behaviour removed).

F9: both authoring textareas and both previews derive text direction
from content (dir="auto", FR-045's direction clause — the chat rail's
idiom, extended; status and heading stay unset because their text is the
fixed vocabulary, never content); the textarea and document picker
disable autofill (FR-044); the later .doxbench-picker-label block
declares flex-direction: row and flex: none so the surviving
flex-direction: column from the earlier append wave no longer stretches
the picker to half the pane; a narrow-viewport override (equal
specificity, later source) finally beats the has-rail thirds rule under
900px, with .doxbench-rail included this time; the dead
.doxbench-tab-active rule AND its classList.toggle are removed — one
spelling of selection state, aria-selected, remains.

F8: test_app_js_documents_the_remaining_tasks_for_the_absent_seams
iterated an empty tuple and asserted nothing; it is now parametrized
over the roster (empty ⇒ one explicit skip, never a vacuous green) with
a companion pin that derives the consumed seam set from
staging-workbench.js's own doxbench?.* reads and requires each key in
app.js's doxbenchSeams literal.

Named suites 165 → 169 passed + 1 skipped (+5 pins; the vacuous pass
became the explicit skip). Full dashboard suite at the combined tree:
2542 passed / 19 skipped.

Co-Authored-By: Claude Fable 5 <[email protected]>
… honest verb roster

T104 F5–F10 wave, slice 3: the server-side F10 singletons.

The FR-032 base revalidation now reads the document through the SAME
lens the client hashed (`doxbench_hash.served_text`: verbatim bytes,
strict UTF-8, one leading BOM dropped — what `Response.text()` does)
instead of `Path.read_text`'s universal-newline translation, so a CRLF
document's honest Save is no longer refused as stale forever. The two
governed document writes (`create_document`,
`rewrite_session_document`) pin `newline=""` so the landed bytes are
exactly the replacement the buffer's identity describes on every
platform (FR-045's byte-exactness clause, write leg).

`first-edit` joins `EXECUTING_VERBS`: it joined the dispatch if-chain
and SESSION_BEARING_VERBS when the governed Save landed, and the lagging
declaration made the roster — and serve.py's logging justification that
cites it — lie about the executable set.

Guards: a CRLF document edited from its served bytes is no refusal
(reverse-RED shown against the old read_text lens); the
declared-and-dispatched pin now names first-edit.

Co-Authored-By: Claude Fable 5 <[email protected]>
…eing

T104 F5–F10 wave, slice 4, both halves of family F5.

Server: a lone UTF-16 surrogate anywhere in a turn (buffer content,
message, working subject, transcript) is refused as the fixed
invalid_turn_request instead of killing the handler with no response —
ContentEncodingError is caught at all three route sites, including the
step-9 re-verification so a reserved slot finalizes through the normal
envelope. The governed Save (`first-edit`, alone among gate verbs)
reads its body through the widened bounded reader: a full 400,000-byte
buffer now fits the transport and a genuinely oversize body gets the
honest measured 413 instead of "a JSON object body is required". And
the tiny reader now DRAINS a refused over-cap body before answering —
the carried "65kb test" flake closed at its root: refusing with every
byte unread let the kernel's reset destroy the queued 400 while the
client was still mid-body.

Client: `firstEditVerdict` carries the server's resolved verb on the
SUCCESS branch (where readVerdict consumes it) and stops dereferencing
a null payload; the transcript display never evicts the newest pair
while a separate wire window enforces the 64,000-byte request bound; a
refused Apply records a visible, announced, non-echoing failure; a
persisted model id is adopted only if the catalog vouches for it (and
re-validated when the catalog arrives), so Send can never arm behind
the placeholder; and an offered rail with no selectable model states
the unavailable posture itself instead of contradicting the shell's
note.

+31 pins across routes/request-handling/turns/transport/chat-view/save,
all RED-first. Full dashboard suite at the combined tree: 2573 passed /
19 skipped.

Co-Authored-By: Claude Fable 5 <[email protected]>
… refuses visibly

T104 F5–F10 wave, slice 5: family F6 plus the FR-045 round-trip's
client half.

onIdentitySettled now fires from EVERY transition that moves a buffer's
identity — Discard, a document switch, and each buffer a Save actually
landed (refused buffers deliberately excluded) — so the rail's proposal
cards can never keep claiming `current` against text that moved.

Before the initial load settles (and permanently after a load/hash
failure) the editing surfaces refuse VISIBLY: textareas mount disabled
with the fixed loading line, every entry point states its refusal
through the existing "refused --" status idiom instead of throwing an
unhandled TypeError and silently overwriting the keystrokes, and an
oversized document mounts to a stated size failure — byte counts, never
content — with `ready` resolving instead of dead-lettering.

The textarea's forced-LF projection stops rewriting documents: the
buffer keeps the document's real line endings (flavor named by the
first line break in the loaded base), the display holds the LF
projection the browser imposes anyway, read-back re-applies the real
flavor before hashing, and the sync comparison settles in the display
domain. A CRLF document now loads clean, edits to its own bytes, and
saves what the identity describes — completing commit c2f432c's
server-side lens.

The absent-outline Save pin now drives savePlanState with the real seam
request shape end to end instead of discarding an empty plan.

+11 pins, RED-first (the harness probe recorded for the test-only
finding). The byte-identical rekey pin (test_doxbench_state.py:454)
stands untouched.

Co-Authored-By: Claude Fable 5 <[email protected]>
…claimed to

T104 F5–F10 wave, slice 6. `viewState()` was exported with no production
caller and nothing ever wrote selection or scroll back: hiding a pane
drops its layout box, and the browser's scroll offset with it, so every
tab switch landed the human at the top of the buffer while the FR-010
tests passed against a shim that kept scrollTop for free.

`applyTabVisibility` now captures each pane's view as it goes hidden and
re-applies it on return — scroll last, so focus()'s scroll-into-view
never wins over the human's place — and the shim models the layout-box
loss (hiding drops descendants' scrollTop; selection, being DOM state,
survives), which turns the existing tab round-trip pin into a real one:
it fails with the write-back neutered (reverse-RED shown).

FR-010 and FR-045 move PARTIAL → EVIDENCED in the archived change's
realization mapping (FR-045's two residuals — dir="auto" and the CRLF
round-trip — closed earlier in this wave), leaving FR-041/SC-010's
operator-gated screen-reader legs as the change's one open row.

Co-Authored-By: Claude Fable 5 <[email protected]>
…ailure posture

T104 F5–F10 wave, slice 7, closing the finding families.

Persistence/restore (F7): the composition root reads sessionStorage
through a guard, so a browser blocking site data degrades to the
documented no-persistence posture instead of replacing the dashboard
with a false snapshot error; the FR-039 session-end clear finally
passes the injected storage seam (the shell-harness record now really
disappears); a proposal Apply/Reject restores keyboard focus to the
REBUILT control by identity — terminal cards fall back to the composer,
where the named continuation starts — and the two pins that passed with
the behaviour removed (a restoreFocus substring grep and a finally
count) are behavioural now, mutation-proven.

Viewer images (F7/F6): the click-to-load replacement keeps the derived
label as alt text, a failed load restores a labeled retry placeholder
and revokes consent (a dead URL never auto-retries per keystroke), and
an image the human explicitly loaded survives the preview's
per-keystroke rebuild — consent is per container per src; a new src
still asks.

Honest failure posture (F10): the catalog loader distinguishes a stale
console token (the R-3 recoverable reload sentence) from an unreadable
catalog (its own fixed line) instead of collapsing every failure into
"no approved model is configured" — with matching posture-ladder rungs —
and an over-bound composer or subject paste is refused VISIBLY through
the aria-live failure note, naming the bound and never the text.

+26 pins, RED-first. Full dashboard suite at the agent's tree:
2611 passed / 19 skipped.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings August 5, 2026 06:10

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR is a broad “T104 F5–F10 wave” follow-up that closes a large set of doxBench findings and the R-12 ruling by tightening runtime/server contracts (session base grounding, request handling), improving client behavior (editor/rail UX correctness, transcript windows, EOL preservation), and pinning the outcomes with extensive test-first harnesses.

Changes:

  • Implement R-12 session-base grounding end-to-end (record/recover session base; widen buffer-binding acceptance on recorded base revision + per-document divergence checks).
  • Fix multiple doxBench UX/correctness issues (catalog failure postures, transcript display vs wire window, editor load refusal posture, identity-settled notifications, CRLF/LF round-trip, external image consent/retry behavior).
  • Expand/strengthen test coverage via Node harness probes and additional behavioral pins across server + web views.

Reviewed changes

Copilot reviewed 29 out of 29 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/ideation-dashboard/test_staging_workbench.py Adds posture-ladder and shell wiring pins for catalogFailure propagation/reset.
tests/ideation-dashboard/test_session_verbs.py Pins first-edit inclusion in EXECUTING_VERBS.
tests/ideation-dashboard/test_session_gates.py Pins session base recording at OPEN and bootstrap recovery behavior.
tests/ideation-dashboard/test_renderer.py Adds executable DOM harness for external-image click/load/retry + consent persistence.
tests/ideation-dashboard/test_doxbench_workspace.py Pins narrow-viewport cascade overrides and picker-label flex fix.
tests/ideation-dashboard/test_doxbench_view.py Adds harness scenarios for identity-settled notifications, load-time refusal posture, oversized-load handling, EOL preservation, FR-010 scroll drop.
tests/ideation-dashboard/test_doxbench_turns.py Pins ContentEncodingError contract + R-12 session-base binding acceptance/refusal behaviors.
tests/ideation-dashboard/test_doxbench_transport.py Makes deferred-task test non-vacuous; pins seam bundle completeness; pins storage guard + catalog failure distinctions + verdict mapping behaviors.
tests/ideation-dashboard/test_doxbench_save.py Pins CRLF base revalidation lens; fixes absent-outline harness to run the plan end-to-end; adds server-verb adoption harness.
tests/ideation-dashboard/test_doxbench_routes.py Adds lone-surrogate invalid_turn_request refusal coverage; adds end-to-end R-12 session-base acceptance/divergence/degradation tests.
tests/ideation-dashboard/test_doxbench_request_handling.py Pins request-body drain for over-cap bodies; adds first-edit widened reader tests and cap derivation pins.
tests/ideation-dashboard/test_doxbench_chat_view.py Adds mounted-rail DOM harnesses for refusal visibility, unavailability posture, focus restoration, throw settlement, bound refusal visibility, and catalog failure postures.
scripts/ideation_dashboard/web/views/viewer.js Stores external-image label in data-label; adds per-container consent persistence + retry placeholder on load error.
scripts/ideation_dashboard/web/views/staging-workbench.js Threads injected storage into session clear; adds railCatalogFailure threading into presentationPosture and refresh conditions.
scripts/ideation_dashboard/web/views/staging-workbench-model.js Adds catalogFailure rungs to presentationPosture; fixes firstEditVerdict to carry server verb on success and avoid null deref on failure.
scripts/ideation_dashboard/web/views/doxbench-editor.js Adds loading/failure refusal postures, disables surfaces until state exists, identity-settled notifications for discard/save/switch, FR-010 view capture/restore, and EOL lens for CRLF round-trip.
scripts/ideation_dashboard/web/views/doxbench-chat.js Uses wire transcript window for requests; makes refused Apply visible/announced; adds in-rail unavailability note + catalog failure mapping + over-bound paste visible refusals; restores focus by identity.
scripts/ideation_dashboard/web/views/doxbench-chat-model.js Adds catalogFailure state + recording; validates selectedModelId against catalog; splits display vs wire transcript windows; adds local failure recording helper.
scripts/ideation_dashboard/web/styles.css Removes dead selected-tab class rule; styles .doxchat-unavailable; fixes picker-label flex; adds narrow+rail flex override.
scripts/ideation_dashboard/web/app.js Adds guarded sessionStorage accessor; makes catalog loader return distinguished {failed: ...} markers instead of null on non-ok.
scripts/ideation_dashboard/snapshot_registry.py Adds session_base to snapshot entries and preserves it across re-register.
scripts/ideation_dashboard/session_git.py Adds merge_base() helper used for session base recovery.
scripts/ideation_dashboard/serve.py Implements session_base derivation in chat-turn path; catches lone-surrogate encoding errors into fixed refusals; widens first-edit body reader and drains over-cap bodies.
scripts/ideation_dashboard/gate_routes.py Adds first-edit to EXECUTING_VERBS.
scripts/ideation_dashboard/doxbench_turns.py Introduces SessionBase and widens buffer binding check to accept recorded session base revision with per-document divergence guard.
scripts/ideation_dashboard/doxbench_hash.py Adds served_text() lens to match browser decoding (CRLF preserved, BOM dropped).
scripts/ideation_dashboard/branch_session.py Records/reads session base in durable owner marker; recovers session base via marker or git merge-base; threads session_base through session entry registration/bootstrap.
scripts/ideation_dashboard/boundary.py Pins governed writes with newline="" to keep byte-exact EOLs cross-platform.
openspec/changes/archive/2026-08-02-add-workbench-integrated-editor-chat/evidence/realization-mapping.md Updates realization mapping to reflect newly evidenced FRs and closures.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1034 to +1035
ok, sha = self._try(self.served_root, "merge-base", base, branch)
return sha or None if ok else None
@brettheap

Copy link
Copy Markdown
Contributor Author

Targeted re-review of this wave ran 2026-08-05 (six adversarial passes + a 17-mutation pin-honesty round; full record: ~/session-prompts/doxbench-t104-wave-rereview.md). Not self-approval — findings are input for the reviewer of record.

Headline: 3 P1, 10 P2, ~24 P3; 16/17 mutations caught by their claiming pins. Every original F5–F10 fix was confirmed at its claimed site; the P1s are one missed site and two interaction defects the wave's own changes expose:

  • W-1: a lone surrogate in buffers[].base_ref/base_revision (schema-valid) still kills the handler at the canonical-digest sha256_hex (serve.py:1595) — the F5-8 class, one unguarded site left (executed; the step-9 catch the wave added is unreachable by construction).
  • W-2: applyProposal bypasses the EOL lens — an LF proposal into a CRLF document re-opens the whole-file EOL-rewrite class F10-3 closed (executed).
  • W-3: card Apply/Reject adopt click-time state; an Apply spanning a turn settlement wedges the rail permanently (executed; pattern predates the wave but these handlers were rewritten by it and the send path got the correct defense).

Highest-value P2 (W-4, executed both directions end-to-end): the R-12 acceptance works on an aligned system but the client's base_revision is the snapshot's generation-time HEAD while the server records merge-base at open — any main movement between snapshot bake and session open reverts R-12 to refusal. Refusal-direction only; needs a ruling-shaped choice (per-file revision on /source, or re-key the acceptance).

Also of note: the drain fix trades an instant 400 for an unbounded block on a stalled client (no socket timeout exists — W-5), the bounded reader never got the drain posture (W-6), and the R-12 served-text lens at serve.py:1415 is mutation-toothless (LF-only fixtures — W-7, pin prescribed).

🤖 Generated with Claude Code

brettheap and others added 6 commits August 5, 2026 09:45
Wave re-review fix-first (reviewer disposition, 2026-08-05). The F5-8
fix guarded three sites and missed the one live unguarded one: the
canonical-digest statement. json.dumps(..., ensure_ascii=False) passes
a lone surrogate through, so the raise happens at the encode inside
sha256_hex — and base_ref/base_revision are the two request fields that
reach the digest with no earlier measurement or hash gate, both
released-schema-valid surrogate carriers. A conforming client posting
one got a dropped connection instead of any envelope.

The digest now refuses through the same fixed invalid_turn_request as
the other sites. Two route pins, RED-first (both reproduced the dropped
connection).

Co-Authored-By: Claude Fable 5 <[email protected]>
Wave re-review fix-first. The mutation round proved two silent
regressions were possible: the R-12 route reader could revert to
read_text (every fixture was LF-only, where the two lenses coincide)
and served_text's one-leading-BOM rule could break in either direction
(never-strip / strip-all), all with the suite green.

Pins: a route-level R-12 case whose session document carries a BOM and
CRLF — the two lenses disagree, so the read_text regression refuses a
correctly-based buffer (reverse-RED shown) — and a served_text unit pin
with one clause per mutation class: exactly one leading BOM dropped, a
doubled BOM keeps the second, a non-leading BOM is content, CR/CRLF
survive, malformed bytes raise strictly.

Co-Authored-By: Claude Fable 5 <[email protected]>
Wave re-review fix-first. The F5 drain closed the refusal-transport race
for one reader and one band, and without any socket timeout it traded an
instant 400 for an UNBOUNDED block: a client declaring an over-cap body
and going silent pinned a handler thread and its connection for the life
of the process — strictly worse than the pre-drain posture for that
class (W-5). And the bounded reader — the chat-turn route and the very
first-edit route the wave widened — still abandoned the refused
remainder on the socket, leaving the measured 413 exposed to the same
close-with-unread reset (W-6).

One posture now: `DashboardHandler.timeout` bounds every socket
operation (network silence, never request duration — a slow model
dispatch performs no socket read while it waits), and both readers drain
a refused body through the shared `_drain_refused_body` — chunked, and
bounded by `_MAX_REFUSED_DRAIN_BYTES`, sized past the largest body a
real client can legally compose (a maximal buffer JSON-escapes to under
2.5 MiB) so every honest refusal survives while a flood still closes
with bytes unread.

Pins: the bounded reader's drain (reverse-RED shown against the old
max_bytes+1 read), the shared flood ceiling on both readers, and a
real-socket stalled-body test proving the connection ends promptly
under a shrunken timeout instead of parking a thread in read().

Co-Authored-By: Claude Fable 5 <[email protected]>
…troke

Wave re-review fix-first. applyProposal handed the model's text to
edit() verbatim — only the HUMAN input path routed through the F10-3
lens — so an LF-spelled proposal into a CRLF document made the buffer
pure LF (a Save then committed an every-line-ending rewrite of a
reviewed one-paragraph change), and the next keystroke flipped the
whole file back to the base's flavor: two byte-level outcomes for one
proposal, neither stated anywhere, re-opening through the other content
door the silent-mass-rewrite class this wave closed for typing.

The proposal's content is now projected into the display domain and
re-flavored exactly like read-back, so the buffer stays uniformly in
the document's own line-ending discipline whichever door text arrives
through. Pins (reverse-RED shown): an LF proposal into a CRLF document
lands CRLF with the identity hashed over the real bytes; an LF
document's proposal stays LF verbatim.

Co-Authored-By: Claude Fable 5 <[email protected]>
… click-time snapshot

Wave re-review fix-first. `adopt(await proposalActions.apply(state, …))`
derived the outcome from the state captured at click time, so every
adopt that landed during the seam's await was clobbered: follow-up
typing during a slow Apply was silently destroyed, and an Apply
spanning a turn settlement re-adopted the in-flight snapshot — phase
back to "in_flight" with nothing in the air, the settled answer and its
proposals gone, Send wedged at "Sending…" for the life of the mount
(rail.abort() has no production caller). The wave built exactly this
defense on the send path (the R1 liveState + abandoned-flight check)
and did not extend it to the card handlers it was rewriting.

The actions now take the rail's live-state getter and settle against
it. A refusal records the visible failure on the live state; a landed
swap marks the proposal applied only when the live record is
field-identical to the record the seam actually swapped — a set the
turn replaced mid-await is never marked, and the live truth wins. The
one widening this needs is `markProposalAppliedAfterSwap` ("stale" here
can only be the apply's own re-score, since the swap moved the buffer
identity before its promise resolved); every other stale record keeps
refusing through the current-only rule.

Pins, RED-first (the wedge reproduced exactly: phase 'in_flight' ==
'idle' failed): typing during a slow Apply survives in state and DOM
with the proposal still landing applied; an Apply spanning a turn
settlement keeps the settled turn's transcript, an idle phase, and a
Send that does not read "Sending…".

Co-Authored-By: Claude Fable 5 <[email protected]>
…lias

Wave re-review fix-first. R-12's acceptance demanded revision EQUALITY
with the recorded merge-base — but a real client's base_revision is the
serving projection's source_revision, the checkout HEAD at snapshot
GENERATION time (the browser never receives a per-file revision), while
the branch point is the OPEN-time HEAD. Any main movement between
snapshot bake and session open made the two differ forever, silently
reverting R-12 to the refusal it closed — executed in the re-review,
both directions, on real git over HTTP.

The OPEN now records the serving snapshot's revision beside the
merge-base as an accepted ALIAS: on the entry
(`session_base_aliases`, sticky across regenerates like the base
itself), durably in the owner marker, and read back verbatim by the
bootstrap — never re-derived later, because the snapshot regenerates
and its current revision proves nothing about what clients of that
session hold. The guard accepts a listed revision; the ref-name and
base-bytes clauses are untouched, so an alias never weakens staleness
detection.

Pins, RED-first: the unit alias acceptance (with byte-clause and
unlisted-revision refusals in the same breath); the recording test
drives the exact reverting window — main moves after the snapshot is
baked, the session opens, and the alias equals the baked revision,
surviving into the next process via the marker; the route twin grounds
a turn declaring the snapshot revision end to end. Full dashboard
suite: 2623 passed / 19 skipped.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings August 5, 2026 14:09
@brettheap

Copy link
Copy Markdown
Contributor Author

Fix-first round landed (reviewer disposition: W-1, W-2, W-3, W-4, W-5/W-6, W-7) — six commits a56c857..1625d15, each test-first with RED shown; full dashboard suite 2623 passed / 19 skipped.

  • W-1 a56c857 — the canonical digest joins the surrogate refusal; base_ref/base_revision carriers now get the fixed envelope instead of a dropped connection.
  • W-7 348010c — the served lens is pinned where it is load-bearing: a CRLF+BOM session document must ground at the route (reverse-RED vs read_text), plus one served_text clause per mutation class.
  • W-5/W-6 c809f76 — one drain posture: a 30s socket timeout bounds every socket operation (network silence, never request duration), and both readers drain a refused body through a shared, chunked, 4 MiB-ceiling helper — the stalled-client block and the abandoned-remainder reset race are both closed, pinned with a real half-sent socket.
  • W-2 3ab91f9 — a proposal enters through the same EOL lens as a keystroke: an LF proposal into a CRLF document lands CRLF with the identity over the real bytes.
  • W-3 c9d563b — card actions settle against the rail's live state (the send path's R1 defense, extended): the executed wedge and keystroke-loss probes are now pins; a set replaced mid-await is never falsely marked applied.
  • W-4 1625d15 — the OPEN records the serving snapshot's revision as an accepted base alias (entry, durable marker, bootstrap read-back — never re-derived after the snapshot regenerates). The exact reverting window — main moves between snapshot bake and open — is the recording pin, and the route twin grounds a turn declaring the snapshot revision. Name and byte clauses untouched, so staleness detection is not weakened.

Remaining from the re-review record (~/session-prompts/doxbench-t104-wave-rereview.md, updated with these outcomes): P2s W-8/W-9/W-11/W-12/W-13, the P3 batch tail (the gate_console CRLF writers called out), and the ruling-interpretation question on content-vs-history divergence.

🤖 Generated with Claude Code

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 30 out of 30 changed files in this pull request and generated no new comments.

Suppressed comments (2)

scripts/ideation_dashboard/session_git.py:1035

  • merge_base()'s return expression has a precedence bug: sha or None if ok else None will return sha even when ok is false (because the conditional binds tighter than or). That can treat a failed git merge-base as a successful revision and propagate an invalid base into session-base recovery.
        ok, sha = self._try(self.served_root, "merge-base", base, branch)
        return sha or None if ok else None

scripts/ideation_dashboard/web/views/viewer.js:147

  • wireLoadButton uses holder.dataset.src without validating it. If an .ext-img element is missing/empty data-src (e.g., unexpected markup or future refactor), consentSetFor(container).add(src) will store undefined/"" and img.src = src can trigger an unintended request (often to .../undefined). Since isExternalImageSrc trims for classification, it also makes sense to canonicalize here.
    const src = holder.dataset.src;
    consentSetFor(container).add(src);
    holder.replaceWith(
      loadedExternalImage(container, src, placeholderLabel(holder)));
  });

brettheap and others added 4 commits August 5, 2026 12:16
…er lies

Wave re-review fix-first, round 3.

W-8: the guard's Save arm awaits a Save whose onSaveLanded hand-off
remounts this canvas when the key moves — and the corpse kept going:
switchDocument mutated state, persisted under the rekeyed session key
AFTER destroy() had written its own record (a reload in that window
resurrected the wrong active document), and fired a late
onIdentitySettled into the torn-down composition. The arm re-checks
destroyed after the awaited Save, and switchDocument refuses on a
corpse at entry and again after its own awaited loads.

W-9: a picker change during the loading window is refused by the F6-2
posture, but the handler reverted the DISPLAYED value only on
"blocked" — the picker then showed a choice that never landed, forever,
lying about which document edits land in and turns ground on, with the
refusal itself invisible. The picker now reverts on every non-switched
outcome and a refusal is stated through the same "refused --" status
idiom every other refusal uses ("blocked" stays silent: the guard IS
its statement).

Pins, RED-first: the guard-save-into-remount scenario proves the
resolve refuses, exactly one identity notification fires (the Save's
own), and the persisted record is destroy()'s pre-switch document; the
picker probe proves the revert and the stated refusal during the load
and the agreement after it.

Co-Authored-By: Claude Fable 5 <[email protected]>
…ehind

Wave re-review fix-first, round 3. markProposalApplied never touched
lastFailure and the only clearers were a settled turn and a rekey, so a
refused-then-successful Apply rendered two live regions asserting
opposite facts about the same proposal: the applied announcement beside
the still-visible "no longer matches the buffer" note — permanent in
the editor-only posture, where no turn can ever settle to clear it.

A landed apply now clears the local failure channel through the pure
clearLocalFailure (narrow: only lastFailure moves); a refusal still
records it. Pin, RED-first: refuse-then-land shows the refusal note,
then the applied status with a hidden note and no lingering error.

Co-Authored-By: Claude Fable 5 <[email protected]>
…crolling

Wave re-review fix-first, round 3. The F9-5 narrow flex:none block ties
the is-expanded geometry on specificity and, later in source, beat it:
under 900px with the rail the per-pane expand controls toggled
aria-pressed and moved nothing. Worse, with all three regions at
natural height inside .swb-panel's overflow:hidden, a tall transcript
pushed the canvas below the fold with no scrollbar anywhere — the
thirds split this wave replaced had at least kept every region bounded.

In the stacked column, expansion now means HEIGHT: a later-in-source
narrow block gives the expanded pane the column's share and compresses
the other panes to bounded, still-scrollable 20vh strips, and
.swb-regions.has-rail owns its own vertical scrolling so nothing is
ever unreachable. Pin, RED-first: the scroll owner, the re-declared
expansion, its position after the flex:none block (source order is the
whole contest), and the compressed strips.

Co-Authored-By: Claude Fable 5 <[email protected]>
Wave re-review fix-first, round 3. The F10-1 shell threading was pinned
only by a source-grep whose docstring claimed the onState comparison
"re-renders when the FAILURE changes (not only the count)" while its
assertions checked substring counts — deleting the failure half of the
comparison left the whole repo green, and in the shipped zero-adapter
posture (count 0 before and after every failed fetch) the shell's note
would then never leave "no approved model is configured" on a stale
console token.

The pin now drives a failing catalog through the REAL mounted shell and
reads the rendered posture note. Mutation-proven: dropping
`|| failure !== railCatalogFailure` fails exactly this test; restored,
the module is green. No production change — the threading was correct;
its guard was not.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings August 5, 2026 16:26
@brettheap

Copy link
Copy Markdown
Contributor Author

Fix-first round 3 landed (reviewer disposition: the remaining P2s) — four commits 856fd08..28133df, test-first with RED (or mutation-RED) shown; full dashboard suite 2628 passed / 19 skipped.

  • W-8 + W-9 856fd08 — the guard-save arm stops on the remount its own Save triggers (destroyed re-check after the await; switchDocument refuses on a corpse at entry and after its loads — no post-destroy persist, no late identity fire), and the document picker reverts on every non-switched outcome with the refusal stated through the "refused --" idiom.
  • W-11 5b64004 — a landed apply clears the failure its refusal left behind (pure, narrow clearLocalFailure); no more two live regions asserting opposite facts.
  • W-12 03249cb — under 900px with the rail, expansion now means height (expanded pane grows, the others compress to bounded scrollable strips, later in source than the flex:none block it lost to) and the railed column owns its own scrolling — nothing unreachable below the fold.
  • W-13 28133df — the shell posture pin is behavioral and mutation-proven: a failing catalog driven through the real mounted shell renders the stale-token note; dropping the failure half of the onState comparison fails exactly this test. No production change — the threading was right, its guard was not.

That closes every P2 from the re-review. Remaining: the P3 batch tail (the gate_console CRLF writers called out) and the content-vs-history divergence interpretation on the R-12 ruling. Record updated: ~/session-prompts/doxbench-t104-wave-rereview.md.

🤖 Generated with Claude Code

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 30 out of 30 changed files in this pull request and generated no new comments.

Suppressed comments (1)

scripts/ideation_dashboard/session_git.py:1035

  • merge_base()'s return expression has a precedence bug: sha or None if ok else None is parsed as sha or (None if ok else None), which can return a non-empty sha even when ok is false. That would treat a failed git merge-base as a real base revision.
        ok, sha = self._try(self.served_root, "merge-base", base, branch)
        return sha or None if ok else None

brettheap and others added 4 commits August 5, 2026 19:50
…alid restores

Wave re-review batch tail (reviewer disposition, 2026-08-05), the
client's eleven items:

EOL-only dirtiness is STATED (a mixed-EOL document whose display is
byte-identical to the loaded text says "line endings only" instead of
presenting invisible dirtiness); the loading and failed-load postures
disable the Save/Discard/picker controls whose clicks were silently
dropped; proposals adopted from an in-flight turn are re-scored against
the live editor identities at settle (a buffer that moved mid-flight
renders stale, never current); an in-bound edit clears ITS OWN
over-bound note — the note is a present-tense claim that goes false the
moment the text is shortened (the pinned lifecycle updated, with why);
restoreChatState drops malformed transcript turns instead of
fabricating "undefined", and adopts subject/composer only within their
byte bounds (dropped whole, never truncated); send focus follows INTENT
(success → composer, failure → the re-enabled control) instead of a
captured node that disabling had dropped to <body>; the mount-to-catalog
window says "checking the model catalog…" instead of claiming a
configuration fact not yet known; a detached image's late error no
longer revokes the live container's consent; an edit settling after
destroy() leaves storage untouched (the FR-039 clear survives); plus
the wire-window and catalog-loader comment corrections (turns vs pairs;
the considered-and-rejected salvage case; the unreadable posture).

+10 pins, RED-first; the per-keystroke re-request of consented images
is recorded as designed (browser cache owns it).

Co-Authored-By: Claude Fable 5 <[email protected]>
…efusals

Wave re-review batch tail, the server's seven items:

The undecodable-base refusal names only the exception CLASS — the old
{exc} interpolation leaked the offending byte value and offset from the
file being edited — with the strict-decode asymmetry recorded as
deliberate (the browser hashes U+FFFD-replaced text; the server refuses
to fabricate an identity, so a non-UTF-8 file is honestly unsaveable).
A lone surrogate in first-edit content refuses 400 with the
transaction's own fixed sentence instead of escaping the boundary write
into the unwind as a 500 action_failed. The gate_console writers stop
translating line endings — the demote move copies BYTES (no decode at
all on the move arm), the status flip preserves each line's own ending,
the README append and both redline legs read and write without
translation — closing the F10 corpus-integrity class arriving through a
different verb: on Linux today these rewrote CRLF documents as LF,
invalidating open buffers' base identities.

Guards: the carve-out's one-verb pin is parametrized across four gate
verbs (mutation-proven: widening the branch fails create-document); a
transcript-ROLE surrogate is pinned as covered by W-1's digest catch
(differentially proven against a re-raising mutation); the boundary's
newline="" spelling gets a textual pin that states why no behavioral
test can go red on this platform; and the 413 comments say "declared",
which is what the refusal is actually based on.

+11 pins, RED-first throughout.

Co-Authored-By: Claude Fable 5 <[email protected]>
…yte clause, honest harness

Wave re-review batch tail, the R-12 machinery items.

The arms that JUST created (or re-materialized) a session branch now
prefer git's own fork point over the owner marker: a marker there can
only be crash residue from a previous session of the same deterministic
name, and reading it first resurrected a dead session's base and
re-persisted it — self-healing never occurred. The JOIN and bootstrap
arms stay marker-first (the marker is the one source that remembers a
non-default base), and marker ALIASES are trusted only when the
marker's base agrees with the recovered one — one rule, so a stale
marker cannot smuggle its aliases past a prefer-git override. The
register heals the marker with the derived truth.

The binding guard's byte clause fails closed twice over: a reader
failure yields None and None never grounds anything — including a
direct caller's base_hash=None, which once satisfied None == None and
was accepted on the very failure that should refuse it.

And the shell harness stops modeling a client capability that does not
exist: the fake source loader returned a per-file revision production
never sends, exercising a dead arm of baseRevisionOf and masking W-4's
whole mechanism. It now returns the production {content, ref} shape,
the session scenarios run through the true projection-fallback path,
and the wire base_revision is pinned to the projection's
source_revision.

Pins RED-first: the orphaned-marker fresh open (base healed, stale
aliases refused) and the hashless-buffer reader failure.

Co-Authored-By: Claude Fable 5 <[email protected]>
Wave re-review batch tail, the vocabulary split. Every refusal an Apply
could meet — a settling identity, a Save in flight, a loading canvas, a
thrown seam — collapsed into "this proposal no longer matches the
buffer — ask again in a new turn", false in both halves for everything
but genuine staleness (the proposal matched, and a moment's wait was
the recovery; a persistently-throwing seam looped the false advice
forever, and the dominant real path to the sentence was never
staleness at all, since currency interception disables Apply first).

The editor's applyProposal now carries a fixed CODE per refusal class
(stale / unsettled / unavailable — codes, never free text), and the
rail maps them through a WHITELIST: stale keeps the new-turn sentence,
unsettled is advised a moment, and everything else — including a throw,
a null, or an unknown code — gets the generic "the apply failed — the
proposal stays reviewable; try again". The seam's own error text stays
dropped unread.

Pins: the unsettled and throwing cases (reverse-RED shown against the
one-sentence mapping), the editor's own codes at its boundary, and the
existing staleness pins re-keyed to the stale-coded seam.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings August 6, 2026 00:02
@brettheap

Copy link
Copy Markdown
Contributor Author

P3 batch tail swept (reviewer disposition) — five slices fd95295..de3f6aa, every item fixed test-first or recorded with its reason; full dashboard suite 2653 passed / 19 skipped.

  • Client fd95295 — EOL-only dirtiness is stated ("line endings only" instead of invisible dirtiness); loading/failure postures disable the controls whose clicks were dropped; in-flight-turn proposals re-score against live identities at settle; over-bound notes clear when the operator remedies them; restores drop malformed turns (no more fabricated "undefined") and over-bound fields; send focus follows intent instead of a node disabling dropped to <body>; the mount window says "checking the model catalog…" instead of claiming an unknown configuration fact; a detached image's late error can't revoke live consent; a post-destroy edit settle can't resurrect a cleared record.
  • Server 16acc3d — the undecodable-base refusal stops echoing byte offsets; first-edit surrogate content refuses 400 with the transaction's own sentence instead of a 500 traceback; the gate_console demote/README/redline writers stop rewriting CRLF documents as LF (the F10 corpus-integrity class through a different verb — the move now copies bytes without decoding at all); the one-verb carve-out pin is parametrized and mutation-proven; the transcript-ROLE surrogate is pinned as covered by W-1, differentially.
  • R-12 machinery ad43592 — creation/resume arms prefer git's fork point over a crash-orphaned marker (the register heals it; stale aliases are distrusted whenever the marker disagrees); the byte clause refuses on reader failure even for a hashless direct caller; the shell harness stops faking a per-file loader revision production never sends and pins the true projection-fallback wire value.
  • W-10 de3f6aa — apply refusals split by fixed code: staleness keeps the new-turn advice, a settling buffer is advised a moment, and a throw/null/unknown gets the generic reviewable-retry sentence — whitelist mapping, nothing echoed, reverse-RED shown against the one-sentence world.

The re-review ledger (~/session-prompts/doxbench-t104-wave-rereview.md) is fully dispositioned except one item: the ruling-interpretation question on content-vs-history divergence.

🤖 Generated with Claude Code

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 33 out of 33 changed files in this pull request and generated no new comments.

Reviewer ruling, 2026-08-06, closing the wave re-review's last open
item. "Continues to refuse once the session has DIVERGED past that
base" is a CONTENT reading: the guard hashes the session's current
text, so a session that moved this document and moved it back
byte-identically accepts the pre-session buffer again. Every acceptance
is content-safe — the buffer's base bytes provably equal the session's
current text, so no stale envelope can result; consulting history would
refuse turns whose grounding is provably coherent.

No behavior change: the docstring now cites the ruling, and the
executable record pins both halves against one worktree — refused while
the document is moved, grounding again once it is restored. The full
ruling addendum lives with the R-12 ruling record
(doxbench-r12-ruling.md).

Co-Authored-By: Claude Fable 5 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

The re-review ledger is closed. The last open item — the content-vs-history reading of "diverged past that base" — was ruled content, as built (reviewer, 2026-08-06). No behavior change: the guard's docstring now cites the ruling, and test_a_document_moved_and_moved_back_grounds_again_the_content_ruling is its executable record (the same worktree refuses while the document is moved, grounds once restored). The full addendum rides the R-12 ruling record.

Every finding from the targeted re-review of this wave — 3 P1, 10 P2, the P3 batch tail, and the interpretation question — is now dispositioned and landed. The PR is ready for the merge call.

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings August 6, 2026 04:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 33 out of 33 changed files in this pull request and generated no new comments.

Suppressed comments (1)

scripts/ideation_dashboard/session_git.py:1035

  • In merge_base, return sha or None if ok else None is parsed as sha or (None if ok else None) due to Python precedence, so the ok flag is effectively ignored. This can return a SHA even when _try reports failure, which breaks the intended “None on failure” contract.
        ok, sha = self._try(self.served_root, "merge-base", base, branch)
        return sha or None if ok else None

One conflict, EXECUTING_VERBS: main's add-project-scoped-selection
appended create-project while this branch appended first-edit (T104
F10) — both kept. The resolved tree is byte-identical to the rebase
this branch's protection rules would not accept (7ae6ca6; full
dashboard suite 2674 passed / 19 skipped at exactly this tree).

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings August 6, 2026 13:56
@brettheap
brettheap merged commit 309c8c4 into main Aug 6, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 33 out of 33 changed files in this pull request and generated no new comments.

Suppressed comments (1)

scripts/ideation_dashboard/session_git.py:1035

  • merge_base() is documented to return None when git merge-base fails, but return sha or None if ok else None ignores ok due to conditional-expression precedence and can return sha even when ok is false (e.g. if stdout is non-empty on failure). This can propagate an invalid base revision into session-base recovery.
        ok, sha = self._try(self.served_root, "merge-base", base, branch)
        return sha or None if ok else None

@brettheap
brettheap deleted the change/doxbench-t104-f5-f10-wave branch August 21, 2026 23:57
brettheap added a commit that referenced this pull request Oct 2, 2026
…, T058, T059, T061, T062 and T066 (plan 034) (#1214)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

**Plan 034's bookkeeping, one PR with two parts.** It completes T008, and it ticks the phase-2 tasks that have landed since #1207, plus T066, on the coordinator's word that #1213 landed.

- **Bookkeeping only.** It edits three files: the staged topic `ideation/staging/doc-health-direction-arc/doc-health-direction-arc.md`, its row and detail section in `ideation/staging/INDEX.md`, and `specs/034-opendox-standalone-operation/tasks.md`. `git diff origin/main --stat -- openspec/` is empty, so there is no Rule 6 window.
- **No `Arc:` trailer** on any commit, and no closing keyword anywhere in a commit or in this body (both scanned).
- **Merged `main` in** at `80217a92` (#1213's landing), because #1213 also edited `tasks.md` (T064's text). The merge was clean, with no force-push. This PR leaves T064, T065 and T063 unticked and edits none of T064's lines.

## Part 1: T008, completed

T008 had two open requirements. The raise landed (#1173 → `0d48231b`), but the staged topic was captured before round 2 and still read R1Q24 and R1Q25 as open and outside its subject. Its claim 6 said closing the arc would leave the other exclusions "on their own tracks".

The topic now:

- **takes the two other classes** of openXdox-code's declared exclusion under R1Q24 (a), citing `5850003126`, with each file listed as `tests/declared_exclusion.yaml` holds it at openXdox-code `6a3b93b9` (65 files, three reasons):
  - `status-exemption-rail`, 3 files, 87 red results: `test_doxbench_abstract_envelope.py`, `test_doxbench_packet.py`, `test_doxbench_turns.py`;
  - `openxfactory-contracts`, 5 files, 75 red results: `test_doxbench_blank_reason.py`, `test_project_action_contracts.py`, `test_project_schema_election.py`, `test_validate_ideation_dashboard_contracts.py`, `test_wheel_action_contracts.py`;
  - the lists are the same at T043's landing, openXdox-code#32 → `4610bca5`, where they were measured (I read `tests/declared_exclusion.yaml` at both commits and grouped its entries by reason);
  - the two files with two reasons are named (`test_doxbench_packet.py`: `doc_health` and the rail; `test_doxbench_blank_reason.py`: `doc_health` and the contracts);
- **reads R1Q23 as answered (a)** and **R1Q25's consumer-schemas class as cleared** by T061 (`tests/test_snapshot.py` left the exclusion, 66 → 65). Claim 6, the intro, Q2, Q3, Q5 (now `ruled`, with the `5850003126` citation), the Exit path, and the INDEX row and detail no longer say the arc leaves those classes "on their own tracks". Closing requirement 9 for openXdox-code now needs the declaration to hold none of the three classes;
- **carries T061's list**, as bookkeeping, from openXdox-code#36's body § "For T008": seven excluded files that validate one of the kinds the narrowed validator gives up, each with its declared reason and its kinds (`ideation-workbench`, `project-register`, `workbench-model-catalog`, `workbench-chat-turn-v2`, `gate-intent`), plus the two "also" bullets of that section;
- **records what the arc's landing removes**: F9.1's help-tree `--deselect` (T007 batch J), the same `--deselect` in openXdox-code's required check, and the guard test beside it, with the two rulings quoted verbatim (`5859927858`, `5870594693`); and that **F9.2's box closes after the arc's landing**, which `5859927858` keeps unchanged.

**T008 is ticked.** Its tick means the raise and the record. The text says so, and that the arc itself is open: Q1 to Q4 and Q6 stay open, Q6 owes an owner or a task list, and "after T008" in the plan still means the arc's landing.

All added sections carry an `Added-by:` line, per the lifecycle's extensible-sections rule, and the `Status: staged` header is untouched.

## Part 2: ticks, each with its evidence

Every sha is the merge commit of the named PR, read from the forge with `gh pr view -R <repo> <n> --json mergeCommit`, then checked with `git rev-parse --short=8` in a bare clone of that repo.

| task | repo | landed | note |
|---|---|---|---|
| T055 | oDc | openDox-code#59 → `fa140875`; follow-up #70 → `75bd8703` | #70 confines the edit arm to the one resolved entry (no second lookup); it landed before T062 |
| T056 | oDc | openDox-code#66 → `a23e4224` | `flush=True` on the URL lines; F5.3 exits 1 at `fa8862cc`, 0 at the head; the squash message's three wrong shas are corrected on #66 (`5917853351`) |
| T058 | oDc | openDox-code#68 → `047bb4fa` | `opendox.validator` replaces the stand-in; F7.2 exits 1 before, 0 after |
| T059 | oXc | openXdox-code#35 → `839492d9` | the holder's REVISION of the registration path is recorded: T064 owes one host line |
| T061 | oXc | openXdox-code#36 → `6a3b93b9` | exclusion 66 → 65; twelve allow-list entries; F7.1 `2 passed`; F5.2 whole still shows T059's three ruled pre-arc reds |
| T062 | oD | openDox#16 → `d5098297` | code pin `2d116415` → `047bb4fa`; `make pins` reads `pins ok` |
| T066 | oxF | openxFactory#1213 → `80217a92` | a **non-arc** landing: no `Arc:` trailer on the squash (checked), nothing under `openspec/`; its tree equals the PR head `2cc8e926`'s; CI `selected=9335 passed=9329 skipped=6`, consumer gate 105/105/0 and 1480/1480/0 |

Where #1207 gave a bare PR and sha, these tasks also carry a short "Landed" bullet in `tasks.md`, each line drawn from the landed PR's own body.

**Left unticked:** T063, T064 and T065, which are in flight. Also untouched, and **not asked for here**: T007's text still reads "Batch L has not landed yet", though batch L landed as #1212 → `2140f5a7`. That belongs to the round that ticks T007.

## Validation

- **`python3 scripts/validate-openspec-cli-pin.py --all --strict`**, the pinned CLI, from the openxFactory root, at this head: rc 0, `Totals: 110 passed, 1 failed (111 items)`, `0 UNDISPOSITIONED failures`. The one failure is the accepted exception for `add-chain-attestation` (Brett Heap, 2026-09-05), and `main` gives the identical summary.
- **doc-health `--single-repo`**, same clone, `main` `80217a92` against this head: findings identical, 31 critical, 22 error, 54 warning, 21 info, 0 new regressions. The reports differ only in the governance word count (964038 → 965688) and the staged words (164361 → 166011). No finding names the staged topic or plan 034.
- **The plan-graph parser** (`aftergraph.py`, from a read-only clone of brett-wip, with `depcheck.py`, `chaincheck.py`, `arrowcheck.py` and `phasecover.py` over it), on this branch: 90 tasks, 102 nodes, 225 edges, `cycles: none` (also with the Lands-with groups merged), `single-writer chain gaps: 0`, `arrow mismatches: 0` (67 arrows), and `phasecover` reports no gap. `main`'s output is identical.
- **Tests that read staging docs.** `tests/doc-health/test_ideation_readiness.py` and `test_families.py`: 89 passed, 3 failed on this branch, and the same 3 failed on `main` in the same clone (`validator exited 2 (harness error)`, a checkout without the `openDox`/`openXdox` gitlinks materialized). `tests/ideation-dashboard` needs those gitlinks and was not run; this PR touches no code.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Oct 2, 2026
…, with openXdox's governed projection registered by the host (plan 034) (#1215)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Plan 034, task **T064** (slice P2-H): phase 2's consumer pins (T090 steps 5–6), `specs/034-opendox-standalone-operation/tasks.md` at openxFactory `main` `80217a92`. The precedent is T047 (opensoft/openXdox#20, then #1181).

- **Landing order, done:**
  - T066 (#1213) has landed as `80217a92`. openxFactory already holds at both pin sets, and the plan's T064 text already reads "the one host line" (holder decision (a), 2026-09-30).
  - opensoft/openXdox#21 has landed, squashed to `f257e021`.
- **Holder decisions in force:**
  - (a) the plan-text correction rode in T066;
  - (b) T092's phase-2 `edits[].note` annotations ride in T063's checkpoint, NOT here;
  - (c) the three candidate-pin reds with no both-pins form are answered in this PR.
- It stays a DRAFT until the holder marks it READY.

## The pins: both pairs in ONE commit (`59866105`)

| pair | gitlink | pin file `commit:` | `digests.tree_sha256` |
| --- | --- | --- | --- |
| openDox | `663ac683` → **`d5098297`** | same (`contracts/opendox-pin.yaml`:118) | `ec826603…9d5d` → **`2815ca2353d1cd4c220b5391e1c0bc45c2cabfec9aa196cee1e0a4bcc9e857cc`** (28 records) |
| openXdox | `57e2b8f2` → **`f257e021`** | same (`contracts/openxdox-pin.yaml`:109) | `e52c1383…6390` → **`52f0598edb8517dce7be3acc7637c9552020a4e2e1716be7bb8a1f352d406959`** (29 records) |

- `d5098297` is openDox root `main`, three commits ahead of `663ac683`:
  - #14 (`52005213`, T053) cuts `dox-v1.1`. The annotated tag `851a28e9` is over `52005213`, and the spec leg moves `8fe8c4c7` → `f7ee3c76`.
  - #15 changes only `contracts/CHANGELOG.md`.
  - #16 (T062) moves `code` `2d116415` → `047bb4fa`.
- **`f257e021` is opensoft/openXdox `main`, where #21 squash-landed.** It moves `code` `6158151e` → `6a3b93b9`, which is openXdox-code `main` after #34–#36 (T060, T059, T061). It also moves `contracts/opendox-pin.yaml` `663ac683` → `d5098297` (T090 step 5).
- Every digest was recomputed three ways, with controls on the old values: `repo_shape.tree_digest`, an independent `ls-tree` + `sha256`, and the forge's tree listing.
- **Why one commit and not "one commit each" (T090 step 6).** #21 changes the openDox pin that `verify-opendox-pin.py` check 5 reads through the openXdox gitlink. So moving the openXdox pair alone would fail check 5, and the runbook's § 3 step 8 moves the openDox pair *"in the SAME commit"*. Each pair still moves as one unit (box 9.5). **The holder decided the single commit on 2026-09-28.** This PR therefore deliberately departs from T090 step 6's "one commit each".
- Both pin files are edited in place, keeping their line counts. The openDox `migration:` block keeps `range` and `reversible`, because no migration path changes over `2d116415..047bb4fa`. Its `runbook` names the new code leg `047bb4fa`, and the block is identical to openXdox's derived copy, which `tests/opendox_pin` asserts.
- **Gates.** `verify-openxdox-pin.py` prints `OK openxdox-pin verified: openXdox@f257e021…, gitlink read from HEAD`, with digest `52f0598e…`. `verify-opendox-pin.py` prints `OK … openDox@d5098297…, lockstep with openXdox confirmed`.

## What else it carries

| commit | what | F11.1 surface |
| --- | --- | --- |
| `47e47c69`, `5663b4ed` | **The host line.** `scripts/opendox_host.register_openxfactory()` calls `openxdox.projection_contributions.register()` once openDox answers this host's profile, and before `register_seams()` (`5663b4ed`, on Copilot's finding at `d6c47f4f`). A profile openDox refuses is refused before any seam is written, so openDox's unread defaults stay where they were. The contribution call is all or none on its own, and its refusal leaves the profile registered and no host seam written, as a refusal inside `register_seams()` leaves the profile. The docstring says why openxFactory makes the call itself (it registers with openDox alone), and why its order differs from `openxdox.domain_profile.register()`'s. `tests/domain_profile/test_host_registers_openxdox_projection.py`, 9 cases, covers registration, a fresh interpreter (nothing before the call, everything after), the order, idempotence, both refusal directions (one with openDox's entry-point defaults preinstalled and unread), the process's pre-held contributions, and a mutation. Three planted breaks are each caught: the line removed fails 5 cases, moved before the profile 4, and moved after the seams 2. | HOST, HOST_TESTS |
| `47e47c69` | Items C2 and C3 of #1213: the host line's import puts `projection_contributions.py` in the render unit's by-name imports, so the lane's `RENDER_LEG_MODULES` and the seal test's `RENDER_UNIT_IMPORTS` gain it. The seal carries a leg's whole `src/`, so no sealed artifact changes. | ADMITTED_ARC_EDITS (both paths) |
| `4859bfa5` | Item C1 of #1213: `test_ruling_q7_two_direct_upstreams_in_lockstep`'s snapshot literal moves `663ac683` → `d5098297`, as its comment says it does on every bump. | ADMITTED_ARC_EDITS |
| `d6c47f4f` | **129 `created:` admissions** in `docs/opendox-carve-admissions.yaml`, pinned in `tests/carve_arrival` by path, `since` and count, as T047's 37 are. They cover every file a leg added since its last pin, under the destination's declared roots, that no row places. Each `since` is the leg's own squash landing (`git log --diff-filter=A`), and each path is present at the new pin. | ADMITTED_ARC_EDITS (both paths) |

The 129 admissions:

- **`openxdox_code`, 13**: #34 (T060) 1, #35 (T059) 5, #36 (T061) 7, among them `src/openxdox/projection_contributions.py` and the packaged `src/openxdox/contracts/`.
- **`opendox_code`, 80**: #53 (T050) 9, #54 (T052) 3, #56 (T051) 3, #57 (T054) 2, #58 (T057) 54, #59 (T055) 5, #66 (T056) 2, #68 (T058) 1, #70 (T055 follow-up) 1.
- **`opendox_spec`, 36**: openDox's spec leg moved with `dox-v1.1` (`8fe8c4c7` → `f7ee3c76`). 35 come from openDox-spec #16 (T053), and one is older: `docs/front-end-package-boundary.md` (#8), which the spec walk already refused at `8fe8c4c7` and no earlier bump admitted. With all 36, `verify-carve-arrival.py --destination opendox_spec --phase B` prints OK at `f7ee3c76`.
- **Derived, not run green, for the `-code` legs**, as at T047. At both new pins `--phase B` still refuses `arrival-undeclared-edit` before it reaches the created-file walk.

## Review

| Copilot at | verdict | threads | answered in |
| --- | --- | --- | --- |
| `d6c47f4f` | Changes recommended | Taking the contributions back after a refused profile emptied each seam, which does not restore an unread openDox default they had replaced. A boolean cannot tell a partly pre-existing set apart either. | `5663b4ed`: the call moves after the profile and before the host's seams, so a refused profile writes no seam and no rollback is needed. Copilot's case is a test, with the defaults preinstalled. No openXdox API change is needed. The thread is answered and resolved. |

## F11.1, on the real commits

`PACKET_MERGE=94b6f7f1… ARC_TIP=<this branch's head>` over the guard extracted from `openspec/changes/add-neutral-product-standalone-operability/tasks.md` prints:

> `requirement 1 holds: 0 note(s) annotated, every other path a declared surface (11.1)` (exit 0, over the arc's landings through `5663b4ed`: T047's `f56c87c6` and this PR's five commits)

Every path this PR touches is on a declared surface:

- PIN_PAIRS: `openDox`, `contracts/opendox-pin.yaml`, `openXdox`, `contracts/openxdox-pin.yaml`;
- HOST: `scripts/opendox_host.py`;
- HOST_TESTS: `tests/domain_profile/test_host_registers_openxdox_projection.py`;
- ADMITTED_ARC_EDITS: `scripts/ideation_dashboard/dashboard_refresh_lane.py`, `tests/ideation-dashboard/test_dashboard_source_seal.py`, `tests/openxdox_pin/test_openxdox_pin_verifier.py`, `docs/opendox-carve-admissions.yaml` and `tests/carve_arrival/test_verify_carve_arrival.py`.

The admitted list does not grow, and no manifest note is annotated here: T092's phase-2 notes go to T063, on decision (b).

## The falsifiers, at the COMMITTED pins

T047's falsifiers, with the consumer gate's suite at its floors. Each local run is the gates' own steps: both verifiers, then the pin suites, then `tests/ideation-dashboard`, then `pytest tests/ -q -m "not postgres"`. They run with Python 3.12.3, the hash-pinned lock, node 24, the pinned OpenSpec CLI 1.12.0, and `PINNED_CORE_CHECKOUT` at codexFactory `b21f0100`. Each runs in a checkout named `openxFactory`, with every gitlink at the committed pins and recursively initialized: openDox/code `047bb4fa`, openDox/spec `f7ee3c76`, openXdox/code `6a3b93b9`, openXdox/spec `f088b097`.

| run | head | verifiers | pin suites (floor 105/105/0) | `tests/ideation-dashboard` (floor 1137/1137/0) | `pytest-suite` |
| --- | --- | --- | --- | --- | --- |
| **CI** | `5663b4ed` | OK, OK, lockstep confirmed (run `37065541361`) | **105/105/0** | **1481/1481/0** | **8927 passed, 6 skipped, 0 failed**: `selected=9345 passed=9339 skipped=6 failures=0 errors=0`, margin 2295, `skipped==6` (run `37065541376`). All 12 checks pass. |
| F1 | `5663b4ed` | OK, OK | 105/105/0 | 1481/1481/0 | 8928 passed, 5 skipped, 0 failed |
| R1 (rehearsal) | the same edits before `5663b4ed`, over the candidate root `bfd0c5a2` | OK, OK | 105/105/0 | 1481/1481/0 | 8926 passed, 5 skipped, 0 failed |

- **#1213's red list is empty at the committed pins.** All three of its T064-owned items (C1-C3) pass, and so do the 187 that the host line answers.
- The consumer suite has 1481 cases, one more than #1213's 1480, because the seal's by-name-module refusal is parametrized over `RENDER_UNIT_IMPORTS`, which gained `projection_contributions.py`. The whole suite has 8933 tests (local XML) against #1213's 8923: the host-line file adds nine and the seal adds that one.
- `validate-carve-manifest.py` prints OK (456 rows), and `validate-former-id-arrival.py --base origin/main --head HEAD` passes.
- A local run skips 5 where CI skips 6, for the reason #1213 states: the work tree sits inside an aggregation checkout, so the aggregation ignore-file case runs and passes there.
- In the openXdox root, `make pins` and `make validate` exit 0 at #21's head.

## What this leaves for the aggregation

This PR does not do the opensoft/xFactory root pin-sync. When it runs, it needs:

- the root `openDox` gitlink → `d5098297a5c262f9977193305210bccb4ec51e89`;
- the root `openXdox` gitlink → `f257e021399288f430cc89cc0f23cc2cd62be9a7`;
- the root `openxFactory` gitlink → this PR's landed sha, with `.github/clearing/openxfactory/PIN.yaml` in the same commit (CLAUDE.md rule 2).

Arc: neutral-product-standalone-operability

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants