Skip to content

A fetch identity is a name, and a name is unique only inside the directory that issued it - #622

Merged
brettheap merged 8 commits into
mainfrom
change/add-consumer-identity-namespace
Sep 4, 2026
Merged

brettheap merged 8 commits into
mainfrom
change/add-consumer-identity-namespace

Conversation

@brettheap

@brettheap brettheap commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-smalls

The rulings

Brett Heap, 2026-09-03, in session, over written recommendations for five queued items, verbatim "implement your recommendations on all these". Two of the five land in this packet, and both are quoted in full in openspec/changes/add-consumer-identity-namespace/review/ratification-2026-09-03.md.

#511 — add identity_namespace as an additive optional member of the consumer: block naming the issuing directory/account/tenant WITHIN the provider; shared-authority-identity compares on (identity_namespace, fetch_identity) and falls back to the bare identity when the member is absent, so the rule still REPORTS rather than clears; ninth warning shape under the block's existing declared-at-the-minor / constrained-at-the-major phasing; the contract CUT is not part of it.

#553 — amend the promoted scenario, do not broaden the resolver: canon states the per-document scope the frozen resolver enforces. Ids stay namespaced by their document; repository-wide uniqueness is not a rule.

Why one packet carries both

A ## MODIFIED Requirements block replaces a requirement wholesale. #553's ruled target — the scenario "The requirement reference resolves to more than one record" and the repository-scope clause in the six-conditions sentence — sits inside the requirement #511 must modify to rescope the fetch-identity condition. Two live blocks on one requirement cannot both survive: whichever archives second is the text canon keeps, and the first writer's edits vanish invisibly in both reviews. Both rulings are the same ratifier's, of the same day, over the same requirement, so folding them changes no authority, no scope and no content — only how many blocks write one requirement, and the number canon supports is one. The lane holding #553 stood down before authoring; its branch is deleted and issue #553 records this packet as its vehicle (comment 2026-09-03T14:51Z).

The two are kept apart everywhere a reader looks: .openspec.yaml records them separately, the ratification record quotes each under its own heading, design.md § 6 is #553's alone, and every task row in tasks.md is marked [#511], [#553] or [both].

What the change does

shared-authority-identity fired whenever two bindings declared different holder_refs and the same fetch_identity — comparing the identity as a bare string, with no member naming the directory that issued it. A principal name is unique only inside its issuing directory, so two tenants of one provider may each hold a principal called runtime_identity, and the only escape from the refusal was to rename one fetch identity in the record while the principal kept its real name in the provider. A refusal whose only escape is a lie is worse than the over-report it prevents.

  • The member. identity_namespace, described in the schema like every member beside it at this minor — no type, no pattern, no requiredness, no closure.
  • The comparison reads the PAIR where both sides declare a grammatical namespace, and falls back to the bare identity and still REPORTS where either is absent or malformed. An estate able to silence a real shared authority by omitting a member on one side would hold a rule it can turn off without writing anything false.
  • ONE predicate, two callers. Canon states the comparison once — the lift's third condition — and raises the named finding on it. The first draft rescoped only the finding, and was caught by execution: a two-tenant pair sharing a secret escaped the named fault correctly and was then refused by shared-secret-identity, sending a reader to split a secret instead of reading a namespace.
  • A ninth consumer-* code, consumer-identity-namespace-grammar, with a packaged probe — its own code rather than a widening of consumer-member-grammar because an unreadable namespace also un-scopes the comparison, and its deprecation window opens at its own minor, not at contract-v2.4.
  • Five fixtures in both directions, the clearing one first: two tenants / one name / two namespaces stays silent; one namespace on both sides reports; a namespace on one side only reports; a raw secret in the namespace is screened; and one warning probe.

Requirements MODIFIED, and the collision check

2 MODIFIED, 0 ADDED, both in credential-contracts, both copied VERBATIM from canon at origin/main and verified programmatically before a byte was edited:

  1. A credential binding declares the consuming system that holds it and the identity it fetches with — the member, the fallback reasoning, the naming decision against tenant/realm, the enumeration's ninth shape, +4 scenarios (12 in, 16 out).
  2. Two bindings on one secret are refused unless every pair declares distinct consumers, acknowledges the sharing, and names a requirement bound to the binding — add-binding-consumer-identity: fetch_identity is compared bare, so same-named principals in two tenants of one provider are a false shared-authority refusal with no field to escape it #511's rescope to fetch AUTHORITIES and +3 scenarios (12 in, 15 out), and Successor: cross-document requirement_ref ambiguity detection (the arm the frozen per-document resolver cannot see) #553's exactly two edits.

Requirement titles byte-identical; zero units lost on either block.

COLLISION CHECK — CLEAR, re-run against origin/main immediately before this PR. Two active changes hold credential-contracts deltas and neither holds either requirement: add-credential-escrow-checkout MODIFIES "Canonical credential record shapes"; add-requirement-ref-resolution-integrity holds two ADDED requirements. No Modified over marker is owed, checked against govern-sibling-added-modified-deltas rather than assumed: that form is reserved for a block whose requirement exists only as an ACTIVE sibling's ADDED or RENAMED TO: title, and both requirements here are promoted canon added by the archived add-binding-consumer-identity.

add-requirement-ref-resolution-integrity is cited and not edited — resolve_requirement, its ambiguous status and its tasks.md § 3.4 freeze all stand; its § 9.4 obligation is discharged by the AMEND branch § 9.4 itself names.

The cut

No contract tag is cut here — the ruling's own exclusion. No tag, no digest inventory, no version-headed contracts/CHANGELOG.md entry: a version heading is part of the cut in this repository's ritual, contract-v3.1 is being spent by PR #616 as this is written, and a half-cut is worse than an entry that arrives with its release. tasks.md § 5.3 prescribes the CHANGELOG entry verbatim so the cut invents nothing. The contracts/manifest.yaml row's sha256 DOES move here, forced by test_manifest_row_digest.py, which reds at the commit on any schema move that leaves the row behind.

Nothing narrows except one named screen

The comparison change is a subtraction — it can only make a reported pair go silent, and only when both bindings declare grammatical, different namespaces. Declaring the member only REMOVES a consumer-block-unknown-member warning. The one added refusal is baked-secret over the third free string, taken under add-binding-consumer-identity § 2.6's own precedent (a new free-string sink on the record kind whose invariant is "never bake a secret" is a gap, not a permission) and stated rather than slipped in.

Evidence

gate result
openspec validate add-consumer-identity-namespace --strict valid
openspec validate --all --strict 87 passed, 0 failed
validate-credential-contracts.py . self-test: 8 positive + 19 negative + 13 warning example(s) confirmed, 11 deprecation code(s) probed; 0 warning(s), 0 error(s) -> PASS
validate-manifest-digests.py OK contracts/manifest.yaml: 163 per-file digest(s) verify
pytest tests/credential_contracts tests/manifest_digests -q 247 passed (239 at the first head; +8 from the Copilot round and the truth table)
pytest tests/doc-health -q 1500 passed (487s)
pytest tests/factory_identity -q 6 passed, 74 skipped

doc-health, branch vs same-clock origin/main, both checkouts named openxFactory, both --as-of 2026-09-03. RE-MEASURED at the new baseline after #617 and #624 — AND THE ANSWER CHANGED.

critical error warning info total
baseline 6a39d2ab 6 4 39 12 61
branch ef57fdeb 6 5 39 15 65

THIS IS NO LONGER ZERO-NEW-ERROR, and I am not reporting it as though it were. The delta is four findings: one ERROR and three INFO.

The error is release-inventory-drift on docs/contract-versioning-policy.md — "bytes differ from the digest contract-v3.2 records". It was not a new error at the earlier reading and it is one now, for a reason about main rather than about this packet: main had itself drifted that file since contract-v3.0, so the finding sat on BOTH sides and this branch's edit added nothing. PR #624 then cut contract-v3.2 — the superseding release for a defective contract-v3.1 — which rebaselined the inventory and made main clean on that file. The same unchanged edit now raises it alone.

Gate 7.5 is UNTICKED rather than ticked with an excuse, and the finding is NOT hand-fixed. The family's own remedy line is "cut a release through the bundle realization order; never hand-edit an inventory or contract_bundle_version to make this comparison pass", and greening it by hand would make a published digest describe bytes nobody shipped. It is the CUT's to discharge (tasks.md § 5.3, § 5.4, § 8.1). add-binding-consumer-identity § 6.3 took the identical finding for the identical reason.

The three INFO: contracts/manifest.yaml's editorial-band drift against the same new inventory, and two modified-block-currency rows, one per MODIFIED block, class contested — the arm's own words being "a divergence this arm CANNOT distinguish from a deliberate rewording, and does not claim to". Both NAMED in _LEDGER_SUBJECTS, the second block's seven uncarried units split by ruling, five #511's and two #553's. Set difference taken in both directions: the branch removes nothing.

pytest tests/doc-health first ran 1 failed: test_every_carriage_ledger_finding_over_the_real_tree_is_named, the corpus-movement gate doing its job. Discharged exactly as its failure message prescribes — the two subjects NAMED in the same commit with the reason. No test added, removed, renamed or weakened; no assertion loosened. One pinned count moved, DEPRECATION_CODES 10 → 11, by name and with the reason beside it.

pytest-suite on f4a8fa87 reported SEVEN failures: six inherited (#620), ONE MINE — fixed in 742c329b. Stated in that order because the honest report is not "CI is inherited-red".

  • Six inherited: tests/factory_identity/test_mint_script.py, ModuleNotFoundError: cryptography — the job installs only requirements/hermes-runtime-contracts.lock; main carries them.
  • One mine: tests/sequenced_after/test_sweep.py::test_the_live_sweep_reproduces_the_AUTHORING_measurement. This packet adds an ACTIVE change with two ## MODIFIED Requirements blocks, so the corpus-sweep pins move. The gate was working; the fix is to move the pins with a dated note naming the cause, which is that file's own discipline. Recorded in tasks.md § 8.4.

Measured on both trees — main 19d00872 vs branch: change_ids 158 → 159, co_modified 109 → 110, sole_modifiers 49 → 49, active_co_modified 20 → 21, active_sole 12 → 12.

The mechanism is the opposite of the obvious prediction, and was measured rather than reasoned about afterwards. A MODIFIED block over a requirement whose only earlier writer was archived and SOLE normally raises co_modified by TWO and drops sole_modifiers by one. Here it rose by ONE and the sole set HELD, because add-binding-consumer-identity was already co-modified through a THIRD key it shares with add-notebook-hosting-credential-custody — credential-contracts' "Each consuming system reaches a shared operated identity through its own binding" — so it was never in the sole set and had nothing to leave. On main it writes four keys of which one is shared; here the same four of which three are shared, membership unchanged at both readings. The distinguishing question is not how many keys the newcomer shares but whether the earlier writer was already co-modified on some other key, and that is written into the pin's message. The two pins that did NOT move carry a HOLD note each — a pin that silently holds through a move that usually shifts it is indistinguishable from one nobody re-derived.

main moved under this branch mid-review: PR #616 merged the contract-v3.1 cut, which itself moved active_co_modified 21 → 20. The branch was caught up to 19d00872 before measuring. The catch-up is a MERGE, not a rebase — the rebase was done first and its push was refused by repository rule ("Cannot force-push to this branch"), so the branch was reset to the published head and merged instead; the sweep was re-measured on the merged tree and returns identically. The bundle figures the packet is indexed to were re-read with it: contract-v3.1 is now cut and published, so the next additive minor reads as contract-v3.2 — still deliberately unwritten.

SEQUENCING — DISCHARGED. #617 merged as 6a39d2ab and this branch was caught up to it (a MERGE; force-push stays refused). Every pin re-measured on the merged tree and on the new origin/main, never by arithmetic:

reading origin/main 6a39d2ab MERGED tree this packet's contribution
change_ids 159 (31 active + 128 archived) 160 (32 + 128) +1
co_modified 111 112 +1
sole_modifiers 48 48 —
active_co_modified 20 21 +1
active_sole 11 11 —

Pins now read 112 / 21 / 159 / 47 / 10. The two packets' moves are DISJOINT and that is measured, not assumed — #617 writes workflow-gate-contract and release-surface-integrity, this packet writes credential-contracts, so neither changes the other's membership. That is why the readings compose here; it is not a rule that they compose, and the merged numbers came from the merged tree. Both branches' MOVEMENT LOG entries are kept verbatim with a merge entry above each, which is that file's own protocol. sole_modifiers and active_sole carry #617's move alone: it flipped an archived sole modifier into the co-modified set, while this packet flipped nobody — the earlier writer of both its keys was already co-modified through a third key.

Canon re-verified after the merge BY SHA: openspec/specs/credential-contracts/spec.md is blob a688a463 on both 6a39d2ab and this branch — #617 promoted two other capabilities and did not touch this one — so both MODIFIED blocks still stand over canon as it now states it, all 24 scenario titles carried.

Bundle figures re-read a second time: contract-v3.1 was cut, then found DEFECTIVE and superseded by contract-v3.2 (#624). Two bundle moves under one unchanged packet — the argument for never writing the number. Next additive minor now reads contract-v3.3, still unwritten.

Rounds since opening

Codex: requested once, REFUSED on usage limits — the message is recorded verbatim in a PR comment and in tasks.md § 8.3, and no further request was made. Sourcery returned its standing private-repo upsell notice, which is not a review. Copilot did read it: 🟡 Changes recommended, three findings — two TAKEN (name the four screened sinks instead of leaving the fourth to arithmetic; re-wrap a run-on list line) and one REFUTED with its substantive half taken (sorting _consumers()'s keys is refused because no test reads WHICH binding an edit lands on, but the two tests that indexed _findings(doc)[0] now pin len(findings) == 1 first — a second finding arriving later would have changed what they assert about without failing them).

One further round was the author's own, prompted by the fallback being a rule about ABSENCE: test_the_authority_predicate_over_its_WHOLE_truth_table drives all eight rows — not declared, declared and ungrammatical, declared as null, both, neither, and the identity-differs control — each asserted symmetrically, because the predicate is called over combinations, which fixes an order, and a rule whose outcome depends on which binding was found first is not a rule. Exactly one row clears.

ONE BENCH READ THIS PACKET, NOT TWO, and that is stated rather than rounded up.

Observed and deliberately not repaired

MAJOR_RELEASE reads contract-v3.0 in scripts/validate-credential-contracts.py while docs/contract-versioning-policy.md has RESTATED that removal target to contract-v4.0, so every deprecation message the validator prints names a major already cut without the acts. Neither ruling caused it, it predates both, and repairing it would move all eleven messages under a packet nobody read for that purpose. Recorded as tasks.md § 2.8 (an unticked box with a reason) and proposal.md OQ-3, for its own act.

Closes #511
Closes #553

🤖 Generated with Claude Code

https://claude.ai/code/session_01RhXyJoZvtSmGcTdPVDKPoD

…ctory that issued it

Declares `consumer.identity_namespace` and rescopes `shared-authority-identity`
from a bare string to the pair `(identity_namespace, fetch_identity)`. The
finding refused two tenants of one provider whose principals share a name, and
the only escape was to rename a fetch identity in the record while the principal
kept its real name in the provider — a refusal whose only escape is a lie.

The fallback REPORTS rather than clears. Where either side declares no namespace,
or one outside the identifier grammar, the comparison returns to the bare
identity: an estate able to silence a real shared authority by omitting a member
on one side would hold a rule it can turn off without writing anything false.

One predicate serves both the named finding and the lift's third condition, canon
stating the comparison once. The first draft rescoped only the finding and was
caught by execution — a two-tenant pair sharing a secret escaped the named fault
and was refused by `shared-secret-identity` instead, sending a reader to split a
secret rather than read a namespace.

Carries openxFactory #553's ruling in the same MODIFIED block, because a MODIFIED
block replaces a requirement wholesale and both rulings write the same one: the
ambiguity scenario narrows to the per-document scope `resolve_requirement`
enforces, and the six-conditions sentence with it. Exactly two edits; the
resolver, its `ambiguous` verdict and § 3.4's freeze are cited and not edited.

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RhXyJoZvtSmGcTdPVDKPoD
Copilot AI lite review requested due to automatic review settings September 3, 2026 20:19

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

🟡 Changes recommended

There are a few correctness/quality issues in updated documentation and tests (e.g., inconsistent “three vs four” sink wording and a wrapped bullet run-on) that should be corrected before merge.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the credential-contracts consumer identity model by introducing an optional consumer.identity_namespace and rescoping the shared-authority comparison to treat (identity_namespace, fetch_identity) as the authority when both namespaces are present and grammatical, while preserving “report rather than clear” fallback behavior. It also carries the ruled #553 amendment that narrows requirement-ref ambiguity semantics to the per-document scope the frozen resolver actually enforces.

Changes:

  • Add optional consumer.identity_namespace (schema-described at minor, grammar/warning + major projection support) and use it in a shared predicate for both the shared-authority-identity finding and the lift’s condition 3.
  • Introduce the ninth consumer-* deprecation code (consumer-identity-namespace-grammar), expand the baked-secret screen to include the new free-string sink, and add fixtures/tests covering both clearing and reporting directions.
  • Amend the promoted scenario text for “requirement reference resolves to more than one record” to per-document scope (no resolver broadening), with supporting OpenSpec packet artifacts and ledger updates.
File summaries
File Description
tests/doc-health/test_modified_block_currency_self_gate.py Registers the two new modified-block-currency ledger subjects and updates the population message.
tests/credential_contracts/test_requirement_ref_resolution.py Updates the deprecation-code count pin (10 → 11) while keeping the “last two are requirement-ref codes” assertion intact.
tests/credential_contracts/test_dispatch_credential_contract.py Adds the new positive/negative/warning fixtures to the self-test corpus inventories and updates expected totals.
tests/credential_contracts/test_consumer_identity_refusals.py Adds a focused test section validating namespace-scoped authority comparison behavior, messaging, and screens.
tests/credential_contracts/major_projection.py Adds identity_namespace to the major projection (patterned, optional).
scripts/validate-credential-contracts.py Implements namespace parsing, shared predicate for authority comparison, new warning code, and expands baked-secret screening to the new sink.
README.md Adds/updates the Active changes index entry documenting the packet scope (#511 + #553) and its operational constraints (no cut).
openspec/changes/add-consumer-identity-namespace/tasks.md Introduces the packet’s task ledger with execution notes, evidence, and explicit non-scope items.
openspec/changes/add-consumer-identity-namespace/specs/credential-contracts/spec.md Provides the MODIFIED requirement text implementing #511 and the two ruled #553 amendments in canon prose.
openspec/changes/add-consumer-identity-namespace/review/ratification-2026-09-03.md Records the ratification ruling and what it does/doesn’t cover.
openspec/changes/add-consumer-identity-namespace/proposal.md Captures the proposal, scope, and authoring decisions including phasing and non-scope items.
openspec/changes/add-consumer-identity-namespace/design.md Documents key design decisions (naming, grammar reuse, single predicate, fallback semantics, screen timing) and #553 rationale.
openspec/changes/add-consumer-identity-namespace/.openspec.yaml Declares the change origin, approvals, related packets, and rationale for the folded vehicle.
examples/credential-contracts/warning/consumer-identity-namespace-grammar.yaml Adds the packaged warning probe fixture for the new deprecation code.
examples/credential-contracts/two-tenant-identity-namespace.binding-template.example.yaml Adds the packaged positive fixture for the “clearing direction” (two namespaces, same name).
examples/credential-contracts/negative/consumer-shared-authority-same-namespace.yaml Adds negative fixture proving same-namespace still reports shared-authority.
examples/credential-contracts/negative/consumer-shared-authority-one-sided-namespace.yaml Adds negative fixture proving one-sided namespace falls back and still reports.
examples/credential-contracts/negative/consumer-identity-namespace-raw-secret.yaml Adds negative fixture proving baked-secret screens the new free-string sink.
docs/domain-factory-starter-pack.md Updates scaffold guidance to mention declaring identity_namespace where applicable.
docs/credential-access-model.md Updates the worked example and explains identity_namespace semantics and fallback behavior.
docs/contract-versioning-policy.md Updates deprecation policy text/table to account for the ninth consumer-* code and its own minor window.
contracts/schemas/xfactory-credential-contracts.schema.yaml Adds described-only identity_namespace member documentation and updates warning-code count wording.
contracts/manifest.yaml Updates the schema digest and consumption_rule prose to reflect the new member and comparison semantics.
Review details
  • Files reviewed: 23/23 changed files
  • Comments generated: 3
  • 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 +650 to +651
def _consumers(doc):
return [b["consumer"] for b in doc["credential_bindings"].values()]
Comment thread docs/credential-access-model.md Outdated
Comment on lines +233 to +237
not include the raw secret value, and it must not include one in
`consumer.holder_ref` or `consumer.fetch_identity` either — those two members
are free strings on the record kind whose invariant is "never bake a secret",
so the same discipline governs all three.
`consumer.holder_ref`, `consumer.fetch_identity` or
`consumer.identity_namespace` either — those three members are free strings on
the record kind whose invariant is "never bake a secret", so the same discipline
governs all four.
Comment on lines +825 to 829
rather than keeping it beside live values; where the provider issues that
identity out of a named directory, account or tenant, the instantiator also
declares `identity_namespace`, which is optional and is what keeps two
tenants' identically-named principals from reading as one authority. The exemption is the TOKEN and
never the `*.template.yaml` filename — a filename is author-chosen and
… arity before indexing a finding

Two findings taken. `docs/credential-access-model.md` said "those three members
… governs all four" and left the fourth to arithmetic; a reviewer misread it,
which is proof enough that naming the four beats counting them. The starter
pack's inserted clause left a run-on line and is re-wrapped.

One refuted with its substantive half taken. Sorting `_consumers()`'s keys is
refused — no test in that section reads WHICH binding an edit lands on, every
assertion being symmetric over the pair, so sorting would fix an order the tests
do not read while implying they do. The real fragility is that two tests index
`_findings(doc)[0]` without pinning the arity, so a second finding arriving
later would change what they assert about without failing them. Both now assert
one finding first, and `_consumers` says which property is load-bearing.

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RhXyJoZvtSmGcTdPVDKPoD
Copilot AI review requested due to automatic review settings September 3, 2026 20:31
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-smalls

Codex: REQUESTED ONCE, REFUSED. Recorded verbatim rather than summarised, and no further request will be made:

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.

Sourcery returned its standing private-repo upsell notice, which is not a review.

Copilot round one — 🟡 Changes recommended, three findings. Two taken, one refuted with its substantive half taken. Head e2fa9102.

  1. TAKEN — docs/credential-access-model.md said "those three members … governs all four", leaving the fourth sink to arithmetic. The count was right and the sentence was still misreadable, which the review proved by misreading it. Repaired by naming all four — secret_ref plus the three consumer: members — rather than counting them.
  2. TAKEN — docs/domain-factory-starter-pack.md: the inserted clause left a run-on line breaking the list's wrapping. Re-wrapped.
  3. REFUTED, substantive half TAKEN — sorting _consumers()'s binding keys is refused: no test in that section reads WHICH binding an edit lands on, every assertion being symmetric over the pair because the fault is a property of the pair, so sorting would fix an order the tests do not read while implying they do. The real fragility underneath is different and is taken: two tests read _findings(doc)[0] without pinning the arity, so a second finding arriving later would change what they assert about without failing them. Both now assert len(findings) == 1 first, and _consumers carries a docstring saying which property is load-bearing and which is not.

Re-run after the round: pytest tests/credential_contracts tests/manifest_digests -q 239 passed; openspec validate add-consumer-identity-namespace --strict valid. The round is recorded in the packet itself at tasks.md § 8.3, including the Codex refusal verbatim and the statement that one bench read this packet, not two.

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.

🟡 Changes recommended

The validator’s one-sided fallback message does not currently include the readable namespace value, which conflicts with the updated spec’s requirement that reports name the namespace when one is present.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 23/23 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment on lines +354 to +359
if (ns_a is None) == (ns_b is None):
return ""
return (". Exactly one of these bindings declares an identity_namespace this check could "
"READ, so the comparison fell back to the bare fetch identity rather than clearing; "
"if these are two directories' identically-named principals, declare the namespace "
"on BOTH bindings — a value outside the identifier grammar is not read as one")
Comment on lines +713 to +715
assert len(findings) == 1
assert "identity_namespace" in findings[0]
assert "BOTH bindings" in findings[0]
…erted symmetrically

The fallback is a rule about ABSENCE, and a rule about absence is only as good
as its enumeration of the ways a value can be missing: not declared, declared
and ungrammatical, declared as null. The tests covered the first and left the
other two to a reader's confidence.

Exactly one row clears — both sides declaring a grammatical namespace and the
two differing — and the other seven fall back to the bare identity and report.
Symmetry is asserted rather than assumed: the predicate is called over
`combinations`, which fixes an order, and a rule whose outcome depends on which
binding was found first is not a rule.

Also re-measures doc-health on the Copilot-round head rather than carrying the
first figures forward: same 6/6/39/16, same three-finding info delta.

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RhXyJoZvtSmGcTdPVDKPoD
Copilot AI review requested due to automatic review settings September 3, 2026 20:34

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 internally consistent across schema/validator/spec/docs, and the new behavior is extensively evidenced via packaged fixtures plus targeted unit tests (including explicit fallback and symmetry coverage).

Review details
  • Files reviewed: 23/23 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-smalls

CI status at head f4a8fa87 — five of six checks GREEN:

check result
merge-master-approval pass
openreposhape-pin pass
signed-execution-chain-gate pass
wallet-validation pass
copilot-pull-request-reviewer pass (re-review after the round below)
pytest-suite still in_progress — run 33803104943, queued 20:35:01Z, no run-level update since 20:36:20Z and now well past the workflow's own measured 15m25s. Reads as a stalled runner rather than a failing suite; nothing has been reported.

The expected outcome is recorded in advance so it is not read as a post-hoc excuse. main is RED at ea117d4e with six ModuleNotFoundError: cryptography failures in tests/factory_identity/test_mint_script.py — openxFactory #620, the pytest-suite job installing only requirements/hermes-runtime-contracts.lock. This branch inherits exactly those six and causes none of them: they pass locally here (pytest tests/factory_identity -q → 6 passed, 74 skipped) because the local environment carries the dependency, which is what identifies the failure as the job's and not the code's. If and when the run reports, the failing set must be checked against exactly that file before this claim is relied on.

Locally green on this head: openspec validate --strict and --all --strict (87 passed), validate-credential-contracts.py self-test (8 positive + 19 negative + 13 warning, 11 codes probed), validate-manifest-digests.py (163/163), pytest tests/credential_contracts tests/manifest_digests (247 passed), pytest tests/doc-health (1500 passed), and doc-health re-measured on this head: zero new critical/error/warning, three new INFO.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-smalls

CORRECTION to the comment above — pytest-suite is NOT stalled, and the claim that it was is withdrawn.

I wrote that run 33803104943 was "well past the workflow's own measured 15m25s" and "reads as a stalled runner". That was wrong, and it was wrong because I misread elapsed time: my waits were backgrounded and returned sooner than I assumed, so I inferred an hour had passed when it had not. Measured directly at 20:42Z against a 20:36:19Z start, the job is six minutes in and progressing normally — step 12 of 18, Run python3 -m pytest tests/ -q -m "not postgres", which is the suite itself. The frozen updatedAt I read as evidence of a stall is just the run-level timestamp, which does not tick per step.

Nothing else in that comment is affected: the five other checks are green, and the local evidence stands as posted. The #620 inherited-red note there was written as a conditional and stays conditional — it is a prediction, not a result, and it must be checked against the actual failing set if and when the run reports. I am waiting for the real conclusion and will post it either way.

Recording the correction rather than editing the earlier comment, so the mistake and its cause stay legible.

brettheap and others added 3 commits September 3, 2026 17:02
…pace

A catch-up merge rather than a rebase: force-push is refused by repository rule
on this branch, and the earlier heads are already published and reviewed.

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RhXyJoZvtSmGcTdPVDKPoD
…t held

CI on f4a8fa8 reported seven failures; six were the inherited #620 set and the
seventh was mine — the live sequenced-after sweep, whose pins this packet moves
by adding an active change with two MODIFIED blocks.

Measured on both trees after rebasing onto current main, because #616 landed the
contract-v3.1 cut underneath this branch and had itself moved
active_co_modified 21 -> 20; pinning against the stale base would have produced
numbers that were wrong on arrival. main 19d0087 reads 158/109/49/20/12;
this branch reads 159/110/49/21/12.

The mechanism is the opposite of the obvious prediction, so it is written into
the pin rather than left to be re-derived. A MODIFIED block over a requirement
whose only earlier writer was archived and sole normally raises co_modified by
TWO and drops sole_modifiers by one. Here it raised by one and the sole set held,
because add-binding-consumer-identity was ALREADY co-modified through a third key
it shares with add-notebook-hosting-credential-custody, so it was never in the
sole set and had nothing to leave. The two pins that did not move carry a HOLD
note each: a pin that silently holds through a move that usually shifts it is
indistinguishable from one nobody re-derived.

Also re-reads the bundle figures the packet is indexed to. contract-v3.1 is now
CUT and published, so the next additive minor re-reads as contract-v3.2 — and is
still not written down, for the same reason it was not written before.

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RhXyJoZvtSmGcTdPVDKPoD
…ule refused

The rebase was done first and its push was refused — "Cannot force-push to this
branch". The earlier heads are published and reviewed, so rewriting them is both
forbidden and wrong. The branch was reset to the published head and took an
ordinary catch-up merge instead, and the sweep was re-measured on the MERGED
tree rather than carried over: identical at 159 / 110 / 49 / 21 / 12.

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RhXyJoZvtSmGcTdPVDKPoD
Copilot AI review requested due to automatic review settings September 3, 2026 21:03
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-smalls

The seventh failure was MINE, and it is fixed. Head 36826e5c.

CI on f4a8fa87 reported seven failures. Six are the inherited #620 set (tests/factory_identity/test_mint_script.py, ModuleNotFoundError: cryptography). The seventh was this packet's own — tests/sequenced_after/test_sweep.py::test_the_live_sweep_reproduces_the_AUTHORING_measurement — and I am naming it separately rather than letting it shelter under the inherited count.

Why it fired: this packet adds an ACTIVE change carrying two ## MODIFIED Requirements blocks, so it joins the co-modified population and the corpus-sweep pins move. The gate was working. The repair is that file's own stated discipline — move the pins with a dated note naming the cause, in the same commit.

Measured on both trees, main 19d00872 vs this branch:

reading main branch move
change_ids 158 (32a+126ar) 159 (33+126) +1
co_modified 109 110 +1
sole_modifiers 49 49 —
active_co_modified 20 21 +1
active_sole 12 12 —

The mechanism is the opposite of the obvious prediction, and it was measured rather than reasoned about after the fact. A MODIFIED block over a requirement whose only earlier writer was archived and SOLE normally raises co_modified by TWO and drops sole_modifiers by one — the rise-of-two shape #560 produced. It did not happen here. add-binding-consumer-identity was already co-modified before this packet existed, through a THIRD key it shares with add-notebook-hosting-credential-custody: credential-contracts' "Each consuming system reaches a shared operated identity through its own binding". It was never in the sole set, so it had nothing to leave. On main it writes four requirement keys of which ONE is shared; on this branch the same four of which THREE are shared, membership unchanged at both readings. The distinguishing question is not how many keys the newcomer shares but whether the earlier writer was already co-modified on some other key — written into the pin's own message, because the next author to hit this will reach for the rise-of-two shape first. The two pins that did NOT move carry a HOLD note each.

Two things moved under this branch and both are handled. PR #616 merged the contract-v3.1 cut, itself moving active_co_modified 21 → 20, so the branch was caught up to 19d00872 before measuring — pinning against the stale base would have produced numbers wrong on arrival. The catch-up is a MERGE, not a rebase: the rebase was done first and its push was refused by repository rule ("Cannot force-push to this branch"); the published heads are already reviewed, so they were left alone and origin/main was merged in instead. The sweep was re-measured on the merged tree and returns identically. The bundle figures were re-read with it — contract-v3.1 is cut and published, so the next additive minor now reads contract-v3.2, still deliberately unwritten.

A re-measure is OWED and is tracked unticked (tasks.md § 8.4d): sibling PR #617 moves these same pins and is expected to land first. These readings are main + this packet ALONE, and two packets moving one pin do not compose by addition.

Green on the merged tree: pytest tests/sequenced_after 118 passed; openspec validate --all --strict 87 passed; manifest digests 163/163; pytest tests/credential_contracts tests/manifest_digests 247 passed; validator self-test unchanged.

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 well-scoped, consistently implemented across schema/validator/tests/fixtures, and I only found a minor internal-comment/code-label mismatch.

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

f"both bindings declare holder_ref {holder_a!r} — one system wearing two hats")

# 3. fetch identities differ, and are identities
# 3. fetch AUTHORITIES differ, and the identities are identities
brettheap and others added 2 commits September 3, 2026 19:07
…onsumer-identity-namespace

A catch-up MERGE, not a rebase: force-push stays refused by repository rule on
this branch and the earlier heads are published and reviewed.

Two conflicts, both resolved by keeping what each side owns.

README "OpenSpec Records": my Active row kept, and main's removal of the
update-standards-body-current-publications row taken — #615 archived it.

tests/sequenced_after/test_sweep.py: BOTH branches' MOVEMENT LOG entries kept
VERBATIM with a merge entry above each, which is that file's own protocol. Every
pin RE-MEASURED on the merged tree and on the new origin/main, never by
arithmetic. main 6a39d2a reads 159/111/48/20/11; the merged tree reads
160/112/48/21/11, so this packet contributes +1 to change_ids, co_modified and
active_co_modified and nothing to either sole reading.

The two packets' moves are DISJOINT and that is measured rather than assumed:
#617 writes workflow-gate-contract and release-surface-integrity, this packet
writes credential-contracts, so neither changes the other's membership. That is
WHY the readings compose here; it is not a rule that they compose.

sole_modifiers and active_sole carry #617's move alone. It flipped an archived
sole modifier into the co-modified set; this packet flipped nobody, the earlier
writer of both its keys being already co-modified through a third key.

Canon re-verified after the merge BY SHA: credential-contracts/spec.md is blob
a688a46 on both trees, so both MODIFIED blocks still stand over canon as canon
now states it, all 24 scenario titles carried.

Bundle figures re-read a second time: contract-v3.1 was cut, then found
DEFECTIVE and SUPERSEDED by contract-v3.2 (#624). Two bundle moves under one
unchanged packet, which is the argument for never writing the number.

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RhXyJoZvtSmGcTdPVDKPoD
…-new-error

Re-measured against origin/main 6a39d2a after #617 and #624. The answer
changed, and the change is a fact about main rather than about this packet.

While main was itself drifting docs/contract-versioning-policy.md since
contract-v3.0, this branch's edit to that file added no finding — it sat on both
sides. PR #624 then cut contract-v3.2, the superseding release for a defective
contract-v3.1, which rebaselined the inventory and made main clean. The same
unchanged edit now raises a NEW ERROR on its own.

Baseline 6a39d2a reads 6/4/39/12; the branch reads 6/5/39/15. The delta is one
error and three info. The error is release-inventory-drift and it is the CUT's
to discharge: the family's own remedy line forbids hand-editing an inventory to
make this comparison pass, and greening it would make a published digest
describe bytes nobody shipped.

Gate 7.5 is UNTICKED rather than ticked with an excuse, which is what
add-binding-consumer-identity 6.3 did with the identical finding.

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RhXyJoZvtSmGcTdPVDKPoD
Copilot AI review requested due to automatic review settings September 3, 2026 23:17

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.

🔵 Needs a closer look

The validator’s one-sided fallback finding text does not currently “name the namespace where one is present” as required by the updated credential-contracts canon, so the implementation and spec are out of alignment.

Review details

Suppressed comments (1)

scripts/validate-credential-contracts.py:359

  • credential-contracts canon requires the shared-authority report to name the namespace where one is present (including the one-sided fallback), but the one-sided case uses _namespace_hint(...) without including the actual namespace value (only guidance). As a result, a one-sided namespace declaration produces a finding that mentions identity_namespace but doesn’t name it.
        return ""
    return (". Exactly one of these bindings declares an identity_namespace this check could "
            "READ, so the comparison fell back to the bare fetch identity rather than clearing; "
            "if these are two directories' identically-named principals, declare the namespace "
            "on BOTH bindings — a value outside the identifier grammar is not read as one")
  • Files reviewed: 24/24 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

RULING for lane openxfactory-smalls PR #622 (head d5856c25): Brett Heap, 2026-09-03 ~22:0xZ, "merge #622 when it's green, then #619". Caught up to main 6a39d2ab (after #617) by merge; all five checks green; failing set EMPTY; canon for credential-contracts verified unchanged by sha across the catch-up; sequenced_after pins re-measured on the merged tree. Admin-merged on his word — PRs opened as brettheap cannot be self-approved. Codex: quota-refused, never reviewed. Copilot: three findings, two taken, one refuted with its substantive half taken; re-review clean.

Carried in the open, not hidden: this landing adds ONE doc-health ERROR to main — release-inventory-drift on docs/contract-versioning-policy.md, because PR #624's contract-v3.2 cut rebaselined the inventory after this branch edited that file. The family's remedy line forbids hand-editing an inventory to green it; the NEXT CONTRACT CUT (v3.3, which this packet's schema change owes anyway) discharges it. Precedent: add-binding-consumer-identity § 6.3 took the identical finding. Tasks § 7.5 is left unticked on purpose. Closes #511 and #553.

Lane: openxfactory-smalls

@brettheap
brettheap merged commit 95c2cf6 into main Sep 4, 2026
6 checks passed
@brettheap
brettheap deleted the change/add-consumer-identity-namespace branch September 4, 2026 00:38
brettheap added a commit that referenced this pull request Sep 4, 2026
… log entry owed

Same shape, same resolution. `tests/sequenced_after/test_sweep.py`: branch side
for the assertion block. Main's MOVEMENT LOG additions merged CLEANLY and are
retained VERBATIM -- verified line by line against `origin/main`'s docstring,
721 lines: ZERO missing. `README.md`: main's side taken WHOLE and this packet's
row re-inserted at the head of "Active changes:", so #622's own new row survives
directly beneath it.

THE LEDGER WAS RE-DERIVED MECHANICALLY AND EXACTLY ONE ROW WAS ADDED:

  + add-consumer-identity-namespace: {state: active, class: co-modifier, ...}

NO PARTNER FLIPPED, and that is the difference from the previous merge worth
naming. The newcomer is a CO-MODIFIER, so it shares a requirement key with an
earlier writer -- but no existing row moved, which says the earlier writer was
ALREADY co-modified. A rise with no accompanying fall in the sole set is the
one-step shape; the rise-by-two shape always drags a sole row with it. So
`co_modified` rises 111 -> 112 by the newcomer alone and `sole_modifiers` holds
at 49.

NO MOVEMENT LOG ENTRY IS OWED. The row diff states the whole move -- one change
entered the corpus as an active co-modifier -- and the rule reserves an entry
for what the diff does NOT say. The previous merge earned one because a partner
flipped for a reason the two rows could not show; this one earns none, and the
contrast is the rule working rather than an inconsistency.

The seeding entry carries the new reading with its sha:

  origin/main 6a39d2a (superseded) : 31 active + 128 archived = 159, 111, 48, 20/11, 1 decl
  origin/main 95c2cf6             : 32 active + 128 archived = 160, 112, 48, 21/11, 1 decl
  this branch merged with 95c2cf6 : 33 active + 128 archived = 161, 112, 49, 21/12, 2 decl

Gates on the merged tree: `pytest tests/sequenced_after` 158 passed;
`--ledger-diff` clean on 161 rows.

Refs #618
Lane: openxfactory-max001

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv
Lane: openxfactory-max001
brettheap added a commit that referenced this pull request Sep 4, 2026
…cords re-derived pre-capture (88/88)

RATIFIED 2026-09-04 by Brett Heap (openxFactory operator authority), in session,
verbatim: "ratify 623", given after a presentation that offered ratify-then-land
and that carried `design.md` D1 as the reading most worth a veto. D1 WAS NOT
VETOED.

WHAT THE ACT SETTLED, AND WHAT IT DID NOT. The 2026-09-03 ruling ("do 1 and 3,
keep the log in one place") ADMITTED the packet and settled its SHAPE. This is
the separate act on its CONTENT. It does NOT authorize archive: `code_surface`
is non-empty and `target_release: implemented`, so under `release-realization`'s
realization archive gate the packet archives on MERGED-PLUS-GREEN, measured
after landing and never assumed.

THE DEPARTURE FROM #618 IS RATIFIED KNOWINGLY. That issue's shape paragraph
specified a `## MODIFIED Requirements` block making both changes co-modifiers
with the `sequenced_after:` declaration OWED. This packet delivers ALL-ADDED,
both rows `class: sole`, the declaration ELECTIVE. The reading is D1: the
measured-bound requirement's sentences bind that a measurement exists, is
recorded and is re-runnable, and NONE of them binds the mechanism by which the
recorded measurement is pinned in a test. The departure was written into D1
BEFORE the act so that ratifying would ratify it knowingly rather than by
omission.

RATIFICATION MOVES NO LEDGER ROW, and that is a property rather than a
coincidence: a ratified ALL-ADDED sole modifier keeps its `state: active` and
its `class: sole`, because ratification changes the document's standing and not
what the sweep reads about it. CONFIRMED RATHER THAN ASSUMED -- the ledger is
byte-identical across this commit and `--ledger-diff` re-run after it reads
"consistent with the corpus (161 rows)".

TWO RECORDS, CAPTURED AT MERGE AND RE-DERIVED PRE-CAPTURE.
`review/ratification-2026-09-04.md` carries the word, the ratified baseline (the
packet's five files and the ONE ADDED requirement in `release-realization`), the
#618 departure, the review history and the four merges as live evidence.
`review/verification-2026-09-04.md` carries the runs: `openspec validate
--strict` valid and `--all --strict` 88/88 (88, not 87 -- #622 added an active
change in the merge this commit sits on); `validate-sequenced-after.py .` passed
(33 active, 2 declaring); `--ledger-diff` clean on 161 rows; `pytest
tests/sequenced_after` 158 passed; doc-health at EXACT PARITY with `origin/main`
at `95c2cf6a`, no new finding of any severity and none suppressed.

ONE FINDING WAS RAISED AND FIXED BEFORE CAPTURE, and it is recorded in the
verification file rather than quietly removed: the first draft carried a
`Ratified:` line in BOTH the front matter and the body, which
`ratified-provenance` reports CRITICAL -- "carries 2 ratification citation
lines, not one", the rule counting both spellings as one total per document. The
body line was removed; the front matter carries the single citation, which is
where `create-medxchart-overlay-boundary` carries its own.

Also updated: `tasks.md` 0.1 ticked with the word and date; the README
"OpenSpec Records" row to RATIFIED wording with the departure named; the
`test_sweep.py` docstring from "`Status: draft` until ratified" to the
ratification citation; `design.md` to `Status: ratified`; and the
`.openspec.yaml` origin field re-phrased to say what the admission WAS rather
than that the packet is currently unratified.

Refs #618
Lane: openxfactory-max001

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv
Lane: openxfactory-max001
brettheap added a commit that referenced this pull request Sep 4, 2026
Catches PR #619 up to main after amend-owner-layer-severity (#617,
archived) and add-consumer-identity-namespace (#622, active) both
landed on the same bookkeeping files this packet touches.

Conflicts resolved:
- README.md "OpenSpec Records": kept every row from both sides; this
  packet's row stays under Active, #622's row joins it under Active,
  and the stale Active copy of update-standards-body-current-publications
  (already correctly archived on main, via #615) is dropped in favor of
  its one archived entry.
- tests/doc-health/test_modified_block_currency_self_gate.py
  `_LEDGER_SUBJECTS` and its population-count narrative: kept both
  packets' rows (this packet's two, #622's two already present
  unconflicted); #617's rows never existed as live tuples (added and
  retired within its own PR), so only its retrospective comment
  carries forward, per origin/main.
- tests/sequenced_after/test_sweep.py: kept both branches' MOVEMENT LOG
  entries verbatim and added a merge entry. Every pin re-measured by
  `scripts/validate-sequenced-after.py . --sweep` on the merged tree
  and on an origin/main baseline, and confirmed by exclusion (removing
  this packet's directory reproduces main's reading exactly):
  change_ids 160 -> 161, co_modified 112 -> 113,
  active_co_modified 21 -> 22, sole_modifiers and active_sole unmoved
  at 48 / 11.

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_014FBRdVuA6fmSEey9WQNAB7
brettheap added a commit that referenced this pull request Sep 4, 2026
…-proposal-origin

Catches PR #619 up to main after add-per-change-sweep-ledger (#623)
landed, replacing the docstring/movement-log scalar pins in
tests/sequenced_after/test_sweep.py with a per-change-row ledger
(tests/sequenced_after/corpus-ledger.yaml). No design change to this
packet.

Conflicts resolved:
- tests/sequenced_after/test_sweep.py: took origin/main's version
  wholesale, per #623's own design — the scalar-pin mechanism this
  packet's prior merge hand-reconciled no longer exists.
- README.md "OpenSpec Records": kept every row from both sides (this
  packet's row, #623's row, #622's row already present unconflicted)
  in additive order, no duplicates.
- tests/doc-health/test_modified_block_currency_self_gate.py did not
  conflict this round (untouched by #623); this packet's prior
  resolution (both its own and #622's carriage-ledger rows) survives
  unchanged.

Added this packet's row to tests/sequenced_after/corpus-ledger.yaml
via `python3 scripts/validate-sequenced-after.py . --seed-ledger
--moved-by '#619' --moved-on 2026-09-03`, which stamped exactly one
new row (add-drafted-proposal-origin: active, co-modifier, declares
absent, no prose header) and left every other row's provenance
untouched. `--ledger-diff` now reads clean (162 rows): change_ids
161 -> 162, co_modified 112 -> 113, active_co_modified 21 -> 22,
sole_modifiers and active_sole unmoved at 49 / 12 (relative to
origin/main with #623 already landed).

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_014FBRdVuA6fmSEey9WQNAB7
@brettheap

Copy link
Copy Markdown
Contributor Author

CLAIMED — lane openxfactory-smalls, session 014FBRdVuA6fmSEey9WQNAB7, 2026-09-04T01:55Z, for the contract-v3.3 cut that realizes this packet's schema change and discharges the release-inventory-drift error this landing left on docs/contract-versioning-policy.md. Brett Heap, 2026-09-04: "file the two candidate issues and cut v3.3". Sibling check before claiming: no PR, branch or issue names contract-v3.3; the only cut branches on origin are chore/cut-contract-v3.2 (landed as #624) and chore/cut-release-archive-project-repo-schema. Recipe: PR #624 and docs/contract-versioning-policy.md § Bundle Realization Order, with step 4 (re-verify at the squash commit before tagging) performed this time. Stale after 4h with no PR.

Lane: openxfactory-smalls

brettheap added a commit that referenced this pull request Sep 4, 2026
…gged contract-v3.3

Merge origin/main and rework this branch from a rival cut into an AMENDMENT of
the release main already carries.

WHAT HAPPENED. Two lanes measured the same free bundle number within the same
hour. PR #628 (lane team02c, add-clearing-dispatch-boundary) landed first at
0d5e1ba and ALLOCATED contract-v3.3: main declares it, carries a
## contract-v3.3 CHANGELOG entry, ships contracts/releases/contract-v3.3.digests.yaml
and wires FEATURE_SUCCESSOR_7 in the release-boundary test. By merge order the
number is #628's, which is exactly what allocating late means. This branch's own
cut is withdrawn.

THE GAP THE FOLD CLOSES. #628's branch point is AFTER #622's landing 95c2cf6,
so add-consumer-identity-namespace's schema, validator and documentation bytes
are ALREADY inside the contract-v3.3 tree while that entry names none of them.
#622's ruling excluded the cut in terms and its tasks.md 5.3 prescribed the
changelog entry a cut realizing it must carry. Spending contract-v3.4 on a
release whose bytes are already here would make the changelog lie about which
bundle carries them.

WHAT THIS COMMIT DOES. contracts/manifest.yaml, contracts/releases/contract-v3.3.digests.yaml
and tests/intent-compliance/test_release_boundary.py are taken from origin/main
WHOLESALE — the first two byte-identical, the boundary test byte-identical
because #628 already wired FEATURE_SUCCESSOR_7 = "contract-v3.3" into the enum
and both match arms, so this branch's duplicate is DROPPED rather than merged.
contracts/CHANGELOG.md is main's, plus ONE added block inside the existing
## contract-v3.3 section: "### Also realized in this cut:
add-consumer-identity-namespace (#622)", quoting 5.3's prescription VERBATIM and
discharging it clause by clause. Not one word of #628's text is altered — the
diff is 123 insertions and 0 deletions against their entry.

LAWFUL BECAUSE THE TAG IS NOT PUSHED. docs/contract-versioning-policy.md
§ Bundle Realization Order step 4 makes a promoted commit a NEW candidate every
gate reruns against; § Immutable Tag Correction binds only a PUBLISHED tag.
Lane team02c is holding the contract-v3.3 tag by agreement until this lands.

MEASURED. Inventory membership 283 rows in main's v3.3 and in this amendment,
zero added and zero removed; exactly ONE digest moves — contracts/CHANGELOG.md,
this amendment's only content change. The inventory is rebuilt LAST at this tree
by the repository's own builder. release-inventory-drift is at ZERO findings on
both the origin/main 21190cf baseline and this tip: #628's cut re-baselined the
inventory over #622's already-landed bytes, so 5.4's two findings are discharged
by a CUT and not by a hand-edit.

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xf699RDAfTs5gnSr7igJ2v
brettheap added a commit that referenced this pull request Sep 4, 2026
… movement

Baseline origin/main 21190cf and this tip both report 6 critical, 4 error,
40 warning, 16 info — 66 machine rows each, byte-identical finding sets in both
directions, and release-inventory-drift at ZERO on both sides because #628's cut
re-baselined the inventory over #622's already-landed bytes.

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xf699RDAfTs5gnSr7igJ2v
brettheap added a commit that referenced this pull request Sep 4, 2026
…e's prescribed entry into the release that already ships its bytes (#622) (#636)

* Cut contract-v3.3: consumer.identity_namespace is declared, and the shared-authority comparison reads the pair

Realizes add-consumer-identity-namespace (merged as #622, 95c2cf6), whose
ratification excluded the cut in terms and whose tasks.md 5.3 prescribed this
changelog entry so the cutting session invents nothing. Cut on the convener's
word, Brett Heap, 2026-09-04, verbatim: "cut v3.3".

MEASURED SURFACE. Intersecting `git diff --name-only contract-v3.2 HEAD` (71
paths) with the 283 registered members of contract-v3.2.digests.yaml leaves
EXACTLY TWO: contracts/manifest.yaml and docs/contract-versioning-policy.md.
`git log contract-v3.2..HEAD` over each names only 95c2cf6 (#622), so both are
that packet's own. Four other landings reached main since the tag — #617
(6a39d2a), #623 (56e1227), #619 (d611666) and #631 (b1d492a) — and moved no
registered member.

CLASS: ADDITIVE (minor), measured against the policy's own definition. The
schema member is DESCRIBED and unconstrained; the shared-authority comparison
reads the pair only where both sides declare a grammatical namespace and the
bare identity everywhere else, so absence and malformedness REPORT rather than
clear; one predicate serves both the named finding and the lift's third
condition; the block's shape codes go from eight to nine with
consumer-identity-namespace-grammar, whose window opens at THIS minor rather
than at contract-v2.4; the one narrowing is baked-secret over the third free
string, under add-binding-consumer-identity 2.6's precedent; nothing else
narrows.

Membership is 283 rows in both inventories, zero added and zero removed. Four
digests move: the two registered members #622 moved, plus this cut's own
changelog and tests/intent-compliance/test_release_boundary.py. That file gains
FEATURE_SUCCESSOR_7 in the enum and both match arms, with the by-hand statement
its tripwire requires: this bundle touches NO intent-compliance member and the
membership it asserts is UNCHANGED.

The inventory is built LAST at the final tree by the repository's own builder.
The annotated tag is NOT pushed here: it is a post-merge act taken only after
verify-commit passes at the squash commit — Bundle Realization Order step 4
before step 5, the step whose omission made contract-v3.1 defective and forced
#624's superseding cut.

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_014FBRdVuA6fmSEey9WQNAB7

* Name the cut by its branch rather than by a guessed PR number

PR #632 was taken by another lane's archive landing while this cut was being
measured, so the packet's Executed rows name `chore/cut-contract-v3.3` instead.
The number is added once the pull request exists.

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_014FBRdVuA6fmSEey9WQNAB7

* Name the cut PR in the packet's Executed rows now that it exists: #636

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_014FBRdVuA6fmSEey9WQNAB7

* Record the fold's measured doc-health delta in the packet's 8.1: zero movement

Baseline origin/main 21190cf and this tip both report 6 critical, 4 error,
40 warning, 16 info — 66 machine rows each, byte-identical finding sets in both
directions, and release-inventory-drift at ZERO on both sides because #628's cut
re-baselined the inventory over #622's already-landed bytes.

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xf699RDAfTs5gnSr7igJ2v

* Copilot round one: the ticked boxes no longer contradict their own prose

Both findings taken, and neither by deletion. Ticking 5.4 and 7.5 left three
present-tense sentences standing — "UNTICKED RATHER THAN TICKED WITH AN EXCUSE",
"EXECUTED AND NOT ZERO AT THE CURRENT BASELINE — UNTICKED DELIBERATELY", and
8.1's "THE BOX STAYS UNTICKED" — each of which read as a claim about the present
state while the checkbox above it said the opposite. A reader had to infer the
timeline from the discharge paragraph below.

Each is now explicitly the record of the state at its own reading, with the
discharge named as what changed it. The sentences are KEPT rather than removed:
they say why the boxes were not ticked with an excuse while the packet was open,
which is the fact worth preserving, and deleting them would erase the reasoning
that made the refusal to hand-fix an inventory legible.

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xf699RDAfTs5gnSr7igJ2v

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

CLAIMED — lane openxfactory-smalls, session 01Xf699RDAfTs5gnSr7igJ2v, 2026-09-04T04:28Z, for the ARCHIVE ACT of add-consumer-identity-namespace. Brett Heap, 2026-09-04: "do the two archive acts". Realization evidence: merged as 95c2cf6a (this PR); realized through the contract-v3.3 cut (amendment #636 → 16b85614, tag contract-v3.3 verified); main pytest-suite green at 92e662cf (run 33835343327). Sibling check: no archive PR or branch exists for this packet; the packet is still ACTIVE at openspec/changes/add-consumer-identity-namespace on main. Vehicle: its own archive PR via scripts/proposal-support.py (recipe: #632). Stale after 4h with no PR.

Lane: openxfactory-smalls

brettheap added a commit that referenced this pull request Sep 4, 2026
…d by #622 (95c2cf6), published in contract-v3.3, green on main (run 33835343327) (#643)

* Archive add-consumer-identity-namespace: ratified 2026-09-03, realized by #622 (95c2cf6), published in contract-v3.3, green on main (run 33835343327)

Lane: openxfactory-smalls

Brett's word, 2026-09-04: "do the two archive acts". Claim recorded on PR #622.

THE GATE, MEASURED AFTER LANDING AND NEVER ASSUMED. This packet carries a code
surface, so release-realization's archive gate is merged-plus-green on main and
never the ratification or the cut.

- MERGED: PR #622, squash 95c2cf6 (2026-09-04T00:38:55Z), carrying the packet
  AND its whole code surface in one landing.
- REALIZED INTO A PUBLISHED RELEASE, which is the half the packet deliberately
  refused to write down: target_release named "THE NEXT ADDITIVE MINOR" and no
  number, and it was right twice over. The number was allocated by SOMEONE
  ELSE'S merge order — #628 cut contract-v3.3 from a tree that already carried
  this packet's bytes — and #636 (squash 16b8561) amended that same untagged
  release with the entry tasks.md 5.3 prescribes verbatim, rather than spending
  a second number on bytes already published in-tree. Annotated tag
  contract-v3.3 (tag object edb039c) dereferences to 16b8561 on origin.
- GREEN WHERE IT LANDED: main's own pytest-suite at 92e662c, run 33835343327,
  completed success. That also clears the six cryptography failures of #620 that
  tasks 7.7 recorded as inherited.

Archived through scripts/proposal-support.py . archive — never bare
openspec archive — so the origin gate, the incomplete-task gate and
openspec validate --strict all ran before the move.

WHAT LANDS IN CANON: TWO requirements of credential-contracts promoted
BYTE-IDENTICALLY, verified by sha256 after the act rather than asserted.
"A credential binding declares the consuming system that holds it and the
identity it fetches with" -> 035152aa…bd1581be, 16 scenarios (12 in, 16 out).
"Two bindings on one secret are refused unless every pair declares distinct
consumers, acknowledges the sharing, and names a requirement bound to the
binding" -> 549ea6e1…b195b925, 15 scenarios (12 in, 15 out). Zero units lost on
either, and the per-document narrowing #553 ruled now reads in canon: the
ambiguity scenario's WHEN matches "more than one requirement record in the
requirements document the reference names".

THE TWO CARRIAGE-LEDGER SUBJECTS RETIRE ON THE CONDITION THEY WERE WRITTEN
WITH. tasks 4.4a said "both retire when this packet archives and its blocks are
promoted"; both halves were verified BEFORE the rows were deleted, and the
retirement note stays in place rather than the rows simply vanishing — a reader
who sees only the net cannot tell a packet that archived from one never written.
A --family modified-block-currency run over this tree returns ZERO lines
mentioning the change id, at any path; the population moves 12 -> 10.

ONE BOX IS TICKED BY ROUTING RATHER THAN BY A FIX AND SAYS SO. tasks 2.8 —
MAJOR_RELEASE reading contract-v3.0 while the policy names contract-v4.0 — is
NOT repaired here. What that row ever owed was observe-and-report, and it is
discharged by openxFactory #634, filed 2026-09-04 and citing the row and OQ-3 as
its provenance. No fix is smuggled; the successor is named.

Gates at this tree: openspec validate --all --strict 87 passed / 0 failed;
proposal-support verify ok; the self-gate module 18 passed. Ledger row, the
remaining pytest families and the doc-health diff follow in this branch's
subsequent commit, measured at the head that carries the pull request number.

Closes #511
Closes #553

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xf699RDAfTs5gnSr7igJ2v

* Move this packet's ledger row to archived: one line, no partner flipped, no MOVEMENT LOG entry owed

Lane: openxfactory-smalls

The second archive act under the per-change sweep ledger, and the second to move
exactly one line:

  - add-consumer-identity-namespace: {state: active,   class: co-modifier, …, moved_by: "#623"}
  + add-consumer-identity-namespace: {state: archived, class: co-modifier, …, moved_by: "#643"}

class HOLDS at co-modifier, declares and prose unchanged, and NO PARTNER FLIPPED
— this packet's earlier co-writers on both its requirements were already
co-modified through other keys, so nothing rises out of the sole set. Under the
rule add-per-change-sweep-ledger landed, a MOVEMENT LOG entry is owed only where
a move is NOT explained by the row diff, and this row diff states the whole move.
Seeded with the tool rather than hand-edited:

  python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#643' --moved-on 2026-09-04
  -> wrote tests/sequenced_after/corpus-ledger.yaml (162 rows, 1 moved by #643)

--ledger-diff is consistent with the corpus at 162 rows; the derived totals move
active 33 -> 32 and archived 129 -> 130, active_co_modified 22 -> 21, each
DERIVED from the one row rather than asserted anywhere.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xf699RDAfTs5gnSr7igJ2v

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 5, 2026
…, realized (#657 e65dcc4), published at contract-v3.4 — chain-anchoring is eleven requirements (#670)

* Archive amend-chain-anchoring-readiness-and-durability: ratified (#548), realized (#657 e65dcc4), published at contract-v3.4 — chain-anchoring is eleven requirements

Brett Heap ordered the archive 2026-09-04 in session, verbatim "archive
chain-anchoring", and ordered it as a PAIR. This is the SECOND half.
`add-chain-anchoring` archived FIRST on 2026-09-04 (PR #669, squash `66d11a24`)
and CREATED `openspec/specs/chain-anchoring/spec.md` at nine requirements; this
packet archives into that same file on 2026-09-05. The order is the one this
packet's own task 3.2 fixes, because the reverse writes a capability holding
only the amendment's two requirements and loses the basis it amends. The two
dates straddle a UTC midnight; the act does not. Every leg of the evidence chain
is read off `main` and none is assumed.

- RATIFIED 2026-09-04 by Brett Heap, repository owner, in session, recorded on
  PR #548, squash `471d3361`, verbatim "ratify 2 and 3" — both requirements AS
  WRITTEN and unamended over head `2677cef9`. Requirement 1 was WITHDRAWN, not
  refused, by his separate and earlier ruling of the same day. Record
  `review/ratification-2026-09-04.md`, archived with the packet.
- REALIZED: PR #657, squash `e65dcc48`, merged 2026-09-04T18:25:33Z — six
  further schemas under `contracts/chain-anchoring/` (confirmation-profile,
  confirmation-profile-registry, daily-merkle-profile,
  durability-eligibility-registry, durability-batch-admission,
  durability-batch-manifest), each with a registered `contracts/manifest.yaml`
  row, plus the replacement of `anchor-state.schema.yaml`'s closed per-witness
  enumeration while it was still unpublished.
- PUBLISHED: `contract-v3.4`, PR #653, squash `807a4f47`, annotated tag object
  `a3309921` — verified here by `git rev-list -n1 contract-v3.4` peeling to
  `807a4f47` rather than by reading the release note. AND THE WORD IS USED
  PRECISELY: `contracts/releases/contract-v3.4.digests.yaml` is a SELECTIVE
  inventory, 283 entries with ZERO rows under `contracts/chain-anchoring/`, so
  publication means the six manifest rows, the `contracts/CHANGELOG.md` v3.4
  entry naming this change at four sites, and the `contracts/README.md`
  contract-index row — never "its digests are in the inventory", which the
  inventory itself refutes.

## Archive method — the recorded escape, disclosed in the packet

`python3 scripts/proposal-support.py . archive amend-chain-anchoring-readiness-and-durability`
was tried FIRST and REFUSED: exit 1, "change has incomplete tasks", tree
unchanged. Its gate is

    tasks = directory / "tasks.md"
    if tasks.is_file() and re.search(r"^- \[ \]", tasks.read_text(), re.M):
        raise SupportError("change has incomplete tasks")
    (scripts/proposal-support.py:1079-1081)

read off those three lines in this tree rather than remembered —
UNCONDITIONAL on WHICH box. `OPENSPEC_TELEMETRY=0 openspec archive
amend-chain-anchoring-readiness-and-durability --yes` was run instead,
following `declare-spent-bundle-state` § 5.1 (PR #611, `7af2725c`) as applied by
`add-subject-establishment` (PR #647, `e4ff4fb3`) and, immediately before this
act, by `add-chain-anchoring` itself (PR #669, `66d11a24`) — the same lane, the
same word, the other half of this pair. It reported `Task status: 10/14 tasks`,
`Warning: 4 incomplete task(s) found. Continuing due to --yes flag.`, updated
the spec (`+ 2 added, ~ 0, - 0`), and moved the packet to
`openspec/changes/archive/2026-09-05-amend-chain-anchoring-readiness-and-durability/`.

THE FOUR OPEN BOXES ARE DISCLOSED AND CLASSIFIED in the archived tasks.md's new
closing section, in three classes:

  (a) OPERATOR APPROVALS NO CONTRACT CAN PERFORM — 1.3 and 1.4. Both carry
      `[OPERATOR]` in their own first words, and both already carry the
      realization's own note saying so ("STILL OWED, AND IT IS AN OPERATOR ACT").
      The schemas fix every element the two tasks enumerate and the canonical
      reader refuses each failure mechanically; what is missing is the operator's
      approval, and the packaged conformance declaration records
      `operator_approval_outstanding` in the present tense.
  (b) THIS ACT — 3.2, "archive add-chain-anchoring FIRST ... then archive this
      amendment SECOND; verify all eleven promoted requirements byte-for-byte".
      That is exactly what the pair did and what this commit completes. IT IS
      STILL NOT TICKED: an archive act does not close its own box, ticking it
      would edit the packet's task list in the commit that freezes the packet as
      a record, and it moves the wrapper's gate not at all — three would remain.
      #669 set the precedent one day earlier and one lane over, leaving its own
      3.2 and 4.12 open and recording the facts one section away.
  (c) THE CUT — 3.3, discharged by the cutting session in another lane at
      `contract-v3.4` (PR #653, `807a4f47`, tag `a3309921`). Its one departure
      from the box's own text is recorded rather than glossed: the cut was taken
      BEFORE either archive was present, on the owner's explicit order that #657
      land before these schemas shipped in a tagged bundle, because replacing a
      closed enum is free while unpublished and a compatibility break once
      published.

Not one is undone realization of this change, and ticking any to satisfy the
wrapper would be writing a false completion past a gate that cannot tell "open
by omission" from "open by design" apart. NO BOX IS TICKED BY THIS COMMIT — the
archived tasks.md still reads 10 ticked and 4 open, exactly as the packet
carried them.

## The promotion was byte-checked in BOTH directions, not trusted

An archive that only checks what it appended has checked half of what it could
break, so both halves were extracted and diffed.

- THE NINE REQUIREMENTS #669 PROMOTED ARE UNTOUCHED: extracted from the first
  `### Requirement:` line of `git show origin/main:openspec/specs/chain-anchoring/spec.md`
  and of this tree's file up to the first appended heading — 95510 bytes against
  95510, `diff` exit 0, NOT ONE CHARACTER. Nine requirements / 89 scenarios both
  sides.
- THE TWO APPENDED ARE THE ARCHIVED DELTA'S OWN TEXT: IDENTICAL but for the one
  trailing blank line the archiver emits — 23811 against 23812, the same
  one-byte signature #669 recorded. Two requirements / 34 scenarios both sides,
  and no `## MODIFIED Requirements` block existed anywhere in the delta.

The file goes 95655 -> 119467 bytes at ELEVEN REQUIREMENTS / 123 SCENARIOS
(9 + 2, 89 + 34) — the counts the archived `add-chain-anchoring` record and this
packet's ratification record each declared separately, now met by measurement.
Neither appended title collides with any of the nine. `git status --porcelain
-uall openspec/specs/` names that one file and nothing else, so no promoted
requirement in any other capability moved a word. The packet-side move is R100
on five of six files; tasks.md is the sixth and its whole delta is the
disclosure above.

`openspec validate --all --strict`: 89 passed, 0 failed, measured on both sides
rather than assumed — `origin/main` is 31 active + 59 specs (90 items), this
tree is 30 active + 59 specs (89). The total DROPS BY ONE here where #669's held,
and that is the difference between an archive that CREATES a capability and one
that writes into an existing one: this promotion adds no new spec directory.

## Bookkeeping

- README "OpenSpec Records": the active entry (32 lines) removed, an archived
  entry added at the HEAD of `Archived changes:`, immediately above
  `add-chain-anchoring`'s own archived row, so the ordered pair reads together.
  The entry's one claim the archive falsifies — that a follow-on pass "is now
  OWED ... and must land before the next chain-anchoring bundle cut" — is KEPT
  AND ANSWERED rather than deleted, per the lifecycle rule, with the closing
  acts named: #657 `e65dcc48`, then `contract-v3.4` `807a4f47`, in that order and
  on the owner's instruction.
- `specs/029-chain-anchoring-durability-confirmation/spec.md:10` names the
  ratification record by path; repointed to the archive path.
- THREE FURTHER PATH REFERENCES ARE DELIBERATELY LEFT UNTOUCHED, being published
  contract bytes at `contract-v3.4`: `contracts/chain-anchoring/README.md:38`,
  `contracts/chain-anchoring/anchoring-definitions.schema.yaml:37` and
  `contracts/manifest.yaml:3532`, each naming
  `openspec/changes/amend-chain-anchoring-readiness-and-durability/review/ratification-2026-09-04.md`.
  Editing a comment inside a released file would drift the release inventory
  (#622 precedent), and #669 left its own equivalents at
  `contracts/chain-anchoring/README.md:6` and `contracts/manifest.yaml:3265`
  exactly the same way. The record they name still resolves, at its archive path.
- A fourth site, inside the archived `review/ratification-2026-09-04.md` itself,
  quotes a `git diff` command that was correct when it was run. It is a frozen
  record and is not edited.
- `docs/domain-neutralization-candidate-register.md`, `ideation/README.md` and
  `ideation/staging/INDEX.md`: NO EDIT OWED — verified by grep, none names this
  packet's path.

The corpus-ledger row follows in the next commit, the ledger's `moved_by`
needing this pull request's own number.

Refs #548
Refs #657
Lane: openxfactory-1d
Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Move the one ledger row the archive moves

The only consequence of the previous commit that needs a tool run, and it is a
tool run and not a hand edit. Unlike PR #669's companion commit there are NO
ideation repoints to follow: `ideation/staging/INDEX.md`,
`ideation/brainstorm/` and `ideation/README.md` were grepped for this packet's
path and none names it, so this commit is the ledger row and nothing else.

## The corpus-ledger row — moved by the tool, never by hand

`python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#670'
--moved-on 2026-09-05` → `wrote tests/sequenced_after/corpus-ledger.yaml (166
rows, 1 moved by #670)`, and the row it names is
`amend-chain-anchoring-readiness-and-durability`.

    -  amend-chain-anchoring-readiness-and-durability: {state: active,   ... moved_by: "#548", moved_on: "2026-09-04"}
    +  amend-chain-anchoring-readiness-and-durability: {state: archived, ... moved_by: "#670", moved_on: "2026-09-05"}

ONE LINE. `class: sole`, `declares: [add-chain-anchoring]`, `depth: 1` and
`prose: false` are unchanged, and **NO PARTNER FLIPPED** — the declared parent
`add-chain-anchoring` was already `archived` by #669 the day before, so this
row's own hop resolves against an archived parent exactly as it did against an
active one. **No MOVEMENT LOG entry is owed**, and the rule is the ledger
header's own: the hand-written narrative "stays in one place and it is not this
file: the MOVEMENT LOG in `tests/sequenced_after/test_sweep.py`, **appended only
when a move is NOT explained by the row diff itself**". This move is entirely
explained by the row diff above.

`--ledger-diff` had reported the staleness in advance and named its whole
extent: one stale row plus the three derived totals that follow from it (active
31→30, archived 135→136, active_sole 11→10). It now reads `per-change sweep
ledger consistent with the corpus (166 rows)`, exit 0, and
`pytest tests/sequenced_after` is **162 passed** where it was 3 failed.

## The sentinel pin — 70 -> 70, and NOT ONE SITE TRAVELLED

RE-ENUMERATED WITH `pin_class.verify()` ON BOTH TREES rather than reasoned
about. `origin/main` (`66d11a24`) and this branch each report **70 sites / 24
members**, verdicts `pass` 53 / `not-applicable` 16 / `inconclusive` 1, with
`lost` 0, `lost_awaiting_record` 0, `uncovered` `()`, `vanished` `()`,
`arrived` `()` and `clean` true — **IDENTICAL**. Like `add-chain-anchoring` and
unlike `add-subject-establishment`, this packet has **no `supporting-docs/`
directory at all** — its six files are `.openspec.yaml`, `design.md`,
`proposal.md`, `tasks.md`, `review/ratification-2026-09-04.md` and the spec
delta — so no pin site moved under a new path and no comment in
`tests/doc-health/test_sentinel_vocabulary.py` goes stale by this act. The
measurement is recorded because "nothing moved" is a claim like any other.

## Gates at this head

`openspec validate --all --strict` **89 passed / 0 failed** (30 active + 59
specs, against `origin/main`'s 90 = 31 active + 59 — an archive into an EXISTING
capability trades an active change for nothing new, so unlike #669's the total
falls by one); `proposal-support.py . verify` ok;
`validate-sequenced-after.py . --ledger-diff` consistent, 166 rows;
`pytest tests/sequenced_after` **162 passed**;
`pytest tests/review_lane_pin` **55 passed / 1 skipped / 18 subtests** — GREEN,
because this act adds no new spec path and the base pin `76fa501c` already
floors `openspec/specs/chain-anchoring/spec.md`; and `doc-health.py
--single-repo` taken on `origin/main` and on this head gives a finding set that
is **IDENTICAL LINE FOR LINE** — 6 critical / 5 error / 30 warning / 13 info on
both sides, `diff` reporting exactly two moved lines, both of them word counts:
canon share 36.6% → 36.8% and promoted-spec words 229 919 → 233 202, which is
the promotion doing exactly what a promotion does.

EXPECTED AND NOT THIS BRANCH'S DEFECT: `pytest tests/doc-health` is 1 failed /
1543 passed / 8 skipped, the one being
`test_sentinel_vocabulary.py::test_the_pin_counts_did_not_move_and_no_site_is_classified_twice`
on `assert len(report.lost) == 1` reading 0. **IT FAILS IDENTICALLY ON A CLEAN
`origin/main` WORKTREE AT `66d11a24`**, same assertion, same line 967, same 0 —
measured, not inferred. The site #669's companion commit recorded as `lost` 1
reads `inconclusive` now that #669 is itself on `main` and the comparison base
has moved; the assertion went stale at that merge, and `main` has been red on it
since. It is disclosed here and dispositioned by nobody in this lane: this
archive neither caused it nor is the place to re-baseline another act's
constant.

Refs #548
Refs #657
Lane: openxfactory-1d
Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Correct the previous commit's diagnosis of the one local test failure: it is the measuring clone's, not main's

THE PREVIOUS COMMIT'S MESSAGE SAYS ONE THING THAT IS FALSE, and a wrong sentence
about a red gate is exactly the kind that gets believed later, so it is
corrected here rather than left standing. `be85d034` says of
`tests/doc-health/test_sentinel_vocabulary.py::test_the_pin_counts_did_not_move_and_no_site_is_classified_twice`:

    IT FAILS IDENTICALLY ON A CLEAN `origin/main` WORKTREE AT `66d11a24` ...
    the assertion went stale at that merge, and `main` has been red on it
    since.

The first clause is true and the second is **NOT**. `main` is not red. Its own
`pytest-suite` run at `66d11a24` — run `33933527185`, 2026-09-05 00:36:21Z, on a
COMPLETE clone — is **SUCCESS**, and that was measured after the claim was
written rather than before, which is how the error survived to be committed.
It cannot be amended away: this repository's ruleset declines a non-fast-forward
push, so the correction is a commit and not a rewrite.

THE REAL CAUSE, TAKEN FROM THE TOOL'S OWN WORDS RATHER THAN INFERRED. This
branch was authored in a **blobless clone** (`remote.origin.promisor true`,
`partialclonefilter blob:none`). `pin_class.verify()` classifies the site
`openspec/changes/archive/2026-08-27-add-hermes-customer-subject-runtime-contract/evidence/provider-verification.yaml`
key `us3_baseline_commit` as `inconclusive` here, and its `how` string says
exactly why:

    TRUNCATED CLONE, observed not conjectured: <path> is a partial clone
    (remote.origin.promisor true); no
    refs/retention/pins/66b14064bbd50d1af4e9585d10f8150f2bc352f0 on origin and
    none locally

`pin_class` REFUSES to call a site `lost` from a truncated clone, because a
truncated clone cannot tell "gone" from "not fetched" — the report's own
`truncated` flag is true for the same reason. A complete clone classifies that
same site `lost` against its declared loss record, which is the 1 the assertion
reads. So the local census `pass` 53 / `not-applicable` 16 / **`inconclusive` 1**
and CI's `pass` 53 / `not-applicable` 16 / **`lost` 1** are the SAME census
measured through two different clones, and the earlier commit's identical
`origin/main` worktree comparison proves only that both sides of THIS clone are
truncated the same way — which is worth recording, and is not evidence about
`main`.

NOTHING IN THE TREE CHANGES. The site counts (70 / 24), the `clean` verdict, the
`uncovered` / `vanished` / `arrived` emptiness and every other gate the previous
commit reports stand exactly as measured; only the sentence blaming `main` is
withdrawn. No test is re-baselined, no constant is moved, and no box is ticked.

Refs #548
Refs #657
Lane: openxfactory-1d
Co-Authored-By: Claude Fable 5.1 <[email protected]>

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants