Skip to content

RATIFIED (ratify 1028 as encoded — D1–D5 recommended): Propose the declared former id: a moved packet names the identity it was ratified under - #1028

Merged
brettheap merged 6 commits into
mainfrom
change/add-declared-former-id
Sep 14, 2026
Merged

brettheap merged 6 commits into
mainfrom
change/add-declared-former-id

Conversation

@brettheap

@brettheap brettheap commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-1

The deadlock this ends

release-realization's Origin retention at archive compares a packet's origin declaration against "the declaration present at ratification", and scripts/proposal-support.py finds that ratification by walking ONE path derived from the change id the tree spells today (rel = f"openspec/changes/{change}/proposal.md"). A ratified packet whose directory is renamed has no history under its new name before the rename, so the walk's first ratified blob is the RENAME COMMIT — later than every mutation made in between, and the gate printed ORIGIN RETAINED over it (measured on #777, filed as #833).

PR #846 closed that by REFUSING rather than re-basing, and its own refusal text says why the refusal was the whole of the fix:

Nothing in this corpus declares a FORMER ID, so the baseline cannot be established from history alone and this walk refuses rather than re-basing onto that commit […] or land the former-id declaration (a later packet) before renaming a ratified change.

docs/document-lifecycle.md (Status: standard), ratified by that same act, states the consequence as canon: "Renaming a ratified change is therefore blocked until a change declares a FORMER ID (issue #833, a successor packet)". This is that successor packet.

The ruling

Brett Heap, 2026-09-13 at approximately 03:0xZ, verbatim "option 2 on 1003 with the fix", recorded at issuecomment-5650519818. It selects a remedy SHAPE — the former-id declaration, fail-closed on the UNDECLARED case, with #833's dangling-cited-path finding swept in — and NOT-SELECTS two alternatives by name: the full rename-lineage walk and the all-rename-chain interim guard, as "history-walking archaeology that cannot carry the intent bit distinguishing rename-of-ratified from lawful fork-by-copy". It ratifies no wording. design.md puts the five decisions most worth a veto as questions with the recommendation first.

Why a declaration and not a walk

History records that two paths are similar. It cannot record what the author MEANT by the similarity, and the two meanings need opposite answers. ratified_under_a_former_path's own docstring already says so:

The wider closure […] cannot separate "an already-ratified packet renamed and un-ratified in one commit" from "a NEW packet authored as a copy of a ratified one, entering as a draft and ratified later": both are, to history, "source ratified at the hop's parent, destination not ratified at the hop".

