Skip to content

Restore the archived origin declaration of amend-published-tip-unreadable-scenario to its ratified text (#690) - #693

Merged
brettheap merged 1 commit into
mainfrom
fix/restore-archived-origin-declaration
Sep 5, 2026
Merged

brettheap merged 1 commit into
mainfrom
fix/restore-archived-origin-declaration

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Lane: openxfactory-1 (openXfactory-1)

Refs #690 — part (1), the record repair. Part (2) (implementing the comparison in the archive gate) is not in this PR.

What was wrong

openspec/specs/release-realization/spec.md:260 Origin retention at archive: "Mutation of an origin declaration after ratification SHALL be rejected at the archive gate."

Commit ab2003aa, landed inside archive PR #685, edited the origin.approved_by prose of openspec/changes/archive/2026-09-05-amend-published-tip-unreadable-scenario/.openspec.yaml — widening the quoted lane-line grammar from ^Lane: [a-z0-9-]+$ to ^Lane: [a-z0-9-]+( \(.*\))?$ — after 517980e1 had ratified that declaration. The edit was right about the grammar and wrong about the file: an origin declaration is fixed at ratification, and an archived packet is a record.

What this changes

One file, one hunk, exactly the inverse of ab2003aa's hunk in that file. Nothing else in the archived packet is touched — the rest of the record is immutable and stays as it landed.

@@ -27,8 +27,7 @@ origin:
     Brett Heap (openxFactory convener) — in session on 2026-09-05, lane
     `openxfactory-1` — renamed this day from `openxfactory-max001`, and spelled
     LOWERCASE here deliberately: the required `lane-line` check enforces
-    `^Lane: [a-z0-9-]+( \(.*\))?$` and every lane id in this corpus is
-    lowercase, so the
+    `^Lane: [a-z0-9-]+$` and every lane id in this corpus is lowercase, so the
     capitalised form circulating in session (`openXfactory-1`) is a display
     spelling the ratified grammar cannot express. Normalising here keeps one

Proof: the archived file is byte-for-byte the ratified text

$ diff <(git show 517980e1:openspec/changes/amend-published-tip-unreadable-scenario/.openspec.yaml) \
       openspec/changes/archive/2026-09-05-amend-published-tip-unreadable-scenario/.openspec.yaml
$ echo $?
0

Empty. By blob identity:

$ git rev-parse 517980e1:openspec/changes/amend-published-tip-unreadable-scenario/.openspec.yaml
8f3fc7008a9ad019ef56c960d417ee0c57569f25
$ git hash-object openspec/changes/archive/2026-09-05-amend-published-tip-unreadable-scenario/.openspec.yaml
8f3fc7008a9ad019ef56c960d417ee0c57569f25

The same reproduction against origin/main before this PR returned 30c30,31 — one changed line, the issue's reproduction.

The corrected grammar is not lost

It lives in the packet's ratification record, which is where a reading of the check belongs and which ab2003aa correctly declined to edit: review/ratification-2026-09-05.md:99 already states the grammar in full as ^Lane: [a-z0-9-]+( \(.*\))?$. Restoring the origin block therefore removes a post-ratification mutation without removing the corrected quotation from the packet.

Checks run locally

  • python3 scripts/doc-health.py --single-repo . — parity with an origin/main control run of the same command (same finding set, same exit code).
  • python3 -m pytest tests/doc-health -q — green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv

…able-scenario to its ratified text

`openspec/specs/release-realization/spec.md` "Origin retention at archive":
*Mutation of an origin declaration after ratification SHALL be rejected at the
archive gate.* Commit ab2003a, landed inside archive PR #685, edited the
`origin.approved_by` prose of the archived packet's `.openspec.yaml` after
517980e had ratified it — widening the quoted lane-line grammar from
`^Lane: [a-z0-9-]+$` to `^Lane: [a-z0-9-]+( \(.*\))?$`. The edit was correct
about the grammar and wrong about the file: an origin declaration is fixed at
ratification, and a record is not the place to correct a quotation.

This restores that block byte-for-byte to 517980e. The diff here is exactly
the inverse of ab2003a's hunk in this file; the blob now hashes to
8f3fc70, the ratified blob. Nothing else in
the archived packet is touched.

The corrected grammar is not lost: the packet's ratification record
`review/ratification-2026-09-05.md` already carries
`^Lane: [a-z0-9-]+( \(.*\))?$` in full, which is where a later reading of the
check belongs.

Refs #690

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv
Lane: openxfactory-1
Copilot AI lite review requested due to automatic review settings September 5, 2026 18:54

@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.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

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.

🟢 Approval recommended

The change is a minimal, targeted reversion that restores the archived origin declaration to the ratified text without introducing functional or structural issues.

Pull request overview

Restores the archived OpenSpec change packet’s .openspec.yaml origin declaration text to match the ratified version, removing a post-ratification mutation in the archived record (per the “Origin retention at archive” requirement in openspec/specs/release-realization/spec.md).

Changes:

  • Reverts the archived packet’s origin.approved_by prose to the original (ratified) lane-line grammar quotation by removing the later-widened regex text.
File summaries
File Description
openspec/changes/archive/2026-09-05-amend-published-tip-unreadable-scenario/.openspec.yaml Restores the archived origin declaration’s prose to its ratified text (record repair).
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1; session 5e783e4d)

Provenance for the admin merge of #693 (restore the archived origin declaration of amend-published-tip-unreadable-scenario, issue #690 part 1).

🤖 Generated with Claude Code

https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv

@brettheap
brettheap merged commit 122e423 into main Sep 5, 2026
10 checks passed
brettheap added a commit that referenced this pull request Sep 5, 2026
…n declaration

`origin/main` moved to `9b1888bb` while this packet was in review — #693
restored the archived origin declaration of
`amend-published-tip-unreadable-scenario` to its ratified text, #694 routed
`proposal-support` archiving through the pinned OpenSpec CLI rather than PATH,
and #684/#696 landed beside them. Every hunk auto-merged: README kept main's
side and this packet's Active row, and the corpus ledger kept both this row
(`moved_by: "#688"`) and #685's archived row for the predecessor. No row moved,
no partner flipped, so no MOVEMENT LOG entry is owed.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv
Lane: openxfactory-1
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