Skip to content

Restore add-trust-anchor's origin declaration to its ratifying bytes (#709) - #712

Merged
brettheap merged 1 commit into
mainfrom
fix/restore-origin-add-trust-anchor
Sep 6, 2026
Merged

brettheap merged 1 commit into
mainfrom
fix/restore-origin-add-trust-anchor

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Lane: openxfactory-1 (openXfactory-1)

Refs #709 — one of the four restorations Brett ruled on 2026-09-05. This PR carries add-trust-anchor only.

The rule, and the refusal

openspec/specs/release-realization/spec.md:258-279 — Origin retention at archive: "Mutation of an origin declaration after ratification SHALL be rejected at the archive gate." The gate that enforces it landed in #695 (proposal-support.origin_retention_errors), and on origin/main it refuses this packet:

$ python3 -c "…origin_retention_errors(root, root/'openspec/changes/add-trust-anchor', change='add-trust-anchor')"
origin retention: add-trust-anchor: the origin declaration differs from the one this change was
ratified over (ratifying commit 1570ff7e3314)
  changed keys: reason
--- 1570ff7e3314:openspec/changes/add-trust-anchor/.openspec.yaml
+++ openspec/changes/add-trust-anchor/.openspec.yaml
@@ -14,3 +14,3 @@
     custody stays in `opensoft/Opensoft-Tenant`; QA deployment topology
-    moves to `xFactory-OpenXPKI-Install`, whose Impact must be amended
+    moves to `OpenXPKI-Install`, whose Impact must be amended
     before that change ratifies), composition with `openxwallet` (declared
restoring or accepting a post-ratification origin mutation is a contested-class act requiring an
explicit disposition (`release-realization` § "Origin retention at archive"); this gate has no bypass flag

The ratifying commit, verified rather than taken on report

Resolved exactly as the gate resolves it — the first commit whose openspec/changes/add-trust-anchor/proposal.md declares Status: ratified, over a --full-history --topo-order --reverse walk of that one path:

$ python3 -c "…ratifying_commit(root, 'add-trust-anchor')"
1570ff7e33144da1e22c6460b3ac8b34ddb9eb69

Matches the reported 1570ff7e.

Every post-ratification commit that touched the file — there is exactly one mutator

$ git log --full-history --topo-order --format='%H %ad %s' --date=short \
      1570ff7e..HEAD -- openspec/changes/add-trust-anchor/.openspec.yaml
84945359… 2026-08-26 Merge origin/main into docs/live-voice-fork-decision-memo …
e11a057b… 2026-08-21 Amend install-repo naming to Opensoft-level: Keycloak-Install + OpenXPKI-Install (#242)

84945359 is a merge that mutated nothing: the file is absent from its first parent 3d52deb6 and present at blob 282fda21 in its second parent c8a82659, and the merge result is that same 282fda21 — the merge carried e11a057b's bytes across, it did not author any. So e11a057b (PR #242, the install-repo rename sweep) is the sole mutating commit, and its whole hunk in this file is:

@@ -14,7 +14,7 @@ origin:
     The rulings carried: the image-custody/deployment-topology seam with
     the active OpsxFactory `add-openxpki-qa-image-pipeline` change (image
     custody stays in `opensoft/Opensoft-Tenant`; QA deployment topology
-    moves to `xFactory-OpenXPKI-Install`, whose Impact must be amended
+    moves to `OpenXPKI-Install`, whose Impact must be amended
     before that change ratifies), composition with `openxwallet` (declared
     custody derives what a certificate evidences; revocation propagation)
     and `credential-contracts` (CA material custody, never committed), and

No key outside the origin: mapping changed after ratification — the full-file diff against the ratifying blob was that one line and nothing else — so there was nothing legitimate to keep out of the restoration, and restoring the origin block restores the whole file.

Proof: byte-for-byte the ratified declaration

$ diff <(git show 1570ff7e:openspec/changes/add-trust-anchor/.openspec.yaml) \
       openspec/changes/add-trust-anchor/.openspec.yaml
$ echo $?
0

Empty. By blob identity:

$ git rev-parse 1570ff7e:openspec/changes/add-trust-anchor/.openspec.yaml
84732a45b6680e1e2126b12f50d909f1003286b8
$ git hash-object openspec/changes/add-trust-anchor/.openspec.yaml
84732a45b6680e1e2126b12f50d909f1003286b8

The packet's diff is exactly the inverse of e11a057b's hunk.

Where the later text went — nothing is dropped

The rename is right and it stands. Brett's 2026-08-21 ruling (the broker and CA install repositories are Opensoft-level operator infrastructure, renamed unprefixed on the CloudPC-Install / Omnigent-Install precedent) is already applied throughout this packet — proposal.md front-matter, its § What Changes, its closing Amendment (Brett Heap, 2026-08-21) paragraph, design.md D7 and D8, the repo-boundary-governance delta, and tasks.md 2.1 / 6.2 / 7.2 / 7.5 — and this PR touches none of those sites. Only the origin block's copy of the name is reverted, because that block is fixed at ratification.

So the current name is recorded where a packet records things that happened after it was ratified: a dated note appended to openspec/changes/add-trust-anchor/design.md, ## Post-ratification record → ### 2026-09-05 — the install-repo rename sweep, moved out of the origin block (#709). It quotes e11a057b's hunk verbatim, names the commit and the PR it came from, states that the rename stands and that the aggregation path (installs/openxpki-install) and successor change id (implement-openxpki-install-repo) never moved, and tells a reader how to read the ratified spelling:

read the origin block's xFactory-OpenXPKI-Install as the historical spelling of opensoft/OpenXPKI-Install.

No Status: record file is added and no record file is edited.

The gate, after

$ python3 -c "…origin_retention_errors(…)"
ORIGIN RETAINED add-trust-anchor (declaration unchanged since the ratifying commit 1570ff7e3314)
ERRORS: []

The support manifest is unaffected and still agrees with the ratified declaration (kind: staged, id openxFactory:staging:pki-trust-anchor-plane, path ideation/staging/pki-trust-anchor-plane) — the gate's second-copy arm passes with it.

Disposition

Restoring a post-ratification origin mutation is a contested-class act requiring an explicit disposition. The disposition is Brett Heap, 2026-09-05 — "restore all four, land them when green", recorded on issue #709 and repeated in the commit message and in the design.md note.

Checks run locally

Check Result
origin-retention gate (proposal-support.origin_retention_errors) ORIGIN RETAINED add-trust-anchor, ERRORS: [] (was: the refusal quoted above)
python3 scripts/doc-health.py --single-repo . exit 0, byte-identical to a control run of the same command on the same clone with these two edits stashed (diff empty) — the new note adds no finding
python3 scripts/validate-sequenced-after.py . sequenced_after validation passed (35 active changes, 1 declaring the field)
python3 scripts/validate-sequenced-after.py . --ledger-diff per-change sweep ledger consistent with the corpus (175 rows); output byte-identical to the control run — no row moves, state/class unchanged
OPENSPEC_TELEMETRY=0 openspec validate add-trust-anchor --strict Change 'add-trust-anchor' is valid
python3 scripts/validate-openspec-cli-pin.py --all --no-cache exit 0 — @fission-ai/[email protected] verified against its content address, 93 passed, 2 failed (95 items), both failures the pre-existing Merged into dispositions (add-chain-attestation, add-composed-view-authoring) accepted by Brett 2026-09-05 "take exit 2"; 0 undispositioned failures, none new

🤖 Generated with Claude Code

https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv

…709)

`release-realization` § "Origin retention at archive": "Mutation of an
origin declaration after ratification SHALL be rejected at the archive
gate." The install-repo rename sweep `e11a057b` (PR #242) rewrote the
`origin.reason` prose of this already-ratified packet -- one line,
`xFactory-OpenXPKI-Install` -> `OpenXPKI-Install` -- and the landed gate
from #695 refuses the packet for it (changed keys: reason).

The ratifying commit resolves as `1570ff7e` (the first commit whose
openspec/changes/add-trust-anchor/proposal.md declares `Status:
ratified`, walked topologically). `e11a057b` is the ONLY post-
ratification commit that mutated the block: the later merge `84945359`
carried the same blob in from its second parent and introduced no
change of its own. No key outside `origin:` moved after ratification,
so restoring the origin block restores the whole file:

  diff <(git show 1570ff7:openspec/changes/add-trust-anchor/.openspec.yaml) \
       openspec/changes/add-trust-anchor/.openspec.yaml

is empty, and the blob is 84732a4 on both sides.

The rename itself stands and is not dropped. Brett Heap's 2026-08-21
ruling (the install repositories are Opensoft-level: `OpenXPKI-Install`
and `Keycloak-Install`, unprefixed on the CloudPC-Install precedent) is
already applied throughout the packet's proposal, design, specs and
tasks, and this commit leaves every one of those sites alone. What moves
is only the origin block's copy of it: design.md gains a dated
"Post-ratification record" section that quotes `e11a057b`'s hunk
verbatim, names the commit and PR it came from, and says how to read the
ratified spelling -- so the origin block keeps the ratified names by
rule while the current names stay legible from the packet.

Disposition for this contested-class act: Brett Heap, 2026-09-05 --
"restore all four, land them when green" (issue #709).

Checks: origin-retention gate now prints ORIGIN RETAINED add-trust-anchor;
doc-health --single-repo byte-identical to the control run on the same
tree without these two edits; validate-sequenced-after and --ledger-diff
identical (no row moves, state/class unchanged); openspec validate
add-trust-anchor --strict valid; validate-openspec-cli-pin --all
--no-cache exit 0 with the same two pre-existing dispositioned findings
and no new undispositioned failure.

Refs #709

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 6, 2026 01:03

@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 changes are narrowly scoped, consistent with the stated origin-retention rule and disposition, and do not introduce functional or schema-breaking edits.

Pull request overview

This PR restores the ratified origin.reason bytes for the add-trust-anchor packet to satisfy the origin-retention archive gate added in #695, while preserving the later install-repo rename context as an explicit post-ratification note.

Changes:

  • Reverted the origin.reason line in openspec/changes/add-trust-anchor/.openspec.yaml back to the ratified spelling (xFactory-OpenXPKI-Install).
  • Added a “Post-ratification record” section to design.md documenting why the ratified spelling is intentionally retained and where the current naming is recorded.
File summaries
File Description
openspec/changes/add-trust-anchor/.openspec.yaml Restores the ratified origin declaration text to comply with origin-retention validation.
openspec/changes/add-trust-anchor/design.md Adds a post-ratification note documenting the contested-class restoration and preserving the rename rationale.
Review details
  • Files reviewed: 2/2 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

LANDING — lane openxfactory-1 (openXfactory-1), session 5e783e4d, 2026-09-06T01:48:49Z, PR #712 into opensoft/openxFactory main (protocol Rule 6).

@brettheap

Copy link
Copy Markdown
Contributor Author

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

Provenance for the admin merge of #712 (restore add-trust-anchor's origin declaration to its ratifying bytes; issue #709). Word: Brett Heap, 2026-09-05 — "restore all four, land them when green" — recorded here as the explicit disposition per release-realization spec.md:279. Ratifying commit 1570ff7 resolved independently by the verifier; mutating commit(s) e11a057 (PR #242 rename sweep); the later text preserved verbatim in a dated note in the packet. Landed gate: REFUSED on main before, ORIGIN RETAINED on this tree. Head 5cb79c3d, FROZEN; nine checks SUCCESS; adversarial verification: no P1, no P2. Self-authored PR → admin merge (standing pattern B2); Codex absent.

🤖 Generated with Claude Code

https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv

@brettheap
brettheap merged commit 89323c1 into main Sep 6, 2026
10 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

LANDED — lane openxfactory-1 (openXfactory-1), 2026-09-06T01:49:01Z, PR #712 → merge 89323c16. Rule 6 window closed.

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