Repository navigation
Restore add-identity-brokering's origin declaration to its ratifying bytes (#709) - #710
Conversation
…bytes (#709) The packet was ratified at 1570ff7 (the first commit whose proposal.md declares `Status: ratified`). The install-repo rename sweep e11a057 (PR #242, 2026-08-21) then rewrote one line inside `origin.reason`, `xFactory-Keycloak-Install` -> `Keycloak-Install`, which is a post-ratification mutation of a ratified origin declaration — `release-realization` § "Origin retention at archive" forbids it and the gate landed by #695 refuses it ("changed keys: reason"). `.openspec.yaml` is restored byte-for-byte to its blob at 1570ff7; the whole file, not only the origin mapping, is now identical to the ratifying version, so no key outside the origin block had changed after ratification and nothing legitimate is being reverted with it. The renamed name is not dropped. design.md carries a decisions list, so a dated post-ratification note lands there: it quotes e11a057's hunk verbatim, names the sweep and its PR, records the names that hold going forward (`opensoft/Keycloak-Install` at `installs/keycloak-install`, and the sibling `opensoft/OpenXPKI-Install`), and states the rule the incident produced — a corpus-wide sweep MUST NOT touch a ratified packet's origin block. The packet already treated its other historical material this way: e11a057 deliberately left the source snapshot and the co-residence record carrying the pre-amendment name as provenance. Disposition for this contested-class restoration: Brett Heap, 2026-09-05, "restore all four, land them when green" (issue #709). Gate before: origin retention refused, changed keys: reason. Gate after: ORIGIN RETAINED add-identity-brokering (declaration unchanged since the ratifying commit 1570ff7). Refs #709 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv Lane: openxfactory-1
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
🟢 Approval recommended
The change is narrowly scoped to restoring ratifying bytes and adding supporting documentation, with only a minor documentation-precision nit noted.
Pull request overview
Restores the add-identity-brokering packet’s .openspec.yaml origin declaration to match the ratifying commit bytes, satisfying the origin-retention gate, and records the post-ratification naming context in the packet design notes.
Changes:
- Reverts the post-ratification edit to
origin.reasoninopenspec/changes/add-identity-brokering/.openspec.yaml(restoringxFactory-Keycloak-Install). - Adds a dated “Post-ratification note” section to
design.mddocumenting why the origin declaration is restored and where the renamed terminology is recorded.
File summaries
| File | Description |
|---|---|
| openspec/changes/add-identity-brokering/.openspec.yaml | Restores the origin declaration line to the ratifying bytes for origin-retention compliance. |
| openspec/changes/add-identity-brokering/design.md | Adds an explicit dated note documenting the restoration rationale and the renamed repo terminology. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| so `origin.reason` came to read "the `Keycloak-Install` runtime (exit 3) | ||
| are named successors that consume this contract's vocabulary, which is why | ||
| it ratifies first". That edit is a post-ratification mutation of a ratified |
There was a problem hiding this comment.
Fixed in 5b09b91 — a fair nit on a PR whose whole subject is byte-accuracy. The note now names the clause the ratified bytes spell ("the OpsxFactory keycloak-administration workflow (exit 2) and the xFactory-Keycloak-Install runtime (exit 3) are named successors"), says which token e11a057b replaced inside it, and states that nothing else in the block moved. The verbatim hunk above it is unchanged.
Lane: openxfactory-1
…opilot) The note said `origin.reason` "came to read" a string that started with a word from the preceding line of the folded scalar, which reads as though the whole reason began there. It now names the clause the ratified bytes spell, says which token `e11a057b` replaced inside it, and states that nothing else in the block moved — the accuracy the rest of this PR is about. Refs #709 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv Lane: openxfactory-1
There was a problem hiding this comment.
🟢 Approval recommended
The changes are narrowly scoped, byte-accurate to the ratifying origin declaration, and the displaced context is preserved in-design as a dated note.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
LANDING — lane openxfactory-1 (openXfactory-1), session 5e783e4d, 2026-09-06T01:48:22Z, PR #710 into opensoft/openxFactory main (protocol Rule 6). |
|
Lane: openxfactory-1 (openXfactory-1; session 5e783e4d) Provenance for the admin merge of #710 (restore 🤖 Generated with Claude Code |
|
LANDED — lane openxfactory-1 (openXfactory-1), 2026-09-06T01:48:34Z, PR #710 → merge |
Lane: openxfactory-1 (openXfactory-1)
Refs #709 — one of the four restorations Brett ruled on 2026-09-05. This PR is the
add-identity-brokeringpacket only.The ratifying commit — resolved, not taken on report
Resolved exactly as the landed gate resolves it (
scripts/proposal-support.py::ratifying_commit: the first commit, topo-order oldest-first over--full-history, whoseopenspec/changes/add-identity-brokering/proposal.mddeclaresStatus: ratifiedat the ACTIVE path):Matches the commit the issue reports.
Every post-ratification commit that touched
.openspec.yamlgit log -p --full-history 1570ff7e..HEAD -- openspec/changes/add-identity-brokering/.openspec.yamllists two commits, and only one of them changed a byte:1.
e11a057b2dfbd1ba94450f3ad0925424e6692b00— "Amend install-repo naming to Opensoft-level: Keycloak-Install + OpenXPKI-Install (#242)", 2026-08-21. Its whole hunk in this file:2.
849453592cf0578f6a46f654a3f79cb4da5a000a— a merge commit ("Merge origin/main into docs/live-voice-fork-decision-memo…"), listed by--full-historybecause one parent predates the file. It is NOT a mutation: the blob at the merge, atc8a82659, ate11a057band atHEADis the same object04f778af. Verified withgit rev-parse <rev>:<path>on each.So: one mutating commit,
e11a057b, exactly as reported. No second one.Gate output — before
The restoration, proven
Empty — and note the comparison is over the WHOLE FILE, not only the
origin:mapping the gate reads. No key outside the origin block changed after ratification, so there is nothing legitimate being reverted alongside the restoration; the diff of this PR is exactly the inverse ofe11a057b's one hunk. The support manifest'sorigin(kind/id/path) was never touched by the sweep and needs no change.Gate output — after
python3 scripts/proposal-support.py . verify add-identity-brokering→proposal support verification ok.Where the later text went
design.mdcarries a## Decisionslist, so the note lands there rather than intasks.md: a new subsection "Post-ratification note, 2026-09-05 — the install-repo rename (#242) and the origin declaration", placed after D9 and before the open questions. Ite11a057b's hunk verbatim, in a fenced block, naming the commit and PR Amend install-repo naming to Opensoft-level: Keycloak-Install + OpenXPKI-Install #242 it came from, and states in prose whatorigin.reasonhad come to read;opensoft/Keycloak-Install(wasopensoft/xFactory-Keycloak-Install), aggregation pathinstalls/keycloak-install, successorimplement-keycloak-install-repounchanged; and the siblingopensoft/OpenXPKI-Installthatadd-trust-anchoradmits;e11a057bdeliberately left carrying the pre-amendment name as provenance (supporting-docs/source-snapshots/identity-brokering-plane.md,review/co-residence-finding-2026-08-21.md). The origin block rejoins that set;Nothing is dropped. The amendment was, and remains, additionally recorded in the packet's
proposal.mdclosing paragraph —e11a057bwrote it there and this PR does not touch it. NoStatus:record file is edited or added by this PR; the two files changed are.openspec.yamlanddesign.md, neither of which carries a lifecycle header.Disposition
Restoring a post-ratification origin mutation is a contested-class act and the gate has no bypass flag, so it needs an explicit disposition. The disposition is Brett Heap's ruling of 2026-09-05: "restore all four, land them when green" (issue #709), recorded in the commit message and in the design.md note.
Checks
proposal-supportorigin retentionchanged keys: reason)proposal-support . verify add-identity-brokeringdiff <(git show 1570ff7e:…/.openspec.yaml) …/.openspec.yamlpython3 scripts/doc-health.py --single-repo .main— zero new findings, zero removedpython3 scripts/validate-sequenced-after.py .… --ledger-diffmain; 175 rows, no row moved, state/class unchangedOPENSPEC_TELEMETRY=0 openspec validate add-identity-brokering --strictChange 'add-identity-brokering' is validpython3 scripts/validate-openspec-cli-pin.py --all --no-cachemain(add-chain-attestation,add-composed-view-authoring), 0 undispositioned🤖 Generated with Claude Code
https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv