Skip to content

Restore add-credential-escrow-checkout's origin declaration to its ratifying bytes (#709) - #713

Merged
brettheap merged 2 commits into
mainfrom
fix/restore-origin-add-credential-escrow-checkout
Sep 6, 2026
Merged

brettheap merged 2 commits into
mainfrom
fix/restore-origin-add-credential-escrow-checkout

Conversation

@brettheap

@brettheap brettheap commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-1 (openXfactory-1)

Refs #709 — packet 1 of the four. openspec/specs/release-realization/spec.md § "Origin retention at archive": "Mutation of an origin declaration after ratification SHALL be rejected at the archive gate."

The ratifying commit, verified rather than taken from the issue

Resolved exactly as main's gate does — scripts/proposal-support.py ratifying_commit(), the first commit whose openspec/changes/add-credential-escrow-checkout/proposal.md carries Status: ratified:

$ python3 -c "...; print(m.ratifying_commit(Path('.'), 'add-credential-escrow-checkout'))"
0e2de3313e0cafdb14665fbc2e48749806020b14

0e2de331 — "A ratified boundary left three blanks; the checkout packet fills them", 2026-08-28. The issue's reported commit, confirmed.

Every post-ratification commit that touched the origin block: exactly one

git log --full-history --topo-order lists eleven commits on .openspec.yaml after 0e2de331, so each was measured against every parent. Ten are merges that carry the file unchanged from at least one parent (git diff --numstat <parent> <commit> -- <file> empty). One changed bytes:

commit date what it did to the file
f5e53364 2026-08-28 21:25:37 -0400, brettheap +34 −3 — a SECOND approval act written into origin.reason (two insertions, 20 and 4 lines — 24 total) and origin.approved_by (2 lines rewritten into 9); net growth of the origin block is 31 lines (33 added, 2 removed), plus one line outside the origin block

git diff f5e53364 HEAD -- <file> is empty: f5e53364's tree is main's tree for this file. The issue's reported mutating commit is the complete set.

The mutating hunks

@@ -17,6 +17,26 @@ origin:
     THE FOUR RULINGS, as selected.
+    A SECOND ACT THE SAME DAY, ON THE SAME MECHANISM, CLOSED THE VETO WINDOW
+    AND CHANGED THE PACKET. The orchestrating session put a further four-question
+    multi-choice to Brett over pull request #479 and relayed it the same day.
+    OD-2 was VETOED — ruling A's escrow relationship block and escrow-entry
+    record kind come into THIS packet on A's literal shape, and Brett accepted
+    the stated consequence that realization now owes the additive contract cut at
+    the NEXT ADDITIVE MINOR, whose number is allocated at realization by merge
+    order and is deliberately not spent here. OD-4 was APPROVED as authored. OD-1, OD-3,
+    OD-5, OD-6 and OD-7 were CLEARED as authored, with OD-3's deferral of ruling
+    C — the registry home, the grandfathered openxpki exception and the three
+    escalation tests — expressly STANDING: only the SCHEMA HALF moved here. All
+    five open questions were ruled, four of them on this packet's own
+    recommendations and ONE AGAINST IT (the drill must also prove a live refusal,
+    where the packet had recommended proving refusals by fixture only) — recorded
+    as a reversal rather than smoothed into agreement. Merge on green was
+    approved, to be performed by the orchestrating session; realization stays a
+    later commission because the drill needs Brett's hands on real material.
+    THE TWO ACTS ARE KEPT DISTINCT because they authorized different things: the
+    first ADMITTED the packet and ratified the four rulings below; the second
+    CLOSED the veto window and MOVED DELTA TEXT.
     A — DELTA SHAPE. `credential-contracts` gains an additive optional `escrow:`

@@ -27,6 +47,10 @@ origin:
     and whose consumption rule is restated in `contracts/manifest.yaml:2477`.
+    AS AUTHORED THIS PACKET CARRIED NONE OF A, on OD-2, deferring both halves to
+    the successor; the OD-2 VETO of the same day reversed that, and A is realized
+    here in full as a MODIFIED block (the schema owns six kinds, not five) plus
+    two ADDED requirements.
     B — KEY TOPOLOGY. A per-client escrow recipient PLUS one operator root

