Repository navigation
Give a drafted-but-unapproved packet a lawful origin shape: an ad_hoc origin may declare proposed_by/proposed_on, and approval becomes an addition (#318) - #619
Conversation
An `ad_hoc` origin may now declare `proposed_by` + `proposed_on` in place of `approved_by` + `approved_on`. Before this, a drafted-but-unapproved packet had NO lawful shape: `ad_hoc` without `approved_on` was an error and no origin block was an error, so the only mechanical remedies were to approve the change, delete the draft, or write a date nobody gave — the last being the defect the field exists to catch. Two medx boundary packets carried the finding long enough to join the standing error baseline. RULED 2026-09-03 by Brett Heap in session, verbatim "implement your recommendations on all these"; the resolution for this issue is the RULING comment on #318, which chose shape 1 and named the vehicle. THE ENCODING, and it is the decision the ruling deliberately left open: `kind` and `id` are fields the SUPPORT MANIFEST REPEATS, and this family reports a manifest/packet disagreement as post-ratification mutation at `error` + `contested`. A `kind: drafted` must become `ad_hoc` at approval, so that spelling writes a contested-class mutation into the happy path of every packet that gets approved. Under this one the identity never moves and approval is two ADDED lines. Two new finding classes, both with an empty population by construction: `drafting-provenance-incomplete` (ERROR, mechanical) and `unapproved-origin-at-ratification` (ERROR, `contested`) — a proposal whose own `Status:` claims `ratified` or beyond over an unapproved origin, read through `corpus.parse_status` + `promotion_fidelity.declared_standing` against the existing `RATIFIED_OR_BEYOND`, fired only where the state is POSITIVELY declared and never on the fact of archival. `approved_on` is still required in full wherever approval is claimed, so nothing already lawful changes shape. Measured: 109 ad-hoc origins in this corpus, all with a complete approval pair, 0 with neither, 0 with half of one. Proposal and realization land together, by the ruling. doc-health moves by +2 `info` and nothing else — this packet's own two MODIFIED blocks in the carriage ledger. `_LEDGER_SUBJECTS` gains those two rows; the self-gate failed first, by name, naming both, which is that assertion working. Lane: openxfactory-smalls Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01RhXyJoZvtSmGcTdPVDKPoD
…n evidence `tasks.md` § 6 and the ratification record carried "(recorded at the ratification commit)" placeholders for the two suite gates. They now carry the measurements: `openspec validate --all --strict` 87 passed / 0 failed, and `pytest tests/doc-health` 1528 passed / 0 failed on the landed tree against 1500 at the merge-base — this change adds 28 test items. AND THE ONE FLAKE IS WRITTEN DOWN RATHER THAN SWALLOWED. An intermediate run of the identical tree failed `test_the_report_moves_only_in_this_family_s_lines` with an `info` movement of 11 against the family's 10 — one NON-FAMILY `info` finding absent from one of that test's two report renderings. It did not reproduce in that run's predecessor or its successor over the same tree, and it cannot be this change's: the missing finding belongs to another family, and every finding this change can emit has an empty population here. The class is the one #613/#614 narrowed by pinning `--as-of` across both renderings. Lane: openxfactory-smalls Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01RhXyJoZvtSmGcTdPVDKPoD
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
🟡 Changes recommended
scripts/proposal-support.py’s write_origin_block can silently drop a partially-provided provenance pair when the other pair is complete, masking incomplete user input that should be rejected.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR updates the proposal-origin contract and its enforcement so a drafted-but-unapproved OpenSpec change packet can declare lawful provenance (ad_hoc with proposed_by/proposed_on) without fabricating approval dates, while still requiring approval provenance once a packet claims ratification-or-beyond.
Changes:
- Extend
proposal-originvalidation to recognize an explicit unapproved drafting provenance pair and add two new error classes (drafting-provenance-incomplete,unapproved-origin-at-ratificationwithcontestedresolution). - Update the strict proposal-support gate and writer to accept/emit the new drafting provenance shape (plus extensive new tests to pin behavior and keep gate/nightly aligned).
- Add the corresponding spec deltas, ratification record, README index entry, and lifecycle documentation updates for the new origin shape.
File summaries
| File | Description |
|---|---|
scripts/doc_health/proposal_origin.py |
Implements the new three-state ad_hoc provenance logic and adds the ratification-standing check keyed off the packet’s declared Status:. |
scripts/proposal-support.py |
Updates strict origin validation + declare-adhoc/write_origin_block to support drafting provenance in addition to approval provenance. |
tests/doc-health/test_proposal_origin.py |
Adds a full matrix of tests covering the new drafting/unapproved state, ratification constraint, and gate/writer agreement. |
tests/doc-health/test_modified_block_currency_self_gate.py |
Extends the carriage-ledger subject set and expected history text to account for the packet’s two MODIFIED blocks. |
tests/doc-health/test_lifecycle_scan_set.py |
Updates commentary for proposal-origin’s NON_READERS classification (still not a lifecycle sweep). |
openspec/changes/add-drafted-proposal-origin/specs/document-lifecycle/spec.md |
Spec delta amending “Proposal origin declaration” to admit drafting provenance and define the ratification constraint. |
openspec/changes/add-drafted-proposal-origin/specs/doc-health/spec.md |
Spec delta enumerating the expanded finding class set and the semantics of the new drafted/unapproved state. |
openspec/changes/add-drafted-proposal-origin/proposal.md |
Proposal packet describing the rationale, scope, and veto-flagged design decisions. |
openspec/changes/add-drafted-proposal-origin/design.md |
Design rationale for the chosen encoding (ad_hoc + drafting pair) and related enforcement decisions. |
openspec/changes/add-drafted-proposal-origin/tasks.md |
Task ledger documenting sequencing, evidence, and archive gate expectations for the change. |
openspec/changes/add-drafted-proposal-origin/review/ratification-2026-09-03.md |
Ratification record capturing the ruling, scope, and what the ratification does/doesn’t assert. |
openspec/changes/add-drafted-proposal-origin/.openspec.yaml |
Packet metadata declaring the change’s own origin and approval provenance. |
docs/document-lifecycle.md |
Updates lifecycle documentation to describe the new unapproved drafting provenance shape and CLI flags. |
README.md |
Adds an Active Changes entry summarizing the change and its enforcement impact. |
Review details
- Files reviewed: 14/14 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| wrote = False | ||
| for pair in (APPROVAL_FIELDS, DRAFTING_FIELDS): | ||
| if all(str(origin.get(field) or "").strip() for field in pair): | ||
| for field in pair: | ||
| body.append(f" {field}: {origin[field]}") | ||
| wrote = True | ||
| if not wrote: | ||
| raise SupportError( | ||
| f"{directory.name}: an ad-hoc origin needs either " | ||
| "`approved_by` + `approved_on` (an approved exception) or " | ||
| "`proposed_by` + `proposed_on` (an unapproved draft); " | ||
| "neither pair is complete") |
There was a problem hiding this comment.
Fixed in bfc19f9a, and it was a real silent drop — thank you. write_origin_block now REFUSES a half-given pair rather than writing the block without it, naming what was given and what is missing, so the writer stops producing a shape its own gate and the nightly family both report as a defect. Four parametrized tests pin it at either field of either pair, including the exact case named here (full approval pair plus a lone proposed_by), and assert no packet file is written. No spec text moved: the delta already said a provenance pair is declared in full or not at all; the writer was not saying it.
Lane: openxfactory-smalls
…dropping it FOUND BY COPILOT ON PR #619, and it was a silent drop. The writer wrote only pairs it found COMPLETE, so a caller handing it a full approval pair and a lone `proposed_by` got a block with the stray field discarded and no word said — a record that looks complete, produced by the writer whose own gate and nightly family both report a half-declared pair as a defect. It now raises `SupportError` naming what was given and what is missing. Four parametrized tests pin it at either field of either pair, including the exact shape Copilot named, and assert no packet file is written. No spec text moves: the delta already says a provenance pair is declared in full or not at all. The writer was not saying it. Lane: openxfactory-smalls Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01RhXyJoZvtSmGcTdPVDKPoD
There was a problem hiding this comment.
🟢 Approval recommended
The change is extensively specified and tested, and the only noted issue is a minor documentation grammar fix in the updated lifecycle doc.
Review details
Suppressed comments (1)
Previously missed (1) — in code that hasn't changed since the last review.
docs/document-lifecycle.md:400
- Grammar: "neither ... or" should be "neither ... nor" (otherwise the sentence reads incorrectly).
- Files reviewed: 14/14 changed files
- Comments generated: 0 new
- Review effort level: Lite
Task 2.10's four parametrized tests landed after the Executed table was written, so its number and the ratification record's said 1528 / 28. Measured again on the landed tree rather than adjusted on paper. Lane: openxfactory-smalls Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01RhXyJoZvtSmGcTdPVDKPoD
There was a problem hiding this comment.
🔵 Needs a closer look
declare-adhoc stamps the durable id from approved_on when both provenance pairs are supplied, which conflicts with the stated “id date is the declaration date” invariant and should be corrected.
Review details
Suppressed comments (1)
Previously missed (1) — in code that hasn't changed since the last review.
scripts/proposal-support.py:1203
declare-adhocpicks the id/date stamp withargs.approved_on or args.proposed_on, so if both pairs are provided the durable id is stamped with the approval date rather than the declaration/drafting date. That conflicts with the surrounding invariant (“ID date is the declaration date and it never moves”) and makes it harder to record a drafted-then-approved history while keeping the id anchored to drafting.
- Files reviewed: 14/14 changed files
- Comments generated: 0 new
- Review effort level: Lite
CI caught what the local `pytest tests/doc-health` gate could not see: `tests/sequenced_after/test_sweep.py`'s live sweep reads the WHOLE corpus for changes sharing a (capability, requirement) key, so a packet carrying MODIFIED blocks moves it. Measured on the merged tree: change_ids 158 -> 159, co_modified 109 -> 110, active_co_modified 21 -> 22, sole_modifiers and active_sole UNMOVED at 49 and 12. THE RISE IS ONE, NOT TWO, and the file's own rule says a rise of one never comes with the sole set falling. Co-modified membership is boolean, so this packet enters once; and both its keys have the SAME single earlier owner, the archived add-proposal-origin-contract that ADDED both requirements, already co-modified through two other keys — doc-health's 'Deterministic check families' (fifteen changes) and document-lifecycle's 'Proposal-owned supporting documents' (two). Measured, not reasoned from the totals. All three pins carry their dated narrative and the movement log gains a bullet, in that file's own convention. Lane: openxfactory-smalls Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01RhXyJoZvtSmGcTdPVDKPoD
…oposal-origin # Conflicts: # tests/sequenced_after/test_sweep.py
There was a problem hiding this comment.
🟡 Changes recommended
declare-adhoc currently prefers --approved-on over --proposed-on when minting the durable id stamp, which can violate the PR’s stated “id date is the declaration date” invariant when both provenance pairs are supplied.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 15/15 changed files
- Comments generated: 1
- Review effort level: Lite
| stamp = args.approved_on or args.proposed_on | ||
| if not stamp: | ||
| raise SupportError( | ||
| "declare-adhoc needs --approved-on (an approved " | ||
| "exception) or --proposed-on (an unapproved draft)") |
… second baseline The evidence table was measured against merge-base 2b0615d. After merging origin/main twice (for #614's clock pin, then for #621), it is re-measured against 995c0ad: base 6/8/29/14, head 6/8/29/16 — the same +2 info and nothing else, against a newer baseline whose own error band had moved 6 -> 8 by main's landings. CI on the merged head b74c846 passes all five required checks, pytest-suite included. The local full-suite run's 95 failures are environmental — no initialized openXwallet submodule in the scratch worktree, identical on the untouched origin/main worktree beside it. Lane: openxfactory-smalls Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01RhXyJoZvtSmGcTdPVDKPoD
There was a problem hiding this comment.
🔵 Needs a closer look
declare-adhoc currently prefers --approved-on over --proposed-on for stamping the durable id date, which conflicts with the documented “declaration date” rule when both are supplied.
Review details
Suppressed comments (1)
scripts/proposal-support.py:1199
- In
declare-adhoc, the durable id stamp is documented as the declaration/drafting date, but the code currently prefers--approved-onover--proposed-on. If both are provided (e.g., recording drafting + later approval in one invocation), this will stamp the id with the approval date, conflicting with the “id never moves” rule and potentially producing an incorrect durable id.
stamp = args.approved_on or args.proposed_on
- Files reviewed: 15/15 changed files
- Comments generated: 0 new
- Review effort level: Lite
Catches PR #619 up to main after amend-owner-layer-severity (#617, archived) and add-consumer-identity-namespace (#622, active) both landed on the same bookkeeping files this packet touches. Conflicts resolved: - README.md "OpenSpec Records": kept every row from both sides; this packet's row stays under Active, #622's row joins it under Active, and the stale Active copy of update-standards-body-current-publications (already correctly archived on main, via #615) is dropped in favor of its one archived entry. - tests/doc-health/test_modified_block_currency_self_gate.py `_LEDGER_SUBJECTS` and its population-count narrative: kept both packets' rows (this packet's two, #622's two already present unconflicted); #617's rows never existed as live tuples (added and retired within its own PR), so only its retrospective comment carries forward, per origin/main. - tests/sequenced_after/test_sweep.py: kept both branches' MOVEMENT LOG entries verbatim and added a merge entry. Every pin re-measured by `scripts/validate-sequenced-after.py . --sweep` on the merged tree and on an origin/main baseline, and confirmed by exclusion (removing this packet's directory reproduces main's reading exactly): change_ids 160 -> 161, co_modified 112 -> 113, active_co_modified 21 -> 22, sole_modifiers and active_sole unmoved at 48 / 11. Lane: openxfactory-smalls Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_014FBRdVuA6fmSEey9WQNAB7
There was a problem hiding this comment.
🟢 Approval recommended
The new origin state is implemented consistently across contract text, doc-health enforcement, proposal-support validation/writing, and is pinned by comprehensive tests for the full behavior matrix.
Review details
- Files reviewed: 15/15 changed files
- Comments generated: 0 new
- Review effort level: Lite
…-proposal-origin Catches PR #619 up to main after add-per-change-sweep-ledger (#623) landed, replacing the docstring/movement-log scalar pins in tests/sequenced_after/test_sweep.py with a per-change-row ledger (tests/sequenced_after/corpus-ledger.yaml). No design change to this packet. Conflicts resolved: - tests/sequenced_after/test_sweep.py: took origin/main's version wholesale, per #623's own design — the scalar-pin mechanism this packet's prior merge hand-reconciled no longer exists. - README.md "OpenSpec Records": kept every row from both sides (this packet's row, #623's row, #622's row already present unconflicted) in additive order, no duplicates. - tests/doc-health/test_modified_block_currency_self_gate.py did not conflict this round (untouched by #623); this packet's prior resolution (both its own and #622's carriage-ledger rows) survives unchanged. Added this packet's row to tests/sequenced_after/corpus-ledger.yaml via `python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#619' --moved-on 2026-09-03`, which stamped exactly one new row (add-drafted-proposal-origin: active, co-modifier, declares absent, no prose header) and left every other row's provenance untouched. `--ledger-diff` now reads clean (162 rows): change_ids 161 -> 162, co_modified 112 -> 113, active_co_modified 21 -> 22, sole_modifiers and active_sole unmoved at 49 / 12 (relative to origin/main with #623 already landed). Lane: openxfactory-smalls Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_014FBRdVuA6fmSEey9WQNAB7
There was a problem hiding this comment.
🟡 Changes recommended
scripts/proposal-support.py declare-adhoc can mint a durable id date from --approved-on even when --proposed-on is present, contradicting the “declaration date never moves” invariant for origins that record both drafting and approval.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Suppressed comments (1)
scripts/proposal-support.py:1203
- In
declare-adhoc,stampcurrently prefers--approved-onover--proposed-on. If a caller supplies BOTH pairs (to record drafting provenance plus the approving act), this makes the durable id date follow the approval date rather than the declaration/draft date, contradicting the adjacent comment (“ID DATE IS THE DECLARATION DATE AND IT NEVER MOVES AGAIN”). Prefer--proposed-onwhen present so the id stays anchored to the original draft date.
stamp = args.approved_on or args.proposed_on
if not stamp:
raise SupportError(
"declare-adhoc needs --approved-on (an approved "
"exception) or --proposed-on (an unapproved draft)")
- Files reviewed: 15/15 changed files
- Comments generated: 1
- Review effort level: Lite
| if not str(origin.get("reason") or "").strip(): | ||
| findings.append(Finding( | ||
| ERROR, FAMILY, repo, rel, | ||
| "ad-hoc origin lacks required `reason`", | ||
| "record the explicit approval provenance the ad-hoc " | ||
| "exception requires")) |
|
Caught up to main |
|
RULING for lane openxfactory-smalls PR #619 (head Lane: openxfactory-smalls |
…NT, and that is the headline CHECKED BEFORE RESOLVING, because "did the other lane move the pin?" decides whether this merge carries someone else's omission: `--ledger-diff` on a PRISTINE `main` worktree at `d611666c` exits 0 -- "per-change sweep ledger consistent with the corpus (162 rows)". MAIN IS NOT STALE and its `test_sweep` is not red. THE OTHER LANE USED THE NEW PIN CORRECTLY, on the first outside use of it: `add-drafted-proposal-origin` (#619) added EXACTLY ONE ROW -- `{state: active, class: co-modifier, declares: absent, ...}` -- no partner flipped, and it added ZERO lines to `tests/sequenced_after/test_sweep.py`. No narrative entry, because the row diff states the move in full. That is the rule working for someone who did not write it, which is the only test of a rule that counts. ONE CONFLICT, in `README.md` alone. The ledger AUTO-MERGED -- their row added, our row's `state` flip applied -- and `test_sweep.py` did not conflict at all, because neither side needed to touch a shared total. Under the pin this packet replaces, both would have collided. README resolved from MAIN'S SIDE WHOLE, minus the now-archived active row, plus our archived row at the head of "Archived changes:". Taking our side would have dropped #619's new active entry. THE LEDGER STILL MOVES EXACTLY ONE ROW against `main`, unchanged in shape by the merge: - add-per-change-sweep-ledger: {state: active, class: sole, declares: [add-sequenced-after-substrate], depth: 2, ...} + add-per-change-sweep-ledger: {state: archived, class: sole, declares: [add-sequenced-after-substrate], depth: 2, ...} `class` holds at `sole`, `declares` and `depth` unchanged, no partner flipped -- NO MOVEMENT LOG ENTRY OWED. The re-seed reports "0 moved by #632" because the row was already stamped by this pull request and nothing about it moved again; the row count rises 161 -> 162 for #619's addition, which is theirs and not ours. GATES RE-DERIVED ON THE MERGED TREE, before -> after: openspec validate --all --strict 89/89 -> 88/88 (active -1) active changes 34 -> 33 promoted specs 55 -> 55 validate-sequenced-after.py . passed (33 active, 1 declaring) --ledger-diff consistent, 162 rows pytest tests/sequenced_after 158 passed validate-omnigent-contracts.py all checks passed doc-health --single-repo . 6 critical, 5 error, 29 warning, 17 info on BOTH trees -- IDENTICAL to `main` at d611666, the only difference the promoted-spec word count (+929). No new finding, none suppressed. RETENTION still proved across the rename: `sequenced_after: [add-sequenced-after-substrate]` byte-identical between the ratified ref `68f73e1d` and the archived file, `retention_problem` -> None. Refs #618 Lane: openxfactory-max001 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv Lane: openxfactory-max001
…623 (56e1227), green on main (run 33824532924) (#632) Lane: openxfactory-max001 Brett's word: "archive it when main is green" (2026-09-04). Realized by #623 (56e1227); green on main (pytest-suite run 33824532924). Ratified 2026-09-04 "ratify 623"; records travel with the archived change under openspec/changes/archive/2026-09-04-add-per-change-sweep-ledger/. First archive under the per-change sweep ledger: one row moved (add-per-change-sweep-ledger active → archived), no partner flip, no MOVEMENT LOG entry owed. Promotion byte-identical into openspec/specs/release-realization/spec.md. Validation at head ce3c42f: openspec --all --strict 88/88 (33 active after merging main d611666, 55 specs); --ledger-diff consistent (162 rows; #619 added its own row under the new pin, the first cross-lane use); pytest tests/sequenced_after 158 passed; doc-health identical to main; six required checks green (incl. the new lane-line). Admin merge: self-authored PR (standing pattern B2). Landed under lane-collision protocol Rule 6. Closes #618 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv
…e's prescribed entry into the release that already ships its bytes (#622) (#636) * Cut contract-v3.3: consumer.identity_namespace is declared, and the shared-authority comparison reads the pair Realizes add-consumer-identity-namespace (merged as #622, 95c2cf6), whose ratification excluded the cut in terms and whose tasks.md 5.3 prescribed this changelog entry so the cutting session invents nothing. Cut on the convener's word, Brett Heap, 2026-09-04, verbatim: "cut v3.3". MEASURED SURFACE. Intersecting `git diff --name-only contract-v3.2 HEAD` (71 paths) with the 283 registered members of contract-v3.2.digests.yaml leaves EXACTLY TWO: contracts/manifest.yaml and docs/contract-versioning-policy.md. `git log contract-v3.2..HEAD` over each names only 95c2cf6 (#622), so both are that packet's own. Four other landings reached main since the tag — #617 (6a39d2a), #623 (56e1227), #619 (d611666) and #631 (b1d492a) — and moved no registered member. CLASS: ADDITIVE (minor), measured against the policy's own definition. The schema member is DESCRIBED and unconstrained; the shared-authority comparison reads the pair only where both sides declare a grammatical namespace and the bare identity everywhere else, so absence and malformedness REPORT rather than clear; one predicate serves both the named finding and the lift's third condition; the block's shape codes go from eight to nine with consumer-identity-namespace-grammar, whose window opens at THIS minor rather than at contract-v2.4; the one narrowing is baked-secret over the third free string, under add-binding-consumer-identity 2.6's precedent; nothing else narrows. Membership is 283 rows in both inventories, zero added and zero removed. Four digests move: the two registered members #622 moved, plus this cut's own changelog and tests/intent-compliance/test_release_boundary.py. That file gains FEATURE_SUCCESSOR_7 in the enum and both match arms, with the by-hand statement its tripwire requires: this bundle touches NO intent-compliance member and the membership it asserts is UNCHANGED. The inventory is built LAST at the final tree by the repository's own builder. The annotated tag is NOT pushed here: it is a post-merge act taken only after verify-commit passes at the squash commit — Bundle Realization Order step 4 before step 5, the step whose omission made contract-v3.1 defective and forced #624's superseding cut. Lane: openxfactory-smalls Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_014FBRdVuA6fmSEey9WQNAB7 * Name the cut by its branch rather than by a guessed PR number PR #632 was taken by another lane's archive landing while this cut was being measured, so the packet's Executed rows name `chore/cut-contract-v3.3` instead. The number is added once the pull request exists. Lane: openxfactory-smalls Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_014FBRdVuA6fmSEey9WQNAB7 * Name the cut PR in the packet's Executed rows now that it exists: #636 Lane: openxfactory-smalls Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_014FBRdVuA6fmSEey9WQNAB7 * Record the fold's measured doc-health delta in the packet's 8.1: zero movement Baseline origin/main 21190cf and this tip both report 6 critical, 4 error, 40 warning, 16 info — 66 machine rows each, byte-identical finding sets in both directions, and release-inventory-drift at ZERO on both sides because #628's cut re-baselined the inventory over #622's already-landed bytes. Lane: openxfactory-smalls Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xf699RDAfTs5gnSr7igJ2v * Copilot round one: the ticked boxes no longer contradict their own prose Both findings taken, and neither by deletion. Ticking 5.4 and 7.5 left three present-tense sentences standing — "UNTICKED RATHER THAN TICKED WITH AN EXCUSE", "EXECUTED AND NOT ZERO AT THE CURRENT BASELINE — UNTICKED DELIBERATELY", and 8.1's "THE BOX STAYS UNTICKED" — each of which read as a claim about the present state while the checkbox above it said the opposite. A reader had to infer the timeline from the discharge paragraph below. Each is now explicitly the record of the state at its own reading, with the discharge named as what changed it. The sentences are KEPT rather than removed: they say why the boxes were not ticked with an excuse while the packet was open, which is the fact worth preserving, and deleting them would erase the reasoning that made the refusal to hand-fix an inventory legible. Lane: openxfactory-smalls Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xf699RDAfTs5gnSr7igJ2v --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
|
CLAIMED — lane openxfactory-smalls, session 01Xf699RDAfTs5gnSr7igJ2v, 2026-09-04T04:28Z, for the ARCHIVE ACT of Lane: openxfactory-smalls |
…619 (d611666), green on main (run 33835343327) (#644) * Archive add-drafted-proposal-origin: ratified 2026-09-03, realized by #619 (d611666), green on main (run 33835343327) Lane: openxfactory-smalls Brett Heap's word, 2026-09-04: "do the two archive acts". This is the first of the two. MERGED: PR #619 squashed to d611666 on main (2026-09-04T01:51:13Z), carrying the packet AND its whole code surface in one landing. GREEN WHERE IT LANDED: main's own pytest-suite run 33835343327 at 92e662c, success, with the realization in that tree — polled to completion before this branch was cut, because release-realization's realization archive gate asks whether the realization is green where it landed, not on the archive pull request. TWO requirements promoted BYTE-IDENTICALLY: document-lifecycle's "Proposal origin declaration" (6220 chars both sides, seven scenarios, sha256:102cfd1dff709b63e4ebbd4c557bcadd44b677004127a2dbc5c4de859e09b4b8) and doc-health's "Proposal-origin checks enforced by reference" (6400 chars both sides, ten scenarios, sha256:421f16a04ee040b2ffef8550b7f6d9610145c6654005cf0a607ac883a59fdd92). The two _LEDGER_SUBJECTS rows in the modified-block-currency self-gate retire on their own stated condition — the packet archived AND both blocks promoted — with both halves verified before the rows came out, and the retirement recorded in place rather than left as an absence (the shape amend-owner-layer-severity set). The carriage-ledger population returns 12 -> 10. Archived through scripts/proposal-support.py . archive, never bare openspec archive. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xf699RDAfTs5gnSr7igJ2v * Stamp the archive: one corpus-ledger row active -> archived, and the act's own record Lane: openxfactory-smalls tests/sequenced_after/corpus-ledger.yaml: add-drafted-proposal-origin state: active -> archived, moved_by "#644", moved_on 2026-09-04. class HOLDS at co-modifier, declares absent, prose false — no partner flipped, so no MOVEMENT LOG entry is owed: the row diff states the whole move. --seed-ledger reported "162 rows, 1 moved by #644" and named that one row. tasks.md gains 5.2-5.5: the promotion verified byte-identically on both requirements (sha256 + character counts + scenario titles in order), the one-row ledger move confirmed rather than predicted, the self-gate retirement with both halves of its stated condition checked BEFORE the rows came out, and the predicted doc-health movement confirmed in reverse (-2 info and nothing else) with the unrelated release-tag-publication baseline instability characterized rather than swallowed. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xf699RDAfTs5gnSr7igJ2v --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
Lane: openxfactory-smalls
The ruling
Brett Heap, in session 2026-09-03, verbatim: "implement your recommendations on all these", over the lane's written recommendations for #561/#339, #318, #511 and #553. The resolution for this issue is recorded as the RULING comment on #318:
The problem, in one table
A drafted-but-unapproved packet had no lawful origin shape:
.openspec.yamlshapekind: ad_hoc, noapproved_onerror— "ad-hoc origin lacks requiredapproved_on"origin:blockerror— "proposal carries no origin declaration"So the mechanical remedies were: approve the change, delete the draft, or write a date nobody gave — the third being the defect the field exists to catch, which is why #312 routed the fix out to #318 rather than taking it. Two medx boundary packets carried the finding long enough to join the standing error baseline.
The encoding chosen, and why
kind: ad_hoccarryingproposed_by+proposed_onin place of the approval pair — NOT a thirdkind: drafted. The ruling named both spellings and left the choice open;design.md§ D1 argues it on a property that decides between them:kindandidare fields the support manifest REPEATS, and this same family reports a manifest/packet disagreement as post-ratification mutation aterrorwith resolution classcontested. Adraftedkind must becomead_hocwhen approval lands, so that encoding writes a contested-class mutation into the happy path of every packet that gets approved; minting a:drafted:id and re-spelling it only moves the same mutation ontoid. Under the chosen encoding the identity never moves — same kind, same durable id, minted once at drafting — and approval is two ADDED lines. Measured supporting fact: the:adhoc:id's date is already the declaration date, not the approval date (create-medxchart-overlay-boundarycarries:adhoc:2026-08-23-…and was approved 2026-08-25).The four required properties
proposal-support.pygate, because a state the nightly calls lawful whileverifyrejects it is a state with two answers.error+ resolution classcontested(resolving it transcribes an approval or withdraws a status claim; inventing the date is the defect). It fires only where the unapproved state is positively declared — silence is not the state, so nobody buys leniency by deleting fields — and never on the fact of archival, because an archived packet may lawfully declare a pre-ratification standing.approved_onis still required for ad-hoc approval exactly as today, structurally: the approval arm is byte-unchanged in rule text and action line.New finding names:
drafting-provenance-incomplete(ERROR, mechanical) andunapproved-origin-at-ratification(ERROR,contested).Contents
document-lifecycleMODIFIED "Proposal origin declaration" — the owning contract admits the state (the family enforces it BY REFERENCE, so the requirement had to admit it first), and states that the origin's identity is what is immutable, that approval is an addition, and that approval appears when a status claims it. 4/4 promoted scenarios carried, 5 added.doc-healthMODIFIED "Proposal-origin checks enforced by reference" — five finding classes become seven, named. 5/5 promoted scenarios carried byte-identical, 5 added.scripts/doc_health/proposal_origin.py(three-state ad-hoc arm, one status read throughcorpus.parse_status+promotion_fidelity.declared_standingagainst the existingRATIFIED_OR_BEYOND, never a private regex),scripts/proposal-support.py(the same arm inorigin_errors;write_origin_blockwrites whichever pair(s) it is given and refuses one that completes neither;declare-adhocgains--proposed-by/--proposed-on), 18 new tests covering the matrix in both directions.Six design decisions are flagged for veto in
proposal.md§ Orchestrator Decisions and argued indesign.md.Evidence
openspec validate add-drafted-proposal-origin --strictOPENSPEC_TELEMETRY=0 openspec validate --all --strictpython3 -m pytest tests/doc-health -qpython3 -m pytest tests/doc-health/test_proposal_origin.py -q--single-repoonorigin/main2b0615da(clean worktree)infoand nothing else — this packet's own two MODIFIED blocks in the carriage ledger, the editorial arm every reworded active MODIFIED block produces one of (8 in the baseline, from six other active changes). Zero new critical/error/warning.proposal-originreads 0 before and after.The new findings have an empty population by construction, measured not assumed: all 109 ad-hoc origins in this corpus carry a complete approval pair, 0 carry neither, 0 carry half of one, and
proposed_by/proposed_onappear in no packet. The one behavioural change to an existing class (D4: an origin declaring no provenance state now produces one finding instead of one per absent field) reports strictly fewer findings on identical input, so nothing this PR does can add a finding in any repository.One assertion moved and it is named rather than buried:
test_modified_block_currency_self_gate.py's_LEDGER_SUBJECTS— the EXACT named set compared with==, never<=— gains this packet's two rows with the per-unit explanation and retirement condition its convention requires. The self-gate failed first, by name, naming both subjects: that is the assertion working._PAIRING_SUBJECTSstays empty.One flake observed, characterised rather than swallowed
An intermediate run of the identical tree failed
test_the_report_moves_only_in_this_family_s_lineswith aninfomovement of 11 against the family's 10 — i.e. one non-familyinfofinding absent from one of that test's two report renderings. It did not reproduce in that run's own predecessor or its successor over the same tree, and it cannot be this change's: the missing finding belongs to another family, and every finding this change can emit has an empty population here. The class is the one #613/#614 narrowed by pinning--as-ofacross both renderings — a report-to-report comparison with a per-run input, the remaining candidate being a family that reads published git refs. Recorded here and intasks.md§ 6 for the next reader; not fixed here, and not this packet's to fix.A second corpus-census pin, found by CI
tests/sequenced_after/test_sweep.py's live sweep reads the WHOLE corpus for changes sharing a(capability, requirement)key, so a packet carrying MODIFIED blocks moves it — and it lives outside thetests/doc-healthgate this packet was running locally, which is why CI found it and the local run could not. Re-measured on the merged tree:change_ids158 → 159,co_modified109 → 110,active_co_modified21 → 22,sole_modifiersandactive_soleunmoved at 49 and 12.The rise is ONE, not two, and that file's own rule says a rise of one never comes with the sole set falling: co-modified membership is boolean, so this packet enters once; and both of its keys have the SAME single earlier owner — the archived
add-proposal-origin-contract, which ADDED both requirements and was already co-modified through two other keys (doc-health's "Deterministic check families", shared with fifteen changes, anddocument-lifecycle's "Proposal-owned supporting documents", shared with two). Measured, not inferred from the totals. All three moved pins carry their dated narrative and the movement log gains a bullet, in that file's convention.origin/mainwas merged twice along the way (for #614's clock pin, then #621) and the doc-health measurement re-taken against the newer baseline995c0ad5: base 6 critical, 8 error, 29 warning, 14 info, head 6/8/29/16 — the same +2infoand nothing else. (Main's own error band moved 6 → 8 between the two baselines, by main's landings, not by this branch.)Bot round
Codex refused, verbatim: "You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings." Requested once, not re-requested. Sourcery is an upsell stub on a private repository.
Copilot found one real defect and it was a silent drop, fixed in
bfc19f9a:write_origin_blockwrote only pairs it found COMPLETE, so a caller handing it a full approval pair and a loneproposed_bygot a block with the stray field discarded and nothing said — a record that looks complete, produced by the writer whose own gate and nightly family both report a half-declared pair as a defect. It now refuses a half-given pair, naming what was given and what is missing; four parametrized tests pin it at either field of either pair and assert no packet file is written. No spec text moved: the delta already said a provenance pair is declared in full or not at all.CI
All five required checks pass on the merged head
b74c8466:pytest-suite(20m53s),signed-execution-chain-gate,wallet-validation,openreposhape-pin,merge-master-approval. The local full-suite run's 95 failures are environmental — the scratch worktree has no initializedopenXwalletsubmodule, so the trust-anchor, wallet-pin and chain suites refuse, and the same tests fail identically on the untouchedorigin/mainworktree beside it.Archive gate
This packet carries a code surface, so under
docs/release-realization-flow.md§ The Archive Gate it archives on merged-plus-green onmain, not on landing.tasks.md§ 5.1 is open.Closes #318
🤖 Generated with Claude Code
https://claude.ai/code/session_01RhXyJoZvtSmGcTdPVDKPoD