Repository navigation
Review followup for #352: the abstract cache gains a model in its key and a refresh that actually refreshes - #364
Conversation
RELANDED. This is `799b2b77` from `change/add-doxbench-distilled-abstract`, rebased onto main. That commit was pushed to the PR #352 branch hours AFTER Brett merged #352 (merge `5c547610`, 2026-08-25T16:50Z), so it went nowhere: the merge took the old head `bf00009d` only, no CI ever ran on it, and the review fixes never reached main. The branch push is the whole of the evidence that they existed. Codex review on #352 found two real holes in the abstract cache `add-doxbench-distilled-abstract` specifies, and both are in the spec delta rather than in code, so both are fixed where the obligation lives. The RE-GENERATE control the delta requires could not regenerate. A regeneration against unchanged content and an unchanged model has an IDENTICAL cache key by construction, and the cache clause required an identical key to replay without a second dispatch — so the control was inert except by the accident of eviction. The request now carries an EXPLICIT REFRESH INTENT: set, it invalidates the completed entry, dispatches, and replaces it; unset — every selection, mount and tile re-entry — it replays as before. The one-in-flight arm stays unconditional in both modes, so an impatient double-click spends one model call. A nonce in the key would also have worked and is rejected in design.md: N regenerations of one document would hold N slots in a bounded store and evict N-1 useful neighbours. The RESOLVED MODEL ID joins path and digest in the key. A human can change the selected model while the document stands still; on a two-part key that second request is identical, so the first model's prose would replay while DocumentAbstract records the model the reader just picked — an artifact lying about its own provenance, which is the exact failure mode this change exists to prevent, and which the provider boundary's every-consumer-resolves-a-catalog-model-id rule forbids besides. For an auto routing entry the key carries the RESOLVED id, not the rule's, for the same reason a turn records the model that actually answered. The verification requirement now also states that the artifact records subject path, digest and resolved model id, so the key and the recorded provenance are the same three facts. Four scenarios added; tasks 5.3a, 5.3b and the 9.3 mutations pin all of it, positive and negative halves. Copilot's second round is answered in the same pass. Two of its four items had already been fixed on main by #359's archive pass, so this reland carries only what is still owed: - Section 6 declared itself REGRESSION GUARDS, not RED-first pins, and then labelled all three items RED. They are GUARD now, and the RED-FIRST preamble declares the exception instead of contradicting it. - The stale six/five count in this proposal's Group B paragraph, which nobody had line coverage on: packet review cut the loaded-document selector (:1827) from the split change when it turned out to need code, and this paragraph still claimed FOUR of the six Group B items were modified there. It is THREE (:1853, :1705, :948), and :1827 is modified by NEITHER change — its obligation rides this change's added captioning requirement. Ruling 0's summary line and the README entry carried the same slip and are corrected with it. - The README pointed a literal grep at `ideation-dashboard/spec.md`, which is not a path this repo has. Applied to the ARCHIVED entry, which is where that sentence now lives. DROPPED as already fixed on main by #359: the split change's tasks.md intro (the archive pass wrote FIVE) and the README's "Six requirements MODIFIED whole" (the archived entry corrects it and says so in place). NOT FIXED, FLAGGED FOR BRETT: the archived `2026-08-25-ratify-doxbench-landed-context-surfaces/proposal.md` still carries `Status: draft` beside its own `Ratified:` line. The header was wrong when Copilot and Codex flagged it and it is wrong now, but it is inside an archived packet, and record-immutability is not a thing to route around with a quiet edit. The cherry-pick applied it there by rename detection and it has been reverted deliberately. Codex's stated mechanism for the finding does NOT hold either way: sync-notebooklm-books skips every path under openspec/ (scan(), line 765), so no change proposal is projected into any book at any status. openspec validate --all --strict: 77 passed, 0 failed. pytest tests/doc-health: 895 passed, 1 failed — test_derivation_ reproduces_the_real_bootstrap_clusters, which fails identically on pristine origin/main and reads only ideation/ paths this commit does not touch. Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
Pull request overview
This PR relands the bot-review followups for the add-doxbench-distilled-abstract OpenSpec change that didn’t make it onto main after #352 merged, focusing on tightening the spec text around abstract caching correctness and regeneration semantics.
Changes:
- Specify the abstract cache key as
(subject path, content digest, resolved model id)to prevent cross-model replay and provenance mismatches. - Specify an explicit “refresh intent” mode for RE-GENERATE that bypasses completed-entry replay while preserving the single in-flight-per-key attach behavior.
- Update README/OpenSpec packet narrative to reflect the split/archive disposition and the two spec fixes.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Updates the OpenSpec Records entries to reflect the split/archive accounting and the two cache/refresh spec fixes. |
| openspec/changes/add-doxbench-distilled-abstract/tasks.md | Updates implementation tasks to pin “model in key” and “explicit refresh intent” behavior, including targeted mutations. |
| openspec/changes/add-doxbench-distilled-abstract/specs/ideation-dashboard/spec.md | Updates requirements and scenarios to include resolved model id in cache key and define refresh intent semantics for RE-GENERATE. |
| openspec/changes/add-doxbench-distilled-abstract/proposal.md | Aligns the proposal text with the revised cache key and refresh intent behavior and with the split/archive status. |
| openspec/changes/add-doxbench-distilled-abstract/design.md | Updates design rationale (D5) to cover the model-in-key requirement and the explicit-refresh bypass approach. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Local verification on
(4175 rather than the 4142 I measured on Full local set on this head:
|
…esolves Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <[email protected]>
…ranch's realization `85e05ebe` (#364) amended this change's ratified artifacts while the branch was being applied, and the two sides edited design.md and tasks.md in the same places. Both sides are kept. D5 now states ONE key with BOTH dated corrections: `AbstractKey` is `(repository, ref, subject_path, content_digest, resolved_model_id)` — scope qualified per the 2026-08-25 adversarial review's S3, model qualified per the same day's packet review. They do not compete: the requirement composes the key from the three facts that vary WITHIN one scope, and the scope qualification is the store's tenancy boundary, which can only split a bucket and never merge two. `latest_for_path` stays a per-(scope, path) question across models, because the verification rule takes a previous abstract as an ADDITIONAL base and says nothing that would narrow it to one model. D5a (the abstract's own bound conversation) is unchanged and follows the new refresh-mode paragraphs. tasks.md keeps #364's 5.3a/5.3b/9.3 obligations and its §6 GUARD relabel, and keeps this branch's dated ticks and the richer §6 preamble (9.5 breaks 6.2 only; 9.5b is what 6.1's without-generation arm catches). Items #364 WIDENED beyond what is realized here are honestly re-opened: 5.3a, 5.3b, 9.3, and 7.6, whose (path, digest) half was green on 2026-08-25 and whose model-id and no-refresh halves are not yet written. openspec validate --all --strict: 77 passed, 0 failed. Co-Authored-By: Claude Fable 5 <[email protected]>
…rates (#84) `85e05ebe` (#364) closed two holes in the abstract cache where the obligation lives, in the spec delta. This realizes both, RED first, and carries the client halves neither of them could state. THE RESOLVED MODEL ID JOINS THE KEY. `AbstractKey` is five fields now — `(repository, ref, subject_path, content_digest, resolved_model_id)`: scope qualified by the 2026-08-25 adversarial review's S3, model qualified by the same day's packet review. They do not compete, and D5 says so with both dates: the requirement composes the key from the three facts that vary WITHIN one scope, and the scope qualification is the store's tenancy boundary, which can only split a bucket and never merge two. The route resolves through `doxbench_selected_model` — the one function the chat wire record and the thread sidecar already read — ONCE, and both keys and RECORDS by that value, so the key and the artifact's provenance are the same three facts and an `auto` entry keys on the model that answered rather than on the rule. `latest_for_path` stays a per-(scope, path) question ACROSS models, because the verification rule takes a previous abstract as an ADDITIONAL base and says nothing that narrows it to one model. THE REQUEST CARRIES AN EXPLICIT REFRESH INTENT: one OPTIONAL boolean `refresh` inside the same CLOSED shape, so an unknown key is still refused and `1` / `"true"` are MALFORMED rather than truthy. Set, `reserve` invalidates the completed entry, takes the in-flight slot and dispatches, and the answer replaces the entry; unset — every selection, mount and tile re-entry — it replays exactly as before. The one-in-flight arm is UNCONDITIONAL: a caller that WAITED replays the holder's answer even having asked for a refresh, so an impatient double-click spends one model call. And the invalidated `DocumentAbstract` rides back on the lease as that generation's PREVIOUS verification base — the rule makes a previous abstract an additional base "where one exists" and RE-GENERATE is the one path where one always does, so invalidating it out of the replay index and out of the verifier's reach in the same breath would have verified the regenerate path against a strictly weaker base than every other path. THE CLIENT HALVES, which #364 could not state because they are code. The browser's session cache is keyed by the model too: a page replaying its own cached prose after a model switch never asks the server at all, so the server's correct key is never consulted and the reader gets one model's prose under another model's name. It keys on the REQUESTED id — the only one it can know before asking — while the entry still carries the RESOLVED id the answer echoed; where NO model is selectable at all (ruling 7.7's ungated console) the lookup falls back to this document's most recent answer under any model, because "any already-generated abstract SHALL remain readable" outranks a qualification with nothing to disambiguate. The rail's model choice now REPAINTS the docs region, without which the DOM kept the previous model's prose under the model-derived caption. And the RE-GENERATE control is the one place a refresh intent is issued; GENERATE, the mount, a notch and a re-entry issue none. RED then GREEN, per pin: the store's model-in-key and five-field shape; replay unchanged with no intent; refresh invalidates and dispatches; the invalidated abstract on the lease; the byte total returned to the bound; two attach-and-wait pins. At the route: same bytes under a different model dispatch twice and each records its own model; a switch never replays the first model's prose; an `auto` entry and its resolved model are ONE key; the key read back off the served process; refresh dispatches again on unchanged bytes and the entry is REPLACED; no intent replays byte-identically; the shape stays closed; a mid-flight refresh spends one call. In the pane: the RE-GENERATE control's intent and the closed four-key body; a re-entry is not a refresh; a model switch shows not-yet-generated and hides the other model's prose; switching back replays with no new request. 9.3 — SEVEN mutants, all caught, all reverted, md5 verified clean: key on path and digest alone (4 fail); drop the model (the three 5.3a route pins); key on the REQUESTED id (the routing-rule pin and the key readback, and only those, which is the discrimination that clause is for); refresh a no-op (3 store pins + the route pin); refresh skipping the in-flight arm (both attach pins + the one-call pin); the client key dropping the model (2 pane pins); RE-GENERATE issuing no intent (1 pane pin). Plus the chat `TurnStore` shared as one instance — 5.4's churn pin and the own-store pin fail — and a shared records dict, which fails `test_two_stores_share_no_state`. STATED ADJUSTMENT, second instance under task 7.8: the rail's `onState` grew by ten lines, and `selectBuffer:` fell off the far edge of a flat 5000-character window at `test_doxbench_tile_verbs.py:747` — a pin whose claim was perfectly intact. Re-anchored at BOTH ends, exactly as the sibling pin in the same file was re-anchored by this change; teeth re-proved by renaming the seam inside the call. realization-evidence.md's recipe gains the `refresh` field, a step 7 that presses re-generate on the unchanged document, and a note on switching model mid-run — the half of the key a single-model install never exercises. pytest tests/ideation-dashboard: 4442 passed, 13 skipped (12:00). openspec validate --all --strict: 77 passed, 0 failed. Co-Authored-By: Claude Fable 5 <[email protected]>
…e first model's abstract (#84) Final polish after the #364 catch-up review (READY; one SHOULD-FIX). Putting the resolved model id in the cache key made a model switch dispatch instead of replaying — correct — but the verifier's "previous abstract is an additional base" then compared model B's FIRST answer against model A's abstract and refused it as a regeneration that dropped coverage. RULED: the tightening base is a predecessor of the same (scope, path, MODEL) question. latest_for_path gains an optional resolved_model_id filter (the model-agnostic lookup stays the reader-facing default); the route passes the model; RED was `previous-coverage-dropped` on model-b's first answer, GREEN is 200 with model-b's own prose. Two guard pins prove the base was narrowed, not thrown away: a same-model regeneration after a saved edit, and a same-model RE-GENERATE, that drop coverage are still refused (the fixture subject gains a second declared topic so the clause is decidable). The spec delta's key sentence — tightened by #364 to a closed three-part list — now says what is built: path, digest and resolved model id, QUALIFIED BY the request's scope, so no key is shared across scopes (design D5 carries both dates and why the two corrections compose). D5 also records the consequences the review named: a refused RE-GENERATE forfeits the previous base (cache, not record); during a refresh window a same-key request attaches rather than replays; the model dimension multiplies slot pressure on both 64-entry bounds; latest_for_path picks by last access and replay touches recency. NITs: teardownRail repaints the abstract session like the onState path (pinned at source); the mid-flight refresh test handshakes on an Event set inside the store's wait instead of a 0.5 s join; the tile-verbs window comment discloses its 7399-vs-5000 widening; tasks.md 10.1/10.2 counts updated and a duplicated 5.3b sentence removed. Five suites 214; ideation-dashboard 4447 passed / 13 skipped; validate --all --strict 77/77. Co-Authored-By: Claude Fable 5 <[email protected]>
…, session-only, verified before it renders (#84) (#365) * doxBench: the snapshot is indifferent to in-session abstract generation, and says so in five guards (#84) Section 6 of add-doxbench-distilled-abstract. Ruling 2(b) keeps the distilled abstract session-local, so these five tests are REGRESSION GUARDS that pass on their first run — that is the point, and tasks.md says so. Their teeth are proven by mutation 9.5 (a document object that carries an abstract key must break 6.1 and 6.2), which runs in the mutation round. 6.1 byte-identical snapshot with and without an in-session dispatch through the real _workbench_model_port seam; 6.2 no documents[] key in {abstract, distilled, distillation, model_abstract, generated_abstract} and no value embedding the dispatched sentinel; 6.3 port absent / factory raising / dispatch raising or timing out (scripted clock) → snapshot bytes and nightly_lane.run_lane unchanged, nothing raises. Hermetic: FakeWorkbenchModelPort and tmp_path trees only. §1 gate ticked in the same commit (A archived, intake fold verified per #351, validate 78/78). Co-Authored-By: Claude Fable 5 <[email protected]> * doxBench: DocumentAbstract is non-authoritative by construction, and its verifier is named for what it checks (#84) Section 4 of add-doxbench-distilled-abstract, in doxbench_knowledge.py as a sibling layer-2-class artifact — layer 2's owner stays doxbench_threads.compact_thread and assert_fidelity(2, lossless) still refuses (4.6 pinned). The type refuses at construction any authority other than non_authoritative and any regenerable_from other than the document, mirroring DocumentThread. The verifier, verify_document_abstract, is a SUBJECT-MENTION COVERAGE check and says so in code: dispatch_turn hands back one opaque string (doxbench_model.py:985), so this cannot be fidelity. Its base is the snapshot's declared topics + destinations, so it fires on generation #1 with no previous abstract; a previous abstract is an additional base. It refuses an empty answer, a subject with no declared base, a repository path absent from the request, an answer that never names the subject, and lost coverage. A refusal is a returned AbstractRefused with code + reason and NO renderable field — refused bytes never leave the verifier. No clock anywhere: generation is a monotonic sequence, pinned. The default fake port's constant answer is refused (N5). Five caption states and ruling 5's wording are exported for the route and renderer. RED for every pin was the missing attribute; 49 new tests, 191 across the knowledge/packet suites, 391 in the regression sweep. Co-Authored-By: Claude Fable 5 <[email protected]> * doxBench: the entrypoint declares a real model port, once per process, and omp is hermetically unreachable (#84) Section 2 of add-doxbench-distilled-abstract — the part nothing else is visible without. Until now NO entrypoint declared model_port_factory (cli.py omitted it; serve()'s setdefault block never set it), so every real serve resolved None and the whole model seam was a posture. doxbench_install.py is the install-time declaration: HARNESS_CATALOG (one available omp-local entry), LaunchConfig(command="omp", provider_id= "local-proxy"), session_root beside the run dir (new --model-session-root flag), and a zero-argument model_port_factory that closes over ONE process-lifetime OmpHarnessBridge — two resolutions return the same object (identity pinned) and no child starts until a turn needs one. Declared at cli.py's build_server call beside adapter_factory and knowledge_declaration; serve() gets the same as the standalone secondary path. The four absence pins in test_doxbench_request_handling.py pass unchanged because they inject into build_server directly. RED 2.1 was `assert None is not None` from the entrypoint-built server; GREEN discloses one available catalog entry with zero spawns. omp joins GUARDED_BINARIES; the shim refuses it (exit 97); the refusal MARKER is generalized to XF-HERMETIC with a per-binary requirement table, so an omp refusal no longer cites the NotebookLM FR-043 (pinned). The two stale "no code below calls it" statements in serve.py are corrected — the dispatch call site has existed at _deadline_bound_dispatch since T051. Suites: entrypoint+hermeticity 34; bridge/request/routes 281 (8 live skips); notebooklm 129; ideation-dashboard 4063 passed / 13 skipped. Co-Authored-By: Claude Fable 5 <[email protected]> * doxBench: the abstract has its own envelope — one subject, no packet, no transcript, one bound (#84) Section 3 of add-doxbench-distilled-abstract. build_prompt_envelope is chat-shaped by construction (it requires an outline buffer and at least one document buffer, and forcing a subject through it discloses an outline buffer AND a context packet — pinned as the 3.1 barrier), so the abstract gets build_abstract_envelope beside it: a frozen AbstractEnvelope whose section keys are zipped from ABSTRACT_SECTION_ORDER (strict) so the order constant cannot drift, whose rendered() bytes are byte-identical for identical construction input, and which carries EXACTLY one subject section — the served saved bytes inside an explicit fence the instruction text marks as DATA — with no layer-1 packet, no second buffer, no transcript. A ContextPacket of any purpose handed to it is refused (AbstractPacketRefusedError); no new PACKET_PURPOSE_* constant, because the request carries no packet and the constant would be dead code. MAX_ABSTRACT_PROSE_BYTES = 1500 (the region is a measured 280px box) and validate_abstract_prose REFUSES an over-long answer as TurnLimitError(abstract_prose_bytes) — never truncates into the region. The prompt tells the model to name the subject by path or title and no other repository path, which is exactly what the verifier checks. Injection posture stated honestly in a comment: the fence is a label; the defense is the single-subject rule plus the verifier. +376 lines, purely additive. RED was the missing import; 53 new tests; mutations neutering the packet check (7 fail), truncating instead of refusing (4 fail), adding a transcript section (2 fail) all caught. 322 across envelope/turns/packet; 662 across every importer of doxbench_turns. Co-Authored-By: Claude Fable 5 <[email protected]> * doxBench: the captioning pin moves onto the abstract model, and the tablist's keys are finally pinned (#84) Sections 8.1/8.3/8.4 and task 2.5 of add-doxbench-distilled-abstract. The old guard swept the whole of staging-workbench.js for "distilled" — a spelling test on source text, and one that would go red the moment a ruled caption containing "Distilled" ships. It is RELOCATED, not deleted: the relocated pin reads documentAbstract()'s output through the node harness and asserts the deterministic abstract's caption field equals ruling 5's text once that field exists (TODO(§7.8) removes the fallback); until then it asserts the same invariant over every string in the model (closing the old sweep's "distilled"-but-not-"distillation" gap). The half of the guard that stays true forever — the deterministic abstract is never captioned as a distillation — is its own unconditional test. The module docstring RECORDS the 2026-08-03 ruling and the 2026-08-25 reversal in part, rather than erasing either; the operator-rig note stands. Handed over from the archived ratification change (its §2.7): the lens tablist's arrows/Home/End reachability now has a BEHAVIOURAL pin — real keydown events dispatched on the tablist node in a mounted workbench, asserting roving tabIndex, aria-selected, preventDefault on the four navigation keys only, and that document.activeElement follows selection (the APG requirement the role-only check never proved). Harness shim gaps (createElementNS, style.setProperty) patched in this file only. The stale "ABOVE the always-present matrix" comment at staging-workbench.js:508 is corrected (comment only); the stale wheel-is-deferred docstring is rewritten, and test_the_deferred_wheel_is_recorded_where_the_selector_stands — green only by accident — is deleted as fully redundant with test_doc_wheel.py's mounts-the-wheel and deferral-note-is-gone pins. panes + doc_wheel + renderer: 89 passed. Co-Authored-By: Claude Fable 5 <[email protected]> * doxBench: one route generates the abstract behind the same verdict as a turn, and caches it apart from chat (#84) Section 5 of add-doxbench-distilled-abstract. POST /actions/workbench/document-abstract sits beside the chat-turn route and behind the SAME three-part verdict (loopback human console, real checkout, resolved actor; gate capability for generation; the hosted plane refuses). The request is a CLOSED shape — scope, subject_path, model_id — so a smuggled buffer, packet or message is refused, not ignored. The subject bytes are the SERVED SAVED CONTENT; the server computes the digest and cross-checks it into the envelope. Eligibility is ruling 7(a): a subject outside projection.editable_paths is refused with a stated reason and reaches no provider (mutation: widening to context_paths made the provider answer come back — caught by 5.2). A subject whose snapshot declares neither topics nor destinations is refused before dispatch as subject-not-distillable, because the verifier would have nothing to check against. After dispatch the answer passes validate_abstract_prose (over-long is refused, never trimmed) and verify_document_abstract; a refusal is a fixed seven-key body with NO prose (mutation: leaking prose onto a refusal fails four tests). Success echoes subject_path and subject_digest, the caption state from the abstract itself, the store's generation counter, and wait_bound_seconds = the adapter's own timeout — never the 120s ceiling (pinned). AbstractStore (doxbench_abstract_store.py) is SEPARATE from the chat TurnStore (N1): keyed (subject_path, content_digest), 64 entries / 1 MiB, one in-flight per key with attach-and-wait, identical-key replay without a second dispatch, a changed digest is a new key not a conflict, counter-ordered eviction, and abstract churn over a 200-document scope leaves the chat store's idempotency records untouched (5.4 asserts against its contents). Refusals release the key so re-generate can retry unchanged content. Also: the closed DOXBENCH_ERROR_CATALOG pin widened by name for the two new codes (its recorded idiom); the live-smoke harness discovery ignores a which() result that is the hermeticity shim; serve.py's "catalog-only core" paragraph corrected; doxbench_install hoisted to module scope (import graph verified acyclic). RED was the missing module, then the missing route constant; 42 route + 22 store tests; the six-suite set 460 passed / 8 live skips. Co-Authored-By: Claude Fable 5 <[email protected]> * doxBench: the docs pane shows a distilled abstract only when a human asks, and names what it shows (#84) Section 7 and task 8.2 of add-doxbench-distilled-abstract — the browser half. staging-workbench-model.js (still pure, import-free, fetch-free) gains the five ruled captions — asserted EQUAL to doxbench_knowledge.RULED_CAPTIONS through the tests, since the JS cannot import them — and abstractRegionState, a pure formatter from (subject, view, plane, capability, generated, currentDigest, inFlight, waitBound, refusal, dirty) to one frozen render state. documentAbstract() now carries caption = the deterministic ruled sentence, which closes the two-phase pin left by 8.1. staging-workbench.js: generation is an EXPLICIT control on the centred tile — spinning the wheel across N documents dispatches nothing (7.1 pinned against onSelect per notch and at mount). A response paints only if its token is still live AND its echoed subject_path is the current subject; otherwise it is discarded unrendered and not cached (7.2). The in-flight state is cancellable and states its wait from the adapter's own wait_bound_seconds as learned from the latest response — never the 120 ceiling, and no number before one is known (7.3). The request body is the closed {scope, subject_path, model_id} — no buffer text ever leaves the browser, and a dirty loaded subject is captioned as describing the saved version (7.4). ONE region, one state at a time, deterministic opens, 280px budget intact (7.5); the abstract survives leaving and re-entering the tile in a bounded session keyed (path, digest), no clock (7.6); a digest that moved is shown LABELLED STALE with a 12-char source prefix — never discarded, never silently refreshed (7.6a/b, unloaded vs loaded pinned separately); with no gate capability the control is absent and a cached abstract stays readable; the hosted plane shows the hosted-plane caption (7.7). The region's accessible name is `title — ruled caption`, recomputed per render, so the five states have five distinct names and none is "selected document" (7.10; the static label at :250 is gone). N2: no promotion affordance, one comment marks where a future "propose as Summary:" verb would attach. app.js: the ONE fetch call site for /actions/workbench/document-abstract; both count pins (test_renderer.py :152 and test_doxbench_transport.py :172) widened 5 → 6 by name. Two source-window pins re-anchored on the code they meant (tile_verbs, staging_workbench). styles.css: eight compact rules for the swb-abstract* controls. RED: 3 failed / 25 errors on the missing export; the caption-field and transport pins each failed on the old value. 29 new pins; the eight-file suite 442; whole ideation-dashboard 4390 passed / 13 skipped. Co-Authored-By: Claude Fable 5 <[email protected]> * doxBench: eleven mutants, two survivors pinned, and the realization recipe the operator run needs (#84) Sections 9 and 10.1/10.2/10.4 of add-doxbench-distilled-abstract, plus the §10.3 recipe (the run itself is Brett's) and the §11 renumber. Mutation round, each mutant applied to the real file and reverted: the three verifier refusals inverted (4/6/8 named failures); generation fired from the wheel's onSelect (7.1 red, 13 failures); the store keyed on path alone (5.3); the abstract cache sharing the chat TurnStore (5.4); eligibility widened to context_paths (5.2); a fourth port member (test_doxbench_model :522/:444); a constant abstract emitted into a document object (6.2). TWO SURVIVED, and each exposed a pin that asserted less than it claimed: removing the subject-recheck at paint left 7.2 green because painting the current subject is not evidence of a discard — the pin now asserts the late answer never entered the cache; and a session-derived document field survived all five §6 guards because 6.1's "without generation" arm was the same post-dispatch call as its "with" arm — it now takes a genuine pre-dispatch reading. Both pins RED against their mutant, GREEN on real code. The §6 prose (tasks preamble and module docstrings) claimed 9.5 breaks 6.1 AND 6.2; a constant emission is byte-identical in both arms by construction and can only break 6.2 — the claim is corrected to what was measured, naming both mutants. named_repository_paths is now a public alias in doxbench_knowledge; serve.py no longer reaches a private name across modules. Gates: ideation-dashboard 4390 passed / 13 skipped; validate --all --strict 78/78; .openspec.yaml byte-identical to its ratified state. Whole-repo gate: 6416 passed with two PRE-EXISTING failures unrelated to this branch (doc-health bootstrap-cluster drift; hermes release-inventory merge-base in a worktree) — CI on the PR is the authority. realization-evidence.md: PENDING — the recipe for ONE operator run through the real omp bridge (entrypoint, provider profile, subject selection, POST body, pass criterion, record template). A green suite against the fake closes nothing. §11: specs/014 is taken on main (014-register-and-reader); the Speckit slot renumbers to specs/015-doxbench-distilled-abstract. Co-Authored-By: Claude Fable 5 <[email protected]> * doxBench: the abstract binds its own harness conversation — it was dispatching into the chat's (#84) Adversarial-review fix round for add-doxbench-distilled-abstract. BLOCKER. The route handed the raw port to dispatch. OmpHarnessBridge refuses an unbound dispatch on a fresh process (BridgeSessionConflict → model_failed: the shipped adapter could never generate a first abstract) and after any chat turn silently REUSES the last-selected session — the abstract prompt entered the chat document's harness session, violating canon's one-session-per-thread rule (:2026) and falsifying the envelope's own "you have no other material" contract. FakeWorkbenchModelPort has no for_conversation, so 42 route tests never saw it. Fixed the way the chat route does it: bind before dispatch, refuse if binding raises, never dispatch unbound — under the abstract's OWN key, doxbench_abstract_conversation_key = JSON ["doxbench-abstract", repository, ref, tile_kind, tile_id, subject_path], a kind no document thread or outline can spell, so an abstract neither borrows nor pollutes a chat session. Proven against the REAL bridge over fixtures/fake_omp_child.py: a fresh process's first generation returns 200 with the abstract session selected; after a chat turn on the same document the two sessions are distinct. Mutating back to the raw port fails exactly the three B1 pins; a bind failure that failed to release the store key makes the next request attach-and-hang — pinned. Also from the review: request_paths is intersected with the reader's own disclosure set (editable ∪ context paths) so a document cannot pre-authorize a name outside what the reader may see; AbstractKey is scope-qualified (repository, ref) and latest_for_path is keyword-only, so one repository's abstract is never another's previous base; MAX_ABSTRACT_PROSE_BYTES == 1500 is pinned absolutely to the 280px budget (1500→2000 now fails exactly one test — it survived every pin before); DocumentAbstract carries review = "unreviewed" and fidelity = lossy-by-design as frozen single-value fields, and declares none of layer 2's commitment obligations (all pinned; the "no public name says fidelity" guard is narrowed to callables so the ruled fidelity WORD may be carried); the readable-not-editable pin asserts its precondition against the real projection; the dirty-buffer caption has a mounted pin through the real canvas (ctx.dirtyFor→false fails only it); the client scopeKey is JSON-composed (a join collision pair pinned); a served process with no abstract store refuses abstract_unavailable rather than dispatching. "The no-new-analysis clause is read against the bullseye" is reviewed-not-pinned: its decidable half is the §6 byte-identity suite. design.md D5 corrected to the scope-qualified key with a dated note; new D5a records the conversation binding and its cost (one harness session per (scope, document) abstract). Eleven suites 743; ideation-dashboard 4412 passed / 13 skipped (+22 pins); validate --all --strict 78/78. Co-Authored-By: Claude Fable 5 <[email protected]> * doxBench: a bind that answers None is refused, not dereferenced (#84) Re-review NITs on add-doxbench-distilled-abstract. An adapter whose for_conversation returned None (rather than raising) reached _deadline_bound_dispatch as None and died on port.timeout_seconds — a dropped connection with no verdict. It is now the same fixed model_failed refusal as a raising bind, the store key released by the same finally; pinned with a None-returning port and a second request that must not hang. The S2 "outside the disclosure set" pin now asserts its precondition against the real projection, matching its readable-not-editable sibling. tasks.md 9.5 count corrected (the raw-port mutant fails four pins, not three). abstract-route + routes: 221 passed. Co-Authored-By: Claude Fable 5 <[email protected]> * The model that answered is in the key, and RE-GENERATE finally regenerates (#84) `85e05ebe` (#364) closed two holes in the abstract cache where the obligation lives, in the spec delta. This realizes both, RED first, and carries the client halves neither of them could state. THE RESOLVED MODEL ID JOINS THE KEY. `AbstractKey` is five fields now — `(repository, ref, subject_path, content_digest, resolved_model_id)`: scope qualified by the 2026-08-25 adversarial review's S3, model qualified by the same day's packet review. They do not compete, and D5 says so with both dates: the requirement composes the key from the three facts that vary WITHIN one scope, and the scope qualification is the store's tenancy boundary, which can only split a bucket and never merge two. The route resolves through `doxbench_selected_model` — the one function the chat wire record and the thread sidecar already read — ONCE, and both keys and RECORDS by that value, so the key and the artifact's provenance are the same three facts and an `auto` entry keys on the model that answered rather than on the rule. `latest_for_path` stays a per-(scope, path) question ACROSS models, because the verification rule takes a previous abstract as an ADDITIONAL base and says nothing that narrows it to one model. THE REQUEST CARRIES AN EXPLICIT REFRESH INTENT: one OPTIONAL boolean `refresh` inside the same CLOSED shape, so an unknown key is still refused and `1` / `"true"` are MALFORMED rather than truthy. Set, `reserve` invalidates the completed entry, takes the in-flight slot and dispatches, and the answer replaces the entry; unset — every selection, mount and tile re-entry — it replays exactly as before. The one-in-flight arm is UNCONDITIONAL: a caller that WAITED replays the holder's answer even having asked for a refresh, so an impatient double-click spends one model call. And the invalidated `DocumentAbstract` rides back on the lease as that generation's PREVIOUS verification base — the rule makes a previous abstract an additional base "where one exists" and RE-GENERATE is the one path where one always does, so invalidating it out of the replay index and out of the verifier's reach in the same breath would have verified the regenerate path against a strictly weaker base than every other path. THE CLIENT HALVES, which #364 could not state because they are code. The browser's session cache is keyed by the model too: a page replaying its own cached prose after a model switch never asks the server at all, so the server's correct key is never consulted and the reader gets one model's prose under another model's name. It keys on the REQUESTED id — the only one it can know before asking — while the entry still carries the RESOLVED id the answer echoed; where NO model is selectable at all (ruling 7.7's ungated console) the lookup falls back to this document's most recent answer under any model, because "any already-generated abstract SHALL remain readable" outranks a qualification with nothing to disambiguate. The rail's model choice now REPAINTS the docs region, without which the DOM kept the previous model's prose under the model-derived caption. And the RE-GENERATE control is the one place a refresh intent is issued; GENERATE, the mount, a notch and a re-entry issue none. RED then GREEN, per pin: the store's model-in-key and five-field shape; replay unchanged with no intent; refresh invalidates and dispatches; the invalidated abstract on the lease; the byte total returned to the bound; two attach-and-wait pins. At the route: same bytes under a different model dispatch twice and each records its own model; a switch never replays the first model's prose; an `auto` entry and its resolved model are ONE key; the key read back off the served process; refresh dispatches again on unchanged bytes and the entry is REPLACED; no intent replays byte-identically; the shape stays closed; a mid-flight refresh spends one call. In the pane: the RE-GENERATE control's intent and the closed four-key body; a re-entry is not a refresh; a model switch shows not-yet-generated and hides the other model's prose; switching back replays with no new request. 9.3 — SEVEN mutants, all caught, all reverted, md5 verified clean: key on path and digest alone (4 fail); drop the model (the three 5.3a route pins); key on the REQUESTED id (the routing-rule pin and the key readback, and only those, which is the discrimination that clause is for); refresh a no-op (3 store pins + the route pin); refresh skipping the in-flight arm (both attach pins + the one-call pin); the client key dropping the model (2 pane pins); RE-GENERATE issuing no intent (1 pane pin). Plus the chat `TurnStore` shared as one instance — 5.4's churn pin and the own-store pin fail — and a shared records dict, which fails `test_two_stores_share_no_state`. STATED ADJUSTMENT, second instance under task 7.8: the rail's `onState` grew by ten lines, and `selectBuffer:` fell off the far edge of a flat 5000-character window at `test_doxbench_tile_verbs.py:747` — a pin whose claim was perfectly intact. Re-anchored at BOTH ends, exactly as the sibling pin in the same file was re-anchored by this change; teeth re-proved by renaming the seam inside the call. realization-evidence.md's recipe gains the `refresh` field, a step 7 that presses re-generate on the unchanged document, and a note on switching model mid-run — the half of the key a single-model install never exercises. pytest tests/ideation-dashboard: 4442 passed, 13 skipped (12:00). openspec validate --all --strict: 77 passed, 0 failed. Co-Authored-By: Claude Fable 5 <[email protected]> * doxBench: a first generation under a second model is not judged by the first model's abstract (#84) Final polish after the #364 catch-up review (READY; one SHOULD-FIX). Putting the resolved model id in the cache key made a model switch dispatch instead of replaying — correct — but the verifier's "previous abstract is an additional base" then compared model B's FIRST answer against model A's abstract and refused it as a regeneration that dropped coverage. RULED: the tightening base is a predecessor of the same (scope, path, MODEL) question. latest_for_path gains an optional resolved_model_id filter (the model-agnostic lookup stays the reader-facing default); the route passes the model; RED was `previous-coverage-dropped` on model-b's first answer, GREEN is 200 with model-b's own prose. Two guard pins prove the base was narrowed, not thrown away: a same-model regeneration after a saved edit, and a same-model RE-GENERATE, that drop coverage are still refused (the fixture subject gains a second declared topic so the clause is decidable). The spec delta's key sentence — tightened by #364 to a closed three-part list — now says what is built: path, digest and resolved model id, QUALIFIED BY the request's scope, so no key is shared across scopes (design D5 carries both dates and why the two corrections compose). D5 also records the consequences the review named: a refused RE-GENERATE forfeits the previous base (cache, not record); during a refresh window a same-key request attaches rather than replays; the model dimension multiplies slot pressure on both 64-entry bounds; latest_for_path picks by last access and replay touches recency. NITs: teardownRail repaints the abstract session like the onState path (pinned at source); the mid-flight refresh test handshakes on an Event set inside the store's wait instead of a 0.5 s join; the tile-verbs window comment discloses its 7399-vs-5000 widening; tasks.md 10.1/10.2 counts updated and a duplicated 5.3b sentence removed. Five suites 214; ideation-dashboard 4447 passed / 13 skipped; validate --all --strict 77/77. Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: brettheap <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
What this is
The bot-review fixes for #352, relanded. They were authored as
799b2b77onchange/add-doxbench-distilled-abstractand pushed there — but #352 had already been merged (merge5c547610, 2026-08-25T16:50Z, taking headbf00009d), so the push landed on a closed PR's branch, no CI ever ran on it, and none of it reached main.git merge-base --is-ancestor 799b2b77 origin/mainfails. This PR is that commit rebased onto main, minus what main had already fixed in the meantime.Doc-only:
README.mdplusadd-doxbench-distilled-abstractpacket material. No runtime code, no contract version, no tag.The two substantive fixes (Codex on #352)
Both findings were about the spec delta text, so both are fixed where the obligation lives rather than in code.
The RE-GENERATE control could not regenerate. The invocation requirement offers a RE-GENERATE control against the subject's current digest; the cache requirement made an identical key replay without a second dispatch. Same subject, same digest, same model → identical key → the control was inert except by the accident of eviction. The delta now specifies an explicit refresh intent: unset (every selection, mount, tile re-entry) it replays; set — which only the human control does — it invalidates the completed entry, dispatches, and replaces it. The one-in-flight arm is unconditional in both modes, so an impatient double-click spends one model call. A nonce in the key is recorded as rejected in
design.mdD5: N regenerations of one document would hold N slots in a bounded store and evict N-1 useful neighbours.The selected model was missing from the cache key. Now
(subject path, content digest, resolved model id)everywhere it was quoted. A human can change the selected model while the document stands still; on a two-part key that request is identical, so the first model's prose would replay whileDocumentAbstractrecords the model the reader just picked — an artifact lying about its own provenance, which the provider boundary's every-consumer-resolves-a-catalog-model-id rule forbids besides. For anautorouting entry the key carries the resolved id, not the rule's, for the same reason a turn records the model that actually answered. The verification requirement now also states the artifact records path, digest and resolved model id, so the key and the recorded provenance are the same three facts.Four scenarios added. Pinned by new tasks 5.3a / 5.3b and four new 9.3 mutations, each of which must fail a named test.
Copilot round 2 — carried, dropped, or flagged
Main moved between #352's merge and this branch: #359 archived
ratify-doxbench-landed-context-surfacesand fixed two of these on the way past. Per-hunk disposition:ideation-dashboard/spec.md, not a real path:1827modified by neither changetasks.mdsaid "six MODIFIED requirements"proposal.mdstill carriesStatus: draftbeside itsRatified:lineopenspec/changes/archive/2026-08-25-ratify-doxbench-landed-context-surfaces/proposal.md:4still readsStatus: draft, directly above its ownRatified: Brett, 2026-08-25line, and the README calls the packet ratified. It was wrong when both bots flagged it and it is wrong now — but it is inside an archived packet, and record-immutability is not something to route around with a quiet edit. The cherry-pick applied the fix there by rename detection; I reverted it deliberately.git diff origin/main -- openspec/changes/archive/is empty on this branch.Brett's call on whether that gets a corrective edit, a re-issued record, or a disposition.
Worth recording either way: Codex's stated mechanism for that finding does not hold. It claimed the header would send the proposal to Working Drafts instead of Canon during notebook sync.
scripts/sync-notebooklm-books.pynever sees the file —scan()skips every path underopenspec/:(line 765). The only
openspec/material that reaches a book is the promoted-spec pass, which globsopenspec/specs/*/spec.mdand titles them[spec]regardless of any header. No change proposal is projected into any book at any status;doc-health --family notebook-projection-driftreports no findings. The finding is real on lifecycle-consistency grounds — which is what Copilot raised it on — and not on projection grounds.Verification
openspec validate add-doxbench-distilled-abstract --strictopenspec validate --all --strictpytest tests/ideation-dashboard/ -qpytest tests/doc-health -qdoc-health --single-repo .lifecycle familiesThe
tests/doc-healthfailure istest_ideation_readiness.py::test_derivation_reproduces_the_real_bootstrap_clusters. Not from this branch: stashing the staged changes and re-running it against pristineorigin/mainreproduces the identical failure. It readsideation/brainstorm/andideation/staging/, which this PR does not touch. Wants separate triage.Refs #352,
799b2b77, #359.