@@ -90,11 +114,18 @@ origin:
     `proposal.md` § Orchestrator decisions — every one of those was taken by
-    the authoring session and stays FLAGGED FOR VETO there, as do the open
-    questions, each of which carries a recommendation and no decision.
+    the authoring session and WAS FLAGGED FOR VETO there, as were the open
+    questions, each of which carried a recommendation and no decision.
+    THAT VETO WINDOW IS NOW CLOSED, by the second act recorded in the reason
+    above. All seven orchestrator decisions are ruled and all five open questions
+    answered: the policy-window numbers were APPROVED as authored and the
+    no-schema decision was VETOED. The paragraph above is kept in its original
+    tense because it records what the FIRST citation covered, which is what a
+    later reader needs from it; what the SECOND act covered is stated separately
+    so the two are never read as one approval.
   approved_on: 2026-08-28

This PR's .openspec.yaml hunk is exactly the inverse of those three.

The gate, before and after

Before (origin/main, c556bfcb), origin_retention_errors(root, packet):

origin retention: add-credential-escrow-checkout: the origin declaration differs
from the one this change was ratified over (ratifying commit 0e2de3313e0c)
  changed keys: approved_by, reason
--- 0e2de3313e0c:openspec/changes/add-credential-escrow-checkout/.openspec.yaml
+++ openspec/changes/add-credential-escrow-checkout/.openspec.yaml
@@ -17,2 +17,22 @@
     THE FOUR RULINGS, as selected.
+    A SECOND ACT THE SAME DAY, ON THE SAME MECHANISM, CLOSED THE VETO WINDOW
…
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

After (this branch):

ORIGIN RETAINED add-credential-escrow-checkout (declaration unchanged since the ratifying commit 0e2de3313e0c)
ERRORS: []
origin block lines identical: True
origin mapping identical: True

Proof the declaration is the ratified bytes

$ diff <(git show 0e2de331:openspec/changes/add-credential-escrow-checkout/.openspec.yaml) \
       openspec/changes/add-credential-escrow-checkout/.openspec.yaml
97c97
<   - openxFactory:change:add-credential-escrow-registry      # the ruled successor (packet two): the escrow relationship block, the escrow-entry record kind, the registry home and its grandfathered exception, inventory completeness and the decryption-free lint
---
>   - openxFactory:change:add-credential-escrow-registry      # the ruled successor (packet two): ruling C's registry home and grandfathered exception, inventory completeness, the readiness binding and the decryption-free lint. NO LONGER the escrow relationship block or the escrow-entry record kind — the OD-2 veto of 2026-08-28 moved both into this packet

One line, and it is OUTSIDE the origin block — deliberately kept. related: is not part of the origin: mapping; the retention rule governs the declaration and the gate compares the origin mapping, which is byte-identical (origin block lines identical: True). The kept line is a live cross-reference that is now TRUE and would be FALSE if reverted: the OD-2 veto moved the escrow relationship block and the escrow-entry record kind INTO this packet, and this packet's own specs/credential-contracts/spec.md carries both. Reverting it would write a falsehood into the packet in the name of restoring a declaration it is not part of. It is the only key outside the origin block that f5e53364 touched.

Where the text went

review/approval-act-2026-08-28.md (new; Status: record, Kind: report, the header shape its sibling records use). It carries all three added blocks verbatim, each labelled with where in the declaration it sat and with the commit f5e53364 it came from; it names WHO gave the act (Brett Heap, by four multi-choice selections over PR #479) and WHEN (2026-08-28, later the same day as the first act); it quotes both wordings of the two-line sentence f5e53364 re-tensed, so neither version is lost; it states why related: was kept; and it records the disposition. A one-line pointer is added at tasks.md § 2.7.

Nothing here was the only copy. The same act is already recorded at proposal.md:5 ("A SECOND ACT LATER THE SAME DAY CLOSED THE VETO WINDOW AND CHANGED THIS PACKET'S SHAPE."), in proposal.md § Orchestrator decisions, and in tasks.md's header and §§ 1.1, 1.5, 1.7, 2.5, 3.1. No ratified or record file is edited by this PR.

Disposition

Restoring a post-ratification origin mutation is a contested-class act requiring an explicit disposition, and the gate has no bypass flag. The disposition is Brett Heap, 2026-09-05 — "restore all four, land them when green" (#709), given over the four packets #695's active-corpus sweep read as REFUSED.

Checks run locally

check result
origin_retention_errors on this packet ORIGIN RETAINED, []
python3 scripts/doc-health.py --single-repo . exit 0; byte-identical to an origin/main control run after normalizing the checkout directory name — 8 critical / 8 error / 44 warning / 13 info on both, 0 new regressions. The new record adds no finding.
python3 scripts/validate-sequenced-after.py . exit 0 — sequenced_after validation passed (35 active changes, 1 declaring the field)
python3 scripts/validate-sequenced-after.py . --ledger-diff exit 0; identical to the origin/main control run — 175 rows, no row moves, state/class unchanged
OPENSPEC_TELEMETRY=0 openspec validate add-credential-escrow-checkout --strict Change 'add-credential-escrow-checkout' is valid
python3 scripts/validate-openspec-cli-pin.py --all --no-cache exit 0 — Totals: 93 passed, 2 failed (95 items), 0 UNDISPOSITIONED failures; the two are the pre-existing accepted exceptions (add-chain-attestation, add-composed-view-authoring), identical line-for-line to the origin/main control run

🤖 Generated with Claude Code

https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv

…tifying bytes

`release-realization` § "Origin retention at archive": an origin declaration is
fixed at ratification. Commit `f5e53364` (2026-08-28) wrote a SECOND approval act
— the four-question multi-choice over PR #479 that closed the packet's veto
window — into `origin.reason` and `origin.approved_by` of a packet ratified that
morning at `0e2de331`. The landed gate reads it as a refusal:

  origin retention: add-credential-escrow-checkout: the origin declaration
  differs from the one this change was ratified over (ratifying commit
  0e2de33)
    changed keys: approved_by, reason

`f5e53364` is the ONLY post-ratification commit that changed this file's bytes;
the ten other commits git lists for the path are merges that carry it unchanged
from at least one parent.

The `origin:` mapping is now byte-identical to `0e2de331`'s and the gate prints
ORIGIN RETAINED. The text is not dropped: it moves verbatim, with its date, its
author and the commit it came from, to the new dated record
`review/approval-act-2026-08-28.md` (Status: record, Kind: report), pointed at
from tasks.md § 2.7. The act was already recorded at `proposal.md:5` and in
tasks.md's header besides, so no unique copy of it existed in the declaration.

The `related:` first-entry comment, also touched by `f5e53364`, is KEPT: it lies
outside the `origin:` mapping the retention rule governs, and it is now true —
reverting it would reassign this packet's own escrow relationship block and
escrow-entry record kind back to a successor that no longer carries them.

Disposition — restoring a post-ratification origin mutation is a contested-class
act and the gate has no bypass flag: Brett Heap, 2026-09-05, "restore all four,
land them when green" (#709).

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 precisely restore the ratified origin: bytes while preserving the displaced prose in a dedicated record, aligning with the stated origin-retention requirement and PR description.

Pull request overview

This PR restores the add-credential-escrow-checkout packet’s .openspec.yaml origin: mapping to the exact bytes present at its ratifying commit, so the archive origin-retention gate will treat the declaration as retained. The post-ratification “second approval act” prose that had been written into the origin declaration is preserved by moving it into a dedicated review/ record and is cross-referenced from tasks.md.

Changes:

  • Reverts the post-ratification edits inside .openspec.yaml’s origin.reason and origin.approved_by back to the ratified wording.
  • Adds a new Status: record review document that captures the moved approval-act text verbatim (with provenance and rationale).
  • Adds a completed tasks entry pointing readers to the new record and documenting the #709 disposition.
File summaries
File Description
openspec/changes/add-credential-escrow-checkout/.openspec.yaml Restores the origin: mapping to the ratifying bytes by removing the post-ratification additions/retensing.
openspec/changes/add-credential-escrow-checkout/review/approval-act-2026-08-28.md New record capturing the “second approval act” text that had been inserted into the origin block, including provenance and explanation.
openspec/changes/add-credential-escrow-checkout/tasks.md Adds a completed task entry linking to the new record and noting the restoration/disposition.
Review details
  • Files reviewed: 3/3 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)

FROZEN at 9d2cdf11 — all nine required checks green, no further commits from this lane.

check result
clearing-dispatch-gate pass
lane-line pass
merge-master-approval pass
openreposhape-pin pass
openspec-cli-pin pass
pytest-suite pass (23m19s)
release-tag-gate pass
signed-execution-chain-gate pass
wallet-validation pass

Bot bench. Copilot: "🟢 Approval recommended … precisely restore the ratified origin: bytes while preserving the displaced prose in a dedicated record" — 3/3 files reviewed, 0 comments, no defects to take. Codex: one @codex review was posted and answered with a usage-limit refusal (chatgpt-codex-connector at 01:04:10Z) — recorded as ABSENCE, not as a clean review. Sourcery commented (upsell stub).

mergeStateStatus: BLOCKED is the code-owner-review requirement, not a failing check — this PR does not merge itself, per the disposition it carries (#709, Brett Heap 2026-09-05, "restore all four, land them when green").

🤖 Generated with Claude Code

https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits. You can see your limits in the Codex usage dashboard.

- The mutating commit's origin.reason insertions measure 20 and 4 lines
  (24 total), not a combined 31; 31 is the net growth of the whole
  origin: block (33 added, 2 removed via
  git diff -U0 03244fa f5e5336 -- .../.openspec.yaml), which also
  covers the 2-into-9 approved_by rewrite.
- tasks.md § 1.5 and § 1.7 do not name the veto or OD-2 (grep -n
  'veto|OD-2' tasks.md); the act is recorded at the tasks.md header plus
  §§ 1.1, 2.5 and 3.1, not §§ 1.1, 1.5, 1.7, 2.5, 3.1.

Lane: openxfactory-1

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv
Copilot AI review requested due to automatic review settings September 6, 2026 01:56

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 to restoring ratified origin bytes and preserving the displaced provenance text in an appropriate record file, with only minor documentation clarity feedback.

Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment on lines +32 to +34
lines into 9. Net growth of the whole `origin:` block is 31 lines (33
added, 2 removed) — `git diff -U0 03244fad f5e53364 --
openspec/changes/add-credential-escrow-checkout/.openspec.yaml`.
@brettheap

Copy link
Copy Markdown
Contributor Author

LANDING — lane openxfactory-1 (openXfactory-1), session 5e783e4d, 2026-09-06T02:21:04Z, PR #713 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 #713 (restore add-credential-escrow-checkout's origin declaration to its ratifying bytes; issue #709). Word: Brett Heap, 2026-09-05 — "restore all four, land them when green" — recorded as the explicit disposition per release-realization spec.md:279. Ratifying commit 0e2de33 (resolved independently by the verifier); the single mutating commit f5e5336 (a second approval act, 2026-08-28) preserved LINE-FOR-LINE in the NEW record review/approval-act-2026-08-28.md (both wordings survive; the removed present-tense sentence quoted), with a tasks.md pointer. Landed gate: REFUSED on main before (changed keys: approved_by, reason), ORIGIN RETAINED on this tree. Adversarial verification: no P1, no P2; the two P3 miscounts in the new record corrected at 804b203e before landing (24 reason lines, not 31; cross-references trimmed to the sections that name the veto). Head 804b203e; nine checks SUCCESS. Self-authored PR → admin merge (standing pattern B2); Codex absent.

🤖 Generated with Claude Code

https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv

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

Copy link
Copy Markdown
Contributor Author

LANDED — lane openxfactory-1 (openXfactory-1), 2026-09-06T02:21:16Z, PR #713 → merge b5dbfb23. Rule 6 window closed. All four #709 restorations are on main; #709 closes with this merge.

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