The gate has no bypass flag by design (#690), so a walk that guesses wrong makes a lawful fork permanently unarchivable.

And the substrate a walk would rest on loses exactly the hop that matters. Measured in this authoring on git 2.43.0, against a --filter=blob:none --no-checkout clone of #1003's own rename chain with the promisor remote made unreachable:

read full clone partial clone, promisor cut
pairing at the hop that renames AND un-ratifies (git log --follow --find-renames --name-status -1 <hop> -- <dest>) R075 <source> <dest> no record at all
git ls-tree --name-only <rev> -- <path> — path present, blob unavailable the row, exit 0 the row, exit 0
git ls-tree --name-only <rev> -- <path> — path genuinely absent nothing, exit 0 nothing, exit 0
git cat-file -e <rev>:<path> / git show <rev>:<path> — exit 128 for BOTH conditions

Rename pairing below an exact match is computed from content, and an un-ratifying rename is a rename that also EDITS — so the checkout that cannot read content loses the dangerous hop and keeps the harmless ones. Meanwhile the TREE still names the predecessor, and ls-tree is the one read that separates ABSENT from UNREADABLE, which cat-file -e and show do not. PR #1024 measured the same distinction and recorded it at its FREEZE; this is the re-measurement, so the figure is this packet's. A declaration is read from the tree.

What the packet says

One ## MODIFIED block and three ## ADDED requirements over release-realization, thirty-one scenarios (7 + 8 + 10 + 6) after three bench rounds — the count is re-derived from the delta at each push, twice having been a finding when it was not:

  • Origin retention at archive (MODIFIED) — the baseline is resolved across the current identity and every declared former identity together, taking the EARLIEST commit at which any declares Status: ratified; resolution is BY IDENTITY and never by rename detection; the comparison itself does not move, so a rename is not a way to acquire a later baseline and therefore not a way to launder a mutation; every read behind the baseline fails closed with ABSENT distinguished from UNREADABLE. Every promoted sentence and all three promoted scenarios are carried verbatim (verified against openspec/specs/release-realization/spec.md lines 262–282), so the modified-block-currency carriage arm has nothing to report and this packet opens no ledger row.
  • A moved packet declares the identity it was ratified under (ADDED) — a top-level former_ids: list in the packet's own .openspec.yaml, a SIBLING of origin: and never a member of it, naming change IDS, oldest first, and APPEND-ONLY ACROSS COMMITS: a later commit that removes, reorders or respells an established entry is refused whether or not it moves anything. An entry is added only by the commit that performs the move it records, so absence of a live directory is not read as evidence of predecessorship. A former identity has EXACTLY ONE OWNER. The archive relocation is not a move under this requirement and is never declared; a declared former id that still stands as a live directory is refused, that shape being a copy.
  • An undeclared rename arrival is refused at its landing (ADDED) — one commit read, never a chain. Qualified to a move whose source identity has EVER declared Status: ratified, taken over the source's whole DECLARED LINEAGE (its own id plus every id it declares) and never off its blob at the parent, so neither an un-ratifying rename nor a second lawful move sheds it; a never-ratified draft rename stays lawful, as the promoted realization record already promises. The arriving list must be the source's list with the source id appended. Both historical reads fail closed — the arrival pairing and the ratification lookup — each refusing CANNOT RUN naming the read rather than resolving a silence. The archive relocation is excepted by id. No bypass flag.
  • A packet reference resolves by identity, not by path (ADDED) — the dangling-cited-path repair. Both halves resolve: the location the identity resolves to must also carry the file the citation names, and a failure says which half failed. Resolution is to exactly one packet or to nothing, never to a set; an id that would resolve twice is AMBIGUOUS and is never settled by sort order.

The sibling position is a requirement, not a preference, and it is measured. proposal-support.origin_block_lines returns the IDENTICAL block with a top-level former_ids: key appended, because it starts at the origin: line and stops at the first line that is neither blank nor indented. The origin declaration is frozen at ratification; a former-id entry is written by the act that MOVES the packet, which happens after ratification by construction (a draft that moves owes no declaration). Inside origin:, every lawful move would be a mutation of a frozen declaration needing its own disposition — a mechanism whose ordinary use requires an exception.

#833's dangling-cited-path half, swept in

#833's closing paragraph: the cited_to: paths "would keep paths a rename breaks — nothing validates that a cited path resolves". Re-measured on main 9378eca5 over every tracked file except openspec/changes/archive/ (frozen record), tests/ and specs/ (fixtures and Spec Kit feats): 94 distinct openspec/changes/<id>/… references resolve to nothing, 58 of them resolvable BY ID against the archive — including the one #833 named, openspec/changes/bump-openspec-cli-pin-to-1.12/specs/neutral-product-pin/spec.md, cited at openspec/changes/disposition-codexfactory-declared-renames/design.md and now standing at openspec/changes/archive/2026-09-09-bump-openspec-cli-pin-to-1.12/…. The remaining 36 are not classified and are deliberately not claimed as defects (they include cross-repository citations spelled codexFactory openspec/changes/…, which do not resolve on this tree by design).

The repair is a RESOLUTION RULE, so no ratified prose anybody else authored is edited. design.md D4 rules that REPORTING the remainder is a successor rather than this packet's business, and prices it: a twenty-fourth doc-health check family is a ## MODIFIED block over a promoted enumeration that reads "twenty-three check families", plus a registry edit and a numeral, gated by the family-enumeration family. tasks.md § 6.1 carries the figures so the successor does not re-derive them.

AND THE RULE HAS A NAMED CONSUMER WITH A DATED FAILURE AHEAD OF IT. scripts/validate-pin-registrations.py's check_citations — landed for this exact defect (issue #840, after a change directory was renamed and two live citations went on naming the old id while every run exited 0) — opens every cited_to referent and makes an absent path "a named finding and exit 1". On this tree it passes: "6 disposition(s) carry 40 citation(s) naming 36 referent(s) — 17 name a path in this tree, 0 a URL, 7 a forge reference, 12 a path qualified to another repository […]; every in-tree path resolves". Six of those in-tree referents point into four ACTIVE packets — prepare-openspec-1-12-readiness (twice), add-chain-attestation, disposition-codexfactory-floor-relocation-retitle, and disposition-codexfactory-regular-pr-council-clearance-archive (twice). Each will archive; each archive moves the path and keeps the id; that gate resolves the RAW path. So the next of those archives turns a lawful act into an exit-1 refusal of a gate nobody touched. tasks.md § 5.0 names that reader as the consumer of the resolution rule with its own tests. (This corrects design.md D0 M5, which first recorded that nothing checks a citation's destination; the bench's third round found the consumer, and the corrected fact is stronger than the claim it replaces.)

The bench — three rounds, fifteen threads, ALL FIFTEEN TAKEN, none refused

round on threads what they found
1 75ff1043 9 (3 Codex P1, 6 Copilot) the refusal reached a LAWFUL DRAFT RENAME, contradicting this packet's own scenario and the promoted record; a standing packet could append an identity it never had; append-only was stated and unenforceable; one identity could resolve to a SET; and proposal_path_at_ref's boolean probes contradict this packet's own fail-closed clause — taken in 94a0e6cd
2 94a0e6cd 3 round one's qualification could be SHED BY MOVING TWICE (X ratified → X→Y declared and un-ratified → Y→Z undeclared); the reference rule resolved the packet and never the FILE; and the README row's own count was stale by one — taken in f887fd78
3 f887fd78 3 the fail-closed arm covered the pairing read and not the RATIFICATION LOOKUP; design.md D0 M5 was WRONG about there being no citation consumer; and this description carried round zero's count — taken in 1e57643d

Two of round two's and one of round three's are defects the previous round's own fixes created or left half-closed, which is why each round was benched rather than assumed clean. Every factual claim was re-read in the tree before the edit — sequenced_after.py's archived_change_dirs, _blob_exists_at_ref and _archive_dir_names_at_ref; docs/document-lifecycle.md's draft-rename sentence; and validate-pin-registrations.py's check_citations, which is where the M5 correction came from. design.md D9, D10 and D11 record the three rounds.

Gates — branch 1e57643d against a control worktree at origin/main 9378eca5

  • openspec-cli-pin — the PINNED CLI, which is the one the gate runs. python3 scripts/validate-openspec-cli-pin.py --change add-declared-former-id → exit 0, @fission-ai/[email protected] verified against its content address, Totals: 1 passed, 0 failed (1 items).
  • OPENSPEC_TELEMETRY=0 openspec validate --all --strict (PATH CLI 1.2.0): branch 105 passed, 3 failed (108 items); control 104 passed, 3 failed (107 items). The failing sets are byte-identical — the three disposition-codexfactory-* packets that carry no spec delta by construction.
  • python3 scripts/proposal-support.py . verify → exit 0, proposal support verification ok.
  • python3 scripts/doc-health.py --single-repo ., branch vs control: both exit 0, both 328 lines, and diff is CLEAN — zero differing lines once the repo-identity token (each checkout's own directory name) is normalised. Headline on both, as-of 2026-09-13: canon share 40.3%, 31 critical / 9 error / 26 warning / 23 info, new regressions 0. The packet introduces no finding of any family, including no modified-block-currency carriage row.
  • python3 -m pytest tests/doc-health -q --tb=no: branch 7 failed, 1734 passed, 1 skipped; control identical, and the failing set is byte-identical. Those seven are a pre-existing local-environment baseline, confirmed by running them in a plain clone at the identical tree; pytest-suite in CI is the authority.
  • python3 -m pytest tests/proposal-support -q: branch 129 passed, 73 subtests; control 129 passed, 72 subtests. The one extra subtest is the in-repo origin-retention sweep fixture, which runs one subtest per active change; the packet adds one active change. No test's pass/fail moves.
  • python3 -m pytest tests/sequenced_after -q -m "not postgres" → 286 passed (415 passed with tests/proposal-support in the same run). This is the gate the FIRST head missed: pytest-suite on 75ff1043 failed on tests/sequenced_after/test_sweep.py because the per-change sweep ledger carried no row for the new change — a ledger no local validator arm reaches. The failure named its own remedy and it was taken with the sanctioned tool, one row, in 94a0e6cd.
  • The whole local tree, branch vs control, same invocation both sides with the six paths that need unmaterialized carve-leg submodules ignored: 120 failed, 3849 passed, 82 skipped, 60 errors on BOTH, with a byte-identical failed-plus-error set and the same +1 subtest. Those 120/60 are a local-environment baseline (missing submodules and external deps); pytest-suite in CI is the authority.
  • python3 scripts/validate-target-release.py .: branch 46 active proposals, 46 declaring — 22 implemented; control 45 / 45 — 21 implemented. python3 scripts/validate-sequenced-after.py ., python3 scripts/validate-scope-globs.py ., python3 scripts/validate-pin-registrations.py . → all exit 0.
  • sequenced_after: [] is corroborated rather than asserted: no active change holds a ## MODIFIED block over Origin retention at archive. The only other occurrence of that title under openspec/changes/*/specs/ is one line of prose in add-structured-scope-substrate's delta.

What this pull request does NOT do

refs #1003 · refs #833

🤖 Generated with Claude Code

Ratified

Brett Heap, 2026-09-13T22:48Z, verbatim "ratify 1028 as encoded" — recorded at issuecomment-5656710037 (created 2026-09-13T22:48:34Z).

A multiple-choice ruling over design.md's five decisions, D1 through D5, taking the RECOMMENDED option on every one — the delta therefore moves no byte:

  • D1 = (a) — the declaration lives in the packet's own .openspec.yaml as a top-level former_ids: key, a sibling of origin: and never a member
  • D2 = (a) — it names change ids and the path is derived, oldest first, appended to and never rewritten
  • D3 = (a) — the fail-closed refusal is taken by a new house validator run as a required check at the landing, not by the archive gate and not as a doc-health finding; no bypass flag
  • D4 = (a) — no doc-health delta in this packet; reporting the unresolvable remainder is a successor with its own numeral (tasks.md § 6.1)
  • D5 = (a) — Origin retention at archive is MODIFIED, not left standing beside an ADDED requirement that contradicts it

Encoded at 2c75d82a16ecaef84cb2e9ba9e3e414df65f674c. Ratification record: openspec/changes/add-declared-former-id/review/ratification-2026-09-13.md. Nothing is realized, promoted, or archived by the encode; landing and the archive-on-green-realization step remain separate acts on separate words.

Summary by Sourcery

Ratify a declaration-based identity lineage for moved change packets so origin retention and packet references remain correct without relying on rename-history inference.

New Features:

  • Define a declared former-identity mechanism for moved change packets, including lineage, ownership, append-only, and archive-relocation rules.
  • Specify fail-closed handling for undeclared ratified-packet renames and ambiguous or unavailable identity resolution.
  • Add identity-based resolution rules for packet references spanning active and archived locations.

Bug Fixes:

  • Prevent origin-retention baselines from being incorrectly rebased to a later rename commit.
  • Address dangling packet references caused by archive path relocation without changing packet identity.

Enhancements:

  • Update origin retention to resolve the earliest ratification across the packet's current and declared former identities while distinguishing absent from unreadable history.
  • Document the design decisions, ratification record, realization tasks, measurements, and review outcomes for the proposed behavior.

Documentation:

  • Add the ratified change packet, design documentation, task plan, and ratification record describing the former-identity and reference-resolution requirements.

Tests:

  • Record the new active change in the sequenced-after corpus ledger.

Chores:

  • Add the change to the README OpenSpec records index and mark it ratified without realizing or promoting the specified behavior.

…was ratified under

`release-realization`'s *Origin retention at archive* compares a packet's origin
against "the declaration present at ratification", and the walk that finds that
ratification derives ONE path from the change id the tree spells today. A
ratified packet whose directory is renamed therefore has no history under its
new name before the rename, so the walk's first ratified blob is the RENAME
COMMIT — later than every mutation made in between. PR #846 closed that by
REFUSING rather than re-basing, and its refusal text says why the refusal was
the whole of the fix: nothing in this corpus declares a FORMER ID.
`docs/document-lifecycle.md` states the consequence as canon — renaming a
ratified change is blocked until a change declares one, "a successor packet".
This is that packet, filed under Brett Heap's ruling of 2026-09-13, verbatim
"option 2 on 1003 with the fix".

The mechanism is a DECLARATION and never a walk, because history records that
two paths are similar and cannot record what the author meant by it: a rename of
a ratified packet must keep its ratification and a fork authored as a copy must
get its own, and the gate has no bypass flag, so a walk that guesses wrong makes
a lawful fork permanently unarchivable. A top-level `former_ids:` list in the
packet's own `.openspec.yaml`, a SIBLING of `origin:` so a lawful move is never
a mutation of the frozen origin declaration, naming change IDS because this
estate addresses a packet by id and derives its path. Its ABSENCE at a rename
arrival is a REFUSAL at that hop's landing — one commit read, never a chain.

One `## MODIFIED` block (*Origin retention at archive*, every promoted sentence
and all three promoted scenarios carried verbatim) and three `## ADDED`
requirements, twenty scenarios in all. `sequenced_after: []` is corroborated: no
active change holds a MODIFIED block over that title.

Measured in the authoring, on git 2.43.0 against a `--filter=blob:none
--no-checkout` clone of the issue's own rename chain with the promisor cut:
`git ls-tree` prints the row for a present-but-unreadable blob and prints
nothing for an absent path, both at exit 0, while `git cat-file -e` and
`git show` exit 128 for both — so the two reads this estate's packet lookups
rest on cannot tell "nothing there" from "cannot tell you"; and at the
un-ratifying hop the full clone pairs R075 where that clone reports no record at
all, the pairing being computed from content. The dangling-cited-path half is
swept in as a resolution rule: 94 dangling `openspec/changes/<id>/…` references
on this tree, 58 of them resolvable BY ID against the archive, the archive
relocation having moved the path and kept the identity.

Nothing is realized and nothing is promoted: no file under `openspec/specs/`, no
script, validator, register, workflow or test is touched, and `tasks.md` is
entirely unticked. Ratification is Brett Heap's word and a separate act.

refs #1003
refs #833

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 13, 2026 05:23

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 2 days and 23 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Sep 13, 2026

Copy link
Copy Markdown

Reviewer's Guide

This PR files a draft OpenSpec successor proposal for ratified packet renames: it defines a sibling former_ids: declaration, identity-based earliest-baseline and citation resolution, and fail-closed landing behavior, while intentionally implementing none of the proposed runtime changes.

Sequence diagram for former-id baseline resolution at archive

sequenceDiagram
    participant ArchiveGate
    participant ProposalSupport
    participant IdentityResolver
    participant GitTree
    participant GitBlob

    ArchiveGate->>ProposalSupport: ratifying_commit(current_id, former_ids)
    ProposalSupport->>IdentityResolver: proposal_path_at_ref(identity, ref)
    IdentityResolver->>GitTree: ls-tree(ref, identity)
    GitTree-->>IdentityResolver: active or archived path
    IdentityResolver-->>ProposalSupport: path by identity
    ProposalSupport->>GitBlob: git_show_text(ratifying_commit:path)
    GitBlob-->>ProposalSupport: declaration or ABSENT/UNREADABLE
    ProposalSupport-->>ArchiveGate: earliest ratified baseline
    ArchiveGate->>ArchiveGate: compare origin against baseline
Loading

Entity-relationship diagram for packet identity declarations

erDiagram
    PACKET {
        string current_id
        string origin
        string status
    }
    FORMER_ID {
        string change_id
        int identity_order
    }
    PACKET ||--o{ FORMER_ID : declares
    FORMER_ID }o--|| PACKET : identifies_previous_identity
Loading

Flow diagram for declared packet moves and fork-by-copy

flowchart TD
    A[Packet directory arrives from another packet directory] --> B{Archive relocation with same id?}
    B -->|Yes| C[Allow without former_ids]
    B -->|No| D{former_ids contains source id in same commit?}
    D -->|Yes| E[Allow declared move]
    D -->|No| F[Refuse former-id-undeclared]
    A --> G[New packet copied from a ratified packet]
    G --> H[No former_ids required]
    H --> I[Keep independent origin and baseline]
Loading

File-Level Changes

Change Details Files
Adds a draft OpenSpec proposal defining declared former packet identities as the remedy for ratified-change renames.
  • Introduces top-level, ordered former_ids: metadata alongside origin: in a packet’s .openspec.yaml.
  • Defines identity-based resolution across current and former IDs, with the earliest ratification establishing the archive baseline.
  • Explicitly separates lawful moves from fork-by-copy and excludes archive-directory relocation from former-ID declarations.
openspec/changes/add-declared-former-id/.openspec.yaml
openspec/changes/add-declared-former-id/proposal.md
openspec/changes/add-declared-former-id/design.md
openspec/changes/add-declared-former-id/specs/release-realization/spec.md
Specifies fail-closed behavior for undeclared or unreadable rename arrivals without implementing the runtime gates.
  • Requires a landing-time refusal when a packet moves without declaring its source ID in the same commit.
  • Defines distinct unreadable/CANNOT RUN handling when Git rename pairing cannot be computed but tree movement is evident.
  • Preserves the existing archive relocation exception and prohibits bypass flags.
openspec/changes/add-declared-former-id/specs/release-realization/spec.md
openspec/changes/add-declared-former-id/tasks.md
openspec/changes/add-declared-former-id/proposal.md
Adds a proposed identity-based packet-reference resolution rule to repair citations broken by path changes.
  • Resolves openspec/changes/<id>/... references against active, archived, or former-ID locations.
  • Treats unresolved identities as dangling while leaving cross-repository references out of scope.
  • Documents the measured dangling-reference population and defers a reporting/doc-health check family to a successor change.
openspec/changes/add-declared-former-id/specs/release-realization/spec.md
openspec/changes/add-declared-former-id/design.md
openspec/changes/add-declared-former-id/tasks.md
Records the proposal as draft-only planning work and exposes it in the active-changes index.
  • Adds extensive design decisions, measurements, realization slices, and explicitly unticked tasks.
  • States that no scripts, validators, tests, canonical specs, workflows, or behavior are changed in this pull request.
  • Adds the proposal to README with its provenance, scope, non-selected alternatives, and validation context.
openspec/changes/add-declared-former-id/tasks.md
README.md

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

…s row

The row was written before the pull request existed, so the one field it could
not carry is added here rather than left for a reader to hunt. Nothing else in
the row or in the packet moves.

refs #1003

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 75ff1043e2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unresolved critical and moderate findings affect baseline resolution, lineage validation, and requirement consistency.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This PR adds a draft OpenSpec proposal for preserving packet identity across ratified renames and resolving references by change ID rather than path.

Changes:

  • Adds the former_ids declaration and fail-closed rename handling.
  • Defines identity-based baseline and reference resolution.
  • Documents design rationale and a 29-task realization plan.
File summaries
File Summary and final review comments
README.md Registers the draft change. Nit (1 vote): relocate the entry to avoid the documented merge-conflict anchor.
openspec/changes/add-declared-former-id/tasks.md Defines realization tasks. Critical (3 votes): preserve unreadable-versus-absent results. Moderate (3 votes): add append-only ordering validation and fixtures. Moderate (1 vote): define an execution path for citation checking.
openspec/changes/add-declared-former-id/specs/release-realization/spec.md Defines proposed requirements. Critical (1 vote): require exact former-ID lineage. Moderate (3 votes): limit declaration requirements to ratified moves. Moderate (3 votes): define duplicate/current-former collisions. Moderate (1 vote): narrow the copy scenario or update the existing refusal contract.
openspec/changes/add-declared-former-id/proposal.md Explains scope, rationale, and exclusions; no final review comment.
openspec/changes/add-declared-former-id/design.md Documents design decisions. Critical (1 vote): preserve fail-closed ambiguity handling for multiple archive candidates.
openspec/changes/add-declared-former-id/.openspec.yaml Records packet metadata and provenance; no final review comment.
Review details

Suppressed comments (4)

README.md:538

  • This hunk reuses the exact Active changes:-then-blank-line insertion anchor that the README's own convention below says to avoid because open PR #978 uses it; that note deliberately anchors new rows at a stable tail to keep the hunks disjoint. Inserting this 54-line row at the top reintroduces the documented merge-conflict shape, so relocate the row to a stable boundary instead.
- [add-declared-former-id](openspec/changes/add-declared-former-id/proposal.md)
  — filed 2026-09-13, lane `openxfactory-1` (display `openXfactory-1`),
  **`Status: draft`** — drafting provenance, no approval pair; ratification is
  Brett Heap's word and a separate act. Filed under his RULING of 2026-09-13 at
  approximately 03:0xZ, verbatim *"option 2 on 1003 with the fix"*, recorded at

openspec/changes/add-declared-former-id/specs/release-realization/spec.md:175

  • The landing rule has the same missing ratification condition, so it would refuse an ordinary draft rename even though this packet explicitly says draft renames are unaffected. Scope the refusal to a move whose source packet was ratified at the parent commit; otherwise the proposed landing validator contradicts the draft-rename scenario.
A landing SHALL be REFUSED where its commit brings a change packet directory in
by a MOVE from another change packet directory and the arriving packet does not
declare the source id in `former_ids:` in that same commit. The refusal is taken AT THE LANDING of
the commit that performs the move, which is the only place the question is
cheap: a move lands as one commit, so the gate reads one commit and never a

openspec/changes/add-declared-former-id/specs/release-realization/spec.md:160

  • This scenario is broader than the behavior the packet otherwise preserves. PR #846's current realization refuses a copy that lands already Status: ratified (ratifying_commit uses kinds="RC" for ratified candidates; docs/document-lifecycle.md:453-459), while a draft copy that is ratified later is the fork shape that remains safe. Either explicitly change that existing refusal and its task 3.2 contract, or narrow this scenario to a draft copy followed by a later ratification.
#### Scenario: A fork by copy declares nothing
- **WHEN** a new packet is authored as a copy of a ratified one, the source packet still standing in the tree
- **THEN** it MUST declare no former id, MUST carry its own origin declaration, and is baselined at its own first ratification
- **AND** the gate MUST NOT refuse it, the source having not moved

openspec/changes/add-declared-former-id/tasks.md:105

  • Task 5.1 only asks for a reader, but this packet's own M5 says no existing caller checks citation destinations and D4 deliberately declines a new doc-health family. Without a required check or an explicit integration into an existing gate, the added SHALL can be implemented as dead code while the measured dangling references remain unreported; either define the execution path or move this obligation to the successor packet.
- [ ] 5.1 **RESOLVE A PACKET REFERENCE BY IDENTITY.** By change id — against the
      location that id occupies now, active or archived, and against any packet
      declaring it as a former id — reaching citations written as
      `openspec/changes/<id>/<file>` paths, whose second segment names the
      packet. A reference that resolves owes the citing record no edit.
  • Files reviewed: 6/6 changed files
  • Comments generated: 6
  • Review effort level: Lite

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

…n, the unbound claim, append-only across commits, and the identity that could resolve twice

Nine review threads on `75ff1043`, three P1 and six from the second bench; all
nine are real defects of the text as filed and all nine are taken. Four changed
what the requirements SAY, and each factual claim was re-read in the tree before
the edit rather than accepted on the reviewer's word.

THE REFUSAL REACHED A LAWFUL DRAFT RENAME, a contradiction inside this packet:
the arrival requirement was unconditional over every packet-directory move while
the declaration requirement's own scenario, and the promoted realization record,
both say renaming a draft owes nothing. The refusal is now qualified to a move
whose SOURCE IDENTITY HAS EVER DECLARED `Status: ratified`, read over that
identity's whole history and explicitly not off its blob at the parent — a
packet renamed and un-ratified in one commit is back in draft at every later
hop, so a parent-blob test would exempt the one shape this exists to catch.

A STANDING PACKET COULD HAVE APPENDED AN IDENTITY IT NEVER HAD. The only test on
an entry was that its id is not a live directory, and an archived id has no live
directory either. An entry is now added only by the commit that performs the
move it records.

APPEND-ONLY WAS STATED AND UNENFORCEABLE: the arrival check runs only at a move,
so the day after a lawful move a commit could delete the declaration and hand
the archive gate the later ratification under the current id. Append-only is now
normative across commits, refused whether or not the commit moves anything.

ONE IDENTITY COULD RESOLVE TO A SET — two claimants, or two dated archive
directories, which `proposal_path_at_ref` settles by sort order. Against this
estate's own rule: `archived_change_dirs` returns a LIST because two archive
dates for one id is an ambiguity to report, not a collision to resolve by taking
the newest. A former identity now has exactly one owner, an identity resolving
twice refuses CANNOT RUN, and AMBIGUOUS is a third outcome beside resolved and
dangling.

AND THE BASELINE RESOLVER MAY NOT REUSE `proposal_path_at_ref`'s BOOLEAN PROBES:
`_blob_exists_at_ref` asks `git cat-file -e`, measured in this packet's own D0
exiting 128 for a missing blob and an unreadable one alike, and
`_archive_dir_names_at_ref` returns an empty list on any read failure. The RULE
is reused; the probes are forbidden by name.

Twenty scenarios to twenty-seven; `tasks.md` 29 boxes to 34, all unticked.
`design.md` D9 records the round.

AND THE PER-CHANGE SWEEP LEDGER ROW THIS PACKET OWES, which `pytest-suite` on
the previous head named and no local validator arm reaches: one row seeded by
the sanctioned tool — `validate-sequenced-after.py . --seed-ledger --moved-by
'#1028'` — which rewrote the file from the live corpus and reported "213 rows,
1 moved by #1028", the diff being exactly the one added line. `pytest
tests/sequenced_after -q` then reads 286 passed.

refs #1003
refs #833

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 06:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unresolved moderate issues leave the proposed requirements and realization tasks ambiguous and incompletely covered.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (10)

README.md:554

  • The PR description still advertises twenty scenarios (6 + 5 + 5 + 4) and 29 task boxes, while this packet now contains twenty-seven scenarios (7 + 8 + 7 + 5) and 34 boxes. Please reconcile those description metrics before merging so the stated scope and measurements are not stale.
  packet reference resolves by identity, not by path* (**twenty-seven

README.md:565

  • This summary repeats the same overbroad fork-by-copy guarantee: the existing gate refuses a copy that arrives already ratified, while only a draft copy later ratified is compatible with the unchanged PR #846 refusal. Please qualify this sentence to keep the index consistent with the normative scenario and tasks.md:3.2.
  rename arrival is a REFUSAL at that hop's landing — one commit read, never a
  chain — and a fork-by-copy declares nothing, keeps its own origin and is never
  refused. **MEASURED IN THE AUTHORING, NOT ARGUED**: on a `--filter=blob:none

openspec/changes/add-declared-former-id/proposal.md:182

  • “No history walk, of any kind” contradicts this packet's own landing requirement: tasks.md:4.2 requires reading the source identity's whole history to determine whether it has ever been ratified. Calling out that the packet does not add a rename-lineage walk is accurate, but the current wording could cause the realization to omit the required historical check.
- **No history walk, of any kind.** Not a rename-lineage enumeration, not a
  hop-classified chain guard, not `--follow` over a packet's ancestry. The two
  candidates the ruling NOT-SELECTED are named here so a later reader does not
  re-propose them: option 1, the full rename-lineage walk (authored and measured
  as PR #1024, CLOSED in favour of this packet, branch retained at `2bc60386`),
  and option 3, an interim guard scoped to all-rename chains.

openspec/changes/add-declared-former-id/proposal.md:173

  • This summary repeats the overbroad “never refused” claim. The current origin-retention gate intentionally refuses a copy that lands already ratified (tests/proposal-support/test_proposal_support.py:1547-1576); the compatible case is a draft copy that is ratified later. Qualify this statement so the proposal does not promise behavior that § 3.2 explicitly leaves unchanged.
whose author would not declare it. A fork-by-copy declares nothing, keeps its
own origin, is baselined at its own first ratification, and is never refused,
the source packet still standing.

openspec/changes/add-declared-former-id/specs/release-realization/spec.md:125

  • The opening SHALL applies to every directory move, but this requirement later says a never-ratified draft move needs no declaration and its draft-rename scenario repeats that exception. A realization cannot satisfy both readings; qualify the opening rule by the source identity having ever declared Status: ratified (or move the draft exception into the rule itself).
A change packet whose directory MOVES to a new change id SHALL declare the id it
moved from, in its own `.openspec.yaml`, as a member of a top-level
`former_ids:` list — a list, because a packet may move more than once, ordered
oldest first, and appended to rather than rewritten. The declaration is the

openspec/changes/add-declared-former-id/specs/release-realization/spec.md:196

  • This scenario is broader than the behavior this packet says to preserve. tasks.md:98-101 explicitly leaves PR #846's undeclared refusal unchanged, and the existing gate test tests/proposal-support/test_proposal_support.py:1547-1576 refuses a copy whose destination is already ratified; only a copy that enters as draft and is ratified later is allowed. As written, the MUST NOT refuse clause contradicts both—qualify the scenario to that draft-at-copy-commit case or add a realization task that deliberately changes the existing refusal.
#### Scenario: A fork by copy declares nothing
- **WHEN** a new packet is authored as a copy of a ratified one, the source packet still standing in the tree
- **THEN** it MUST declare no former id, MUST carry its own origin declaration, and is baselined at its own first ratification
- **AND** the gate MUST NOT refuse it, the source having not moved

openspec/changes/add-declared-former-id/tasks.md:89

  • At most historical commits, the current id or a later former id is expected not to exist; proposal_path_at_ref raises when neither the active nor archived candidate exists. §3.1 says to resolve every identity at each commit but does not define whether that expected absence is skipped, while §3.4 requires unreadable presence to refuse. Add an explicit absent-versus-unreadable rule and fixture so the earliest-baseline walk is implementable without treating normal pre-creation history as an error.
- [ ] 3.1 **RESOLVE THE BASELINE ACROSS THE DECLARED IDENTITIES.**
      `proposal-support.ratifying_commit` takes the current id and every
      declared former id, resolves each to the path it occupies at the commit
      being read by the two-candidate RULE `sequenced_after.proposal_path_at_ref`
      states — the active location, then a dated archive directory carrying the
      same id — and returns the EARLIEST commit at which any of them declares
      `Status: ratified`. **THE RULE, NEVER THAT FUNCTION'S BOOLEAN PROBES**:
      `_blob_exists_at_ref` asks `git cat-file -e`, which exits non-zero for a
      missing blob and for an unreadable one alike, and
      `_archive_dir_names_at_ref` returns an empty list on ANY read failure — so
      reusing them would make an unreadable former identity read as absent and
      let the walk take a later baseline, which is exactly what § 3.4 refuses.

openspec/changes/add-declared-former-id/tasks.md:46

  • §2.1 adds self-id and duplicate-entry refusals, but the ADDED requirement has no normative rule or scenario for either case; it only defines the move/source binding, append-only behavior, and ownership. That leaves the realization enforcing task-only policy with no ratified acceptance coverage. Promote these validations into the requirement/scenarios, or remove them from the task.
- [ ] 2.1 **WRITE THE GRAMMAR.** `former_ids:` — a top-level sequence of change
      ids in `openspec/changes/<id>/.openspec.yaml`, oldest first. Refuse: a
      scalar where a sequence is required; an entry that is not a change id by
      the grammar `ratifying_commit` already enforces
      (`[A-Za-z0-9][A-Za-z0-9._-]*`); an entry equal to the packet's own id; a
      duplicate entry; an entry nested inside `origin:` rather than beside it.

openspec/changes/add-declared-former-id/tasks.md:46

  • Because former_ids controls identity continuity, §2.1 should define duplicate YAML mapping-key behavior as well as duplicate list entries. The existing packet loader uses yaml.safe_load (scripts/proposal-support.py:320-329), so duplicate former_ids: keys are otherwise last-key-wins and can make the declaration a reviewer sees differ from the value the reader validates. Require a strict duplicate-key/anchor/merge policy and a fixture for it.
- [ ] 2.1 **WRITE THE GRAMMAR.** `former_ids:` — a top-level sequence of change
      ids in `openspec/changes/<id>/.openspec.yaml`, oldest first. Refuse: a
      scalar where a sequence is required; an entry that is not a change id by
      the grammar `ratifying_commit` already enforces
      (`[A-Za-z0-9][A-Za-z0-9._-]*`); an entry equal to the packet's own id; a
      duplicate entry; an entry nested inside `origin:` rather than beside it.

openspec/changes/add-declared-former-id/tasks.md:148

  • § 5.1 introduces the new normative resolver, including active/archive/former-id mapping and the resolution outcomes used by § 5.2/5.2a, but § 5 has no test task for it. § 4.1's suite is scoped to the landing validator, while design D7 says each slice lands with its own tests; add resolver fixtures for active, archived, former-id, dangling, cross-repository and ambiguous cases.
- [ ] 5.1 **RESOLVE A PACKET REFERENCE BY IDENTITY.** By change id — against the
      location that id occupies now, active or archived, and against any packet
      declaring it as a former id — reaching citations written as
      `openspec/changes/<id>/<file>` paths, whose second segment names the
      packet. A reference that resolves owes the citing record no edit.
  • Files reviewed: 7/7 changed files
  • Comments generated: 3
  • Review effort level: Lite

Comment thread README.md Resolved
…ing twice, and the reference rule resolved the packet and not the file

Three threads on `94a0e6cd`, all three taken. Two of them are defects round
one's own fixes created or left half-closed, which is why a second round is
bench rather than ceremony.

THE "EVER RATIFIED" TEST READ THE SOURCE'S OWN ID ALONE, and a packet can shed
that: X ratified; X moves to Y with the move DECLARED and the header returned to
draft; Y then moves to Z undeclared. Y's own id never declared `ratified` — it
was created already in draft — so the second landing would pass and Z would
stand with no lineage, contradicting this packet's own § 4.2 and D8. The source
identity is now the source packet's WHOLE DECLARED LINEAGE: its own id together
with every id it declares in `former_ids:` at that commit's parent. This is not
the history walk the ruling refuses, and the text says so — the source's
declaration is ONE blob at ONE commit and each id it names is asked directly,
exactly as the baseline resolution asks them. The same finding's other half is
normative too: the arriving packet's list SHALL be the source's list WITH THE
SOURCE ID APPENDED, in the source's own order, so a move cannot shed a lineage
by omission.

THE REFERENCE RULE IDENTIFIED THE PACKET AND NEVER THE FILE, so a citation to
`openspec/changes/<live-id>/deleted-file` would have resolved. Both halves must
now resolve, and a failure SAYS WHICH HALF FAILED — reported against the FILE
where the identity resolved.

AND THE README ROW'S OWN COUNT WAS STALE BY ONE: it said the MODIFIED block
added three scenarios where round one's ambiguity scenario had made it four. A
packet index that disagrees with the packet is the class of defect this packet
is about.

Twenty-seven scenarios to thirty (7 + 8 + 9 + 6); `tasks.md` 34 boxes to 37, all
unticked. `design.md` D10 records the round.

refs #1003
refs #833

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 06:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unresolved critical and moderate specification, metadata, and integration issues remain.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (5)

openspec/changes/add-declared-former-id/.openspec.yaml:1

  • The repository constitution requires every YAML artifact to carry schema_version and kind (.specify/memory/constitution.md:66-70), but this new .openspec.yaml declares only schema: spec-driven; its kind is nested under origin and no schema_version is present. Reconcile the OpenSpec packet format with that non-negotiable rule (or record an explicit exception) before landing.
schema: spec-driven

openspec/changes/add-declared-former-id/design.md:82

  • M5 is false as written: scripts/validate-pin-registrations.py already runs on every required-suite pass (:129-133), calls check_citations (:915), and opens each in-tree cited_to: path (:634-666). The proposed identity-aware resolver may still need to extend that checker, but this measurement must be re-scoped and re-measured rather than claiming that no validator reads citation destinations.
**M5 — nothing checks a citation's destination.**
`scripts/validate-openspec-cli-pin.py` requires `cited_to:` to be non-empty and
refuses `pin-disposition-malformed` when it is not; no arm of it, and no
`doc-health` family, reads where a citation points. Confirmed by reading the
validator's disposition arms and by the absence of the reference above from the

openspec/changes/add-declared-former-id/specs/release-realization/spec.md:270

  • These rules only fail closed when the pairing read cannot be performed. A full clone can read all content yet Git can return no rename pair when a move also edits files below the similarity threshold; the tree still shows a departure and arrival, but this condition is false and an undeclared move from a ratified source passes. Make the no-trustworthy-pair/tree arrival+departure case CANNOT RUN regardless of why pairing is unavailable, rather than treating it as no arrival.
THE ARRIVAL READ SHALL FAIL CLOSED. Where the gate cannot perform the read that
would pair an arrival with a departure — a checkout that cannot produce the
content the pairing is computed from — and the tree at that commit shows both a
packet directory arriving and a packet directory leaving, the gate SHALL refuse
as CANNOT RUN, naming the read it could not perform, rather than reporting that

openspec/changes/add-declared-former-id/specs/release-realization/spec.md:122

  • This opening sentence is unconditional, but the same requirement's draft-rename scenario and the landing rule below explicitly exempt packets whose source identity has never been ratified. A realization cannot satisfy both: a draft move would be required to add former_ids: here but also be required to add none. Qualify this sentence by the source identity's EVER-ratified condition.
A change packet whose directory MOVES to a new change id SHALL declare the id it

openspec/changes/add-declared-former-id/specs/release-realization/spec.md:196

  • This scenario makes an honest fork-by-copy archivable when the source remains present, but the current canonical lifecycle record still says that copying a ratified packet to a second id refuses identically (docs/document-lifecycle.md:453-459). The realization task at tasks.md:174-178 even says nothing else in that paragraph moves, so the proposed behavior would leave canon contradictory; either update that canonical rule explicitly or narrow/remove this exemption.
#### Scenario: A fork by copy declares nothing
- **WHEN** a new packet is authored as a copy of a ratified one, the source packet still standing in the tree
- **THEN** it MUST declare no former id, MUST carry its own origin declaration, and is baselined at its own first ratification
- **AND** the gate MUST NOT refuse it, the source having not moved
  • Files reviewed: 7/7 changed files
  • Comments generated: 3
  • Review effort level: Lite

Comment thread README.md Resolved
…use, and the citation consumer this packet said did not exist

Three threads on `f887fd78`, all three taken. One of them corrects a
MEASUREMENT, which makes it the most valuable finding of the three rounds.

THE FAIL-CLOSED ARM COVERED ONE READ WHERE THE REQUIREMENT NEEDS TWO. Round
one's qualification — the source lineage has EVER declared `Status: ratified` —
is answered by reading history at every identity in that lineage, a second read
beside the arrival pairing. On a checkout that cannot produce those blobs it
returns the same silence as a lineage never ratified, so an undeclared landing
would pass on the one checkout where nothing can be proved. That lookup now
carries its own sentence, refusing CANNOT RUN and naming the identity and the
read.

AND `design.md` D0 M5 WAS WRONG. It said no arm of any validator reads where a
citation points. It missed `scripts/validate-pin-registrations.py`'s
`check_citations`, landed for exactly this defect (issue #840, after a change
directory was renamed and two live citations went on naming the old id while
every run exited 0), whose docstring makes an absent path "a named finding and
exit 1". Re-measured on this tree: "6 disposition(s) carry 40 citation(s) naming
36 referent(s) — 17 name a path in this tree […]; every in-tree path resolves",
and SIX of those in-tree referents point into FOUR ACTIVE packets. Each will
archive; each archive moves the path and keeps the id; the gate resolves the RAW
path. So the next of those archives turns a lawful act into an exit-1 refusal of
a gate nobody touched — the dangling-cited-path defect with a date on it rather
than a hypothesis. M5 is rewritten with the measurement, D4's option (c) is
restated against the corrected fact, and `tasks.md` § 5.0 names that reader as
the CONSUMER of the resolution rule with its own tests, the thread's "an
unconnected reader" having been the right diagnosis.

The third thread found the pull request description still carrying round zero's
scenario count; it is rewritten from the packet rather than patched. Twice in
three rounds a stale count has been the finding, which is the argument for
deriving the number at each push instead of carrying it.

Thirty scenarios to thirty-one; `tasks.md` 37 boxes to 39, all unticked.
`design.md` D11 records the round.

refs #1003
refs #833

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 06:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unresolved specification and design inconsistencies must be corrected before approval.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (7)

openspec/changes/add-declared-former-id/design.md:216

  • The realization plan says to use Git's rename pairing but does not constrain the primary arm to true R records. The existing proposal_support.renamed_from helper defaults to RC, so reusing that behavior would classify a fork-by-copy as an arrival and violate the explicit scenario that a standing source copy with no former_ids must pass. Specify R-only pairing for this validator and keep C outside the refusal arm.
**The two arms, and why there are two.** The PRIMARY arm is git's own rename
pairing at that commit, which is what names a source for a destination. The
FAIL-CLOSED arm is the tree: `git ls-tree` alone answers whether a packet

openspec/changes/add-declared-former-id/proposal.md:200

  • The blanket “No history walk, of any kind” conflicts with the normative landing rule and §4.2c, which must read each identity's history to determine whether it has ever declared Status: ratified and fail closed when that lookup is unreadable. Narrow this exclusion to rename-lineage/hop-chain walking; otherwise an implementer could omit the required historical qualification and reopen the draft-after-unratification gap.
- **No history walk, of any kind.** Not a rename-lineage enumeration, not a
  hop-classified chain guard, not `--follow` over a packet's ancestry. The two
  candidates the ruling NOT-SELECTED are named here so a later reader does not
  re-propose them: option 1, the full rename-lineage walk (authored and measured
  as PR #1024, CLOSED in favour of this packet, branch retained at `2bc60386`),

openspec/changes/add-declared-former-id/specs/release-realization/spec.md:125

  • These paragraphs still conflict: this SHALL applies to every directory move, while the same requirement and the A draft is renamed scenario say a never-ratified draft move owes no declaration. Qualify the obligation by the source identity's EVER-ratified condition, as the landing requirement already does, or a realization cannot satisfy both rules.
A change packet whose directory MOVES to a new change id SHALL declare the id it
moved from, in its own `.openspec.yaml`, as a member of a top-level
`former_ids:` list — a list, because a packet may move more than once, ordered
oldest first, and appended to rather than rewritten. The declaration is the

openspec/changes/add-declared-former-id/specs/release-realization/spec.md:196

  • This scenario needs the destination-state boundary stated explicitly. The existing gate refuses a copy that arrives already ratified (tests/proposal-support/test_proposal_support.py:1547-1576) and only permits the fork case when the copied destination enters as draft and is ratified later (:1578-1613); task 3.2 also preserves the existing undeclared refusal. As written, “a new packet is authored as a copy” plus “MUST NOT refuse it” conflicts with that preserved behavior.
#### Scenario: A fork by copy declares nothing
- **WHEN** a new packet is authored as a copy of a ratified one, the source packet still standing in the tree
- **THEN** it MUST declare no former id, MUST carry its own origin declaration, and is baselined at its own first ratification
- **AND** the gate MUST NOT refuse it, the source having not moved

openspec/changes/add-declared-former-id/specs/release-realization/spec.md:352

  • The current check_citations contract deliberately accepts a cited packet directory by using .exists() rather than .is_file() (scripts/validate-pin-registrations.py:661-664). This new rule and task 5.1a describe the remainder only as a file, so an implementation that follows that wording can reject existing valid directory citations. Define the remainder as an existing path (or explicitly preserve directory citations) and cover that case.
BOTH HALVES SHALL RESOLVE, AND A FAILURE SHALL SAY WHICH HALF FAILED. Where a
citation names a file inside the packet, the location the identity resolves to
MUST also carry that remainder; an identity that resolves to a packet which does
not carry the cited file is a DANGLING reference, reported against the file and
not against the packet. Resolving the identity alone would accept a citation to

openspec/changes/add-declared-former-id/specs/release-realization/spec.md:227

  • Only the arrival pairing is a one-commit read: the same requirement later mandates a separate historical read over every identity in the source lineage to answer “ever declared Status: ratified” (lines 274–282), and task 4.2c calls this out. Saying “the gate reads one commit” is therefore contradictory and could cause the realization to skip the required fail-closed history lookup.
`former_ids:` in that same commit. The refusal is taken AT THE LANDING of
the commit that performs the move, which is the only place the question is
cheap: a move lands as one commit, so the gate reads one commit and never a
chain, and the author who made the move is the author who is asked.

openspec/changes/add-declared-former-id/tasks.md:46

  • ratifying_commit does not enforce this regex: its change argument is interpolated into a path and the function has no change-id validation (see scripts/proposal-support.py:764-787). The broad [A-Za-z0-9][A-Za-z0-9._-]* grammar is defined by target_release.CHANGE_ID_RE, while sequenced_after uses a different lower-kebab grammar; cite the authoritative validator or define the former-id grammar explicitly so realization does not rely on a nonexistent contract.
      scalar where a sequence is required; an entry that is not a change id by
      the grammar `ratifying_commit` already enforces
      (`[A-Za-z0-9][A-Za-z0-9._-]*`); an entry equal to the packet's own id; a
      duplicate entry; an entry nested inside `origin:` rather than beside it.
  • Files reviewed: 7/7 changed files
  • Comments generated: 1
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

Bench closed — round 4 carried one thread and it is REFUSED as already taken

Round 4 (Copilot, 2026-09-13T06:46:47Z, on head 1e57643d) raised exactly one thread and it is a re-flag of the item round 3 already took: that the description advertises "20 scenarios (6 + 5 + 5 + 4)" and "29 task boxes".

Measured, not argued. The description's lastEditedAt reads 2026-09-13T06:39:37Z through GraphQL — seven minutes BEFORE that review was submitted — and the review was computed against the snapshot taken at the push (1e57643d, 06:38:41Z). Read now, the live description contains neither quoted phrase: "twenty scenarios", "6 + 5 + 5 + 4" and "29 boxes" are all absent, while "thirty-one scenarios", "7 + 8 + 10 + 6" and "39 boxes, 0 ticked" are all present.

Nothing in the packet or the description is owed for it, and the thread is answered on the thread itself with the same measurement. Under this lane's bench rule a round carrying only re-flags of already-fixed items closes the bench, so the bench is closed at four rounds: 16 threads, 15 taken in three content commits (94a0e6cd, f887fd78, 1e57643d) and 1 refused here.

refs #1003

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

FREEZE

  • Head 1e57643d313b7cba047ee7755cf4bbfb960ab782 (pushed 06:38:41Z). origin/main is still 9378eca5 and is an ancestor of this head at the last guard-fetch (07:0xZ), so no merge is owed.
  • Review threads 16 / 0 unresolved — counted through GraphQL, never by eye. Fifteen taken in three content commits; one refused with a measurement (below).
  • closingIssuesReferences = [], read through GraphQL at the open and again here. Every reference in the body, in all five commit messages and in every reply is refs #1003 / refs #833; no closing keyword appears anywhere, in any case or tense. The #849 range guard follows one rename hop only: a rename chain (ratify → rename+un-ratify → rename while draft → ratify) is accepted (routed from #999 Copilot review) #1003 stays OPEN on Brett Heap's word.
  • Required checks: six of six PASS on this head — pytest-suite run 34743252884 (headSha 1e57643d…, success, 06:38:44Z → 06:58:27Z, selected=7336 passed=7330 skipped=6 failures=0 errors=0, floors selected>=7050 margin 286 and skipped==6), lane-line 34743290527, openspec-cli-pin 34743252887, release-tag-gate 34743252910, signed-execution-chain-gate 34743252899, wallet-validation 34743252912.
  • Advisory, reported and not waited on: clearing-dispatch-gate SUCCESS, merge-master-approval SUCCESS, openreposhape-pin SUCCESS, SonarCloud Code Analysis SUCCESS — Quality Gate PASSED, 0 new issues, 0 accepted issues, 0 security hotspots (no SonarCloud act was taken, and none was needed on this head), Sourcery review SKIPPED.
  • mergeStateStatus reads BLOCKED and reviewDecision REVIEW_REQUIRED: that is the code-owner approval, not a check. Not draft, MERGEABLE.

The bench, closed at four rounds

round on threads taken in
1 75ff1043 9 — 3 Codex P1, 6 Copilot: the refusal reached a LAWFUL DRAFT RENAME, contradicting this packet's own scenario and the promoted record; a standing packet could append an identity it never had; append-only was stated and unenforceable; one identity could resolve to a SET; proposal_path_at_ref's boolean probes contradict this packet's own fail-closed clause 94a0e6cd
2 94a0e6cd 3 — round one's qualification could be SHED BY MOVING TWICE (X ratified → X→Y declared and un-ratified → Y→Z undeclared); the reference rule resolved the packet and never the FILE; the README row's own count was stale by one f887fd78
3 f887fd78 3 — the fail-closed arm covered the pairing read and not the RATIFICATION LOOKUP; design.md D0 M5 was WRONG about there being no citation consumer; the description carried round zero's count 1e57643d
4 1e57643d 1, REFUSED as a re-flag of the item round 3 took closed

The round-4 refusal, measured rather than argued. It says the description advertises "20 scenarios (6 + 5 + 5 + 4)" and "29 task boxes". The description's lastEditedAt reads 2026-09-13T06:39:37Z through GraphQL — seven minutes BEFORE that review was submitted at 06:46:47Z — and the review was computed against the snapshot taken at the push (06:38:41Z). Read now, the live description contains neither quoted phrase: "twenty scenarios", "6 + 5 + 5 + 4" and "29 boxes" are absent; "thirty-one scenarios", "7 + 8 + 10 + 6" and "39 boxes, 0 ticked" are present. Answered on the thread and disposed at issuecomment-5651753014.

Codex reviewed once, at 05:28:25Z, and its three P1 threads are the first three of round one; it has posted nothing since, and its threads were read in full and answered before this freeze.

Two of round two's findings and one of round three's are defects the previous round's own fixes created or left half-closed, which is why each round was benched rather than assumed clean. Every factual claim was re-read in the tree before the edit — sequenced_after.py's archived_change_dirs, _blob_exists_at_ref and _archive_dir_names_at_ref; docs/document-lifecycle.md's draft-rename sentence; and validate-pin-registrations.py's check_citations, which is where the M5 correction came from. design.md D9, D10 and D11 record the three rounds.

Figures on this head, against a control worktree at origin/main 9378eca5

  • openspec-cli-pin through the PINNED CLI, which is the one the gate runs: python3 scripts/validate-openspec-cli-pin.py --change add-declared-former-id → exit 0, @fission-ai/[email protected] verified against its content address, Totals: 1 passed, 0 failed (1 items).
  • OPENSPEC_TELEMETRY=0 openspec validate --all --strict: branch 105 passed, 3 failed (108 items), control 104 passed, 3 failed (107 items) — failing sets byte-identical, the three disposition-codexfactory-* packets that carry no spec delta by construction.
  • python3 scripts/proposal-support.py . verify → exit 0, proposal support verification ok.
  • python3 scripts/doc-health.py --single-repo ., branch vs control: both exit 0, both 328 lines, diff CLEAN — zero differing lines once the repo-identity token is normalised. Headline on both, as-of 2026-09-13: canon share 40.3%, 31 critical / 9 error / 26 warning / 23 info, new regressions 0. The packet introduces no finding of any family, including no modified-block-currency carriage row — the MODIFIED block carries every promoted sentence and all three promoted scenarios verbatim.
  • python3 -m pytest tests/doc-health -q --tb=no: branch and control both 7 failed, 1734 passed, 1 skipped, failing sets byte-identical. tests/proposal-support: branch 129 passed, 73 subtests, control 129 passed, 72 subtests — the one extra subtest is the in-repo origin-retention sweep, one per active change. tests/sequenced_after: 286 passed.
  • The whole local tree, branch vs control, same invocation with the six paths needing unmaterialized carve-leg submodules ignored: 120 failed, 3849 passed, 82 skipped, 60 errors on BOTH, failed-plus-error sets byte-identical. That is a local-environment baseline; CI's pytest-suite above is the authority and it is green.
  • validate-target-release.py: branch 46 active proposals, 46 declaring — 22 implemented; control 45 / 45 — 21. validate-sequenced-after.py, validate-scope-globs.py, validate-pin-registrations.py → all exit 0.

What is frozen, said plainly

Status: draft, drafting provenance, no approval pair — the ruling commissioned this authoring and decided no sentence. tasks.md carries 39 boxes, 0 ticked. No file under openspec/specs/ is edited; no script, validator, register or workflow is added or edited. The diff is openspec/changes/add-declared-former-id/**, one README ## OpenSpec Records row, and the one per-change sweep-ledger row every active change owes, seeded by the sanctioned tool.

Not landing, not ratifying, not closing the issue, not deleting the branch, not acting on SonarCloud — the lane stops here.

refs #1003 · refs #833

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

WORD 2026-09-13T22:48Z — Brett Heap, verbatim "ratify 1028 as encoded" — given first-hand in lane openxfactory-1's window at 2026-09-13T22:48Z, in answer to the standing question on this PR (ratify-as-encoded / land-as-draft / per-decision veto).

What it selects: the packet add-declared-former-id as FROZEN at head 1e57643d is ratified with EVERY design.md decision at its RECOMMENDED option — D1 (former_ids: a top-level SIBLING of origin: in the packet's own .openspec.yaml), D2 (the declaration names change IDS; the path is derived), D3 (the fail-closed refusal is a house validator run as a required check at the landing, not the archive gate), D4 (no doc-health delta in this packet; reporting the remaining dangling citations is a successor), D5 (Origin retention at archive is MODIFIED, not left alone). The ratified wording is the wording at 1e57643d; nothing is re-authored. The ratification encode (Status flip, approval provenance, review/ratification-2026-09-13.md, README row, ratification tasks ticked) follows as a commit on this branch, re-benched and re-FROZEN at its head; the landing is lane openxfactory-1's act under Rule 6 on this word.

refs #1003

RATIFIED 2026-09-13T22:48Z by Brett Heap (openxFactory repository owner), given
first-hand in lane `openxfactory-1`'s window (display `openXfactory-1`, session
`ea50c958`), verbatim:

  "ratify 1028 as encoded"

Recorded on PR #1028 at 2026-09-13T22:48:34Z (issuecomment-5656710037) and
mirrored on issue #1003 at 2026-09-13T22:48:36Z (issuecomment-5656710187).

A MULTIPLE-CHOICE ruling over all five decisions design.md D1 through D5 put,
in answer to the standing question this pull request asked (ratify-as-encoded /
land-as-draft / per-decision veto), taking the RECOMMENDED option on every one:

  D1 = (a) -- the declaration lives in the packet's own `.openspec.yaml` as a
       top-level `former_ids:` key, a SIBLING of `origin:` and never a member
  D2 = (a) -- it names CHANGE IDS and the path is derived, oldest first,
       appended to and never rewritten
  D3 = (a) -- the fail-closed refusal is taken by a NEW house validator run as
       a required check AT THE LANDING, not by the archive gate and not as a
       doc-health finding; no bypass flag
  D4 = (a) -- no `doc-health` delta in this packet; reporting the unresolvable
       remainder is a successor with its own numeral (tasks.md § 6.1)
  D5 = (a) -- *Origin retention at archive* is MODIFIED, not left standing
       beside an ADDED requirement that contradicts it

EVERY RULING IS THE RECOMMENDED OPTION, SO THE DELTA MOVES NO BYTE. Proven by
diff rather than asserted: `git diff --stat --
openspec/changes/add-declared-former-id/specs/` across this commit is EMPTY
(0 files). The ratified wording is the wording FROZEN at 1e57643, which is the
head the word itself names, and nothing is re-authored.

WHAT MOVES. proposal.md, design.md and tasks.md carry Status: ratified with a
citation line each (Ratified: in proposal.md -- the record-citing spelling,
legal because no approving OpenSpec change exists to name; Ratified by: in the
other two, naming this change in the #887 grammar); proposal.md's
ruling-ratifies-no-wording paragraph moves to past tense and gains the second
word beside it, and a new § Rulings carries a five-row table (D | decision |
RESOLVED (a) with ruler, instant and verbatim word | considered-not-adopted);
design.md's five ## D1 .. D5 headers each gain an inline "— RULED (a),
2026-09-13T22:48Z" marker and no other byte in that file moves (D0 and D6..D11
are measurements and bench records, not decisions, and are untouched).
.openspec.yaml gains approved_by + approved_on ADDED BESIDE the untouched
proposed_by/proposed_on drafting pair -- the addition-not-rewrite shape
add-drafted-proposal-origin (issue #318) defined, kind/id/reason unmoved. One
new record: review/ratification-2026-09-13.md (Status: ratified). tasks.md § 1
is ticked (1.1-1.6) and names the word; §§ 2-7 stay untouched and open. The
README OpenSpec Records active row moves to the ratified form.

THE INSTANT IS RECORDED TO THE PRECISION IT WAS TAKEN AT: `22:48Z`, never
invented finer. The RECORDING of the word carries the second (22:48:34Z) and is
cited separately as the recording time, which is a different fact from the
instant the word was given; tasks.md § 1.2 required the instant "as GIVEN
(never invented)".

NOTHING IS PROMOTED, NOTHING IS REALIZED AND NOTHING IS ARCHIVED. No file under
openspec/specs/ is edited; no script, validator, reader, register, workflow or
test is added or edited; the per-change sweep ledger row does not move; nothing
under contracts/ or governance/ moves; no other estate repository is reached.
code_surface is NON-EMPTY, so under release-realization's *Realization archive
gate* this packet archives only on merged-plus-green realization evidence, in a
separate pull request on a separate word (tasks.md § 7.1), and openxFactory
#1003 closes there and nowhere else, on Brett Heap's word alone (§ 7.2). Rule 6
is owed at landing, not here; merge is a separate act on this same word.

Validated on this tree before the commit:
  openspec validate add-declared-former-id --strict -> valid, exit 0
  proposal-support.py . verify -> exit 0, "proposal support verification ok"
  validate-sequenced-after.py -> exit 0 (46 active, 14 declaring)
  validate-scope-globs.py -> exit 0; validate-target-release.py -> exit 0
  validate-pin-registrations.py -> exit 0
  doc-health.py --single-repo . -> exit 0, 328 lines, byte-identical to the
    pre-encode run of the same tree (zero differing lines), 31 critical /
    9 error / 26 warning / 23 info, and ZERO findings naming this packet --
    the flipped proposal.md and the new review record each carry EXACTLY ONE
    sanctioned citation line, confirmed against the ratified-provenance
    family's own reader

refs #1003 · refs #833

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 23:01
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unresolved moderate specification and design issues must be addressed before approval.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (11)

openspec/changes/add-declared-former-id/.openspec.yaml:80

  • The PR description still describes this packet as Status: draft with no approval pair, but this diff records Brett Heap's ratification and adds approved_by/approved_on; the proposal, tasks, README, and ratification record likewise say Status: ratified. Please update the PR description so its lifecycle state matches the committed packet.
  approved_by: >-
    Brett Heap (openxFactory repository owner) — 2026-09-13T22:48Z, verbatim:
    "ratify 1028 as encoded", given first-hand in lane `openxfactory-1`'s
    window as a MULTIPLE-CHOICE ruling over all five decisions this packet put
    for a veto (`design.md` D1 through D5), in answer to the standing question
    on PR #1028 (ratify-as-encoded / land-as-draft / per-decision veto). It is
    recorded on that pull request at 2026-09-13T22:48:34Z
    (https://github.com/opensoft/openxFactory/pull/1028#issuecomment-5656710037),

openspec/changes/add-declared-former-id/design.md:253

  • Leaving shallow history explicitly out of scope conflicts with the EVER predicate: a checkout that contains the landing commit and its parent can still have the earlier ratification hidden behind a graft boundary, so the lookup can incorrectly conclude “never ratified” and pass an undeclared move. The repository's sibling history validator treats incomplete ancestry as unable to answer the question; require a shallow-history refusal (or an equivalent fetch-depth guarantee) for this required check.
   id, against the location the id occupies now and against any packet declaring
   it as a former id, and is dangling only when it resolves to nothing under that
   rule. M4 measures what that rule alone repairs: **58 of the 94** dangling
   references, every one of them broken by the ARCHIVE RELOCATION, which moves

openspec/changes/add-declared-former-id/design.md:116

  • M6 says no active change holds a MODIFIED block for this title, but this packet is itself active and contains that block. The evidence for sequenced_after: [] should say no other active change; otherwise the measured root claim is literally self-contradictory and the duplicated wording can mislead the ledger review.
axis vocabulary is gated*. **No active change holds a block over *Origin

openspec/changes/add-declared-former-id/proposal.md:216

  • The ratifying_commit/§4.2c behavior still requires historical reads over every identity's whole history to answer EVER and to fail closed when that read is unavailable. Saying “No history walk, of any kind” is contradictory and could cause realization to omit the ratification lookup; distinguish the prohibited rename-lineage inference from the required identity-history reads.
- **No history walk, of any kind.** Not a rename-lineage enumeration, not a
  hop-classified chain guard, not `--follow` over a packet's ancestry. The two
  candidates the ruling NOT-SELECTED are named here so a later reader does not

openspec/changes/add-declared-former-id/proposal.md:2

  • This front-matter declares a non-empty code_surface, and the release-realization gate uses that classification to keep the packet active until realization evidence exists, but the same value says “NOT THIS PACKET'S SURFACE.” The future implementation files are part of this packet's declared surface even though they are not changed by this PR; please change that wording to “NOT THIS PULL REQUEST'S SURFACE” (and keep the later realization-gate explanation consistent).
code_surface: openxFactory — MEASURED on the clone of `main` @ `9378eca5` this packet was authored against, and named as the surface a LATER realization pull request moves, nothing here being realized. (1) `scripts/proposal-support.py`: `ratifying_commit` gains the declared identities and resolves the baseline across them, its two history reads separate ABSENT from UNREADABLE, and `origin_retention_errors` refuses rather than skipping where the baseline read fails — today `ratifying_commit` derives one path from the id the tree spells (`rel = f"openspec/changes/{change}/proposal.md"`) and `git_show_text` returns `None` for both conditions alike. (2) A NEW reader and a NEW validator CLI for the landing refusal, in the shape `gate-realization-axis-vocabulary` established, run as a required check. (3) A NEW reader for the reference-resolution rule. (4) `tests/proposal-support/test_proposal_support.py` and a new test module for the validator. (5) `docs/document-lifecycle.md`, whose ratified sentence "Renaming a ratified change is therefore blocked until a change declares a FORMER ID (issue #833, a successor packet)" this packet answers. NOT THIS PACKET'S SURFACE AND NOT TOUCHED BY THIS PULL REQUEST: nothing under `openspec/specs/`, no workflow, no contract, no register, no script and no test — the diff is `openspec/changes/add-declared-former-id/**` and one README row.

openspec/changes/add-declared-former-id/specs/release-realization/spec.md:233

  • The source packet's parent .openspec.yaml is a prerequisite read for constructing this whole lineage, but the fail-closed requirements only specify the arrival-pairing read and the subsequent Status: ratified history lookup. In a blobless checkout the tree can show that metadata path while its blob is unavailable; treating that as an empty former_ids list lets a second-hop move bypass the lineage check. Specify CANNOT RUN for an unreadable source-lineage blob and add the corresponding fixture.
THE SOURCE IDENTITY IS THE SOURCE PACKET'S WHOLE DECLARED LINEAGE — its own id
TOGETHER WITH every id it declares in `former_ids:` at that commit's parent —
and the "ever ratified" test SHALL be taken over all of them. Reading the source
id alone would lose a packet that has already moved once lawfully: X ratified,
X moved to Y with the move declared and the header returned to draft, then Y

openspec/changes/add-declared-former-id/specs/release-realization/spec.md:227

  • “The gate reads one commit and never a chain” conflicts with the qualification immediately defined below: determining whether the source lineage has ever been ratified requires reading each identity's history (and §4.2c explicitly requires that historical lookup to fail closed). An implementation could follow this sentence literally and inspect only the landing commit, allowing the multi-hop case this requirement is meant to reject. Please distinguish evaluating one landing commit from not traversing a rename chain, while retaining the required historical ratification lookup.
`former_ids:` in that same commit. The refusal is taken AT THE LANDING of
the commit that performs the move, which is the only place the question is
cheap: a move lands as one commit, so the gate reads one commit and never a
chain, and the author who made the move is the author who is asked.

openspec/changes/add-declared-former-id/specs/release-realization/spec.md:55

  • The archive identity rule does not cover a legal date-prefixed change ID. The pinned archive wrapper preserves an ID such as 2026-08-04-add-a unchanged, but the existing ARCHIVE_DIR resolver interprets that name as archive date 2026-08-04 plus ID add-a, so proposal_path_at_ref cannot resolve the packet after archival. Add an explicit no-reprefix archive case and tests to the rule/tasks, or reject date-prefixed IDs in the identity grammar.
THE RESOLUTION IS BY IDENTITY AND NEVER BY HISTORY. Each identity is resolved
to the path it occupies at the commit being read, the way this estate already
locates a packet at a ref — the active location, or the dated archive
directory that carries the same id — and the gate SHALL NOT infer an identity
from rename detection, from similarity between two packets, or from any walk

openspec/changes/add-declared-former-id/specs/release-realization/spec.md:183

  • The exactly-one-owner rule only names a live packet ID as a conflicting owner. Archived directories are also valid identity locations under this delta, so a packet could claim former_ids: [x] while another packet remains archived under x, leaving two owners for the same identity. Include archived identity candidates in this collision rule and its landing tests.
A FORMER IDENTITY HAS EXACTLY ONE OWNER. Where two packets declare the same
former id, or where an id is at once a live packet id and some packet's declared
former id, the declaration SHALL be refused naming every claimant: an identity
claimed twice resolves to a set, and a baseline chosen from a set is a baseline
chosen by the resolver rather than by an author.

openspec/changes/add-declared-former-id/specs/release-realization/spec.md:125

  • This opening rule is broader than the rest of the requirement: it says every directory move owes former_ids, but the later draft-rename scenario explicitly says a never-ratified draft move needs no declaration. Qualify the normative rule by a source identity that has ever declared Status: ratified; otherwise the specification has two incompatible landing outcomes.
A change packet whose directory MOVES to a new change id SHALL declare the id it
moved from, in its own `.openspec.yaml`, as a member of a top-level
`former_ids:` list — a list, because a packet may move more than once, ordered
oldest first, and appended to rather than rewritten. The declaration is the

openspec/changes/add-declared-former-id/tasks.md:100

  • The ownership checklist only covers two former-id declarations and a live current directory, but archived directories are also current identity candidates. A packet can therefore be checked only against live owners while a dated archive still carries the same id; the resolver then has two locations and the declaration did not enforce the stated exactly-one-owner rule. Add the active-or-archived collision case and fixture (and mirror it in the normative scenario).
- [ ] 2.6 **REFUSE A FORMER IDENTITY CLAIMED TWICE.** Two packets declaring the
      same former id, or an id that is at once a live packet id and a declared
      former id, is refused naming every claimant — an identity claimed twice
      resolves to a set, and a baseline chosen from a set is chosen by the
      resolver rather than by an author. Fixture: two claimants; a live id also
      declared as somebody's former id.
  • Files reviewed: 8/8 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread README.md Resolved
@brettheap brettheap changed the title Propose the declared former id: a moved packet names the identity it was ratified under RATIFIED (ratify 1028 as encoded — D1–D5 recommended): Propose the declared former id: a moved packet names the identity it was ratified under Sep 14, 2026
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)
@codex review

The ratification encode is pushed at 2c75d82a16ecaef84cb2e9ba9e3e414df65f674c; the spec delta is byte-unchanged from the frozen 1e57643d (git diff --stat -- openspec/changes/add-declared-former-id/specs/ across the encode commit is empty).

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

Provided git ref 2c75d82a16ecaef84cb2e9ba9e3e414df65f674c does not exist
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

FREEZE

  • Head: 2c75d82a16ecaef84cb2e9ba9e3e414df65f674c (unchanged throughout this bench — no follow-up commit was needed; local validators found nothing attributable to the encode)

  • Review threads: 17 total, 0 unresolved. The one thread open at bench start (PRRT_kwDOTAvnrs6h814C, README.md:540, Copilot on the stale pre-encode "does NOT do" wording) was TAKEN — description bullet rewritten to the ratified state and a ## Ratified section appended — replied in-thread and resolved via GraphQL.

  • Codex outcome (verbatim, chatgpt-codex-connector, 2026-09-14T00:07:26Z):

    Codex Review: Something went wrong. Try again later by commenting "@codex review".

    Provided git ref 2c75d82a16ecaef84cb2e9ba9e3e414df65f674c does not exist
    

    A connector-side ref-lookup error, not a substantive review — the ref demonstrably exists (this bench is running against it; CI's own checks below completed against the same sha). No retry was posted: this lane's mandate was ONE review-request comment. Polled a further ~22 minutes (11 checks at ~90s intervals, through 2026-09-14T00:29Z) for a follow-up or auto-retry; none arrived.

  • Copilot outcome: reviewed 2026-09-13T23:14:05Z, 17 threads, the 1 unresolved one disposed of above. No new Copilot review appeared during the bench window.

  • Check rollup on this head (gh pr checks 1028): SonarCloud Code Analysis pass · clearing-dispatch-gate pass · lane-line pass · merge-master-approval pass · openreposhape-pin pass · openspec-cli-pin pass · pytest-suite pass (20m19s, CI) · release-tag-gate pass · signed-execution-chain-gate pass · wallet-validation pass · Sourcery review: skipping. All six required checks green.

  • closingIssuesReferences: [] — confirmed via GraphQL immediately before this comment. No closing keyword anywhere; The #849 range guard follows one rename hop only: a rename chain (ratify → rename+un-ratify → rename while draft → ratify) is accepted (routed from #999 Copilot review) #1003 stays open on Brett Heap's word.

This is a ratification encode; landing is the orchestrator's act under Rule 6 on the 22:48Z word.

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

LANDING — lane openxfactory-1, session ea50c958-b384-4f43-b073-0540ec00231a@0e7d1a79a07e, 2026-09-14T00:31:29Z, PR #1028 into opensoft/openxFactory main

Guard at 2026-09-14T00:31:33Z on head 2c75d82a16ecaef84cb2e9ba9e3e414df65f674c: six required checks SUCCESS (lane-line, openspec-cli-pin, pytest-suite, release-tag-gate, signed-execution-chain-gate, wallet-validation); closingIssuesReferences = []; 0 unresolved threads; main's newest decided pytest-suite = success; no other-lane open LANDING into opensoft/openxFactory main (who --landing). mergeStateStatus BLOCKED = the code-owner-review ruleset that never clears on the author's own account; admin merge on Brett Heap's recorded word (RATIFIED add-declared-former-id as encoded (D1-D5 recommended) at 2c75d82; Brett Heap word 2026-09-13T22:48Z verbatim "ratify 1028 as encoded" (issuecomment-5656710037); FREEZE issuecomment-5657398693, 17/0 threads, six required SUCCESS, Codex connector errored once and is recorded). Merge = merge commit.

@brettheap
brettheap merged commit 28ad27a into main Sep 14, 2026
15 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

LANDED — lane openxfactory-1, session ea50c958-b384-4f43-b073-0540ec00231a@0e7d1a79a07e, 2026-09-14T00:31:39Z, PR #1028 into opensoft/openxFactory main → 28ad27a

brettheap added a commit that referenced this pull request Sep 16, 2026
…ADME OpenSpec Records block)

README.md conflicted in the "Active changes" list: our branch inserted the
adopt-entry-grain-dispositions-form bullet at the top while main removed the
add-declared-former-id bullet below it (archived to
openspec/changes/archive/2026-09-15-add-declared-former-id/, PR #1028's arc
having landed and closed). Resolved by keeping this packet's bullet and
honoring main's archival removal — no re-ordering needed, since our bullet's
position was never part of main's edit. tests/sequenced_after/corpus-ledger.yaml
auto-merged cleanly.

Lane: openxfactory-2
Co-Authored-By: Claude Sonnet 5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 6, 2026
…as they stand' (#1250)

Lane: openxfactory-1

## The two words

Brett Heap gave both words on 2026-10-06, in session to lane `openxfactory-1`. Both are RULED lines on the estate's lane register, with object `opensoft/openxFactory:openspec/changes/add-worker-input-budget`.

1. **The ratification.**

   > 0.4: (a) ratify as they stand

   It answers `tasks.md` 0.4, *"Ratify or amend the two spec deltas"*. The question was put to him as *"task 0.4: (a) ratify the two doc-health deltas as they stand, or (b) amend first"*, and he chose (a). RULED at **2026-10-06T13:55:03Z** (`opensoft/brett-wip` commit `06709554`, `lanes/log/openxfactory-1.md`).

2. **The origin file.**

   > #1250: (i) add the origin file

   It answers the RULING NEEDED this PR raised on Copilot's finding `r4196698454`. Option (i) was put to him as adding `.openspec.yaml` in the ratifying commit, with values following the 2026-08-25 origin sweep `b7513733`. RULED at **2026-10-06T17:24:57Z** (`opensoft/brett-wip` commit `f739ab74`).

This lane has held the change's claim since 2026-09-24T16:33:03Z.

## What is ratified

`add-worker-input-budget`'s two `doc-health` spec deltas, as they stand and with no amendment:

- **MODIFIED: *Sweep sequencing and snapshot consistency*** (three scenarios);
- **ADDED: *Bounded worker input budget*** (six scenarios).

The ratified text is `specs/doc-health/spec.md` blob `9a817d65`. That blob is the same at #1137's merge commit `9da52e31` and on `main`. **No requirement or scenario text moves in this PR.**

## The origin declaration, on the second word

**Why it is needed.** `document-lifecycle` § *Proposal origin declaration* says:

> A proposal whose own `Status:` declares `ratified`, or any standing beyond it, SHALL carry approval provenance in its origin.

This packet had no `.openspec.yaml`, and it was the only active change without one.

**What it declares.** The new `openspec/changes/add-worker-input-budget/.openspec.yaml` is hand-written in the form of sweep `b7513733`. Every value is derived from the packet's own record and is folded or plain, so the file parses:

- `schema: spec-driven`;
- `created: 2026-09-22`, from the packet's true first commit, `ee2185d6` (2026-09-22T01:26:47Z);
- `origin.kind: ad_hoc`. No `Staging ID:` header and no staging topic's exit names this change, checked in both directions;
- `origin.id: openxFactory:adhoc:2026-09-22-add-worker-input-budget`;
- a folded `reason` that quotes the second word;
- the drafting pair: lane `openxfactory-1`, on *"brief a writer to add the input-size guard"*, `proposed_on: 2026-09-22`;
- the approval pair: Brett Heap, *"0.4: (a) ratify as they stand"*, `approved_on: 2026-10-06`.

**What it changes.**
- `proposal-support.py verify add-worker-input-budget` now **passes**, where `main` refuses it with *"no origin declaration"*.
- `proposal-origin`'s WARNING for the missing origin is gone.
- No other finding moves.

## What this PR does not do

- **Group 4's 4.1 sequencing question stays open.** The *"Sequencing tension, named rather than hidden"* note in `tasks.md` asks Brett Heap a question. Was *"land the input-size guard when green"* the approved exception, or should 0.4 have gated 4.1? Neither word answers that question, and the note does not move.
- **No archive.** The archive is a separate act.
- **No other substance moves.** That covers proposal substance, `code_surface:`, `target_release:`, realization and the sequenced-after ledger row.
- **It lands by SQUASH.** The lane's coordinator lands it in a Rule 6 window. The archive PR is a separate landing, as a merge commit.

## Every changed line, file by file

**`openspec/changes/add-worker-input-budget/proposal.md`** (the front-matter header):
- `Status: draft` becomes `Status: ratified`.
- One line is added after it: `Ratified: 2026-10-06 by Brett Heap (openxFactory repository owner) — …`. The line carries:
  - the 0.4 word, verbatim, and the question as it was put;
  - the register RULED line;
  - both requirement names;
  - the #1137 `9da52e31` baseline;
  - "archives nothing" and "does not answer the Group 4 sequencing question on 4.1";
  - the record path.

**`openspec/changes/add-worker-input-budget/tasks.md`:**
- `- [ ] 0.4 Ratify or amend the two spec deltas.` becomes `- [x] 0.4 …`.
- Ten record lines follow it: the word, the question, the RULED line, both requirement names, the 4.1 question staying open, no archive, and the record.

**New: `openspec/changes/add-worker-input-budget/.openspec.yaml`** (52 lines): the declaration described above.

**`README.md`** (*OpenSpec Records* > *Active changes*, the `add-worker-input-budget` entry only):
- `` `Status: draft` `` becomes **`` `Status: ratified` ``**. A parenthetical gives:
  - the date, Brett Heap, the 0.4 word, "no amendment" and the RULED time;
  - the link to the record;
  - *"the origin declaration `.openspec.yaml` added on his second word, verbatim "#1250: (i) add the origin file", RULED 2026-10-06T17:24:57Z"*.
- The closing sentence changes. It read: "`Status: draft` is unchanged: …". It now reads: "Resolving the questions ratified neither spec delta; the 2026-10-06 word did (task 0.4). **RATIFICATION ONLY** — the archive is a separate later act on Brett Heap's word, and the Group 4 sequencing question on 4.1 stays open."

**New: `openspec/changes/add-worker-input-budget/review/ratification-2026-10-06.md`:**
- The header: `Status: ratified`, `Kind: report`, `Decision date:`, `Ratifier:`, one `Ratified:` citation and the ratified baseline.
- The sections:
  - Decision;
  - 1, the word;
  - 2, what the word does not decide;
  - 3, what this pull request changes, including the origin file and the second word, verbatim;
  - 4, a disclosure;
  - 5, the measurements, and the statement that this PR lands by squash.

**`ideation/staging/doc-health-sweep-carry-over/doc-health-sweep-carry-over.md`** (Copilot `r4198710846`, the first Conflicts bullet only):
- The status clause *"`add-worker-input-budget` is `Status: draft`, its two deltas unratified (its task 0.4)"* now says the packet is `Status: ratified` (task 0.4, Brett Heap's word of 2026-10-06) but still ACTIVE, not archived.
- A parenthesis records what the clause read before. The sequencing constraint, proposing this topic's change after that packet archives, is unchanged.

**Not moved:**
- `specs/doc-health/spec.md`;
- the Group 4 4.1 note;
- `tests/sequenced_after/corpus-ledger.yaml`.

## Precedent followed

- **#974** (`c521504c`):
  - `Status: draft` becomes `Status: ratified`, with one citation line in the lifecycle header;
  - the ruled box is ticked with its record;
  - the README row is moved in place, with a bold `Status: ratified` and the word and the record link;
  - a **RATIFICATION ONLY** tail;
  - a `review/ratification-<date>.md` record carries `Status: ratified` and ONE citation.
- **#1151** (`cd494e4c`): the closest case, an in-place ratification of a draft already on `main`. Copied: the one-line `Ratified:` form inside the front-matter, and the record's sections.
- **#1028**: the record header. `Decision date:` and `Ratifier:` accompany the citation.
- **#267**: the record-citing `Ratified:` spelling for an in-session ruling. Both citations clear the three-way floor, and each document carries exactly one citation in its 15-line window.
- **Sweep `b7513733`**: the `.openspec.yaml` form, on the second word:
  - `created` from the true first commit;
  - an `ad_hoc` id carrying the created date;
  - a folded `reason` derived from the record and checked in both directions;
  - the approval quoted from the packet's own citation.
- **Not copied:** `Status:` and `Ratified by:` on `tasks.md` and `design.md`. The packet has no `design.md`. Its `tasks.md` carries no `Status:` header to move, and `document-lifecycle` does not rule `tasks.md`.

## Landing: squash

**This PR lands by SQUASH, and only a squash landing conforms to the second word.** Option (i) was put as adding the origin file *in the ratifying commit*. On this branch the ratification is `a93865f0` and the origin file is the later commit `b3b7db42`, so only a squash puts the two into one commit on `main`. The record's § 5 says the same.

The archive gate's origin-retention walk takes the FIRST commit whose `proposal.md` declares `Status: ratified` as the ratifying commit. A probe on throwaway copies measured two landings:

- **Squash, the conforming landing:** the squash commit is the ratifying commit and carries the origin. The walk reads *"ORIGIN RETAINED … declaration unchanged since the ratifying commit"*. #974 and #1151 also landed by squash.
- **Merge, not conforming:** the walk takes `a93865f0`, which has no origin, as the ratifying commit, and reads *"ORIGIN RETENTION NOT COMPARABLE"*. The gate does not refuse that, but it leaves no retention baseline.
- **Rebase, not conforming and not run:** it would also land `a93865f0` as a commit of its own, ahead of the origin file.

## Observation (no change made)

`proposal.md` § Impact says *"two requirements MODIFIED, one ADDED"*. The delta has carried one MODIFIED and one ADDED requirement since its first commit, `ee2185d6`. The record's § 4 discloses this. It is not corrected here, because it is proposal text.

## How it was verified

All runs used full clones named `openxFactory`. The full set ran at the same time in two same-kind clones: `main` `51456835`, and this branch merged with it (`9e67f838`). The gates and doc-health then ran again on `main` `e6380965` and on `cc0fc853`. After that, the full set ran a third time on `main` `e6380965` and on `60c38a56`. All three runs gave the same results. The record's § 5 names each measured tree by sha (Copilot `r4198710942`).

Copilot's review `5433270341` at `60c38a56` raised no inline finding. Its "previously missed" note on record § 5 is answered in `7229fde4`, which rewrites only the record's landing paragraph to say this PR lands by squash. The gates and doc-health ran again on that tree against `main` `e6380965`, with identical results. The branch then merged `main` `c44c1610`, which archived `add-factory-mcp-conformance` (#1252) and touched no byte of this packet. The gates and doc-health ran once more, on `main` `c44c1610` and on that merge, `8dbb011e`. The results were again identical: `verify` exits 1 on `main` and 0 on the branch, and doc-health reports 284 against 282 finding lines, the difference being only the `proposal-origin` WARNING. Copilot's review `5433389325` at `8dbb011e` (thread `r4199425241`) asked that record § 5 list every tree measured. `6f4e98d1` rewrites that list as six runs, each named by sha. The gates and doc-health ran on it against `main` `c44c1610`, with identical results. Last, the branch merged `main` `a2dc658d` (#1254, no byte of this packet) as `35b17c30`, and the gates and doc-health on that merge against `main` `a2dc658d` were again identical. Its other note asks to put the Group 4 sentence *"is still open even as this line is written"* in the past tense. That note is left as it stands, because both briefs keep the Group 4 note untouched and the sentence is anchored to when it was written.

Because the carry-over topic changed, `tests/ideation_routing` and `tests/document_catalog` also ran on `main` `e6380965` and on `60c38a56`: 86 passed on each. `tests/ideation-dashboard` cannot be collected in a clone without the openDox and openXdox legs; CI runs it.

| gate | `main` | this PR |
| --- | --- | --- |
| `validate-openspec-cli-pin.py --all --strict` | exit 0; 1 failed item, `add-chain-attestation`'s accepted exception; 0 UNDISPOSITIONED | the same |
| `validate-openspec-cli-pin.py --change add-worker-input-budget` | exit 0; 1 passed | the same |
| `validate-code-surface.py`, `validate-target-release.py`, `validate-scope-globs.py` | exit 0 | the same output |
| `validate-sequenced-after.py .`, and with `--ledger-diff` | exit 0 | the same output; the ledger row does not move |
| `proposal-support.py . verify add-worker-input-budget` | **exit 1**, "no origin declaration" | **exit 0**, "proposal support verification ok" |
| `doc-health.py --single-repo . --as-of 2026-10-06` | 284 finding lines | 282: the same set without the `proposal-origin` WARNING's two lines. **No new finding.** The `modified-block-currency` INFO, which records the delta's deliberate rewording of canon's "is exactly" bullet, stays |
| `pytest` over `tests/doc-health`, `sequenced_after`, `review_lane_pin`, `proposal-support`, `code_surface`, `target_release`, `packet_reference`, `citation_remainder`, `scope_globs`, `former_id_arrival` and `openspec_cli_pin` | 3581 passed, 7 failed and 3 skipped | the same, with the same 7 tests failing. All 7 come from the clone, whose `openDox` and `openXdox` legs were not initialized. CI runs the full suite |

**The citation checks were proven to read both files, on a throwaway copy:**
- damaging either `Ratified:` line raised a CRITICAL `ratified-provenance` finding naming the damaged file;
- removing the proposal's citation raised one;
- giving the record `Status: record` raised one.

The intact files raise none.

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants