Repository navigation
Realize identity-brokering + trust-anchor contracts at contract-v1.36 - #235
Merged
Merged
Conversation
Speckit features 008-identity-brokering-contracts and 009-trust-anchor-contracts: two neutral contract families (6 + 9 YAML), canonical strict validators, corpora of 14+41 and 34+65 examples with a negative confirmation per requirement (9/9, 8/8), red-proof harnesses (22 + 50 codes all load-bearing), and tests/trust-anchor (87 tests). Hardened by a two-panel adversarial review: 28 + 52 probes, 14 + 14 confirmed findings, all fixed or ruled (normalization-keyed persona sameness, membership-id resolution, DER-aware key-material scan, the three unread declaration-perimeter fields, certificate-target revocation closure, chain-custody monotonicity, and more — dispositions in each feature's traceability review_hardening section). Registered at contract-v1.36 (manifest 150 digests verify, CHANGELOG entry; annotated tag follows post-merge per policy). Both staged topics promoted to their changes' supporting-docs; INDEX retired to 31/31; README records updated. All gates green: openspec 63/63 --all --strict, all three family validators 0/0, doc-health zero new findings. Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Hi @openxfactory[bot]! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
brettheap
enabled auto-merge (squash)
August 21, 2026 19:38
brettheap
previously approved these changes
Aug 21, 2026
brettheap
left a comment
Contributor
There was a problem hiding this comment.
Approved (submitted via terminal per Brett's instruction).
Another session published contract-v1.36 (doxbench share-session cut, tagged and pin-synced) while this branch was in flight — per the versioning policy, merge order allocates the number, so this registration becomes contract-v1.37: CHANGELOG entry renumbered and placed above v1.36, manifest bundle version and both family blocks renumbered, family READMEs / registry header / README records / task notes updated, registry digest refreshed. All gates re-verified green on the merged tree (150 digests, 64/64 strict, validators 0/0, 87 tests). Co-Authored-By: Claude Fable 5 <[email protected]>
brettheap
approved these changes
Aug 21, 2026
brettheap
left a comment
Contributor
There was a problem hiding this comment.
Approved (submitted via terminal per Brett's instruction; re-approval after the merge-main push renumbering the cut to contract-v1.37 dismissed the prior approval).
brettheap
approved these changes
Aug 21, 2026
brettheap
left a comment
Contributor
There was a problem hiding this comment.
Approved (submitted via terminal per Brett's instruction; re-approval after the merge-main + v1.37 renumber commit).
brettheap
pushed a commit
that referenced
this pull request
Aug 21, 2026
contracts/releases/contract-v1.37.digests.yaml (190 entries) built by validate-contract-release.py against the realized commit 6cbb449 (PR #235 — whose squash title says v1.36 from before the merge-order renumber; the manifest and CHANGELOG inside are authoritative at contract-v1.37). The annotated tag contract-v1.37 is applied to this completion commit once it lands, mirroring the v1.36 cut's flow. Co-authored-by: brettheap <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
brettheap
added a commit
that referenced
this pull request
Aug 22, 2026
…ract-v1.38) * WIP 11.7: the routing-rule declaration, in the schema and in the type Additive on `$defs/model_entry`: three OPTIONAL fields that travel together -- `routing_rule`, `routes_to` (opaque catalog handles, uniqueItems), and `resolved_model_id` -- plus `dependentRequired` and two conditionals that BOTH require `routing_rule` to be present, so an entry declaring no routing rule is judged exactly as it was before. Verified against an eleven-case matrix. `ModelCatalogEntry` gains the same three as defaulted fields (plain-model defaults, so every pre-existing construction means what it always meant), with the per-entry rules in `__post_init__` and the four CROSS-ENTRY rules in `ModelCatalog._validate_routing_targets`: no dangling target, no chained rule, an available rule resolves to an available model, and the BADGE COVERING the ratified scenario's THEN demands. `as_public_dict` discloses the three only for an entry that IS a routing rule, so a plain entry's public dict is byte-identical across the release boundary. Co-Authored-By: Claude Fable 5 <[email protected]> * WIP 11.7: the delegated validator learns the routing rules, with self-tests `check_routing_rules` enforces the five rules the shape cannot express — no dangling target, no chained rule, an available rule resolves to an available model, THE BADGE COVERING, and a rule declaring no more headroom than its narrowest destination. The same five are enforced at catalog construction in doxbench_model; neither place substitutes for the other, because an in-process catalog never becomes a file and a file is never constructed through that type. One packaged POSITIVE (`workbench-model-catalog-routing-rule`) and SIX negatives, one per rule plus the structural plain-entry-carrying-a-routing-field case. Verified individually: every negative fails for exactly its stated reason. Validator output stays 0 errors / 4 warnings (the four v1 deprecations, by design); the example self-test goes 37 -> 38 valid and 50 -> 56 negative. Co-Authored-By: Claude Fable 5 <[email protected]> * WIP 11.7: re-allocate to contract-v1.38 and repin the runtime MAIN MOVED UNDER THIS SLICE. The branch base is 6cbb449 (PR #235, identity-brokering + trust-anchor), which ALLOCATED contract-v1.37 -- a CHANGELOG heading plus `contract_bundle_version: contract-v1.37` -- while its own squash message still says "at contract-v1.36". CHANGELOG presence is the availability test under docs/contract-versioning-policy.md, so v1.37 is taken and this release is contract-v1.38. Every one of this slice's own v1.37 references is renumbered; #235's twenty-odd manifest/README mentions are ITS release's and are untouched. PRE-EXISTING DEFECT FOUND AND NOT FIXED HERE: at origin/main, `validate-contract-release.py verify-commit --commit origin/main` exits 1 with HGR-RELEASE-INVENTORY-MISSING -- #235 bumped the bundle to v1.37 without shipping contracts/releases/contract-v1.37.digests.yaml. It is another lane's release surface; recorded, not touched. Repin (the v1.34 pattern, mirrored): doxbench_contracts CONTRACT_TAG -> contract-v1.38 with the `unpublished:` sentinel for the ref, the CATALOG digest moved (the chat-turn's unmoved), manifest row digest + consumption_rule, and the test-side RELEASED_* mirror plus the packaged-positive count 9 -> 10. Co-Authored-By: Claude Fable 5 <[email protected]> * WIP 11.7: flip the type-pin, and pin the release from four sides FLIPPED (test_doxbench_bridge): the pin that asserted `ModelCatalogEntry` has NEITHER routing attribute becomes its inverse -- the type CARRIES both, and an entry declaring neither still reports `routing_rule: False`, `resolved_model_id: None` and a public dict with the three keys ABSENT. The antecedent is asserted first (`hasattr` + `__slots__`), so it cannot pass against a type that lost the fields again. KEPT GREEN, UNTOUCHED, and that is the evidence: the duck-typed bridge test and `test_a_routing_rule_entry_would_be_reported_as_one_without_touching_the_route`. Each gains a REAL-TYPE sibling proving the release changes neither `_apply_model` nor `doxbench_selected_model`. New coverage: the five cross-entry catalog refusals (each also through the direct constructor), the per-entry refusals, the TypeError/ValueError split, the degraded-bridge projection still constructing, and eight schema-level refusals against the REAL released bytes -- including `provider_id` on an entry, which keeps task 11.6's placement ruling enforced by the shape. Co-Authored-By: Claude Fable 5 <[email protected]> * WIP 11.7: the menu probe, and the corpus's seven-field claims corrected THE MENU SCENARIO IS CLAIMED WITHOUT A VIEW CHANGE, and proved rather than argued: a node probe mounts the SHIPPED chat rail over the packaged contract-v1.38 routing catalog and reads the option text back. The `auto` option's visible text contains BOTH routed models' handling badges, because the covering rule requires the rule's own `data_handling` to carry them and this view already renders `label — data_handling`. `sendDisclosure` needs no change for the same reason. `adoptCatalog` spreads the whole entry (`{...entry}`), so the three new fields reach browser state rather than being silently projected away. Corrected our own "CLOSED seven-field" claims, which the release makes false: `_apply_model`'s two docstrings (its 11.6 provider-id RULING is preserved and now says WHY the growth does not reopen it — the schema still refuses `provider_id` structurally), contracts/README's row, the local example's header, and two test comments. Co-Authored-By: Claude Fable 5 <[email protected]> * contract-v1.38: the doxBench model-catalog routing rule (additive growth) Completes the release surface for tasks.md §11.7 of add-doxbench-editing-phase-b: the CHANGELOG entry and the release DIGEST INVENTORY. The schema growth, the manifest row (recomputed digest + rewritten consumption_rule), the bundle bump and the consuming runtime repin are the preceding commits on this branch; the branch squashes to one unit, exactly as §13's release did. ALLOCATED v1.38, NOT v1.37. Main moved under this slice: 6cbb449 (PR #235) allocated contract-v1.37 while this was in flight, its own squash message still saying v1.36. CHANGELOG presence is the availability test, so v1.38 is the next available number and the entry says so. INVENTORY BUILT AFTER THE BUNDLE BUMP (v1.36's first tag failed on exactly this): 190 entries, and exactly four digests move -- CHANGELOG, README, manifest, and the catalog schema, which are precisely this cut's inventory-member files. RECORDED, NOT FIXED: at 6cbb449 `verify-commit` already exits 1 with HGR-RELEASE-INVENTORY-MISSING, because that cut bumped the bundle to v1.37 without shipping releases/contract-v1.37.digests.yaml. `resolve_committed_inventory` reads the bundle version AT THE COMMIT, so this cut verifies against its own v1.38 inventory and is unaffected; v1.37's provenance gap is that lane's. Co-Authored-By: Claude Fable 5 <[email protected]> * Tick 11.7: the model-catalog release is cut, with its judgement calls flagged The box is CHECKED because the ratified `The menu offers a routing rule` scenario is now claimable: a conformant catalog can declare an `auto` entry, and the runtime that already honoured one was not rebuilt. The tick records the release, the five delegated rules and their revert-tests, the credential/provisioning sentence P3-23 asked for, and SIX flagged judgement calls for the reviewer: text-containment badge covering (with the unchanged 500-byte ceiling as its stated consequence), routes_to holding REFERENCES rather than badge objects, disclosure only when declared, the three rules inferred from how the turn gate actually works, no view change (proved by a node probe against the shipped rail), and the v1.37 -> v1.38 re-allocation. Ledger row struck; the blocking set is now 10.7, 12.7 and 13.8. The proposal's `contract_release:` frontmatter goes TWO releases -> THREE and now owes one, not two. 10.7 and 13.8's own task prose is deliberately NOT edited (13.8 still says 11.7 owes a release -- its owner's to re-adjudicate). Co-Authored-By: Claude Fable 5 <[email protected]> * F1+F2: the badge covering becomes SEGMENT MEMBERSHIP, and the file gate stops being weaker than the type gate F1 (BLOCKING). Raw substring containment was wrong in the direction that matters, and the reviewer broke it twice on the released bytes: a rule badged "Routes to a non-tenant endpoint." was accepted as carrying a target badged "on-tenant" (`"on-tenant" in "non-tenant"` is True — the menu then showed the INVERSE of the posture it routes to), and a rule ending "...retain nothing." was accepted as carrying a target badged "retain". Both reproduced on BOTH gates before the fix. The covering is now segment membership over a DECLARED separator (" / ", chosen because `;` `.` `,` all occur in real badges and `/` does not). Each routed entry's own badge must be one segment of the rule's badge, compared with whitespace collapsed, case folded and trailing `.;,` dropped — the over-strictness the reviewer also flagged — and with INTERIOR characters never rewritten, because that is exactly where on-tenant/non-tenant lives. The grammar's own residual collision is refused rather than hoped away: a routed badge that itself contains " / " could never be one segment, so the catalog is refused as ill-formed. Extra segments are permitted, so a rule may keep its own lead-in. Declared in the schema (data_handling's comment plus both routing fields' descriptions), implemented once in `doxbench_model` (`ROUTING_BADGE_SEPARATOR`, `normalized_badge_segment`, `badge_segments`) and restated in the standalone validator, which imports nothing from that package — a companion test pins the two equal (next commit). F2 (BLOCKING). `check_routing_rules` never checked `resolved_model_id ∈ routes_to` nor self-reference, so the reviewer's B instance passed the file gate 0-errors: badged safe, resolving to a model badged "retained and used for vendor model training", which every covering check skipped because they all run over `routes_to`. The type gate always refused it, so the file gate was strictly WEAKER — while its own docstring claimed those rules were the type's business and that "a structurally invalid instance never reaches this function". Both checks added; self-reference is now its OWN named refusal instead of falling out of the chained-rule rule with a misleading message. Docstring corrected, and it now says the parity is asserted by a test rather than merely stated. PACKAGED: all four reviewer instances (A, B, C, D) plus the separator-collision case, as negatives that fail for exactly their own reason. Existing routing instances converted to the segment grammar so each still fails for its intended single reason. Both gates verified to AGREE on all thirteen catalog instances. Example self-test 56 -> 61 negatives; validator still 0 errors / 4 warnings. Co-Authored-By: Claude Fable 5 <[email protected]> * F3+F4+F6: the sidecar names the answering model, and the route scenario is tested F3 (BLOCKING). `_mirror_turn_into_sidecar` was handed the REQUESTED model id while the v2 wire record carried the RESOLVED one, because `doxbench_selected_model(model_entry)` was computed INSIDE the v2 arm, after the sidecar block. On a routed turn the durable transcript on disk therefore named `auto` and no reader could learn which model wrote the answer -- against the ratified THEN's own purpose clause, "so a transcript names the model that actually answered". The derivation is hoisted above the sidecar and the sidecar takes `selected_model["resolved_model_id"]`. One call site, one derivation, both readers. RECORDED v1 LIMITATION (F3's other half): the deprecated v1 success envelope has ONE `model_id` and no `selected_model`, so it cannot state both facts on a routed turn. It carries the REQUESTED id -- what every v1 consumer already reads and revalidates -- and the fix is the v2 envelope, which exists. Widening a deprecated closed shape whose whole promise is byte-identical stability is what contract-v1.34's deprecation forbids. Noted at the v1 arm itself; the CHANGELOG half follows. The sidecar on the v1 lane DOES name the answering model, because it is written above the branch. F4. `doxbench_selected_model`'s docstring still said no catalog entry can declare a routing rule and that a release was owed. Rewritten; it now also names its three consumers, which is what made F3 visible. Swept serve.py for siblings -- none. F6. Two route-level tests, written in test_doxbench_thread_wiring rather than test_doxbench_routes because only that harness sees BOTH halves in ONE real request: the wire record (`model_id` == the resolved model, `selected_model` naming the rule) and the sidecar's turn header. Its negative sibling asserts the unrouted case is unchanged, so hoisting cannot have moved the ordinary path. Plus: the two gates' badge grammar pinned equal (separator, punctuation set, normalizer, segmenter), a pin that the normalizer forgives only what cannot flip a posture (on-tenant vs non-tenant), the separator-collision refusal, F2's resolved-badge-is-covered assertion, and a PARITY test running both gates over all ten packaged routing negatives -- the claim review round 1 found stated in a docstring and untrue. Catalog schema digest repinned (three places) after F1's declarations moved its bytes. Co-Authored-By: Claude Fable 5 <[email protected]> * Add the DIRECT type-level pins on the covering predicate The revert-test of the type's segment predicate (R1) failed only the packaged-corpus PARITY test, which means the type's own suite had no direct guard: a rule that lives in one gate's tests is a rule the other gate can lose. Three rows now pin it where the predicate lives -- review instances A and D plus a badge swallowed into a longer sentence -- and a positive sibling pins that the predicate did not become a blanket refusal, across all three forgiven normalizations. Co-Authored-By: Claude Fable 5 <[email protected]> * Make the two diagnostic-only arms honest, and guard them on their MESSAGE REVERT-TESTING FOUND TWO ARMS THAT ARE NOT INDEPENDENT REFUSALS, and rather than let a test imply otherwise, both now say so. Disabling the file gate's separator-collision refusal left the validator at 0 errors, and disabling its self-reference refusal did the same: a badge holding the separator can never BE a segment, so the covering check refuses that catalog anyway, and a rule that names itself names a routing rule, so the chained-rule arm refuses that one anyway. Each arm's value is purely that it names the REAL cause instead of sending the operator to add a badge that still will not match, or telling them their rule 'routes to something that is itself a routing rule'. So: comments in both gates state the arms are diagnostics; a new test pins every routing negative's own finding CODE (ten rows, keys asserted against the corpus so a new negative cannot skip the table); and a second test pins the two diagnostic MESSAGES, which is the only guard that can fail if those arms are deleted. F2(b) asked for the self-reference check as 'an explicit check, not incidental via the chained-rule rule' -- that is exactly a diagnostic ask, and this records it as one rather than overclaiming a new refusal. Co-Authored-By: Claude Fable 5 <[email protected]> * F5+F8 and the prose the fixes changed: ledger, tick, CHANGELOG F5. The ledger note claimed a three-item blocking set including 12.7's tag + pin. 12.7 is TICKED and its own body ends "Nothing on this task remains" -- its tag is published and the aggregation pin landed at 04366e3. FOUR open rows became TWO, not three, and the residual set is 10.7 + 13.8. ADJACENT-BUT-OWED, FLAGGED: striking 12.7's un-struck ledger ROW is a bookkeeping correction on our own change's kept-current table, made on the authority of that task's own already -ticked discharge rather than on any new judgement of mine. F8. The schema names codexFactory's `contracts/model-catalog.md` as its consumer contract, and that document claims an exact match with the seven-field shape. Recorded in the CHANGELOG as an owed cross-repo follow-up, with the fact that keeps it honest: the claim is still CORRECT while codexFactory pins contract-v1.27, and becomes wrong only when it re-pins. No codexFactory file touched. PROSE THE FIXES CHANGED. The tick's badge-covering judgement call is REWRITTEN rather than patched: it states that containment was overturned, quotes both false-accepts, and says what did and did not survive the correction (the per-target-badge-objects alternative is still rejected, for the drift reason; the claim that containment "buys nothing the covering rule does not guarantee" is withdrawn, because it guaranteed the wrong thing). The tick and the CHANGELOG go FIVE rules -> SEVEN, drop the false "enforced identically" for a claim a test actually makes, record F3's sidecar defect and its fix, and record the v1 envelope's structural inability to carry both ids as a LIMITATION rather than fixing a deprecated closed shape. The CHANGELOG also declares the separator for consumers and says a renderer may split on it or show the string whole. Manifest digest repinned and the release inventory REBUILT after every contract edit: 190 entries, bundle contract-v1.38. Co-Authored-By: Claude Fable 5 <[email protected]> * Correct the v1.37 record: PR #238 shipped the missing inventory The defect this slice found and recorded against another lane -- #235 bumping the bundle to contract-v1.37 without shipping its digest inventory, so verify-commit exited 1 on main -- has been repaired by c1ffa0f (PR #238). All three places this branch recorded it as live now say it was found, recorded, and fixed by its own lane, which is exactly the outcome recording it asked for. The record is kept rather than deleted because the habit it earns outlives the defect: recheck bundle availability against the CHANGELOG at the moment you allocate, and do not assume the preceding release surface verifies. Inventory rebuilt after the CHANGELOG edit (190 entries; the arrival of contract-v1.37.digests.yaml changes no membership -- prior releases' inventories are not members of a later one). verify-commit passes on HEAD. Co-Authored-By: Claude Fable 5 <[email protected]> * Rule 5 -> rule 5': the bound is the RESOLVED model, per Brett's ruling BRETT RULED 2026-08-21, in-session: "Swap to rule 5'". The adversarial review upheld rule 5 only WITH RESERVATION -- it permanently capped an `auto` entry's declared limits at its narrowest destination to compensate for the runtime computing budgets from the selected (rule) entry. The rule now bounds an AVAILABLE rule's declared input/output limits against `resolved_model_id`'s entry ALONE, not the minimum over `routes_to`. Rule 3 is untouched; the rule count stays seven. Three reasons, recorded in the type, the validator, the schema, the CHANGELOG and the tick rather than left in a commit message: under this release's STATIC resolution the promise that matters is that the menu's declared limits are honoured by the model that actually answers; the un-resolved destinations are not load-bearing, because no turn reaches them while the rule resolves elsewhere; and min-capping would BAKE IN semantics contradicting the sanctioned future direction -- a per-turn fit-aware router, staged in the next commit as ideation/staging/doxchat-auto-fit-routing/ and cross-referenced from all five places. Unavailable rules are exempt, matching rule 3's existing exemption and keeping the bridge's degraded projection constructible; the existing test for that still passes untouched. EXAMPLES. The rule-5 negative is reworked to the resolved-bound form and RENAMED (`...wider-than-its-resolution`), and now carries a WIDER non-resolved member to show the bound is the resolution rather than a minimum. A new PACKAGED POSITIVE -- `workbench-model-catalog-routing-rule-wider-than-a-non-resolved-member` -- is the point of the ruling: lawful under 5', REFUSED under the first form. Both verified on both gates. A test named for the ruling pins it, with its own other-side assertion so it is a bound and not an absence. Count pins moved with the corpus (packaged positives 10 -> 11) and the schema digest repinned in all three places. Co-Authored-By: Claude Fable 5 <[email protected]> * Stage doxchat-auto-fit-routing, and cross-reference it from rule 5' BRETT RULED "Stage the topic" 2026-08-21, in the same exchange as the rule-5' swap -- the two are one decision seen from two sides, so the topic is what rule 5' points AT when it says a min-cap would have baked in contradicting semantics. The fragment carries Brett's requirements as a VERBATIM origin quote, set apart under its own heading, with the six-claim decomposition beside it so a reader can check the interpretation against the source rather than taking it on trust. Claims: per-turn fit-aware resolution; filter out models too small for THIS turn's packet; no fit is a HUMAN decision (warn and ask); the answer may be session-sticky, which makes it a standing consent with a scope and a subject; continuing means COMPRESSING to fit rather than truncating silently; and fit is multi-dimensional, with multi-modal named and raw size only one axis. Six open questions, each with the template's four sub-fields and a recommended answer: where the decision lives (the ROUTE -- the port is ratified at exactly three members); what happens to the released `resolved_model_id` (stays as the declared default; removal breaks consumers for no gain); the capability vocabulary (ONE closed `modalities` set, nothing else until a consumer names itself, on the roster's admission_surface precedent); whether the consent is a governed record (the TURN record must state the posture it ran under -- browser state alone rejected, because §11.7's review found exactly this defect class in the sidecar); one-change-or-three plus compression's home (three exits, with compress-to-fit CONSUMING task 10.7's posture-and-reason field); and whether the union badge survives (yes -- narrowing it would disclose after the fact). Four conflicts recorded honestly, including two against this very release: the static `resolved_model_id` becomes a default or a fiction, and rule 5' itself loses its referent once resolution is per-turn. Cross-linked both ways: the topic names contract-v1.38 as its floor, task 10.7, add-doxchat-model-intake, add-model-provider-broker and the sibling context-compression-runtime; the type, the validator, the schema, the CHANGELOG and the 11.7 tick all name the topic as the reason rule 5' is not a min-cap. Template-conformant (checked directly against doc_health's own `_template_gaps` -- staged after ratification, so conformance is REQUIRED, not opt-in), with the INDEX row and detail section in the same commit per the maintenance rule. Co-Authored-By: Claude Fable 5 <[email protected]> * Rebuild the v1.38 inventory after the merge: the CHANGELOG digest moved contracts/CHANGELOG.md is an inventory member, and the merge brought main's amendment to the contract-v1.37 entry's install-repo naming into it. Exactly one digest moves. verify-commit passes on the merged tip. Co-Authored-By: Claude Fable 5 <[email protected]> * Say the exit is this topic's OWN change, not the sprint it builds on DOC-HEALTH CAUGHT A REAL AMBIGUITY, and the document is fixed rather than the rule waived. The location-conformance family reported ERROR "staged material already cites proposal add-doxbench-editing-phase-b — move selected material into the proposal supporting-docs folder", class contested, and it was right to: `_staged_exit_changes` scans the `## Exit` section precisely for a change a topic EXITS VIA, and my Exit section said "raise the change AFTER add-doxbench-editing-phase-b closes its obligations" — sequencing prose that reads exactly like an exit path, in the one section where that reading is the rule's whole point. A disposition would have recorded a waiver for a sentence that was genuinely unclear. Instead the Exit section now states plainly that this topic exits via its OWN change, which does not exist yet and is named nowhere there on purpose, and carries the sequencing as an explicitly separate fact pointing at Related work — where the change id is an evidence citation, which this rule deliberately does not scan. Both facts survive; the ambiguity does not. Doc-health: 3 critical / 7 error / 75 warning / 3 info at the branch tip, IDENTICAL to origin/main, zero new regressions, and the new topic produces no finding of any kind. Co-Authored-By: Claude Fable 5 <[email protected]> * WIP checkpoint before the N3 revert-test * N1-N4 from the re-verify: correct the "main verifies again" claim, and close a real accept in the separator diagnostic N1 (must-land). Three places said `verify-commit` passes on main again after PR #238. It does not. Reproduced and BISECTED before touching prose: green at c1ffa0f (#238), red from e11a057 (#242) onward with HGR-RELEASE-DIGEST-MISMATCH on contracts/CHANGELOG.md -- #242 edited the CHANGELOG, a v1.37 INVENTORY MEMBER, without rebuilding v1.37's inventory. All three claims now past-tense the repair and name the new state, plus a fourth mention in doxbench_contracts' pin comment that the brief did not list. Still that lane's to fix; still exactly the habit those notes name -- so the ledger note now earns the habit twice and says REBUILD THE INVENTORY WHENEVER YOU TOUCH A MEMBER, the CHANGELOG being one. This branch verifies on its own throughout. N2. `normalized_badge_segment`'s docstring claimed interior characters are never rewritten. Casefold IS an interior rewrite for the multi-character folds (ß->ss, the fi ligature). The claim is restated as the one that is actually true and actually load-bearing: no fold casefold performs can separate or merge two handling POSTURES, and that is the test a future normalization step must pass. N3 -- AND IT WAS NOT COSMETIC. The separator-collision arm tested the RAW badge, so `"read /\nwrite"`, which holds no literal " / ", slipped it AND THEN SATISFIED THE COVERING CHECK, because the rule's own badge normalizes to exactly that segment. That is a full ACCEPT of an ill-formed badge, in both gates -- proven by revert-test (R13: file gate accepted it). Both arms now test the NORMALIZED badge; three collapsing forms are pinned on the message, and R12 fails exactly the newline row. N4. `test_the_packaged_routing_positive_is_accepted_by_BOTH_gates` covered only the first positive, so the rule-5' instance was never bound to the TYPE gate -- and rule 5' is enforced in both places. Parametrized over both, with a companion test asserting the list equals what is on disk, so a later positive cannot skip it. Inventory rebuilt after the CHANGELOG edits; verify-commit passes on HEAD. Co-Authored-By: Claude Fable 5 <[email protected]> * WIP checkpoint before the P2 revert-test * Correct the record: 0c4ac6a carries the PR #244 bot-round fixes, not a WIP 0c4ac6a's message says "WIP checkpoint before the P2 revert-test", which is why it was MADE -- the protocol requires a checkpoint before any revert-test -- and badly undersells what it CONTAINS. The revert-tests (R14, R15) then confirmed it rather than changing it, so no later commit restates the work. This branch is change/*, which refuses force-push, so the record is corrected here rather than rewritten. 0c4ac6a carries all four bot-round dispositions, each reproduced first: * CODEX P2 (behaviour, confirmed): `ModelCatalogEntry` accepted a `routes_to` of 65+ (and 200) while the released schema caps it at maxItems 64 -- the type gate weaker than the wire gate, F2's divergence in the other direction. Capped per-entry with `MAX_ROUTING_TARGETS`, a literal pinned to the RELEASED BYTES by a test rather than restated blind. Boundary asserted both ways, 64 accepted / 65 refused. * COPILOT 1 (confirmed): the packaged positive's header still described the old min-cap; rewritten to rule 5' with a pointer to the instance that separates the two forms. * COPILOT 2 (confirmed): the validator's `normalized_badge_segment` docstring still claimed interior characters are never rewritten -- N2 had landed type-side only. Both gates now carry the same corrected claim. * COPILOT 3 (confirmed): `InvalidRoutingRuleError`'s cross-entry list omitted rule 5' and the separator-collision arm; both docstrings now enumerate all six and say which refusals are per-entry instead. Co-Authored-By: Claude Fable 5 <[email protected]> * Name the right model in the routing-rule example's rule-5' sentence Final review, comment-only. The header said the rule's limits are bounded by `routed-hosted-zr-1` "THE MODEL IT RESOLVES TO" and that "the resolution IS the narrower of the two". Both wrong: the rule resolves to `routed-on-tenant-1` (800000/900000, the WIDER member), and the declared 2048/8192 coincides with `routed-hosted-zr-1` -- the member it does NOT resolve to. The conclusion the sentence was supporting is TRUE and unchanged: this instance is valid under BOTH the old min-over-routes_to form and rule 5', so it does not discriminate them, and `...wider-than-a-non-resolved-member` is the one that does. Only the supporting sentence is rewritten, now naming the right model and the right direction (the rule sits FAR UNDER its 5' bound, and equals the non-resolved member's limits, which is why the old form accepts it too). Comment-only and digest-neutral, ASSERTED rather than assumed: the catalog schema's sha256 is unchanged, `examples/` contributes zero paths to the release inventory, and verify-commit still passes. Validator 0 errors / 4 warnings. Co-Authored-By: Claude Fable 5 <[email protected]> * Fold the final review's two wrong-record fixes: N6 and N7 Both are defects a squash+tag would have frozen, so they land before the merge. Reproduced before fixing, as always. N6 -- THE CAP TEST'S "ACCEPTED" CASE WAS WIRE-REFUSED TWICE. The test built 64 targets PLUS the rule = 65 models, over the schema's `models.maxItems: 64`, with a per-target badge list 901 bytes long, over `data_handling`'s 500. So a test whose stated purpose was two-sided boundary parity accepted a catalog the wire refuses on two grounds. The accepted case is now the largest set a conformant catalog can express -- 63 targets plus the rule, exactly 64 models, one shared short badge -- and it is checked THROUGH the projection against the released schema, which is the only way that assertion means what it says. The 64/65 boundary moves to where it is actually true: the ENTRY SUBSCHEMA, validated directly (no `$ref`s inside `model_entry`, so no registry needed), parametrized 1/63/64 valid and 65/200 invalid. And the cap's own comment now says the operative maximum is 63, because `models.maxItems` is 64 and the rule takes a slot -- 64 is still the right number for the type to enforce, since it is `routes_to`'s own bound and this type must not invent the catalog-level cap it has never enforced. N7 -- THE TWO NEW ID-BEARING FIELDS ESCAPED THE SCHEMA'S ITEM BOUNDS. The cap landed but `routes_to.items.maxLength`/`pattern` and the identical pair on `resolved_model_id` did not, so the same type-weaker-than-wire divergence survived on the two fields THIS release introduced. Both now enforced per-entry as `InvalidCatalogEntryError`, consistent with the documented split. The pattern is evaluated WITHOUT importing `re`, so the module's promised two-import list holds; the `isascii()` guards are load-bearing and revert-tested, because `"trailing"` with an accent satisfies `str.isalnum()` while the released pattern refuses it. `model_id`'s IDENTICAL gap is pre-existing and deliberately left -- pinned by a test that says so, and the released-bytes pin now asserts all three fields carry the same bounds so the sameness is on the record. Revert-tested: R16 (maxLength), R17 (pattern), R18 (the isascii guard), R19 (the accepted case back to 64 targets), R20 (per-target badges again). Each fails the row it guards. DIGEST-NEUTRAL, ASSERTED: nothing under contracts/ changed, the catalog schema's sha256 is unmoved, and verify-commit passes. Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: brettheap <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
brettheap
pushed a commit
that referenced
this pull request
Aug 22, 2026
PR #259 (add-roster-directory-admission-surface) landed while this branch was in review and ALLOCATED contract-v1.39 for the `directory` roster admission surface. Under docs/contract-versioning-policy.md the version is allocated AT REALIZATION against what is available and CHANGELOG PRESENCE ON MAIN is the availability test, so v1.39 is theirs and this release is contract-v1.40. BOTH SIDES SAW IT COMING. Their entry names this branch and its working v1.39 by sha and says "Whichever of the two lands second re-cuts against the CHANGELOG it then finds." This is that re-cut. THE TWO RELEASES ARE INDEPENDENT: theirs grows xfactory-client-identity-roster.schema.yaml, this one grows xfactory-workbench-chat-turn.schema.yaml, neither touches the other's file. The only conflicts were the shared release surface -- the CHANGELOG (two v1.39 headings; resolved keeping BOTH entries, theirs at v1.39 and ours renumbered above it) and the v1.39 inventory path (add/add; THEIRS taken verbatim, byte-for- byte identical to origin/main, and ours rebuilt at the v1.40 path). NOT the #235 landmine: their releases/contract-v1.39.digests.yaml is present and complete, and verify-commit --commit 1f45e42 PASSES against it. Recorded in the entry, since the two preceding re-allocations both left a red surface behind. RENUMBERED 97 references, ours only -- #259's own v1.39 mentions in its change packet, its examples, its roster schema, its README line and its CHANGELOG entry are THEIRS and are untouched. THE SCHEMA BYTES DID MOVE, which is expected and not a defect: this schema's own comments name the release it belongs to, so renumbering the release renumbers them. Digest repinned at all four sites; the v1.40 inventory is REBUILT after the bundle bump and moves exactly four digests -- CHANGELOG, contracts/README, manifest, and the chat-turn schema. Co-Authored-By: Claude Fable 5 <[email protected]>
brettheap
pushed a commit
that referenced
this pull request
Aug 22, 2026
Codex found a SIBLING of its own previous finding: doxbench_contracts.py's pin history carried the same mechanically renumbered historical claim -- "v1.40 WAS AVAILABLE WHEN THIS SLICE ALLOCATED IT ... at the branch base (6614061)" -- which was never true. v1.39 was available there and this slice allocated it; v1.40 came only after PR #259 took v1.39. My previous sweep was scoped to tasks.md and the CHANGELOG. That is twice now that a scoped sweep has been the thing that missed: first a grep with no *.css, now a sweep of two files when the claim lives in four. The sweep is now content-based across EVERY file for the historical phrases (branch base, was available, next available, mid-flight, and each merge sha), and it finds only the corrected paragraphs. Fixed here: * the pin history now tells the sequence -- allocated v1.39 at the base, lost it to #259 at landing, re-cut to v1.40 -- and says outright that a blanket renumber had left the false claim, rather than quietly restating the number; * proposal.md's `contract_release:` frontmatter said only 11.7 had to move a number in flight. TWO of the four did: v1.37 -> v1.38 (#235) and v1.39 -> v1.40 (#259). Both re-cuts are the availability test working as written. No contract byte moves; schema digest unchanged at d8ee5624... Co-Authored-By: Claude Fable 5 <[email protected]>
brettheap
added a commit
that referenced
this pull request
Aug 22, 2026
…ve contract-v1.40) (#256) * WIP 10.7: the assembled context's posture, on the schema and in the record Additive on `$defs/success_v2`: ONE optional property, `context_packet`, a closed object carrying the packet's own `posture` (`full | reduced`) and its `reduced_reason`, with two conditionals refusing each half of the truth-pairing `ContextPacket` enforces at construction -- reduced-without-reason and reason-on-full. Nothing previously valid becomes invalid: the key is OPTIONAL and its ABSENCE is not a posture claim. ONE OBJECT rather than two sibling keys, on the `selected_model` precedent in the same file: one fact about one thing, the present-iff rule stays local to the object that owns it, and the ENVELOPE's key set is identical for a full turn and a reduced one. `serve.doxbench_context_packet` is the ONE derivation, beside `doxbench_selected_model`, reading the packet the turn actually ran under -- never re-deriving from "was there a knowledge service?", which would be a second authority (the packet also reduces when a live backend REFUSES a retrieval). It is called INSIDE the route's packet boundary, so a lying injected assembler is a `PacketError` mapped to the fixed `invalid_turn_request` rather than a guessed posture. The builder takes two named scalars, not a dict, and the posture is REQUIRED of it. The v1 lane is untouched and its second limitation is recorded at the arm. Co-Authored-By: Claude Fable 5 <[email protected]> * WIP 10.7: the surface states the reduced posture The browser half the release exists for. `settleTurnSuccess` adopts the record's `context_packet` instead of projecting it away (the adopter is total by refusal and FAILS CLOSED on a contradiction -- a `reduced` with no readable reason drops to null rather than showing the silent degradation with a badge on it), and `beginTurn` and `adoptThreadTranscript` clear it, so the note only ever describes the answer currently on screen. `reducedContextNote` is the one pure selector, and `div.doxchat-context` is one aria-live note under the transcript. A FULL turn shows nothing new: a standing "full context" badge is a line operators learn to stop reading, which is how the reduced one would stop being noticed. Deliberately a rail-level fact about the LAST ANSWER, not a per-turn badge: a transcript restored from the server's thread sidecar carries no posture, so per-turn badges would be present on a lived-through turn and absent on the identical restored one. Co-Authored-By: Claude Fable 5 <[email protected]> * WIP 10.7: the delegated validator, the packaged corpus, and the repin The validator learns `check_context_packet`: the PAIRING (restated on purpose -- the v1.38 F2 finding was a file gate that had grown weaker than the type gate while claiming parity, and three gates now assert this one rule) plus the credential/endpoint spelling scan over the reason, which is the release's one new free-prose field and the only rule here the shape cannot express. A third rule was considered and rejected in the docstring: prose-matching the reason. Packaged: TWO positives (reduced-with-its-reason, explicitly-full) beside the unchanged pre-release record whose continued validity IS the additive claim, and FOUR negatives -- reduced-without-reason, reason-on-full, an unknown posture, and a fourth fact on the closed object. Validator stays 0 errors / 4 warnings; examples 39 -> 41 valid, 61 -> 65 negative. Repin: CONTRACT_TAG -> contract-v1.39 with the `unpublished:` sentinel for the ref, the CHAT-TURN digest moved (the catalog's unmoved -- the mirror image of the v1.38 repin), the manifest row digest + rewritten consumption_rule, and the test-side RELEASED_* mirror plus the packaged-positive count 11 -> 13. The route fixture schema declares `context_packet` and does NOT require it, mirroring the release: that fixture's job is discriminators and closedness, and the released bytes hold the value rules. Co-Authored-By: Claude Fable 5 <[email protected]> * WIP 10.7: pin the release from four sides CONTRACTS: the additive-class block against the REAL released bytes -- the pre-release record still valid with no posture at all, four conformant postures, eleven refusals (including the reason at its exact 500-byte ceiling and one byte past it), the S1-vs-S3 read on this shape (each conditional guards a case the other does not, and the unknown posture is refused by the enum NEITHER touches), and the blast radius: the v1 success and the v2 failure both refuse the key, so "one optional property on one shape" is checkable rather than described. THREE GATES, ONE RULE, asserted: each packaged pairing negative is refused by the shape, by the delegated validator with the `context-packet` finding code, AND by `ContextPacket.__post_init__`. The other two negatives are the shape's alone and the table says so -- the validator does not restate an enum or a closure. ROUTE: the reduced and full scenarios end to end on the widened lane; the record and the packet's own declaration pinned equal; a REFUSING backend recording its own reason (the case a "re-derive from whether a knowledge service existed" implementation would get exactly backwards); the v1 lane still succeeding and still unable to say so; and every shipped reduction reason checked against the released ceiling, because an over-long one would turn a degraded turn into a `response_invalid` refusal on the one path nobody exercises by hand. FAIL-CLOSED: four lying-assembler cases through the injected seam, each refused with the fixed `invalid_turn_request` and nothing dispatched. SURFACE: a node probe over the SHIPPED bytes -- reduced renders the note and the reason, full renders nothing, an older record renders no phantom badge, both self-contradicting records render silence rather than half a statement, and a new flight clears the note. Co-Authored-By: Claude Fable 5 <[email protected]> * contract-v1.39: the doxBench chat-turn's assembled-context posture (additive) Completes the release surface for tasks.md §10.7 of add-doxbench-editing-phase-b: the CHANGELOG entry and the release DIGEST INVENTORY. The schema growth, the manifest row (recomputed digest + rewritten consumption_rule), the bundle bump and the consuming runtime repin are the preceding commits on this branch; the branch squashes to one unit, exactly as §11.7's and §13's releases did. ALLOCATED v1.39, CHECKED AT ALLOCATION. At the branch base 6614061 the CHANGELOG's newest heading was contract-v1.38 and the bundle read contract-v1.38, so v1.39 was the next available number. CHANGELOG presence is the availability test -- the habit the v1.37/v1.38 episode earned. THE PRECEDING RELEASE SURFACE IS GREEN, checked rather than assumed: verify-commit --commit origin/main PASSES at 6614061 against contracts/releases/contract-v1.38.digests.yaml. The v1.37 lane's HGR-RELEASE-DIGEST-MISMATCH no longer applies now the bundle has moved. Recorded in the entry, because the two preceding releases both found the surface broken when they got there. INVENTORY BUILT AFTER THE BUNDLE BUMP (v1.36's first tag failed on exactly this): 190 entries, and exactly four digests move -- CHANGELOG, README, manifest, and the chat-turn schema, which are precisely this cut's inventory-member files. A FIFTH PACKAGED NEGATIVE lands with the entry: a reduction reason leaking a raw endpoint and a bearer credential. It is the ONE case the shape cannot refuse, which is why it is the one this release delegates -- and the negative table now records which gate owns each case rather than settling for "something refused it". * Tick 10.7 and 13.8: the last release is cut, and the build is closed 10.7 is CHECKED because the ratified `The knowledge service is unavailable` scenario is claimable in full: the record carries `context_packet` and the rail states the reduced posture to the HUMAN, which is the half the task stayed open for. The tick records the release, the one derivation and its four lying-assembler refusals, the two delegated rules and the third that was rejected, the five packaged negatives and which gate owns each, the fail-closed ceiling hazard, and SIX flagged judgement calls: one nested object with the packet's own names, always stating the posture (the OPPOSITE of 11.7's disclosure call, and why), omission is not a posture claim, no `dependentRequired` and why that is not a weakening, the rail-level note rather than per-turn badges, and the THREAD SIDECAR GAP -- flagged as a gap, refused on the parser's fixed arity rather than on merit, and named as F3's honest counterpart. 13.8 is CHECKED because the set it waits on is empty. Its stale sentence claiming 11.7 owes a model-catalog release is CORRECTED with the citation (contract-v1.38, PR #244 / 0f50b35, pin resolved at 58e4aec) -- 11.7's own tick deliberately left that to this task's owner, and this is the owner arriving. What the tick does NOT claim is spelled out: the squash sha, the published tag and the sentinel resolution are the post-land step, with a blank line for the follow-up to fill in. Ledger: both remaining rows struck with attribution, TWO open rows became ZERO, and the note says plainly that the archive gate's mechanical refusal no longer standing is a statement about the gate rather than permission to walk through it. Nothing archived. proposal.md `contract_release:` goes THREE releases -> FOUR across three schemas (the chat-turn schema carries two), and owes none. Co-Authored-By: Claude Fable 5 <[email protected]> * 10.7: guard the thread-switch clear, which revert-testing found unguarded R24 came back GREEN: deleting adoptThreadTranscript's posture clear broke no test. The probe now asserts it -- switching documents replaces the transcript with the SERVER's thread record, which carries no posture, so a note left standing captions one conversation with a fact about another (the same defect class P2-9 found for the transcript itself). Co-Authored-By: Claude Fable 5 <[email protected]> * 10.7: record what revert-testing actually found, and rebuild the inventory TWO honest corrections to the record, both from the 26-case revert pass: * the delegated validator's RESTATED pairing arms are a DIAGNOSTIC, not an independent guard -- disabling both leaves the validator's own self-test green, because the shape refuses the same instances anyway. Same class as 11.7's separator-collision and self-reference arms, handled the same way (pinned on the finding CODE, which is the only guard that fails). Said in both the CHANGELOG and the tick rather than left implying a second refusal. * the tick now carries the revert-test summary, including the ONE case that came back GREEN and the test added for it. The CHANGELOG is a v1.39 INVENTORY MEMBER, so the inventory is REBUILT with it -- the habit the v1.37 lane's PR #242 miss earned. Still 190 entries, still the same four moved digests. * 10.7: state the revert-test count exactly (29 runs, 27 mutations, two GREEN) Co-Authored-By: Claude Fable 5 <[email protected]> * 10.7: tighten six claims the record was overstating, and repin An adversarial reader would have caught every one of these, so they are fixed before one has to: * the key-set-equality argument cited "an existing route-level test still passes UNCHANGED". The pre-existing test is on the DEPRECATED v1 lane, where the key does not exist at all and which therefore says nothing about the nesting. The claim now names the NEW widened-lane test that actually carries it -- and says why two sibling keys would have made that test unwritable. * "the packet half shipped at contract-v1.34's slice" -> it shipped with §10 itself (PR #216). v1.34 was §13. * "the inventory ships inside this cut, as contract-v1.34 through v1.38 all did" -> v1.37 did NOT, which is the defect this very file records against it. * "the two preceding releases both found the surface broken" -> ONE preceding release found it broken, twice. * the codexFactory chat-turn consumer doc is NOT in this checkout and was NOT read. The entry now states the OBLIGATION rather than asserting a finding. * "1..500 bytes" -> JSON Schema counts `maxLength` in CODE POINTS. The producer's guard checks the stricter UTF-8 BYTE count against the same number, which is now what both the schema comment and the entry say. Also: the unchanged pre-release example is unchanged in its INSTANCE (its header comment grew), the pin-drift revert wording says three surfaces drifted once rather than "both directions", `check_context_packet`'s own docstring now carries the diagnostic finding, and 13.8's green numbers are re-measured AFTER the origin/main merge with the fifteenth skip explained as a checkout-layout artifact. The CHANGELOG and the SCHEMA both moved, so the digest is repinned on all three surfaces and the inventory REBUILT after it. * Review round 1: four should-fixes and three notes, each reproduced first S1 — THE NOTE WAS WRITTEN WHILE HIDDEN, so "live-announced" was nearly false. A `hidden` node is out of the accessibility tree; the text mutation landed in a node no live region observed, and `aria-live` read `polite` either way, which is why an attribute assertion could not catch it. Order now matches the failure note beside it (un-hide, then write), and the probe pins the ORDER by recording `hidden` AT THE MOMENT of the write. S2 — THE SCHEMA COMMENT CLAIMED A BYTE GUARD THAT DID NOT EXIST, in released bytes. Reproduced against the RELEASED validators: a 500-code-point CJK reason (1,500 bytes) SERVED 200; a 501-code-point reason 502 `response_invalid` with dispatch ALREADY COUNTED. Three fixes: the comment now says CODE POINTS and what that means for a consumer sizing a buffer; the constants test's docstring names its unit and why it uses the stricter one; and `doxbench_context_packet` gained the bound itself, in code points, pre-dispatch -- so it refuses exactly what the shape refuses and no conformant record more (the CJK case is still served, and a test says so). The constant is pinned to the released `maxLength`. S3 — 13.8 ASSERTED "MERGED" PRE-MERGE. The three pending facts (squash sha, tag, sentinel) are lifted to the HEAD of the block so a reader meets them before any claim they qualify, and the gate's verb is stated exactly: BUILT AND GATED now, MERGED at the landing squash. S4 — A FAILED FOLLOW-UP STRIPPED THE REDUCED ANSWER'S DISCLOSURE. Reproduced (reduced -> note; FAILED follow-up -> no note, transcript unchanged). Took the reviewer's SECOND shape: delete the `beginTurn` clear, because a flight starting replaces no answer and every path that replaces one already replaces the posture beside it. Restoring in `settleTurnFailure` was rejected -- it would need a stash plus the same restore in `abortTurn` and `recordLocalFailure`, re-implementing one invariant at three sites. Both directions probed and revert-tested. N1 the redaction scan is a LINT with misses in both directions, not a guard -- kept, reworded in the validator docstring, the CHANGELOG and the tick. N3 one route test drives a reduced turn through the RELEASED schema with the default validator seam, closing the fixture-schema gap on the posture rules. N6 `TurnStore` is per-process, in-memory and bounded; nothing durably stores a v2 body. The durable record is the thread sidecar, which does not carry it. The schema and the CHANGELOG both moved: digest repinned on all three surfaces, inventory REBUILT after it. * S1: assert the order over EVERY write, not the last one The R27 revert-test came back GREEN with the defect restored. Cause: under the wrong order a reduced turn produces TWO non-empty writes -- the settling render writes the text while the node is still hidden (the announcement is lost there) and a LATER re-render writes the identical text with it already visible. The probe read writes[length-1] and saw only the benign second one. Now asserted over every non-empty write: none may happen while hidden, and the FIRST one is checked explicitly. Exactly the trap the reviewer warned about when they said attribute assertions cannot catch this. Co-Authored-By: Claude Fable 5 <[email protected]> * 10.7: record the review round's nine revert runs, including the third GREEN The S1 probe itself came back GREEN with the defect restored -- the most useful result in the table, and the reviewer's own predicted failure mode one level up. Recorded beside the other two. Co-Authored-By: Claude Fable 5 <[email protected]> * 10.7: re-measure 13.8's green numbers after the review round (3896 -> 3903) Co-Authored-By: Claude Fable 5 <[email protected]> * Review round 2: the ledger verb, the fourth answer-replacing path, and the snapshot S3 RESIDUAL — the ledger summary paragraph, which a reader reaches BEFORE the tick block, still said the release had "landed" and that the archive gate's sentence "is true ... and it now is". Same overclaim, same correction: built and gated now; merged and landed become true at the landing squash. NEW-1 — `restoreChatState` is a FOURTH answer-replacing path and kept a stale posture. Reproduced: restore a different conversation's snapshot over a reduced state and the note survives, captioning "a DIFFERENT, un-described answer". Reachability nil (the sole caller restores onto a freshly mounted rail) but three enumerations claimed completeness at three paths. Named as the fourth in all three, probed, revert-tested. NEW-2 TAKEN AS (a), CLOSE IT, NO VERSION BUMP. `CHAT_SNAPSHOT_VERSION` is a fail-closed gate -- restoreChatState keeps the FRESH state on an unrecognized version -- so bumping would discard every stored blob on the first reopen: composer text, subject, model choice and proposals, spent to add a caption. An OPTIONAL field invalidates nothing: an old blob restores to posture-unknown (no note, the pre-release behaviour), and a new blob read by an older build is ignored because the restore reads named fields and never enumerates. Same additive reasoning the wire contracts use, applied to a blob. The stored field is named `context_packet` and carries the released object whole, so ONE validator serves both readers and a contradictory blob fails closed. An explicit `full` IS persisted. The first probe called that an oversight; it is the doctrine -- absent and `full` are different facts everywhere else in this release, so dropping `full` would restore "unknown" over a posture somebody checked. NEW-3 the live region is written only when its text CHANGES (the reviewer measured seven re-announcements of the same 227-char sentence from composer keystrokes); probe pins the write count across seven keystrokes. NEW-4 the CJK conformance test now runs @released_only through _UNSET, so "conformant" is a claim about the released bytes rather than about the fixture. Its over-long sibling needs no such treatment: the producer guard fires before any validator is consulted. Also corrected: a tick sentence still saying `beginTurn` clears the note. The CHANGELOG moved, so the inventory is REBUILT with it (the schema did not). * NEW-2: pin the stored-posture guard on the ADOPTED STATE, not the rendered note R39 came back GREEN twice. Cause: reducedContextNote holds its own second guard on the same rule, so a note-level assertion is satisfied even when restoreChatState trusts the blob whole. The probe now reads the adopted state across five contradictions and also asserts the honest blob still adopts, so the guard is shown to be discriminating rather than merely refusing. (The second GREEN was a process error of mine, not a second defect: revert.py restores with , which reverted this strengthening because I had not committed it before running the drive. Committing first from here.) Co-Authored-By: Claude Fable 5 <[email protected]> * 10.7: record round 2's eight revert runs and the fourth GREEN Twice now a probe has been satisfied by a downstream guard rather than by the thing it names (S1's later re-render, NEW-2's selector second-guard). Recorded as a habit to check. Also records the harness process note: commit before revert-testing, because restore() is git checkout -- . Co-Authored-By: Claude Fable 5 <[email protected]> * 10.7: re-measure 13.8's green numbers after review round 2 (3903 -> 3908) Co-Authored-By: Claude Fable 5 <[email protected]> * Fold the reviewer's last two notes: soften a comment, name a follow-up The adopter NORMALIZES (drops an unknown key and still adopts) where the released shape's closure REFUSES the instance. "Exactly the rule a malformed wire record does" was a shade strong for the closure case, so the comment now says the PAIRING rule is shared and the verdicts differ -- and why each is right where it sits. It lives in doxbench-chat-model.js, which is not released bytes, so the correction lands at the source rather than in a frozen entry. Recorded, NOT coded: adoptContextPacket applies no length bound to a RESTORED reason (a tampered browser-local blob renders an arbitrarily long muted note; browser-local, self-tamper only, nothing reaches the wire, the server or another viewer). One line is the fix and it belongs to the slice that touches the function next. Co-Authored-By: Claude Fable 5 <[email protected]> * 10.7: re-measure at the final merge (origin/main 0f9e14b, 3930 passed) Co-Authored-By: Claude Fable 5 <[email protected]> * Copilot #256: presence is not truthiness — fixed at four gates, not two BOTH FINDINGS CONFIRMED, reproduced across all five gates before anything was touched. The released shape forbids `reduced_reason`'s KEY on a `full` posture (`not: {required: [reduced_reason]}`). Three other gates forbade only a USEFUL value, so `{posture: "full", reduced_reason: ""}` passed them: instance shape delegated ContextPacket serve adopter key absent ok ok ok ok ok reduced_reason "" REFUSES REFUSES ACCEPTS* ACCEPTS* ACCEPTS* reduced_reason null REFUSES ACCEPTS* n/a n/a ACCEPTS* a real reason REFUSES REFUSES REFUSES REFUSES REFUSES Copilot 1 (serve.py) and Copilot 2 (doxbench-chat-model.js) are the third and fifth columns. Fixing them surfaced two more of the same class: the CONSTRUCTION gate `ContextPacket.__post_init__` had it too — and the release claims in writing that the type, the shape and the validator "assert this one rule", which was false at the blank — and the DELEGATED VALIDATOR read `reason is not None` where the shape reads the key, so `.get()` could not tell a `null` from an absent one. Copilot named two gates; there were four. FIXED at each, with the unit matched to what the reader can see: `is not None` at the type and the derivation (a Python attribute has no key/value distinction, so that IS presence there), own-key presence in the validator and the adopter, which read JSON and do. THE REDUCED ARM IS UNCHANGED, deliberately, and the asymmetry is the shape's own: `full` refuses the field for BEING THERE, `reduced` refuses it for being UNUSABLE (`required` plus `minLength: 1`). Two rules, not one predicate — said at each site, because collapsing them is how this comes back. Pinned both ways: a blank still refuses on `reduced`, a real reason still passes, an absent key still adopts on `full`. Two packaged negatives, one per instance a different gate missed: `-context-empty-reason-on-full` and `-context-null-reason-on-full`. Six revert-tests, all RED, including two that loosen the reduced arm to prove the fix tightened `full` without weakening it. NO CONTRACT BYTE MOVES — the shape was right all along. Schema digest unchanged at cc874fef…, inventory untouched, verify-commit passes; asserted rather than assumed, and the two new examples confirmed NOT inventory members. Co-Authored-By: Claude Fable 5 <[email protected]> * 10.7: correct the bot round's revert count (7 runs) and note R43 is no fifth GREEN The validator revert leaves its own self-test green because its pairing arms are DIAGNOSTICS -- already recorded, and the finding-code pin that guards them went RED. Predicted, then observed. Co-Authored-By: Claude Fable 5 <[email protected]> * Review N-1 and N-2: correct a "not rebuilt" claim, and make a per-stem table per-stem N-1: two sites said the PACKET was not rebuilt and that `ContextPacket` is byte-identical to what §10 shipped. False since the bot round, which tightened the construction gate's full-arm predicate. Bounded and re-verified before rewording: `assemble_packet` and both `REDUCED_*` constants have zero hits in this branch's diff and `test_doxbench_packet.py` is unmodified, so the ASSEMBLY claim stands as written -- one predicate moved, and it moved to keep the three-gates-one-rule claim true rather than as a carve-out. N-2: the type-gate parametrization mapped every non-reduced stem to `(FULL, _REASON)`, so four parameterisations constructed TWO distinct packets and the test reported per-stem coverage it did not provide -- the blank stem, the exact instance the type used to accept, was never constructed there. Now a per-stem table. The null stem asserts ACCEPTED against a stated representational limit: a Python attribute has no key/value distinction, so `reduced_reason=None` IS absence and the wire instance has no counterpart; the shape and the delegated validator refuse it and are pinned doing so, and `...agree_on_PRESENCE` is the faithful pin for the type. A companion test requires every stem to have its OWN instance -- and it earned itself on its first run, catching that `-reason-on-full` is a suffix of both new stems, so the table is keyed on whole stems. No contract byte moves. Co-Authored-By: Claude Fable 5 <[email protected]> * 10.7: re-measure 13.8 at the v1.40 re-cut (origin/main 1f45e42) 3940 passed / 15 skipped; doc-health 704 and openspec 66 both move because #259's tests and its still-active change packet came in with the merge. Counted fresh, not carried forward. Co-Authored-By: Claude Fable 5 <[email protected]> * Bot round 2 on the re-cut: three findings, all real, all from the renumber Copilot and Codex INDEPENDENTLY caught the same miss, and it is the useful one. 1+2. styles.css:1881 still said contract-v1.39. A genuine miss: the file was not in the renumber list, AND my own post-renumber audit could not have caught it -- the grep was scoped `--include="*.py" --include="*.md" --include="*.yaml" --include="*.js"` with no `*.css`, so the one file that needed it was the one class the audit was blind to. Re-swept with a content-only grep across ALL file types: styles.css was the only hit, and it is now v1.40. 3. Codex, tasks.md:1085 -- the blanket renumber rewrote a HISTORICAL record into a false one. That paragraph describes the allocation at branch base 6614061, where the next available number was v1.39 and this cut took it; renumbering it made it claim v1.40 "was available" there, which was never true. The CHANGELOG's re-cut narrative had preserved the sequence correctly and the tick had not. The paragraph now tells the sequence -- allocated v1.39 at the base, lost it to PR #259 at landing, re-cut to v1.40 -- and says in as many words that an earlier version of itself was the false one, rather than quietly correcting it. Swept for siblings; this was the only historical claim the renumber corrupted. 4. Copilot, the credential-leak negative's header: "bounded at 500 bytes" is the byte-vs-code-point confusion this release explicitly fixed elsewhere. Now "`maxLength: 500` (code points, not bytes)". No contract byte moves: none of the three touches contracts/, the schema digest is unchanged at d8ee5624..., and the validator holds at 0 errors / 4 warnings with 41 valid + 68 negative examples. Co-Authored-By: Claude Fable 5 <[email protected]> * Codex round 3: the same corrupted-history defect, in the pin comment Codex found a SIBLING of its own previous finding: doxbench_contracts.py's pin history carried the same mechanically renumbered historical claim -- "v1.40 WAS AVAILABLE WHEN THIS SLICE ALLOCATED IT ... at the branch base (6614061)" -- which was never true. v1.39 was available there and this slice allocated it; v1.40 came only after PR #259 took v1.39. My previous sweep was scoped to tasks.md and the CHANGELOG. That is twice now that a scoped sweep has been the thing that missed: first a grep with no *.css, now a sweep of two files when the claim lives in four. The sweep is now content-based across EVERY file for the historical phrases (branch base, was available, next available, mid-flight, and each merge sha), and it finds only the corrected paragraphs. Fixed here: * the pin history now tells the sequence -- allocated v1.39 at the base, lost it to #259 at landing, re-cut to v1.40 -- and says outright that a blanket renumber had left the false claim, rather than quietly restating the number; * proposal.md's `contract_release:` frontmatter said only 11.7 had to move a number in flight. TWO of the four did: v1.37 -> v1.38 (#235) and v1.39 -> v1.40 (#259). Both re-cuts are the availability test working as written. No contract byte moves; schema digest unchanged at d8ee5624... Co-Authored-By: Claude Fable 5 <[email protected]> * Codex round 4: a restored posture must not outlive the answer it describes A NEW finding and a real one. `restoreChatState` drops malformed turns WHOLE (P3-6(a)/(b)), so a perfectly valid stored `context_packet` can arrive with no answer to describe. Three cases reproduced before fixing: empty transcript + valid posture -> note rendered for NO answer assistant turn filtered, human kept -> same NEWEST assistant turn dropped -> the note captioned the OLDER answer with the NEWER answer's posture The third is the wrong-answer caption this invariant exists to prevent, arriving by a THIRD route after the failed follow-up (S4) and the cross-restore (NEW-1). Fixed at the invariant rather than per-case: the posture is adopted only when the restored transcript ENDS with an assistant turn, because that is the answer a posture would be describing. A transcript ending in a human turn has no answer on screen -- including the ordinary case of a tile closed mid-question. The honest case still adopts, and the probe asserts that too, so this is a condition and not a blanket refusal. Co-Authored-By: Claude Fable 5 <[email protected]> * Codex round 5: a reduction reason must be a STRING, not merely truthy Reproduced, and worse than reported. `if not reason:` accepted any truthy value and `str(reason)` then MANUFACTURED a reason from it: 123 -> "123" ["a","b"] -> "['a', 'b']" {"why": "x"} -> "{'why': 'x'}" object() -> "<object object at 0x71c078978c90>" A heap address, in a durable record, on the degraded path. Same silent-normalisation class as the presence findings: malformed collaborator output turned into a conformant-LOOKING posture instead of a refusal. Fixed at BOTH gates, as the presence rule was -- the derivation and `ContextPacket.__post_init__` -- because the released shape says `type: string` and a truthy non-string is not a reason. The reason is now carried VERBATIM rather than coerced: `str(reason)` is gone from the return and from the ceiling measurement. NOT restated in the delegated validator, deliberately and consistently: that gate restates the PAIRING and nothing the shape already expresses, exactly as it restates neither the posture enum nor the object's closure. A type constraint is the same category. The browser adopter already required `typeof === "string"`. Co-Authored-By: Claude Fable 5 <[email protected]> * Codex round 6: the released ceiling on the reading side, and a guard that could not see its own case TWO findings, both reproduced, both real -- and one of them breaks a guard this branch added two rounds ago. F1 -- THE ADOPTER HAD NO CEILING. This was recorded in the tick as a named follow-up, deliberately deferred, on the grounds that the blob is browser-local and self-tamper only. That rationale covered the wrong half of the surface: the same adopter also reads the WIRE, the dispatcher validates only `ok` and `kind`, so a malformed transport's oversized reason reaches browser state, the live region and from there the persisted snapshot. Reproduced at 5,000 code points. The bound is now in, pinned to the released `maxLength` by its own test, with a reason exactly AT the ceiling still adopting. The tick records this as a REVERSAL of its own deferral rather than quietly doing it. F2 -- MY ROUND-4 GUARD COULD NOT SEE ITS OWN CASE. It tested the FILTERED transcript's tail, which cannot distinguish the original terminal answer from an earlier retained one: `[human, assistant "older", assistant(malformed)]` filters to a tail that IS an assistant turn, so the guard passed and captioned the older answer with the newer answer's posture -- exactly the defect it was added to prevent, one layer in. Reproduced. The test is now THE SNAPSHOT'S OWN TERMINAL ROW: adoption asks whether the answer the posture BELONGS TO survived, using the same well-formedness predicate the transcript filter uses so the two cannot disagree about what "survived" means. THREE restatements of one ceiling now exist (schema, serve, browser) and each pair has a pinning test, so they cannot drift into three ceilings. Co-Authored-By: Claude Fable 5 <[email protected]> * Codex round 7: count the reading-side ceiling in CODE POINTS, not UTF-16 units Correct, subtle, and the same mistake this release argued against on the server side -- arriving on the browser side in the other unit. JavaScript's `String.length` counts UTF-16 code UNITS; JSON Schema's `maxLength` counts CODE POINTS. Reproduced: a conformant reason of 300 emoji is 300 code points and `.length === 600`, so the ceiling added one round ago DISCARDED a record the released contract accepts -- hiding the very disclosure this release exists to show. `[...reason].length` iterates code points. This is precisely the reasoning the S2 fix used to reject a BYTE-counting guard on the server ("a byte-counting guard would refuse a conformant 1,500-byte CJK reason"); the unit discipline was right there and the browser side got it wrong anyway, which is worth recording rather than just fixing. Pinned: 300 code points / 600 UTF-16 units, adopted. Co-Authored-By: Claude Fable 5 <[email protected]> * Fix the broken escape my own round-7 test commit introduced `\u{1F600}` inside the Python-hosted JS harness string is an invalid Python unicode escape (`\u` wants exactly four hex digits), so the previous commit left test_doxbench_chat_view.py failing to COLLECT -- caught immediately by the targeted run, but it was committed broken. `String.fromCodePoint(0x1F600)` needs no backslash and says the same thing. Recorded rather than amended away: a commit that cannot be collected is worse than the defect it was fixing, and the reason it happened is that I ran the tests AFTER committing rather than before. Co-Authored-By: Claude Fable 5 <[email protected]> * Codex round 8: drop the stale byte-guard claim from the tick The tick's shape description still said the producer's guard "shadows [the code point bound] with the stricter UTF-8 byte count". That was true of a draft and is not true of the code: `serve.doxbench_context_packet` counts `len(reason)` (code points) and the browser adopter counts `[...reason].length`, both pinned to the released bound; the BYTE count applies only to the shipped `REDUCED_*` constants, in a test, as a rule about text this repository authors. The same task already called that claim false 90 lines further down, so the change packet was contradicting both the implementation AND its own correction. Now it describes the runtime code-point guard and the separate constants test as two different things. The two remaining "500-byte ceiling" mentions are contract-v1.38's, about `data_handling`, and are not this release's to restate. No contract byte moves. Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: brettheap <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
This was referenced Sep 6, 2026
brettheap
pushed a commit
that referenced
this pull request
Sep 6, 2026
…"ratify both when green, then land them" A PAIR word over this companion and its parent codexFactory #235 together, recorded 2026-09-06T01:18Z on PR #708 (comment 5556025824), applied at head e4ef8ad. THE WORD WAS CONDITIONAL AND THE CONDITION WAS MET: the ruling held the ratifying commit until `pytest-suite` left pending on that head; it was polled at 60-second intervals and PASSED (run 34003024740, 23m50s), and only then was this authored. Decisions M-1 through M-7 STAND AS RECOMMENDED; no veto was exercised and each remains one edit away. NO REQUIREMENT TEXT MOVES. `git diff e4ef8ad -- .../specs/ .../design.md .../tasks.md` is EMPTY at this commit: eight ADDED requirements, 24 scenarios, one ADDED heading, no MODIFIED and no REMOVED block. What changes is proposal.md's Status:/Ratified: headers and its two dated notes, the README OpenSpec Records entry's standing, .openspec.yaml's kept-and-answered approved_by statement, and the new review/ratification-2026-09-06.md. NOTHING IS REALIZED, AND NO PIN MOVES. contracts/review-lane-pin.yaml, merge-master-approval.yml's PINNED_CORE_COMMIT and its checkout ref, pytest-suite.yml's checkout ref, and contracts/review-lane-floor-snapshot.yaml with its sha256 and entry_count: 68 are all byte-unchanged. The JUDGE — LQ-A7, its two negative controls, the byte-identity verifier, its named-testcase watch and EXPECT_SKIPPED — stays outside the declared code_surface. The catch-up merge of origin/main (0adb5c6) is carried in the same act. It brought no conflict and added no change directory, so the per-change sweep ledger needed no re-seeding: --ledger-diff reports "per-change sweep ledger consistent with the corpus (176 rows)" with this change's row intact at moved_by "#708", moved_on 2026-09-06, depth 1; tests/sequenced_after -> 162 passed. OPENSPEC_TELEMETRY=0 openspec validate mirror-floor-regeneration-automation --type change --strict -> valid; --all --strict -> 94 passed, 2 failed, the same two pre-existing failures main carries. Refs codexFactory#232, codexFactory#203, codexFactory#231. Lane: openxfactory-2
brettheap
pushed a commit
that referenced
this pull request
Sep 6, 2026
…y contradiction and Status: draft residue, fixed here too The openxFactory half of the sweep Copilot's round 2 opened on codexFactory #235. Copilot has not reviewed this head; these were found by carrying that review's findings across rather than by waiting to be told twice. 1. .openspec.yaml approved_by contradicted itself — "the packet remains Status: draft ... a separate act that has not happened" sitting beside "THE PACKET HAS SINCE BEEN RATIFIED". Same defect openxFactory #676 fixed in 98edcb4, fixed the same way: the approval-to-author sentence goes into the past tense, scoped to when the field was written. 2. tasks.md 6.1 still said "It is Status: draft". It now carries a dated 2026-09-06 note recording the ratification, and 6.2 one recording that M-1..M-7 stood. BOTH BOXES STAY UNTICKED — ticking an owner's-act box is a claim an agent may not make about the owner. 3. design.md section 8's "second cross-repository entry" was CHECKED and HELD, and now carries its evidence: corpus_sweep('.') reports declaring=5 over change_ids=176, and of those five exactly TWO carry a qualified foreign entry — mirror-floor-addition-grace (codexFactory:add-floor-addition-grace) and this one. The claim was true; only the number was missing. CHECKED AND NEEDING NO CORRECTION: this packet carries no "fenced front matter" claim of any kind (grep -rn 'fenced' over the packet and the README entry returns nothing), so the four false absolutes corrected on codexFactory #235 — "no codexFactory proposal is fenced", "the second proposal to carry sequenced_after:", "the only fenced proposal in the corpus" — are not mirrored in this repository and nothing here inherited them. NO REQUIREMENT TEXT MOVES AND NO PIN MOVES. `git diff 4c40990 -- .../specs/` is EMPTY: eight ADDED requirements, 24 scenarios, one ADDED heading, no MODIFIED and no REMOVED block; zero ticked boxes. Narrative corrections to a RATIFIED packet at a later head under the SAME word, on the precedent of openxFactory #701. review/ratification-2026-09-06.md carries a dated addendum recording exactly that. OPENSPEC_TELEMETRY=0 openspec validate mirror-floor-regeneration-automation --type change --strict -> valid; --all --strict -> 94 passed, 2 failed, the same two pre-existing failures main carries. --ledger-diff -> consistent (176 rows); tests/sequenced_after -> 162 passed. Refs codexFactory#232, codexFactory#203. Lane: openxfactory-2
brettheap
added a commit
that referenced
this pull request
Sep 6, 2026
…(PROPOSAL ONLY) (#708) * WIP: companion proposal for option (b) — the re-pin lane (proposal.md) Refs codexFactory#232, codexFactory#203. PROPOSAL ONLY; nothing realized. Lane: openxfactory-2 * Propose the companion re-pin lane (design, delta, tasks, origin, README record) Eight ADDED requirements on review-lane-floor-mirror; nothing realized, every box unticked. The judge (LQ-A7, its controls, the byte-identity verifier and its named watch) is deliberately untouched. Refs codexFactory#232, codexFactory#203. Lane: openxfactory-2 * Seed the per-change sweep ledger row for mirror-floor-regeneration-automation (#708) One row added; tests/sequenced_after 162 passed. The ledger and the live corpus agree again row by row. Lane: openxfactory-2 * Take Copilot's thread: the ledger row's moved_on is the authorship date, 2026-09-06 The row read `moved_on: "2026-09-05"` while the README entry, the proposal front-matter (`Proposed: 2026-09-06`) and `.openspec.yaml` (`created: 2026-09-06`) all said 2026-09-06. The seeder defaults `--moved-on` to `datetime.date.today()` (scripts/validate-sequenced-after.py:265), which is the LOCAL date; the packet was authored and both pull requests were opened after 00:00Z on 2026-09-06, so the local default was a day behind the fact. Re-seeded through the sanctioned writer rather than hand-edited — the ledger row is reset to origin/main and rewritten with `--seed-ledger --moved-by '#708' --moved-on 2026-09-06`, which reports "176 rows, 1 moved by #708". The diff is exactly one line. `python3 -m pytest tests/sequenced_after -q` -> 162 passed. Refs codexFactory#232, codexFactory#203. Lane: openxfactory-2 * Ratify mirror-floor-regeneration-automation: Brett Heap, 2026-09-06, "ratify both when green, then land them" A PAIR word over this companion and its parent codexFactory #235 together, recorded 2026-09-06T01:18Z on PR #708 (comment 5556025824), applied at head e4ef8ad. THE WORD WAS CONDITIONAL AND THE CONDITION WAS MET: the ruling held the ratifying commit until `pytest-suite` left pending on that head; it was polled at 60-second intervals and PASSED (run 34003024740, 23m50s), and only then was this authored. Decisions M-1 through M-7 STAND AS RECOMMENDED; no veto was exercised and each remains one edit away. NO REQUIREMENT TEXT MOVES. `git diff e4ef8ad -- .../specs/ .../design.md .../tasks.md` is EMPTY at this commit: eight ADDED requirements, 24 scenarios, one ADDED heading, no MODIFIED and no REMOVED block. What changes is proposal.md's Status:/Ratified: headers and its two dated notes, the README OpenSpec Records entry's standing, .openspec.yaml's kept-and-answered approved_by statement, and the new review/ratification-2026-09-06.md. NOTHING IS REALIZED, AND NO PIN MOVES. contracts/review-lane-pin.yaml, merge-master-approval.yml's PINNED_CORE_COMMIT and its checkout ref, pytest-suite.yml's checkout ref, and contracts/review-lane-floor-snapshot.yaml with its sha256 and entry_count: 68 are all byte-unchanged. The JUDGE — LQ-A7, its two negative controls, the byte-identity verifier, its named-testcase watch and EXPECT_SKIPPED — stays outside the declared code_surface. The catch-up merge of origin/main (0adb5c6) is carried in the same act. It brought no conflict and added no change directory, so the per-change sweep ledger needed no re-seeding: --ledger-diff reports "per-change sweep ledger consistent with the corpus (176 rows)" with this change's row intact at moved_by "#708", moved_on 2026-09-06, depth 1; tests/sequenced_after -> 162 passed. OPENSPEC_TELEMETRY=0 openspec validate mirror-floor-regeneration-automation --type change --strict -> valid; --all --strict -> 94 passed, 2 failed, the same two pre-existing failures main carries. Refs codexFactory#232, codexFactory#203, codexFactory#231. Lane: openxfactory-2 * Carry the codexFactory #235 round-2 sweep across: the same approved_by contradiction and Status: draft residue, fixed here too The openxFactory half of the sweep Copilot's round 2 opened on codexFactory #235. Copilot has not reviewed this head; these were found by carrying that review's findings across rather than by waiting to be told twice. 1. .openspec.yaml approved_by contradicted itself — "the packet remains Status: draft ... a separate act that has not happened" sitting beside "THE PACKET HAS SINCE BEEN RATIFIED". Same defect openxFactory #676 fixed in 98edcb4, fixed the same way: the approval-to-author sentence goes into the past tense, scoped to when the field was written. 2. tasks.md 6.1 still said "It is Status: draft". It now carries a dated 2026-09-06 note recording the ratification, and 6.2 one recording that M-1..M-7 stood. BOTH BOXES STAY UNTICKED — ticking an owner's-act box is a claim an agent may not make about the owner. 3. design.md section 8's "second cross-repository entry" was CHECKED and HELD, and now carries its evidence: corpus_sweep('.') reports declaring=5 over change_ids=176, and of those five exactly TWO carry a qualified foreign entry — mirror-floor-addition-grace (codexFactory:add-floor-addition-grace) and this one. The claim was true; only the number was missing. CHECKED AND NEEDING NO CORRECTION: this packet carries no "fenced front matter" claim of any kind (grep -rn 'fenced' over the packet and the README entry returns nothing), so the four false absolutes corrected on codexFactory #235 — "no codexFactory proposal is fenced", "the second proposal to carry sequenced_after:", "the only fenced proposal in the corpus" — are not mirrored in this repository and nothing here inherited them. NO REQUIREMENT TEXT MOVES AND NO PIN MOVES. `git diff 4c40990 -- .../specs/` is EMPTY: eight ADDED requirements, 24 scenarios, one ADDED heading, no MODIFIED and no REMOVED block; zero ticked boxes. Narrative corrections to a RATIFIED packet at a later head under the SAME word, on the precedent of openxFactory #701. review/ratification-2026-09-06.md carries a dated addendum recording exactly that. OPENSPEC_TELEMETRY=0 openspec validate mirror-floor-regeneration-automation --type change --strict -> valid; --all --strict -> 94 passed, 2 failed, the same two pre-existing failures main carries. --ledger-diff -> consistent (176 rows); tests/sequenced_after -> 162 passed. Refs codexFactory#232, codexFactory#203. Lane: openxfactory-2 * Take Copilot round 3: the workflow permissions key is pull-requests, and the tasks header overclaimed MEASURED, not assumed: across both .github/workflows/ trees the workflow `permissions:` key is spelled `pull-requests` in every occurrence (`pull-requests: read` x3, `pull-requests: write` x3) and `pull_requests` in none; actions/create-github-app-token's input is `permission-pull-requests`, hyphenated the same way. The underscore form is the App INSTALLATION permission's spelling in the App/API vocabulary — the form both repositories' READMEs already use for App grants. Both sites here describe what the LANE'S WORKFLOW needs, so they take the hyphen form with the App-side spelling named beside it: two vocabularies, and the one that goes in YAML is now the one written. Second thread: tasks.md's header said "NOTHING BELOW IS STARTED BY THE AUTHORING OF THIS PACKET" directly above a group 1 that lists this packet's own authoring acts. The absolute was wrong. The header now scopes itself — no REALIZATION is started (groups 2-5), group 1 is the proposal's own acts with its boxes still unticked for the stated reason, and group 6 is the owner's, recorded by dated note because an agent may not tick an owner's-act box. NO REQUIREMENT TEXT MOVES and no box is ticked. Narrative corrections to a RATIFIED packet at a later head under the SAME word (precedent openxFactory #701); review/ratification-2026-09-06.md carries a dated round-3 line. Lane: openxfactory-2 --------- Co-authored-by: Brett Heap <[email protected]>
This was referenced Sep 6, 2026
brettheap
added a commit
that referenced
this pull request
Sep 8, 2026
…ally ticks on Copilot finding, taken: the § 1 archive-amendment preface said "Five issues were filed at this archive" while the same file later records a SIXTH (#800, for task 2.3). The count is now SIX, #800 is listed, and 2.3 is named in the successor kind it belongs to — with its "recording, not a discharge" qualifier carried into the preface so the summary cannot read as a claim the App-authorship route was proved. A SECOND inconsistency of my own, in the same sentence, fixed while here: the preface grouped 8.5 with 6.1 and 7.3 as ticking on Omnigent-Install #213's merge. It does not. 8.5 ticks on #235 bbba916d — § 6.2 performed the scope link with Part 1, a day before Part 2 completed the retirement — which is what 8.5's own note says and what the live Omnigent-Install README shows. The preface now says so, and says that this corrects the box's ratified "as part of retirement" guess by note rather than by carrying it. No box's state changes and no ratified requirement sentence is touched; this is the preface's own prose. openspec validate --all --strict unchanged at 97 passed / 2 failed, the two pre-existing accepted exceptions. Refs #591 Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013pt7yAnJ2TUhvMfxuuFujR
brettheap
added a commit
that referenced
this pull request
Sep 8, 2026
…apped, consumers re-pinned, retirement landed (#213) (#803) * Tick implement-omniworker-install-repo's twelve archive-gate boxes on evidence and five named successors On Brett Heap's word of 2026-09-08 ~12:2xZ, in session, verbatim "archive implement-omniworker-install-repo", recorded on openxFactory #591; and under his ruling of 2026-09-06, verbatim "Tick on the recording". Twelve of the fifteen boxes that were open at that word close here, and each one NAMES ITS KIND rather than leaving a reader to infer it. ON THE EVIDENCE, verified with gh/git on 2026-09-08 and not copied from earlier notes. 1.2 and 7.4: docs/omniworker-naming.md has read `Status: ratified` since this change's own landing squash 76434aa, unchanged by the two 2026-09-08 amendment passes (#784 6c9e362, #789 9581ed9). 7.1: OmniWorker-Install created 2026-09-05T16:15:48Z, private, main, seed c5d0f1f6; suites green at the new location (#1 eb0c9675, #2 d617e68e) and main green through #3 33eed467, #5 54daeb3c, #6 322ee4da, #7 187d75b6; the boundary validator's planted-secret cases all caught, plus #2's control that the same bytes outside an exempt path are still flagged. 7.2: xFactory #268 2f767ac8, OpsxFactory #228 6a0d9467, CloudPC-Install #17 bba9da8a all MERGED, with 4.5 and 4.6 called out as discharged WITHOUT an edit rather than counted silently. 8.1: xFactory #274 648c8bd3, the governed admission record, separate from the pin as the requirement demands. 8.2: OpsxFactory #233 83a91c58 ratified by #235 3e4cd248. ANSWERED BY THE ACT, which is 1.3's and 7.5's substance: OQ-2 (the seam accepted and mechanized through ${OMNIWORKER_ROOT}, Omnigent-Install #217 4f82cbd8), OQ-3 (the host still checks out the orchestrator, CloudPC-Install #17), OQ-4 (root schemas/, forced by hard-coded consumer paths), OQ-8 (the archive stays whole, recorded verbatim in Omnigent-Install's docs/omniworker-split.md), OQ-10 (PRIVATE, verified live). OQ-6 and OQ-7 were already RULED and are cited to design § D5's dated amendments. ON NAMED SUCCESSORS, five issues filed at this archive, all UNCLAIMED: #794 (OQ-1 — the execution-lane-enablement runbook stayed with the orchestrator BY DEFAULT, not by decision), #795 (OQ-5 / § 8.3, the runner label), #796 (OQ-9 / § 8.4, the three enumerations), opensoft/xFactory #346 and opensoft/CloudPC-Install #19 (the two halves of § 6.3, which cannot run until Part 2 lands). 6.3's note carries the measurement that made them necessary: no post-retirement run of any of the four lanes exists, ideation-organizer-worker has NEVER run, and the cataloger's red is PRE-EXISTING. 7.6 ticks as what it is — the archive's own gate statement — with the merged-plus-green evidence summarized per repository, and with what the gate does NOT claim stated in the same breath: two successor-named operator acts and § 5.2's DISPOSED clause. NOT DONE HERE. No box's ratified requirement sentence is rewritten; the state changes and the note is appended, which is this packet's own in-place amendment convention (#704, #773). 6.1, 7.3 and 8.5 are LEFT OPEN deliberately — they turn on opensoft/Omnigent-Install #213, which is not yet merged — so `proposal-support archive` still refuses this tree with "change has incomplete tasks", by design. No archive is performed by this commit, no spec delta is promoted, no README row moves and the sweep ledger is untouched. Task 2.3 stays [~]: its owed half is Brett Heap's web act, already named twice in the packet, and it does not block the archive gate. Refs #591, #680 Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013pt7yAnJ2TUhvMfxuuFujR * Close the last four boxes on Omnigent-Install #213's landing and one named successor (2.3) On Brett Heap's word of 2026-09-08 ~12:2xZ, "archive implement-omniworker-install-repo", and his word of ~12:10Z, "merge 213" — both recorded on openxFactory #591. Taken as a separate commit from the archive so proposal-support's output is the only thing in that one, which is the precedent 26c2661/3c06bf75 set. 6.1 CLOSED. Part 1 was Omnigent-Install #235 bbba916d (2026-09-07T12:12:15Z); Part 2 LANDED as Omnigent-Install #213 -> merge commit 9c9c9355 (2026-09-08T13:05:48Z, from head 6feafc2d) under a Rule 6 window, because it re-homed openspec/changes/add-worker-enrollment-broker-integration/ out of that repository. The OQ-6 hold recorded in the ratified text is SUPERSEDED by Brett's word, and the supersession is stated rather than glossed: add-worker-acr-push was byte-identical to main at the merge (tree 7bb94b12) so nothing was re-homed by side effect in that directory, but two of its four declared code_surface paths no longer exist in the repository that hosts it. The code_surface: amendment that leaves owed is design § D5's named cost of sequence (a); it is recorded on the PR and in that repository's docs/omniworker-split.md, and this packet neither performs nor discharges it. 7.3 MET ON ONE HALF, SUCCESSOR-NAMED ON THE OTHER, and the note refuses to conflate them. The retirement is merged in full (#235 + #213). The post-retirement re-run is NOT green because it has not run and could not have: § 6.3 sequences it after Part 2, which landed today. It closes on xFactory #346 and CloudPC-Install #19. 8.5 PERFORMED, and on the act that actually performed it rather than the one this box guessed. Read live at Omnigent-Install@main: the four scope items are gone and a paragraph names, links and quotes the boundary for OmniWorker-Install, doc index included. That landed in #235 bbba916d with Part 1 — a day before #213 completed the retirement — so the "if retirement is deferred" contingency never fired. 2.3 moves [~] -> [x] AS A RECORDING, NOT A DISCHARGE, on the coordinator's instruction and the tick-on-the-recording rule. Successor: #800. Its two existing OWED notes are left exactly as they stand. Three clauses of four were always done (ruleset 22342039, the two App secrets, the session-open-pr.yml mirror — that repository's only workflow). The fourth is measured in BOTH directions: the installation is repository_selection: all and a down-scoped `repositories: OmniWorker-Install` / `contents: read` token was really minted in CI (run 34041914618, re-proved 34042785728) — but authoring needs contents: write plus pull_requests: write, no run has asked for either, and all six OmniWorker-Install pull requests are authored by brettheap. Six PRs in, the route has never been exercised, which is the exact failure mode the box's last sentence names. Every one of the 40 boxes is now [x]; `openspec validate implement-omniworker-install-repo --strict` is clean through the pinned CLI. No ratified requirement sentence is rewritten anywhere in this commit. Refs #591, opensoft/Omnigent-Install#213 Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013pt7yAnJ2TUhvMfxuuFujR * Archive implement-omniworker-install-repo: the OmniWorker install boundary promoted into repo-boundary-governance canon On Brett Heap's separate word of 2026-09-08 ~12:2xZ, in session, verbatim "archive implement-omniworker-install-repo", recorded and claimed on openxFactory #591. THE EVIDENCE, CITED RATHER THAN ASSERTED. The packet's front matter declares target_release: repository-bootstrap and a code surface spanning FIVE repositories, two of them operator estates, and says what that means: under release-realization it archives on merged-plus-green realization evidence and never on landing. Ratified 2026-09-05, "ratify 680 and merge 16", PR #680 at head 9186661; ratifying commit 76434aa. Per repository: OmniWorker-Install created 2026-09-05T16:15:48Z private/main/seed c5d0f1f6, copy-first in #1 eb0c9675 and #2 d617e68e, suites and boundary validator green, main green through #3 33eed467 / #5 54daeb3c / #6 322ee4da / #7 187d75b6; Omnigent-Install pinned it across twelve groups (#214 544c6319 .. #235 bbba916d), archived that packet (#237 07bdc9c3), re-pinned routinely (#246 16963099) and retired in two parts, Part 1 bbba916d and Part 2 #213 -> 9c9c9355 on Brett's "merge 213"; xFactory #268 2f767ac8 (pin) and #274 648c8bd3 (the governed admission record, a separate act as the requirement demands); OpsxFactory #228 6a0d9467 and the fleet re-attestation #233 83a91c58 ratified by #235 3e4cd248; CloudPC-Install #17 bba9da8a and #18 349d539d. PERFORMED THROUGH THE PINNED CLI, never a bare openspec archive: python3 scripts/proposal-support.py . archive implement-omniworker-install-repo --date 2026-09-08 --yes, resolving @fission-ai/[email protected] from the content-addressed pin cache, integrity verified, no registry fetch. Archived as openspec/changes/archive/2026-09-08-implement-omniworker-install-repo/. ORIGIN RETAINED fired inside the archive (declaration unchanged since the ratifying commit 76434aa) and the retention arm passed against the archived path. NO SUPPORTING DOCS: the change has no supporting-docs folder, so nothing was packaged and nothing needed to be. WHAT WAS PROMOTED, COMPARED RATHER THAN EYEBALLED. One ADDED requirement, "OmniWorker install repository boundary", appended to openspec/specs/repo-boundary-governance/spec.md: 6,391 bytes, sha256 ad04308bd63ca30de4c1566f5b0a983d2a3ef274af1ff80370b62b9a844ca80a, extracted programmatically from delta and canon and hashed identical on both sides. 90 added, 0 removed; git diff --numstat and git diff -w --numstat are identical, so 0 lines changed by whitespace and no existing requirement is touched -- in particular "Install repository scope" is left alone, which is this capability's established collision-avoidance. The capability goes 9 -> 10 requirements. No file is added under openspec/specs/, so no codexFactory floor advance is owed. THE FROZEN FILES ARE PURE RENAMES. git diff -M reports 100% similarity and 0 changed lines on .openspec.yaml, design.md, proposal.md, tasks.md and specs/repo-boundary-governance/spec.md; tasks.md's two lawful tick commits (071dbe0, 2b9625c) land BEFORE this one so they are separable from the serializer's output. The README OpenSpec Records row moves active -> archived; proposal-support does not move it. WHAT THE ARCHIVE ADMITS RATHER THAN SMOOTHS. Section 6.3's post-retirement re-run has NOT run and cannot have -- the packet sequences it after a Part 2 that landed the same day -- so 7.3 says so and it closes on xFactory #346 and CloudPC-Install #19. Section 2.3 moved [~] -> [x] as a RECORDING, not a discharge (#800). Section 5.2's pre-act emptiness confirmation stays DISPOSED, not discharged. And the OQ-6 hold was SUPERSEDED, not satisfied: add-worker-acr-push was still active in Omnigent-Install when #213 landed -- byte-identical to main at the merge, tree 7bb94b12, so nothing was re-homed by side effect -- and its code_surface: amendment is owed in that repository, not here. NOT DONE HERE: no register is edited (contracts/manifest.yaml, contracts/README.md, contracts/releases/** untouched), no release is cut, no version is allocated or reserved, no tag is pushed, no scripts/ or tests/ code moves, and the per-change sweep ledger is seeded in a FOLLOWING commit because the real pull request number does not exist until the pull request does. Refs #680, #591, opensoft/Omnigent-Install#213 Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013pt7yAnJ2TUhvMfxuuFujR * Seed the sweep-ledger row for implement-omniworker-install-repo (moved by #803) Taken AFTER the pull request existed, because the real number does not exist until it does, and on the tree that already carries the merge from origin/main, so main's own new row (adopt-configured-notebook-hosting-identity, #783) is carried and only this change's row moves. before the seed: per-change sweep ledger STALE (4 findings) — this change's row plus its three derived totals (active 40 != 39, archived 143 != 144, active_sole 18 != 17) after the seed: per-change sweep ledger consistent with the corpus (184 rows) the write: "184 rows, 1 moved by #803" — one row, state active -> archived, moved_by #680 -> #803, moved_on 2026-09-05 -> 2026-09-08; no other row's provenance is touched, and `class: sole` is unchanged because the promoted requirement is shared with nothing pytest tests/sequenced_after tests/proposal-support -q -m "not postgres": 245 passed, 2 subtests passed Refs #591 Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013pt7yAnJ2TUhvMfxuuFujR * The archive preface counts six successors, and names the one 8.5 actually ticks on Copilot finding, taken: the § 1 archive-amendment preface said "Five issues were filed at this archive" while the same file later records a SIXTH (#800, for task 2.3). The count is now SIX, #800 is listed, and 2.3 is named in the successor kind it belongs to — with its "recording, not a discharge" qualifier carried into the preface so the summary cannot read as a claim the App-authorship route was proved. A SECOND inconsistency of my own, in the same sentence, fixed while here: the preface grouped 8.5 with 6.1 and 7.3 as ticking on Omnigent-Install #213's merge. It does not. 8.5 ticks on #235 bbba916d — § 6.2 performed the scope link with Part 1, a day before Part 2 completed the retirement — which is what 8.5's own note says and what the live Omnigent-Install README shows. The preface now says so, and says that this corrects the box's ratified "as part of retirement" guess by note rather than by carrying it. No box's state changes and no ratified requirement sentence is touched; this is the preface's own prose. openspec validate --all --strict unchanged at 97 passed / 2 failed, the two pre-existing accepted exceptions. Refs #591 Lane: openxfactory-3 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013pt7yAnJ2TUhvMfxuuFujR --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
brettheap
added a commit
that referenced
this pull request
Sep 10, 2026
…nt promises (refs #745) (#891) * Give the origin-retention gate the explicit disposition its requirement promises `release-realization` § "Origin retention at archive" ends its mutation scenario with "restoring or accepting the mutation is a contested-class act requiring an explicit disposition". The gate could read the RESTORING half and nothing else: `origin_retention_errors` compared the working tree's `origin:` block against the block at the ratifying commit, read no record, no environment variable and no flag, and ended every refusal at "this gate has no bypass flag". So an owner's ACCEPTED mutation and an unnoticed edit produced byte-identical refusals, and an acceptance was recordable as governance and unrepresentable as a tree state. MEASURED, NOT ARGUED. codeXfactory/codexFactory #318: change `add-floor-regeneration-automation`, ratifying commit `ec286270b10f`, mutating commit `76758a1b` fourteen minutes later in the SAME pull request #235, `changed keys: approved_by`, and the whole of the diff the TENSE of one sentence. Brett Heap ruled "accept the mutation, this lane re-runs the archives"; the acceptance was recorded on #232; the re-run refused identically. THE CHANNEL IS A RECORD, NOT A FLAG, because the module's own reason for refusing a flag — "a flag on this gate would be the disposition nobody records" — is an argument against UNRECORDED acceptance rather than against acceptance. `<repository-root>/openspec/origin-dispositions.yaml` carries `schema_version: 1`, `kind: origin_dispositions` and a `dispositions:` list whose entries name `change_id`, `ratified_at`, `mutation_at` (both FULL 40-hex object names), `changed_keys`, `disposition: accept`, `disposed_by`, `disposed_on`, the verbatim `word` and `cited_to`, with an optional `fact`. The subcommand grows NO flag and `test_the_archive_subcommand_offers_no_bypass_flag` still passes unchanged. AN ACCEPTANCE MOVES THE BASELINE; IT DOES NOT SKIP THE COMPARISON, which is why this cannot decay into a bypass. On a valid `accept` the declaration AT THE ACCEPTED MUTATION becomes the origin of record and every arm of the gate runs against IT: the packet must equal it exactly, and the support manifest's repeated origin fields are measured against it rather than against the superseded ratification. A second, undispositioned edit on top of an accepted one refuses exactly as the first did. The gate accepts only when: one entry names this change; the key set is exactly the required nine plus optional `fact`; `disposition == accept`; `ratified_at` equals the ratifying commit the gate resolved FROM HISTORY; `mutation_at` resolves to a commit, descends from `ratified_at`, is reachable from HEAD and carries an origin block; that declaration differs from the ratified one; the declared `changed_keys` equal the measured key diff between the two commits; and the working tree's block equals the block at `mutation_at`. Anything wider refuses while NAMING WHAT DID NOT MATCH. READ FROM THE ROOT THE GATE WAS GIVEN, so it works where it is actually used: `$OPENXFACTORY_ROOT/scripts/proposal-support.py <consumer-root> archive <id>` reads `<consumer-root>/openspec/origin-dispositions.yaml`, and openxFactory's own archives read openxFactory's own file at that same relative path. Consumers need no change beyond writing the record; none is shipped here, because no mutation has been accepted in this repository and an empty list records nothing. THE SHAPE IS THE ESTATE'S EXISTING ONE. Three disposition records already exist and this is the fourth: `tests/sequenced_after/archive-date-dispositions.yaml` (the header, the list, FULL object names, `fact`, `cited_to`), `contracts/openspec-cli-pin.yaml`'s `dispositions:` list (one entry accepts one finding matched on a tuple compared WHOLE, `cited_to` required and non-empty, an authority named), and `health/dispositions.yaml` (the `cite` that answers doc-health's contested classes, including the nightly `proposal-origin` family's own post-ratification-mutation finding, which keeps its existing channel unchanged). Two departures, both stated in the code: the siblings' bundled `ruled_by` is split into `disposed_by`/`disposed_on`/`word` because this is the first of the four to CHECK that a disposition is dated and quoted; and the citation is `cited_to`, not `recorded_at`, because every other `_at` key in an entry names a COMMIT — an entry writing `recorded_at` is refused as an unknown key and told the estate's spelling. No staleness arm, deliberately: unlike a directory name or a pin finding, an origin disposition is not transient — the packet archives and the entry becomes the only thing in the tree that says why the archived origin differs from its ratification. The refusal now routes the reader instead of stopping at "no bypass flag": it names BOTH repairs, the record's absolute path, and every field an entry needs, with this change's own ratifying commit in full so the entry can be written straight out of it. `archive --help` carries the same routing in an epilog that names no flag, and `docs/document-lifecycle.md` § "Origin at the proposal gate" carries the record's shape. Tests, where the origin-retention tests already live: 22 new tests and 21 new subtests, all measuring against real mini-repositories and real commits — the end-to-end accept (the same `archive_change` call raises `OriginRetentionError` without the record and reaches `change has incomplete tasks` with it), #318's own tense-only case, the anti-vacuity control, the consumer-root property, the manifest arm moving with the baseline, and negative controls for every condition. Three guards were removed one at a time and the suite re-run to prove the controls fail when the code stops checking. tests/proposal-support 128 passed / 66 subtests (main 106 / 45); `-k "proposal or origin or archive"` 477 passed, 1 skipped (main 455, 1); `validate-sequenced-after.py .` passed; `validate --all --strict` at the pinned CLI exit 0 with the same two pre-existing accepted exceptions. Measured with a probe record in place: the pinned OpenSpec CLI tolerates the file inside `openspec/`. No specification is edited and none is owed: this realizes the requirement's own words. If the record's FORM is to be named in canon, that is a `## MODIFIED` scenario in a separate packet. Refs #745 Refs codeXfactory/codeXfactory#232 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Take Copilot round 1: a list citation reads as prose, and the loader's annotation says what it actually returns Both findings are valid and both are fixed with a measuring control. `cited_to` may be a LIST — the shape `contracts/openspec-cli-pin.yaml`'s own `cited_to:` takes, and the shape an entry citing an issue, a pull request and a ruling naturally wants — and `AcceptedOriginMutation.note()` interpolated it straight into the acceptance announcement, so a list printed as a Python repr: brackets, quotes and all, in the one line of operator output that says WHY a mutation was accepted. `citation()` joins it with "; " at one place rather than at four call sites, and the list arm of `test_a_citation_may_be_a_list_and_an_uncited_entry_refuses` now captures the announcement and asserts BOTH halves — the joined prose is present and the repr's opening `['` is not. `load_origin_dispositions()` was annotated `list[dict]` while its own docstring said the entries are unchecked, which is a promise the function never establishes: a hand-written record can put a string or a list where a mapping belongs. It is `list[object]` now, which is what it returns; the caller already selects with `isinstance(entry, dict)` before it reads a key, and entry SHAPE is checked by `_entry_shape_problems` for the one entry that names the change being archived. tests/proposal-support 128 passed / 65 subtests. The subtest count is one lower than the 66 measured before this branch merged `origin/main`, and the reason is the corpus rather than a lost control: `test_the_guard_is_a_no_op_on_this_ corpus` runs one subtest per ACTIVE change, and main archived `amend-neutral-product-pin-interim-copy-vocabulary` (39 active changes at 6678f51, 38 at 9784e38). Refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Take SonarCloud round 1: two CRITICAL complexity findings split apart, and the suppression markers written in the syntax the analyser reads Six new issues on this branch's code, all six taken. The quality gate PASSED with them standing, so none of this was forced — they are findings on code authored an hour ago and worth taking while it is still warm. TWO CRITICAL (python:S3776, cognitive complexity). `_entry_shape_problems` was 34 against an allowance of 15 and `accepted_origin_mutation` was 17. Both were one long chain of independent checks, which is exactly the shape that reads badly and the shape a split fixes without moving an assertion: * `_entry_shape_problems` is now a concatenation of `_unknown_key_problems`, the missing-key line, `_string_field_problems` (the non-empty strings and the date's shape, with the YAML unquoted-scalar trap), `_citation_problems` (a string or a LIST, non-empty, content not pattern-matched), `_object_name_problems` (FULL 40-hex only) and `_accept_value_problems` (`changed_keys`'s shape, and the one disposition this gate reads). Every helper still reports EVERY problem it finds rather than the first: an operator repairing a hand-written entry should see the whole list once, not discover it a line at a time across five refusals. * `accepted_origin_mutation` is now three named stages in the order each one presumes the last — `_selected_disposition_entry` (read, parse, select, refuse ambiguity), `_entry_shape_problems` (so the commit names below are strings and `changed_keys` is a list), then `_accept_commit_problems` and `_accept_declaration_problems`. The `or` between the last two keeps the original short-circuit exactly: the declarations are only read once the commits that name them are known good. FOUR MAJOR (python:S7632 ×2, python:S125 ×2) on the two new `# NOSONAR: reason` comments: that spelling is not the marker's syntax, so the analyser read the prose as commented-out code and the suppression suppressed nothing. The reason moves to its own comment line above the call and the marker is bare. The file's older calls keep their form; they are not this branch's code and changing them here would be a sweep hiding inside a realization. NOTHING BEHAVIOURAL MOVED, and that is measured rather than asserted: 128 passed / 65 subtests, unchanged, and the three anti-vacuity probes re-run against the SPLIT code still fail the controls they are supposed to fail — removing `if declared != measured:` fails both changed-keys controls, removing `if now_lines != at_mutation:` fails the "an accepted mutation does not license the next one" control, and removing `if ratified_at != ratifying:` fails the baseline control. The file was restored byte-identically after each probe. Refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Take Copilot round 2 in part: the record's own finding subtracts, and the baseline stays put on a record whose predicate failed THE PROPOSAL IS REFUSED, AND THE NEED BEHIND IT IS TAKEN. The observation is correct: when a valid record exists but the tree has moved on again, the headline finding still compares the packet to the RATIFICATION, so its `changed keys:` names the union — the accepted key and the newly undispositioned one. Copilot proposed moving the comparison baseline to the accepted commit anyway, so the headline diff would be the small one. That is refused, and for two reasons rather than a preference. ACCEPTANCE IS ALL OR NOTHING. "The working tree carries the accepted declaration" is one of the acceptance conditions, not a formatting detail; a record that accepts a declaration the tree does not carry has accepted nothing, and treating its commit as the origin of record would name a declaration nobody is archiving. The baseline moves only on a record whose whole predicate held, which is the property that keeps this a disposition rather than an allow-list. AND THE HEADLINE WOULD BECOME FALSE. It reads "differs from the one this change was ratified over (ratifying commit X)". Moving the baseline under it puts a commit there that is NOT the ratification, which is a worse defect than a wide key list. WHAT THE PROPOSAL IS ACTUALLY AFTER — the operator seeing the difference that is undispositioned — is delivered where it belongs, inside the record's own finding, which already diffs against the accepted declaration and now also names the subtraction: keys moved BEYOND the accepted declaration: approved_on `test_an_accepted_mutation_does_not_license_the_next_one` asserts BOTH halves now — the subtraction line, and the headline's union (`changed keys: approved_by, approved_on`) — so the division of labour between the two findings is pinned rather than described. And when a second mutation is itself accepted, the entry is REPLACED rather than joined by another, which the ambiguity refusal in `_selected_disposition_entry` already says in terms. 128 passed / 65 subtests. Refs #745 Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Brett Heap <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The ratified realization of
add-identity-brokering+add-trust-anchor: Speckit features 008-identity-brokering-contracts and 009-trust-anchor-contracts.What's in it
contracts/identity-brokering/(6 schemas) andcontracts/trust-anchor/(7 schemas + the closed chain-custody registry pair composing with openxwallet's custody set at runtime).validate-identity-brokering.py,validate-trust-anchor.py), corpora of 14+41 and 34+65 examples with a negative confirmation per requirement (9/9, 8/8), red-proof harnesses proving all 22 + 50 finding codes load-bearing, andtests/trust-anchor/(87 tests).traceability.yamlreview_hardening.actor_subjectreference + boundary-date history (identity); issuance-evidence floor in-schema + closed custody enumeration with escrow-as-relationship (trust-anchor).contract-v1.36: manifest bundle bump + 15 new digest entries (150 verify), CHANGELOG entry; the annotated tag is applied post-merge to the realized commit per the versioning policy, together withcontracts/releases/contract-v1.36.digests.yaml.supporting-docs/(history-preserving renames), INDEX retired to 31/31 parity, ideation README pointers, brainstorm exit note, README OpenSpec Records updated.Gates: openspec 63/63
--all --strict; all three family validators 0/0;proposal-support verifyok for both changes; doc-health byte-identical (zero new findings).🤖 Generated with Claude Code