Repository navigation
Disposition doxchat-auto-fit-routing: all six, and two of its own recommendations corrected - #296
Conversation
…ommendations corrected Architect adjudications on verified evidence, anchored in Brett's rulings where they turn on one — his intake-lane OQ-3 test and his arm-and-reconfirm Send ruling for Q4, and the 2026-08-21 rule-5' direction the whole topic quotes. Two recommendations were falsified by recon and are corrected in place with dated notes rather than quietly rewritten. Q1 said the fit decision belongs "at the point where precondition 7 already revalidates". It does not: the packet does not exist at step 7. The route runs 5 scope, 6 identity, 7 model and limits, 8 idempotency, 9 dispatch — and assembly happens inside step 9 at serve.py:2926, using step 7's limits. The route still decides, but at the assembly point, pre-dispatch. Two enabling facts came with it: the route's error string is free-form rather than an enum, so a no-fit code costs no contract act, and dispatch_turn's four closed codes stay untouched. Conflict item 3 resolves the way it guessed, though not where. Q5's (c) was reframed by a finding worth more than the disposition it serves: trim-to-fit ALREADY happens silently under posture full. serve.py:2935-2956 fits the packet to the selected model's budget and says so in its own comment, bounds_rail performs the trim, and dropped_evidence is a dataclass field that reaches no released schema. So (c) invents no compression — it makes an existing undisclosed act honest, via a third reduced_reason constant on the already-released v1.40 field, at zero contract cost. That finding is added to Conflicts as its own dated entry. Three further staleness corrections: task 10.7's release is no longer "still owed" — it shipped as contract-v1.40 — and the sequencing gate this fragment waited on is CLEARED, since Phase B archived 2026-08-22. What remains is a different sequencing fact, the model-intake lane's collision with exit (b), which exit (a) avoids. The Exit now names the three sequenced changes and, as the original was careful to do, names no change ids in that section. Co-Authored-By: Claude Fable 5 <[email protected]>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ad436cf297
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| upheld — but at the ASSEMBLY POINT INSIDE STEP 9, pre-dispatch, not at | ||
| precondition 7. The sequence is: assemble (or size) the packet, filter the | ||
| rule's `routes_to` by fit, choose, then dispatch to the chosen id. The adapter |
There was a problem hiding this comment.
Route before enforcing the selected rule's input limit
When auto's declared/default model has a smaller input limit than another member of routes_to, this step-9 placement cannot reach the wider candidate: the current route computes effective_input_limit from the selected auto entry and returns request_limit_exceeded at serve.py:2677-2737, before idempotency and packet assembly. Move the candidate-limit decision ahead of that guard, or redefine the pre-assembly bound, so a request that fits another routed model is not rejected before routing runs.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Accepted as a CONSTRAINT rather than a relocation, and verified: effective_input_limit is computed at serve.py:2677 from the SELECTED entry and :2730 refuses with request_limit_exceeded before idempotency and before assembly. So a request sized for a wider routes_to member would be refused before routing could ever choose it.
The decision itself cannot move earlier — the packet genuinely does not exist before step 9's assembly at :2926, which is the ordering fact that corrected the fragment's original precondition-7 recommendation in the first place. What your finding identifies is a SECOND thing exit (b) must change: either move the candidate-limit decision ahead of that guard, or redefine the pre-assembly bound for routing entries — bounding a routed request by the union over routes_to and re-checking against the chosen model after selection.
Recorded in Q1's disposition as a named constraint on (b)'s drafting, and in the INDEX row, rather than decided here. It would otherwise have been discovered halfway through building (b).
| (c) **Compress-to-fit DISCLOSURE** — no longer what the recommendation thought | ||
| it was. Trim-to-fit ALREADY HAPPENS SILENTLY under `posture: full` (see the | ||
| Conflicts entry added the same day: `serve.py:2935-2956` fits the packet to the | ||
| selected model's budget, `bounds_rail` performs the trim, and `dropped_evidence` | ||
| reaches no wire field). So (c) does not INVENT compression — it makes an |
There was a problem hiding this comment.
Preserve actual compression work in exit (c)
When no model fits because mandatory thread context exceeds every candidate's budget, the existing trim cannot implement Claim 5: doxbench_packet.bounds_rail only removes whole retrieval-evidence sources and explicitly refuses when non-droppable threads alone exceed the bound (doxbench_packet.py:845-869). Reframing that evidence selection as the existing compress-to-fit behavior leaves the consented continue path unable to produce a fitting packet; keep the disclosure hardening, but retain a real compression step for mandatory context in exit (c).
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Accepted, and this is the better of the two — I wrote the exact conflation the module has a function to refuse.
Verified: bounds_rail drops whole lowest-ranked evidence sources and its own docstring insists "No source is ever shortened: a source is carried whole or not at all, which is what keeps this selection rather than truncation", and "if they alone exceed the bound the packet REFUSES", because threads are the session's working memory and there is nothing to drop. COMPRESSION_LAYERS (doxbench_packet.py:215) declares layer 1 selection LOSSLESS BY REFERENCE and layer 2 semantic compaction (doxbench_threads.compact_thread) LOSSY BY DESIGN, and assert_fidelity (:254) exists precisely to refuse the conflation: "selection is not lossy, semantic compaction is not lossless".
So calling the existing behaviour "trim-to-fit" and concluding "compression already happens" was wrong on the load-bearing word. The finding survives, renamed: a FIT-REDUCING act runs undisclosed — dropped_evidence still reaches no wire field — and (c) should disclose it. But (c) owes TWO things rather than one, which is exactly your point: the disclosure AND the real layer-2 compaction Claim 5 requires when mandatory threads overflow, which dropping evidence can never deliver.
Corrected in the Conflicts entry (renamed, with both limits quoted from the rail's docstring and the layer table cited), in Q5's (c), and in the INDEX row. 76d70163.
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
…abelled Both verified before changing anything, and the second is the better catch. P1a. The step-9 placement fits the PACKET, but request bytes are bounded earlier and against the SELECTED entry: effective_input_limit is computed at serve.py:2677 from the selected auto entry and :2730 refuses with request_limit_exceeded before idempotency and before assembly. So a request sized for a wider member of routes_to would be refused before routing could choose that member. This does not move the decision — the packet still does not exist before step 9 — so it is recorded as a constraint exit (b) must also discharge, by moving the candidate-limit decision ahead of that guard or redefining the pre-assembly bound for routing entries. P1b. I called the existing behaviour trim-to-fit and said compression already happens. It does not. What happens is layer-1 SELECTION: bounds_rail drops whole lowest-ranked evidence sources and its own docstring insists "No source is ever shortened... which is what keeps this selection rather than truncation", and it REFUSES when mandatory threads alone exceed the bound because threads are the session's working memory and there is nothing to drop. This module already models the distinction — COMPRESSION_LAYERS declares layer 1 lossless-by-reference and layer 2 semantic compaction lossy-by-design, and assert_fidelity exists precisely to refuse conflating them: "selection is not lossy, semantic compaction is not lossless". I wrote the exact conflation that function was written to catch. The finding survives, renamed: a fit-reducing act runs undisclosed, and (c) should disclose it. But (c) owes TWO things, not one — the disclosure AND the real layer-2 compaction Claim 5 needs when threads overflow, which dropping evidence can never deliver. Corrected in the Conflicts entry, in Q5's disposition, and in the INDEX row. Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Pull request overview
This staging-only documentation PR records six auto-fit-routing dispositions and updates the staging index; no code or contract bytes are changed.
Changes:
- Updates lifecycle and topic-index references.
- Documents routing, trim disclosure, contract, sequencing, and exit decisions.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Review summary |
|---|---|
ideation/staging/INDEX.md |
Resolve the contradictory archived/active lifecycle status. |
ideation/staging/doxchat-auto-fit-routing/doxchat-auto-fit-routing.md |
Address the unsafe model fallback, sequencing conflict, incomplete trim disclosure, and stale release wording. |
Suppressed comments (8)
ideation/staging/INDEX.md:1733
- This duplicate sequencing summary repeats the claim that only exit (b) overlaps
add-doxchat-model-intakeand that exit (a) is safe now. The intake proposal's code surface includesscripts/ideation_dashboard/doxbench_model.py, while exit (a)'s type-side catalog work also changes that file. Update this index entry to acknowledge and resolve the exit (a) overlap as well.
and been consumed. The remaining sequencing fact is different: the
`add-doxchat-model-intake` lane (ratified, unbuilt) collides with exit (b) on
`doxbench-chat.js`, `serve.py` and `doxbench_model.py`. Exit (a) touches only
the schema, the type and the validator, so it is safe to raise now.
ideation/staging/doxchat-auto-fit-routing/doxchat-auto-fit-routing.md:343
models.maxItemsis not part of$defs/model_entry: it is the rootmodelsarray bound (contracts/schemas/xfactory-workbench-model-catalog.schema.yaml:36-39), whilemodel_idis an entry property (:41-56). The Python paths differ too:ModelCatalog.__post_init__materializes the catalog and currently does not enforcemaxItems, while the entry validator deliberately skipsmodel_idbounds (N7). Describing these as the same definition/construction gate is factually wrong and could send the follow-up to the wrong layer. Please separate the root-catalog and per-entry obligations, even if the release batches them.
digest-pinned field for no behavioural gain.
Dispositioned-by: Claude Opus 5 (session, architect adjudication) · 2026-08-24
Added-by: Claude Opus 5 (session, Brett's direction) · 2026-08-21
### Q3. What is the capability vocabulary beyond byte size, and is it closed?
ideation/staging/doxchat-auto-fit-routing/doxchat-auto-fit-routing.md:278
- The schema's free-form
errorpattern does not make the runtime refusal vocabulary open:serve.py:278-453still uses the closedDOXBENCH_ERROR_CATALOG, and_refuse_turnindexes that map for the status and message. A no-fit/suspend code therefore still needs a catalog entry and its browser handling/tests; at most, adding it needs no schema enum change. Please record that runtime contract work instead of calling this zero-cost.
against a packet that has not been built.) It has the catalog and, at the
assembly point, the packet; the adapter continues to receive one already-chosen
model id and stays unchanged.
Explanation: this keeps the port at three members, keeps the adapter opaque, and
puts the decision where both of its inputs already are. The cost is that the
ideation/staging/doxchat-auto-fit-routing/doxchat-auto-fit-routing.md:270
- This places the warn/ask decision in step-9 assembly, after the existing step-8 idempotency reservation.
TurnStoreonly hasin_flight,completed, andfailed; returning an ask while retaining the reservation blocks the confirmation request, while finalizing it loses replay/ownership. The disposition needs either fit gating before reservation or an explicit pending/resume idempotency design.
Recommended answer: the ROUTE decides, before dispatch. (Corrected 2026-08-24 —
this originally said "at the point where precondition 7 already revalidates the
selected model against the catalog", and that home is WRONG on a verified
ordering fact: the packet does not exist at step 7. The route's steps are 5
ideation/staging/doxchat-auto-fit-routing/doxchat-auto-fit-routing.md:270
- The proposed sequence cannot filter candidates by fit as written: current assembly receives the selected entry's effective limit, but each
routes_tocandidate can have a different limit and fitting can drop sources/change posture. Define a candidate-independent sizing pass or a per-candidate assembly/finalization pass; otherwise the route has no well-defined fit result before choosing a model.
selected model against the catalog", and that home is WRONG on a verified
ordering fact: the packet does not exist at step 7. The route's steps are 5
ideation/staging/doxchat-auto-fit-routing/doxchat-auto-fit-routing.md:525
- The sequencing note says only exit (b) collides with
add-doxchat-model-intake, but exit (a) explicitly includes type-side catalog changes and the same$defs/model_entryconstruction gate, includingdoxbench_model.py. The intake proposal also promises a closed public catalog shape. Raising (a) first is therefore not independent; record the required ordering/rebase or amend the intake contract before declaring it safe.
which providers must be provisioned, so the two lanes meet at the point where
a new destination becomes reachable.
- **`ideation/staging/context-compression-runtime/`** — compression in the
ideation/staging/doxchat-auto-fit-routing/doxchat-auto-fit-routing.md:373
- Q4 treats the intake lane's OQ-3 as verified and settled, but its own
openspec/changes/add-doxchat-model-intake/tasks.md:5-7still leaves the OQ-3 task unchecked, despiteproposal.mdrecording the later ruling. Synchronize the task status or identify the proposal's RULED record as authoritative; otherwise the evidence cited here still presents the lane as unresolved.
as review finding N7. Each is to be DECIDED at drafting, taken or re-recorded
with reasons; the release MUST NOT silently pass them by. Batching them is
cheaper than a second cut against the same definitions.
Dispositioned-by: Claude Opus 5 (session, architect adjudication) · 2026-08-24
ideation/staging/doxchat-auto-fit-routing/doxchat-auto-fit-routing.md:425
- This redefinition does not reconcile the no-fit/consent path with the current runtime.
serve.pyinvokesbounds_railusing the requested rule's budget before candidate selection; under rule 5' the declared default is guaranteed to fit that bound, so evidence is trimmed before consent and a byte-based model-size no-fit is bypassed. The following design note also leaves whether that full-posture trim must be disclosed undecided. Specify a pre-trim fit check plus the consent/disclosure rule, or narrow Claims 3–5 to dimensions not already auto-trimmed.
Context: the claims span a catalog growth (Q3), a routing behaviour (Q1/Q2), a
human-consent surface (Q4) and a compression act (Claim 5). Task 10.7's
additive chat-turn-success release — the assembled context's `full | reduced`
posture AND ITS REASON — has SHIPPED as `contract-v1.40` (corrected 2026-08-24;
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| | [notebook-projection-identity](#notebook-projection-identity) | MODIFIED `lifecycle-notebook-projection` (declared hosting-account field + share-out roster) and MODIFIED `credential-contracts` (two-case account-custody rule: company service account normal case, personal hosting the other legitimate case) | 1 | Registered 2026-08-15 — origin is Brett hitting a live "request access" wall on the personal-Gmail-hosted NotebookLM projection, the same disease as the just-retired openXdox personal PAT; 6 claims settled (company account is the normal case, hosting is a declared install-time intake decision, personal hosting stays legitimate as the other case, company account shares out to users, company-policy Hermes monitors + approves share requests, and this mirrors the ratified openXdox dispatch two-case precedent); first fresh conformer of `staged-topic-outline-template` carrying LIVE `xspec:candidate` markers (verified against the checker: no rejection found, only `record`-status docs are excluded); 5 open questions (contract home, company-account type, share-roster reuse of `add-client-identity-roster`, monitor/approve mechanics with no share API, and opensoft's own migration sequencing), none blocking; SEQUENCED last of today's four topics (Brett 2026-08-15) — behind `doxbench-editing-model` (both phases), the template, and the review-lane topic — since Q3's share-roster reuse waits on the in-flight `add-client-identity-roster` proposal. **DISPOSITIONED 2026-08-23 — all five questions now carry a disposition, none `open`**: Q2 and the account timing RULED BY BRETT HEAP in session (a Google Workspace USER account in the operating tenant's own domain, working name `[email protected]`, created now/soon — reinforced by the platform fact that a GCP service account cannot drive NotebookLM at all), and Q1/Q3/Q4/Q5 adjudicated against executed evidence. Q1 CORRECTED its own context (the two-case fork is ALREADY a promoted `credential-contracts` requirement, not merely runbook prose beside one) and closed the one-vs-two-changes fork to ONE COMBINED change. Q3 RAN the mapping against the realized client-identity-roster schema and validator — 11 errors when the share-out facts are stated honestly; the force-fit variant passes with one grantee and FAILS with two on `duplicate-identity-key`, because the grantee is not in the uniqueness tuple — proving the two shapes are transposed (one principal / many scopes vs one scope / many principals) and ruling a DISTINCT small share-out roster. Q4 kept the governed manual lane and unified the approval record WITH that roster entry (one artifact, not an audit trail beside it). Q5 adopted the `split-ideation-book-per-repo` retirement runbook, parity reconciled against the corpus scan rather than the legacy books. The 2026-08-15 sequencing rationale is spent — `add-client-identity-roster` archived, and its shape was tested and found structurally unable to carry this. **ACCOUNT CONFIRMED the same day (Brett, 2026-08-23): `[email protected]`** — a Google Workspace user in `opensoft.one`, exactly Q2's ruled shape (the earlier `[email protected]` was a working name, never created). The exit precondition is MET and Brett authorized raising the combined change, so the topic exits via `add-notebook-projection-identity` rather than waiting; Opensoft's own install is the declared Case A instance its migration path applies to | | ||
| | [doxbench-editing-model](#doxbench-editing-model) | MODIFIED `ideation-dashboard` (left-panel dynamic document tabs generalizing the outline/document buffer pair to N document buffers; chat-context binding to the active left-panel selection; docs-wheel tile edit verb + dirty-tile marker; right-panel Editor/Preview tab redesign with Save/Cancel) | 1 | Registered 2026-08-15 — origin is Brett's direction settling the general doxBench interaction model: left panel selects the working document (docs/lens/outline plus dynamic numbered tabs per open edit), center chat binds to whatever is selected, right panel shows the result via Editor/Preview tabs with Save/Cancel (replacing today's split md/preview layout); 26 claims settled (includes the ruled two-plane chat memory design, Claims 13-21, and its 2026-08-18 second-pass addendum settling memory-gateway conformance, the three-layer compression stack with shake v1, and Headroom watch-listed not adopted, Claims 22-26); verified live that `BUFFER_KINDS`, the turn-assembly buffer requirement, and the save order are all hard-coded to exactly outline+document today, so the N-buffer generalization is the load-bearing engineering question; 7 open questions (tab overflow, Save/Cancel semantics, dirty-tile storage, chat-binding rule, Editor/Preview default, concurrent-edit safety, and the chat memory system — ruled 2026-08-18), none blocking; sibling of `staged-topic-outline-template` Open question 4 (content-contract vs. interaction-model halves of the same AI-edit act); SEQUENCED first, in two phases (Brett 2026-08-15) — Phase A (chat-on-outline + Editor/Preview tabs + Save/Cancel on the existing two-buffer machinery) built before the other three topics, Phase B (N-buffer generalization) following `staged-topic-outline-template`'s ratification. **EXITED STAGING 2026-08-21** — both phases raised and realized; `add-doxbench-editing-phase-a` ARCHIVED 2026-08-21 and its spec text promoted, `add-doxbench-editing-phase-b` carried the whole remainder (§4–§11 + §13 realized across PRs #207/#210/#216/#223, `contract-v1.34`) and remains ACTIVE pending §12 share-session, which Brett ruled 2026-08-21 trails as its own slice. The fragment moved to Phase B's `supporting-docs/`; two items are PARKED, not adopted — see the detail section | | ||
| | [doxchat-auto-fit-routing](#doxchat-auto-fit-routing) | MODIFIED `ideation-dashboard` (per-turn fit-aware `auto` resolution; the no-fit warn/ask surface and its session-sticky consent; compress-to-fit as a turn outcome) + a likely ADDITIVE model-catalog release (capability dimensions beyond byte limits, at minimum modality) + a likely additive chat-turn release (the recorded fit decision) | 1 | Registered 2026-08-21 — origin is Brett's direction given at the `contract-v1.38` rule-5 ruling, quoted VERBATIM in the fragment; 6 claims settled (per-turn fit-aware resolution, filter out models too small for the turn, no-fit is a human decision, session-sticky continue-all consent, compress-to-fit on continue, and fit is multi-dimensional with raw size only one axis); 6 open questions (where the decision lives, what happens to the released `resolved_model_id`, the capability vocabulary and whether it closes, whether the consent is a governed record, one-change-or-three plus compression's home, and whether the union badge survives), none blocking; SEQUENCED after the doxBench sprint archives, so the per-turn router is designed on a static resolution that has actually shipped | | ||
| | [doxchat-auto-fit-routing](#doxchat-auto-fit-routing) | MODIFIED `ideation-dashboard` (per-turn fit-aware `auto` resolution; the no-fit warn/ask surface and its session-sticky consent; compress-to-fit as a turn outcome) + a likely ADDITIVE model-catalog release (capability dimensions beyond byte limits, at minimum modality) + a likely additive chat-turn release (the recorded fit decision) | 1 | Registered 2026-08-21 — origin is Brett's direction given at the `contract-v1.38` rule-5 ruling, quoted VERBATIM in the fragment; 6 claims settled (per-turn fit-aware resolution, filter out models too small for the turn, no-fit is a human decision, session-sticky continue-all consent, compress-to-fit on continue, and fit is multi-dimensional with raw size only one axis); 6 open questions, none blocking. **DISPOSITIONED 2026-08-24 — all six resolved**, architect adjudications on verified evidence anchored in Brett's rulings, with TWO of the fragment's own recommendations CORRECTED by recon. Q1: the ROUTE decides, upheld, but at the ASSEMBLY POINT INSIDE STEP 9 — not at precondition 7, because the packet does not exist there (steps: 5 scope, 6 identity, 7 model+limits, 8 idempotency, 9 dispatch, with assembly at `serve.py:2926`); the route's `error` is free-form `^[a-z][a-z0-9_]{2,63}$`, not an enum, so a no-fit code costs no contract act. Q2: `resolved_model_id` STAYS as the declared default, naming debt accepted explicitly, removal rejected. Q3: one closed additive `modalities`, PLUS a batching obligation — the release must decide, not silently pass, the type-side `models.maxItems` question and the `model_id` bounds gap (N7). Q4: turn-record self-description plus a RECORDED arm, adjudicated under Brett's own intake-lane OQ-3 test (a recorded gate action suffices on the single-operator loopback; an instrument is required only on tenant/shared installs), with the consent scoped to session identity/rekey/generation and NEVER a wall clock, honoring his arm-and-reconfirm ruling. Q5: three sequenced exits, with (c) REDEFINED — trim-to-fit ALREADY happens silently under `posture: full` (`serve.py:2935-2956`; `bounds_rail` trims; `dropped_evidence` reaches no wire field), so (c) discloses an existing act via a third `reduced_reason` constant on the RELEASED v1.40 field with zero contract change; a third posture VALUE is rejected. Q6: union badge unchanged and non-negotiable; the record carries both badges. **SEQUENCING GATE CLEARED** — Phase B archived 2026-08-22 and 10.7 shipped as `contract-v1.40`; the remaining sequencing fact is the model-intake lane's collision with exit (b), which exit (a) avoids | |
| OPEN DESIGN FACT for (b)/(c) drafting, recorded rather than decided: whether | ||
| today's silent trim under `full` should itself become a disclosed | ||
| posture-and-reason once the field exists. Leaning yes; decided in the change. |
| Disposition (2026-08-24, architect): per the recommendation. `resolved_model_id` | ||
| STAYS as the DECLARED DEFAULT — the destination used when fit computation is | ||
| unavailable, when exactly one candidate survives filtering, and as the static | ||
| answer consumers pinned at `contract-v1.38` already read. Rules 5' and 6 keep |
| owes. Sequencing them lets (a) land while (b)'s design questions are still open, | ||
| which is the same shape `add-doxbench-editing-phase-b` used for its own release |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
Suppressed comments (8)
ideation/staging/INDEX.md:77
- This index row repeats the claim that a no-fit code costs no contract act, but the primary disposition describes a suspended turn after the step-8 idempotency reservation. The current runtime's free-form schema pattern does not provide that state or continuation, so the index should not present this as settled/zero-cost until those response and retry semantics are defined.
| [doxchat-auto-fit-routing](#doxchat-auto-fit-routing) | MODIFIED `ideation-dashboard` (per-turn fit-aware `auto` resolution; the no-fit warn/ask surface and its session-sticky consent; compress-to-fit as a turn outcome) + a likely ADDITIVE model-catalog release (capability dimensions beyond byte limits, at minimum modality) + a likely additive chat-turn release (the recorded fit decision) | 1 | Registered 2026-08-21 — origin is Brett's direction given at the `contract-v1.38` rule-5 ruling, quoted VERBATIM in the fragment; 6 claims settled (per-turn fit-aware resolution, filter out models too small for the turn, no-fit is a human decision, session-sticky continue-all consent, compress-to-fit on continue, and fit is multi-dimensional with raw size only one axis); 6 open questions, none blocking. **DISPOSITIONED 2026-08-24 — all six resolved**, architect adjudications on verified evidence anchored in Brett's rulings, with TWO of the fragment's own recommendations CORRECTED by recon. Q1: the ROUTE decides, upheld, but at the ASSEMBLY POINT INSIDE STEP 9 — not at precondition 7, because the packet does not exist there (steps: 5 scope, 6 identity, 7 model+limits, 8 idempotency, 9 dispatch, with assembly at `serve.py:2926`); the route's `error` is free-form `^[a-z][a-z0-9_]{2,63}$`, not an enum, so a no-fit code costs no contract act. A review-found CONSTRAINT rides with it: request bytes are bounded EARLIER against the selected entry (`:2677`/`:2730`), so exit (b) must also move or redefine that pre-assembly guard or a request sized for a wider `routes_to` member is refused before routing runs. Q2: `resolved_model_id` STAYS as the declared default, naming debt accepted explicitly, removal rejected. Q3: one closed additive `modalities`, PLUS a batching obligation — the release must decide, not silently pass, the type-side `models.maxItems` question and the `model_id` bounds gap (N7). Q4: turn-record self-description plus a RECORDED arm, adjudicated under Brett's own intake-lane OQ-3 test (a recorded gate action suffices on the single-operator loopback; an instrument is required only on tenant/shared installs), with the consent scoped to session identity/rekey/generation and NEVER a wall clock, honoring his arm-and-reconfirm ruling. Q5: three sequenced exits, with (c) REDEFINED — a fit-reducing act ALREADY happens silently under `posture: full` (`serve.py:2935-2956`; `dropped_evidence` reaches no wire field), so (c) discloses it via a third `reduced_reason` constant on the RELEASED v1.40 field with zero contract change; a third posture VALUE is rejected. Corrected on review: what already runs is LAYER-1 SELECTION (lossless by reference, and it REFUSES when mandatory threads alone overflow), so (c) also owes the real LAYER-2 compaction Claim 5 needs — the module's own `assert_fidelity` refuses conflating the two. Q6: union badge unchanged and non-negotiable; the record carries both badges. **SEQUENCING GATE CLEARED** — Phase B archived 2026-08-22 and 10.7 shipped as `contract-v1.40`; the remaining sequencing fact is the model-intake lane's collision with exit (b), which exit (a) avoids |
ideation/staging/doxchat-auto-fit-routing/doxchat-auto-fit-routing.md:471
- Q5 marks (c) resolved, but this paragraph leaves its key behavior undecided: if today's layer-1 selection under
posture: fullis disclosed asposture: reduced, ordinary turns that drop evidence change posture; if it is not, the releasedreduced_reasonfield cannot disclose that act without another representation. Please settle the exact posture/reason semantics in the disposition before claiming exit (c) is resolved.
OPEN DESIGN FACT for (b)/(c) drafting, recorded rather than decided: whether
today's silent trim under `full` should itself become a disclosed
posture-and-reason once the field exists. Leaning yes; decided in the change.
ideation/staging/doxchat-auto-fit-routing/doxchat-auto-fit-routing.md:288
- The stated candidate filter only tests fit, but
routes_tois allowed to contain unavailable targets; the released validator requires availability only for the rule'sresolved_model_id. An unavailable target that fits can therefore be selected and fail at dispatch. Make availability (and all declared capability predicates) part of the candidate filter before the best-choice step.
precondition 7. The sequence is: assemble (or size) the packet, filter the
rule's `routes_to` by fit, choose, then dispatch to the chosen id. The adapter
stays opaque with one already-chosen id and the `WorkbenchModelPort` stays at
exactly three members, so the ratified "a fourth member is a second provider
verb by another name" scenario is untouched.
ideation/staging/doxchat-auto-fit-routing/doxchat-auto-fit-routing.md:285
- At this point packet contents are budget-dependent:
bounds_raildrops whole evidence sources using the supplied model limit and refuses when threads alone exceed it. A single “assemble (or size)” step is therefore not enough to test candidates with different limits and produce the final packet. Specify candidate-specific sizing/assembly and a final build under the chosen model, or an equivalent fit algorithm, so the probe cannot silently drop content or validate a packet different from the one dispatched.
Disposition (2026-08-24, architect, on verified evidence): the ROUTE decides —
upheld — but at the ASSEMBLY POINT INSIDE STEP 9, pre-dispatch, not at
precondition 7. The sequence is: assemble (or size) the packet, filter the
rule's `routes_to` by fit, choose, then dispatch to the chosen id. The adapter
ideation/staging/doxchat-auto-fit-routing/doxchat-auto-fit-routing.md:334
- Dispatching the declared default when fit computation is unavailable breaks Claim 2: without a fit verdict the router cannot know that the default accommodates this packet, so an oversized request can be sent to it. Treat an unavailable computation as the explicit no-fit/ask path; keep the default for static or legacy behavior rather than as an unverified fallback.
STAYS as the DECLARED DEFAULT — the destination used when fit computation is
unavailable, when exactly one candidate survives filtering, and as the static
answer consumers pinned at `contract-v1.38` already read. Rules 5' and 6 keep
their static referent: they remain guarantees about the default.
ideation/staging/doxchat-auto-fit-routing/doxchat-auto-fit-routing.md:339
- Calling this only naming debt understates a wire-contract semantic change. v1.38 defines
resolved_model_idas the model that answers, and existing success records derive the answering model from it; a per-turn override makes the catalog value point at a model that did not answer. Existing consumers can therefore misreport routed turns. If the field is retained, the proposal needs an explicit versioned or legacy semantic boundary rather than declaring that no deprecation or contract change is needed.
The naming debt is ACCEPTED EXPLICITLY rather than paid: a field whose name says
"currently resolves to" while real resolution is per-turn is a wart, and it is
recorded in prose here rather than deprecated. No deprecation now; a future
major may rename it. Removing it was REJECTED — a breaking change to a released,
digest-pinned field for no behavioural gain.
ideation/staging/doxchat-auto-fit-routing/doxchat-auto-fit-routing.md:457
- The “zero contract change” disclosure only exists on
success_v2: the still-served v1 success envelope has nocontext_packet, and the current runtime explicitly records that v1 reduced turns are not visible on the wire. If (c) applies to all routed turns, this does not make them honest; scope the guarantee to v2 or define the legacy v1 behavior and migration.
existing selection — a third REASON constant under `posture: reduced`, riding
the RELEASED `contract-v1.40` field with ZERO contract change (free prose, 500
code points; the serve ceiling anticipated later constants) — AND the ruled
ideation/staging/doxchat-auto-fit-routing/doxchat-auto-fit-routing.md:500
- Q6's unconditional record guarantee is false for the still-served v1 envelope: it is closed, has no
selected_modelor destination badge, and the current v1 path records the requested id. Scope “both badges” to v2 and specify that v1 stays static or refusesauto, or provide a versioned envelope; otherwise v1 clients receive a routed turn without the promised disclosure.
The turn record carries BOTH badges: the union the human accepted, and the
chosen destination's own. `selected_model.data_handling` already carries the
REQUESTED entry's badge, so the routed growth in exit (b) is what carries the
DESTINATION's.
| turn-record facts with both badges); (c) compress-to-fit disclosure (a third | ||
| `reduced_reason` constant on the released field, plus issue #263's non-blank | ||
| hardening). Raise (a) first, at `Status: draft`. |
| Two enabling facts make this cheap. The route's refusal vocabulary is NOT | ||
| closed — the released failure envelope's `error` is a free-form | ||
| `^[a-z][a-z0-9_]{2,63}$` string rather than an enum, which `serve.py:306-312` | ||
| states as the basis for its own prior additions — so a no-fit route-level | ||
| refusal or suspend code needs NO contract act. And `dispatch_turn`'s four closed |
| fit-compression behaviour of Claim 5, which needs LAYER-2 semantic compaction | ||
| (`compact_thread`), because dropping evidence cannot make an over-budget thread | ||
| set fit. Conflating those two layers is exactly what `assert_fidelity` refuses, |
Staging-only doc PR: the fragment's six questions dispositioned, plus its INDEX row and detail section. No code, no contract bytes, no spec deltas.
All six are architect adjudications on verified evidence, anchored in Brett's rulings where they turn on one — his intake-lane OQ-3 test and his arm-and-reconfirm Send ruling for Q4, and the 2026-08-21 rule-5' direction the topic quotes verbatim as its fixed baseline.
Two of the fragment's own recommendations were falsified
Corrected in place with dated notes, not quietly rewritten.
Q1 named the wrong home. It recommended the fit decision live "at the point where precondition 7 already revalidates". The packet does not exist at step 7. Verified ordering: 5 scope (
serve.py:2505), 6 identity, 7 model + effective limits (:2654), 8 idempotency (:2739), 9 dispatch (:2866) — with assembly INSIDE step 9 at:2926, using step 7's limits. The ROUTE still decides, but at the assembly point, pre-dispatch. Two enabling facts came with the correction: the route'serroris a free-form^[a-z][a-z0-9_]{2,63}$string rather than an enum (serve.py:306-312states this as the basis for its own prior additions), so a no-fit code costs no contract act; anddispatch_turn's four closed codes stay untouched. Conflict item 3 resolves the way it guessed, though not where.Q5(c) was reframed by the more valuable finding. Trim-to-fit already happens, silently. Under today's
posture: full,serve.py:2935-2956fits the packet to the selected model's budget — its own comment says "the packet is FITTED to what the request left, rather than refused afterwards" —doxbench_packet.bounds_rail(:845, applied:1013) performs the trim, anddropped_evidence(:607,:1025) is a dataclass field appearing in no released schema, so it reaches no wire field. A transcript reader cannot tell a trimmed turn from an untrimmed one.So (c) invents no compression — it makes an existing undisclosed act honest, through a third
reduced_reasonconstant on the already-releasedcontract-v1.40field (free prose, 500 code points) at zero contract cost. A third posture VALUE is rejected: it needs an enum release and four gates, and the browser adopter silently drops unknown postures — which would mean no disclosure at all. This finding is added to Conflicts as its own dated entry.Three staleness corrections
Task 10.7's release is no longer "still owed" — it shipped as
contract-v1.40, which the chat-turn schema itself confirms ("ABSENCE ... means a producer older than v1.40"). Fixed in What-changes, Q5's context and Related work. And the sequencing gate is CLEARED: Phase B archived 2026-08-22. What remains is a different fact — the model-intake lane collides with exit (b) ondoxbench-chat.js,serve.pyanddoxbench_model.py; exit (a) touches none of them.Where the rest landed
Q2
resolved_model_idstays as the declared default, naming debt accepted explicitly, removal rejected. Q3 one closed additivemodalities, plus a batching obligation — the release must decide, not silently pass, the type-sidemodels.maxItemsquestion and themodel_idbounds gap (N7). Q4 turn-record self-description plus a recorded arm, with the consent scoped to session identity/rekey/generation and never a wall clock, honoring the shipped no-clock constraint; browser state alone rejected; the tenant/shared escalation recorded as an install-posture fork. Q6 union badge unchanged and non-negotiable; the record carries both badges.Exit is now the three sequenced changes — and, as the original was careful to do, names no change ids in that section (the checker scans Exit-labeled lines for exactly that).
Gates
_template_gapsNONE,_staged_exit_changesNONE, 0 questions leftopen, 6 resolvedopenspec validate --all --strict— 73 passed, 0 failedpytest tests/ideation-dashboard— 4015 passed, 15 skippedpytest tests/doc-health tests/ideation_dashboard— 807 passed783e3daabaseline — 0 new findingscontracts/untouched🤖 Generated with Claude Code