Skip to content

Restore add-identity-brokering's origin declaration to its ratifying bytes (#709) - #710

Merged
brettheap merged 2 commits into
mainfrom
fix/restore-origin-add-identity-brokering
Sep 6, 2026
Merged

brettheap merged 2 commits into
mainfrom
fix/restore-origin-add-identity-brokering

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 is the add-identity-brokering packet 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, whose openspec/changes/add-identity-brokering/proposal.md declares Status: ratified at the ACTIVE path):

$ python3 -c "…ratifying_commit(root, 'add-identity-brokering')"
1570ff7e33144da1e22c6460b3ac8b34ddb9eb69

Matches the commit the issue reports.

Every post-ratification commit that touched .openspec.yaml

git log -p --full-history 1570ff7e..HEAD -- openspec/changes/add-identity-brokering/.openspec.yaml lists 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:

@@ -19,7 +19,7 @@ origin:
     install repo). Also ruled beyond what the brainstorm asked: workloads
     are NOT persona users. This change carries the neutral half only; the
     OpsxFactory `keycloak-administration` workflow (exit 2) and the
-    `xFactory-Keycloak-Install` runtime (exit 3) are named successors that
+    `Keycloak-Install` runtime (exit 3) are named successors that
     consume this contract's vocabulary, which is why it ratifies first.
   approved_by: >-
     Brett Heap (xFactory family session rulings R1, R3, R4, R5 and R7,

2. 849453592cf0578f6a46f654a3f79cb4da5a000a — a merge commit ("Merge origin/main into docs/live-voice-fork-decision-memo…"), listed by --full-history because one parent predates the file. It is NOT a mutation: the blob at the merge, at c8a82659, at e11a057b and at HEAD is the same object 04f778af. Verified with git rev-parse <rev>:<path> on each.

So: one mutating commit, e11a057b, exactly as reported. No second one.

Gate output — before

origin retention: add-identity-brokering: the origin declaration differs from the one this change was ratified over (ratifying commit 1570ff7e3314)
  changed keys: reason
--- 1570ff7e3314:openspec/changes/add-identity-brokering/.openspec.yaml
+++ openspec/changes/add-identity-brokering/.openspec.yaml
@@ -19,3 +19,3 @@
     OpsxFactory `keycloak-administration` workflow (exit 2) and the
-    `xFactory-Keycloak-Install` runtime (exit 3) are named successors that
+    `Keycloak-Install` runtime (exit 3) are named successors that
     consume this contract's vocabulary, which is why it ratifies first.
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 restoration, proven

$ diff <(git show 1570ff7e33144da1e22c6460b3ac8b34ddb9eb69:openspec/changes/add-identity-brokering/.openspec.yaml) \
       openspec/changes/add-identity-brokering/.openspec.yaml
$ echo $?
0

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 of e11a057b's one hunk. The support manifest's origin (kind/id/path) was never touched by the sweep and needs no change.

Gate output — after

ORIGIN RETAINED add-identity-brokering (declaration unchanged since the ratifying commit 1570ff7e3314)
ERRORS: []

python3 scripts/proposal-support.py . verify add-identity-brokering → proposal support verification ok.

Where the later text went

design.md carries a ## Decisions list, so the note lands there rather than in tasks.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. It

  • quotes e11a057b'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 what origin.reason had come to read;
  • records the names that hold from Brett's 2026-08-21 rename ruling forward — opensoft/Keycloak-Install (was opensoft/xFactory-Keycloak-Install), aggregation path installs/keycloak-install, successor implement-keycloak-install-repo unchanged; and the sibling opensoft/OpenXPKI-Install that add-trust-anchor admits;
  • says why the origin block keeps the pre-rename name — an origin declaration records why the change was created, not the world as it stands — and points at the two places in this same packet that e11a057b deliberately 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;
  • carries the operational rule the incident produced: a corpus-wide sweep MUST NOT touch a ratified packet's origin block.

Nothing is dropped. The amendment was, and remains, additionally recorded in the packet's proposal.md closing paragraph — e11a057b wrote it there and this PR does not touch it. No Status: record file is edited or added by this PR; the two files changed are .openspec.yaml and design.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

check result
proposal-support origin retention ORIGIN RETAINED (was: refused, changed keys: reason)
proposal-support . verify add-identity-brokering ok
diff <(git show 1570ff7e:…/.openspec.yaml) …/.openspec.yaml empty
python3 scripts/doc-health.py --single-repo . byte-identical to the same run on main — zero new findings, zero removed
python3 scripts/validate-sequenced-after.py . passed (35 active changes, 1 declaring the field)
… --ledger-diff byte-identical to main; 175 rows, no row moved, state/class unchanged
OPENSPEC_TELEMETRY=0 openspec validate add-identity-brokering --strict Change 'add-identity-brokering' is valid
python3 scripts/validate-openspec-cli-pin.py --all --no-cache exit 0 — 93 passed, the same 2 pre-existing DISPOSITIONED findings as main (add-chain-attestation, add-composed-view-authoring), 0 undispositioned

🤖 Generated with Claude Code

https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv

…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
Copilot AI lite review requested due to automatic review settings September 6, 2026 00:59

@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 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.reason in openspec/changes/add-identity-brokering/.openspec.yaml (restoring xFactory-Keycloak-Install).
  • Adds a dated “Post-ratification note” section to design.md documenting 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.

Comment on lines +255 to +257
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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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
Copilot AI review requested due to automatic review settings September 6, 2026 01:12

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, 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

@brettheap

Copy link
Copy Markdown
Contributor Author

LANDING — lane openxfactory-1 (openXfactory-1), session 5e783e4d, 2026-09-06T01:48:22Z, PR #710 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 #710 (restore add-identity-brokering'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 5b09b91e, 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 0df7b18 into main Sep 6, 2026
10 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

LANDED — lane openxfactory-1 (openXfactory-1), 2026-09-06T01:48:34Z, PR #710 → merge 0df7b180. 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