Skip to content

The named successor: two fields make a ratified credential-separation invariant provable - #496

Closed
brettheap wants to merge 4 commits into
mainfrom
change/binding-template-extension
Closed

brettheap wants to merge 4 commits into
mainfrom
change/binding-template-extension

Conversation

@brettheap

@brettheap brettheap commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

What this is

add-binding-access-identity — the named successor add-notebook-hosting-credential-custody owes, authored through to proposal only.

STOP BEFORE MERGE. This packet is the designated first subject of the §7.4-shaped council-reviewed-but-human-approved path, continuing the 2026-08-28 gate-rules ruling. Council review PRECEDES ratification; Brett Heap's approve is the merge act and the ratification act. Nothing here is ratified by its authoring, by this bot round, or by the council read. Status: draft throughout, no ratification citation, and none is owed — the promoted lifecycle rule requires one only for Status: ratified.

The defining text this is grounded in — quoted, not composed

The scope was found in the repository, not invented. Three citations, all in a change Brett ratified on 2026-08-23.

1. The successor is named, with its scope written out — openspec/changes/add-notebook-hosting-credential-custody/tasks.md:81-90:

4.5 NAMED SUCCESSOR, owed: extend the published binding shape so the per-system authority is REPRESENTABLE. Today xfactory_credential_binding_template requires only [provider, secret_ref, owner, rotation_policy] with optional vault, carries no consumer or access-identity field, and the validator compares no authorities — so two bindings using the same vault principal validate cleanly and the invariant is held by review rather than by the record. Adding that field is a contracts/schemas/ change and therefore DOES carry the contract-release ritual (CHANGELOG allocation, manifest digest, contract_bundle_version bump, inventory rebuild, verify-commit, tag) — which is precisely why it is a successor and not smuggled into this change.

2. The obligation is in PROMOTED spec text, not only a task note — .../specs/credential-contracts/spec.md:60-63, a scenario of the ratified requirement "Each consuming system reaches a shared operated identity through its own binding":

Scenario: The published binding shape cannot yet express the access identity — WHEN two bindings for one operated identity are recorded in the promoted binding-template shape — THEN the shape carries no consumer or access-identity field, so the per-system authority is asserted by the binding's owner and its estate wiring rather than proven by the record — AND the gap is recorded as owed to a successor that extends the shape, not left implied as enforced.

3. It was one of three items deliberately put before the ratifier — .../review/ratification-2026-08-23.md:49-60 ("Ratifier: Brett Heap (repository owner) — in-session via question prompts"), Decision item 3:

The enforcement gap, admitted rather than papered over. Per-system authority is NOT machine-provable today: [...] scripts/validate-credential-contracts.py compares no authorities — so two bindings naming the same vault principal validate cleanly. The invariant is held TODAY by review and by estate wiring. Making it provable means extending contracts/schemas/, which carries the full contract-release ritual, and is named as an owed successor (tasks §4.5) rather than folded in here.

4. The second half — a decision the same change said the successor must take FIRST — .../tasks.md:53-66, recording why its own conformance fixture was DECLINED:

If a later change wants one, it must first decide whether shared-secret-identity should distinguish "two credentials collapsed into one" from "two consumers of one credential" — and updating the self-test count asserted in tests/credential_contracts/ ("3 positive + 5 negative") rides with it.

So the capability is currently in a state where its own mandated shape cannot be written down. The requirement stands; every attempt to record a conforming instance is refused by a check that reads one fact; and the absence of a fixture is documented with its reasoning rather than being an oversight.

The one design point worth a reviewer's attention

The obvious fix regresses the check it refines, and a fixture already in the tree proves it.

Add access_identity alone and let a shared secret_ref pass whenever the sharing bindings name different principals — and examples/credential-contracts/negative/dispatch-reuses-content-secret.yaml becomes conforming. Those two bindings (openXdox serving tier, content lane) genuinely are served by two different workload identities; the refusal that keeps content-write key material out of the serving tier would be silently retired by a change whose stated purpose is to make an invariant more provable. The custody change flagged the general shape: "relaxing the rule is a change to a check that exists to keep the dispatch and content credentials apart."

What separates the cases is intent, and intent must be declared: two credentials collapsed into one declare no operated identity, because there is no one identity to declare. Hence two fields and a three-fact conjunction:

share secret_ref same operated_identity distinct access_identity outcome
yes none declared — REFUSED — unchanged, collapsed-credential defect
yes partial — REFUSED — an unexplained share
yes yes no (same principal) REFUSED — one identity shared, one authority shared
yes yes yes VALID — the mandated shape

Silence still refuses. Every new refusal is reachable only through a field no earlier record could carry, so nothing previously valid becomes invalid. Tasks §3.6 makes re-raising the dispatch/content fixture an explicit test, because "this refines rather than regresses" is exactly the claim that needs an executable probe.

target_release — the queued contract-v1.45 is STALE, flagged not renumbered

Verified by parse on 2026-08-29, not from memory:

  • contract-v1.45 was CUT 2026-08-26 and is SPENT — contracts/releases/contract-v1.45.digests.yaml exists; contracts/CHANGELOG.md:467 carries its entry; openspec/changes/add-doxchat-model-intake/proposal.md:3 declares target_release: contract-v1.45 as the packet that spent it.
  • The declared bundle is now contract-v2.1 (contracts/manifest.yaml:3, CHANGELOG entry dated 2026-08-28); contracts/releases/ holds inventories through v2.1. The reserved number is four cuts behind head.
  • No replacement number is written into the proposal. Allocated at realization by merge order per docs/contract-versioning-policy.md, on the precedent the sibling add-credential-escrow-checkout sets for a packet in exactly this position — it is spending an additive minor against the same schema file in parallel, and the contract-v1.28 renumber sweep is the standing precedent for why a proposal must not spend a number before merge order is known.
  • The cut is owed by the POLICY, not by drift, and this was measured: the schema is a registered bundle contract (contracts/manifest.yaml:2079) but is NOT a release digest-inventory member (the closure is built from contracts/hermes-runtime/contract-index.yaml release_member entries, which carry no credential entry). So release-inventory-drift stays silent and the versioning policy's ADDITIVE (MINOR) class forces it. Tasks §4.5 requires re-verifying that membership at the cut and naming in the CHANGELOG which reason applied.

Why there is no MODIFIED block

add-credential-escrow-checkout holds a live ## MODIFIED Requirements block on Canonical credential record shapes right now (openspec/changes/add-credential-escrow-checkout/specs/credential-contracts/spec.md:5). The custody ratification states the discipline (review/ratification-2026-08-23.md:46-48): "no requirement is MODIFIED here precisely so that two active changes never hold two live deltas on one requirement text."

MODIFIED replaces wholesale; two live blocks on one requirement is the silent-scenario-loss class of #329/#330, and --strict sees none of it. So this packet carries ADDED requirements only, states the reason at the top of the delta file, and records the shape-ownership sentence as OWED — tasks §2.3 puts it on whichever of the two archives SECOND, scenario-complete against canon as it then stands. That's OD-3, flagged for veto: the alternative reverses a ruled decision on a ratified packet and is not the authoring session's to take.

Consequence recorded rather than assumed (tasks §1.3): carrying no MODIFIED block means this packet is not a modified-block-currency carriage-ledger subject and does not edit test_modified_block_currency_self_gate.py.

Contents

openspec/changes/add-binding-access-identity/
├── .openspec.yaml
├── proposal.md
├── design.md
├── tasks.md
└── specs/credential-contracts/spec.md
README.md   (OpenSpec Records — active list)

3 ADDED requirements, 12 scenarios, 0 MODIFIED.

  1. A credential binding declares the access identity its consuming system presents — 4 scenarios
  2. A shared secret reference is licit only between declared consumers of one operated identity — 5 scenarios
  3. An access identity is a principal reference and never credential material — 3 scenarios

Origin — and what the citation does and does not cover

kind: ad_hoc, approved_on: 2026-08-23. The approval act is Brett Heap's ratification of add-notebook-hosting-credential-custody, which named this successor with the gap explicitly before him.

It covers the existence and scope of this successor and nothing else. Every requirement, field name, the three-fact discrimination, six orchestrator decisions and three open questions were taken by the authoring session and are flagged for veto in proposal.md. No staging origin is claimed — searched ideation/staging/ and its INDEX.md; no topic covers the binding shape or this gap, so kind: staged would claim a source that cannot resolve.

Gates

gate result
openspec validate add-binding-access-identity --strict valid
openspec validate --all --strict 78 passed, 0 failed (78 items)
doc-health baseline (origin/main @ 99a6ff8d) 4 critical, 6 error, 28 warning, 12 info
doc-health head 4 critical, 6 error, 28 warning, 12 info
new findings [] — zero new

Baseline was a worktree whose basename matches this clone's (btdraft) per issue #342, run at the same --as-of 2026-08-29. The two reports are byte-identical, and that is correct rather than stale: GOVERNED_ROOTS = ("contracts", "docs", "examples", "ideation", "templates") — this change touches only openspec/changes/ and README.md, so the census cannot move. The run does read the packet, proven independently: the lifecycle scan set returns 162 docs here against 161 in the baseline, including openspec/changes/add-binding-access-identity/proposal.md, and --family proposal-origin is clean on both (a malformed or provenance-incomplete origin would have raised there).

Flagged for the council read

  • OD-1 two fields not one; OD-2 the field names; OD-3 ADDED-only with the shape sentence owed; OD-4 the shared-access-identity refusal is an error not a warning; OD-5 privilege aggregation deferred; OD-6 no domain repository asked to move.
  • OQ-1 should one access identity presenting for two bindings with different secret references be refused, warned, or ignored? OQ-2 vocabulary or free text for operated_identity? OQ-3 does the conforming fixture name the real account or a neutral placeholder?
  • Honest limit, stated in the requirement text itself: the record proves a claim of distinct authorities. It cannot prove the principals exist, differ, or carry different grants. That is the store's fact, and this change reads no live directory.

Correction made before the bot round, recorded rather than quietly fixed

Two of my own line citations pointed at the wrong lines and were fixed in 7e9b2829. The "no requirement is MODIFIED here..." sentence is at ratification-2026-08-23.md:46-48 (inside flagged item 2), not :24-27 — it was cited four times and all four moved. The custody task 4.1 spans tasks.md:53-66, not :55-66.

Both were found by re-grepping every cited anchor rather than by reading. The first hid because the quoted sentence wraps a line — a single-line grep for "no requirement is" returns nothing — which is how a citation to a genuinely real quote acquires a wrong number.

🤖 Generated with Claude Code

…at make it provable

add-notebook-hosting-credential-custody ratified "One identity MAY be shared;
one AUTHORITY SHALL NOT" and, as one of three items deliberately put before the
ratifier, recorded that the published record cannot express it: the binding
template names no consumer or access identity and the validator compares no
authorities. The gap ships in promoted spec text saying it is owed to a
successor. This is that successor.

The obvious fix regresses the check it refines, and a fixture already in the
tree proves it: pass a shared secret_ref whenever the sharing bindings name
different principals, and negative/dispatch-reuses-content-secret.yaml becomes
conforming. What separates the cases is intent, and intent must be declared --
two credentials collapsed into one declare no operated identity, because there
is no one identity to declare. Hence two fields and a three-fact conjunction.

Carries no MODIFIED block: add-credential-escrow-checkout holds a live one on
the same requirement, and two live deltas on one requirement text is the
silent-scenario-loss class of #329/#330. The shape-ownership sentence is owed
to whichever archives second, scenario-complete.

The queued contract-v1.45 designation is stale -- cut 2026-08-26, bundle now
contract-v2.1 -- and is flagged rather than renumbered.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 29, 2026 09:10

@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

…ts where the text is

Self-caught before the bot round. The "no requirement is MODIFIED here
precisely so that two active changes never hold two live deltas on one
requirement text" sentence is at ratification-2026-08-23.md:46-48, not :24-27
-- it sits inside flagged item 2, not item 1. It was cited four times (the
delta header, proposal.md, design.md, tasks.md 1.2) and all four move.

The custody change's task 4.1 spans tasks.md:53-66, not :55-66; the earlier
range started mid-bullet.

Both were found by re-grepping every cited anchor rather than by review, and
the first one hid because the quoted sentence WRAPS a line -- a single-line
grep for "no requirement is" returns nothing, which is how a citation to a
real quote acquires a wrong number.

Co-Authored-By: Claude Fable 5 <[email protected]>

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.

Pull request overview

Adds a new OpenSpec change packet (add-binding-access-identity) documenting the “named successor” work to extend credential binding records with access_identity / operated_identity and to define the intended validator discrimination, plus updates the repository’s OpenSpec Records index.

Changes:

  • Adds a new draft OpenSpec change packet with proposal/design/tasks and a credential-contracts spec delta describing the new fields and intended invariant enforcement.
  • Updates README.md “OpenSpec Records” active list to include the new change and its rationale/constraints.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
README.md Adds the new change to the “Active changes” index entry.
openspec/changes/add-binding-access-identity/.openspec.yaml Defines the packet’s origin/provenance and related change links.
openspec/changes/add-binding-access-identity/proposal.md Specifies scope, rationale, decisions, and non-goals for the successor packet.
openspec/changes/add-binding-access-identity/design.md Records design rationale, risks, and measured evidence backing the proposed approach.
openspec/changes/add-binding-access-identity/tasks.md Lists drafted implementation/release/documentation tasks for post-ratification realization.
openspec/changes/add-binding-access-identity/specs/credential-contracts/spec.md Adds three new requirements and scenarios for the binding shape extension and shared-secret discrimination.
Suppressed comments (2)

openspec/changes/add-binding-access-identity/.openspec.yaml:34

  • This citation points to specs/credential-contracts/spec.md:60-63 without qualifying which change it belongs to. In this packet that path resolves to this delta, but the text is citing the custody change’s spec delta. Qualify the path to avoid a broken/incorrect reference.
    why it is an origin and not a memory. The ratified requirement ships the
    scenario "The published binding shape cannot yet express the access
    identity", whose third bullet reads: "the gap is recorded as owed to a
    successor that extends the shape, not left implied as enforced"
    (`specs/credential-contracts/spec.md:60-63`). A successor that never arrives
    turns that promoted sentence into a false statement about the corpus.

openspec/changes/add-binding-access-identity/proposal.md:186

  • This ratification citation is unqualified (it resolves to a non-existent path under this packet) and the line range doesn’t match the quoted sentence in the custody ratification record. Point it at the correct file and lines so the citation is verifiable.
The custody change refused this collision explicitly, and its ratification record
states the discipline (`review/ratification-2026-08-23.md:46-48`): *"no
requirement is MODIFIED here precisely so that two active changes never hold two
live deltas on one requirement text."* OpenSpec's `MODIFIED` REPLACES wholesale;

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread README.md Resolved
Comment on lines +8 to +10
COMPOSED. `add-notebook-hosting-credential-custody` was ratified by Brett
Heap on 2026-08-23 (`review/ratification-2026-08-23.md`, "Ratifier: Brett
Heap (repository owner) — in-session via question prompts"). That
Comment on lines +25 to +27
and the custody ratification's stated discipline is that two active changes
never hold two live deltas on one requirement text
(`review/ratification-2026-08-23.md:24-27`).
Comment on lines +9 to +12
`add-notebook-hosting-credential-custody` refused on purpose — "no requirement is
MODIFIED here precisely so that two active changes never hold two live deltas on
one requirement text" (`review/ratification-2026-08-23.md:24-27`) — and the
scenario-loss class that produced issues #329 and #330 is what happens when that
Comment on lines +91 to +96
change refused this collision deliberately and its ratification states the
discipline in terms: *"no requirement is MODIFIED here precisely so that two
active changes never hold two live deltas on one requirement text"*
(`review/ratification-2026-08-23.md:24-27`).

The reason is mechanical, not stylistic. `MODIFIED` REPLACES a requirement
Copilot AI review requested due to automatic review settings August 29, 2026 09:14
… this packet instead

Copilot's round, taken. One defect class, seven instances: citations written
as `review/ratification-2026-08-23.md`, `specs/credential-contracts/spec.md`
and `tasks.md:NN` are relative to the READING packet, so from here `review/...`
resolves to a file that does not exist and `specs/credential-contracts/spec.md`
resolves to THIS delta rather than the custody change's. A citation that names
the wrong file is worse than none, because it reads as verified. All now carry
the repo-root-relative path. README's fixture reference gains its
`examples/credential-contracts/` prefix on the same reasoning.

The second half of Copilot's finding is REFUSED, with evidence: it also claimed
the :46-48 range does not match the quoted sentence. It does -- lines 46-48 of
the custody ratification record are exactly "and no requirement / is MODIFIED
here precisely so that two active changes never hold two live / deltas on one
requirement text". Re-verified by sed after the report. The bot could not
resolve the path it was reading, so it could not check the range it disputed;
the path defect was real and the range claim was its shadow.

Co-Authored-By: Claude Fable 5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a11186a026

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +143 to +146
claim.** Silence still refuses. Every new refusal is reachable only through a
field no earlier record could carry, because the field did not exist. Every
record valid before this change is valid after it, and every finding a
pre-extension repository raised, it still raises.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Reclassify fields that old records could already carry

The compatibility claim is false because the existing binding object in contracts/schemas/xfactory-credential-contracts.schema.yaml:138-146 does not set additionalProperties: false, so a contract-v2.1 record can already contain either proposed field and remain schema-valid. Such a record can newly trigger shared-secret-identity or baked-secret after upgrading, contradicting the promise that prior findings remain unchanged and potentially invalidating the additive-minor classification; audit existing consumers and provide version-aware handling or migration before retaining this claim.

Useful? React with 👍 / 👎.

Comment on lines +226 to +230
- **OD-2 — THE FIELD NAMES.** `access_identity` and `operated_identity`.
`access_identity` is task 4.5's own phrase. `operated_identity` takes the
ratified vocabulary of the custody requirement rather than the word "consumer",
because "consumer" is ambiguous between the SYSTEM and the IDENTITY and the
binding's map key already names the system. *Recommendation: accept.*

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add the missing consuming-system identity

The binding map key does not already name the system: the existing contract model documents it as keyed by requirement ID (openspec/changes/add-notebook-hosting-credential-custody/design.md:121-125), and examples use keys such as microsoft_365_admin. Consequently, two requirement-keyed bindings with distinct access identities can pass without identifying which systems consume them, while two systems borrowing one binding is equally unrepresentable, so the promised per-system separation remains unprovable. Add a consumer/system field or formally redefine and validate the map-key semantics.

Useful? React with 👍 / 👎.

Comment on lines +78 to +79
- [ ] 3.3 Extend `baked-secret` to the two new fields: `_looks_like_raw_secret`
already exists (`:60-62`) and today is applied to `secret_ref` only.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Reject all forbidden secret forms in the new fields

Reusing _looks_like_raw_secret does not implement the new categorical prohibition: that helper recognizes only a few PEM/cloud-token markers or a wholly base64-like value of at least 40 characters, so values such as postgresql://user:password@host/db, password=hunter2, or a dotted JWT pass. In a domain record, those values would therefore be accepted as access_identity or operated_identity despite the new requirement explicitly forbidding passwords, tokens, and connection strings, creating a new channel for committed credential material; expand the detector and fixtures to cover the promised forms.

Useful? React with 👍 / 👎.

Comment on lines +62 to +64
- [ ] 3.1 `contracts/schemas/xfactory-credential-contracts.schema.yaml`: add
`access_identity` and `operated_identity` as OPTIONAL string properties on
the `credential_bindings` `additionalProperties` object of

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject blank principal references

Declaring these properties as unconstrained strings allows access_identity: "" and whitespace-only values even though each declaration is required to name a principal. A standalone binding bypasses the shared-reference check entirely, and sharing bindings can use different whitespace strings that are pairwise distinct, causing the proposed conjunction to accept no actual authority identifiers. Require a nonblank principal-reference shape for both fields and test it independently of shared-reference grouping.

Useful? React with 👍 / 👎.

@brettheap

Copy link
Copy Markdown
Contributor Author

Bot round taken — Copilot, 7 findings, one real class, in 53ef174a

TAKEN — the path-qualification half, all 7 instances. Every cross-packet citation was written relative (review/ratification-2026-08-23.md, specs/credential-contracts/spec.md:60-63, tasks.md:81-90). Relative to the reading packet, so from here review/… resolves to a file that does not exist and — the worse one — specs/credential-contracts/spec.md resolves to THIS delta rather than the custody change's. A citation that silently names the wrong file is worse than no citation, because it reads as verified. All now carry the repo-root-relative path. README's fixture reference gains its examples/credential-contracts/ prefix on the same reasoning; that one was a plain error.

REFUSED, with evidence — the line-range half. Copilot attached to five of the seven a second claim: "the line range doesn't match the quoted sentence in the custody ratification record." It does. Lines 46-48 of openspec/changes/add-notebook-hosting-credential-custody/review/ratification-2026-08-23.md are:

   breaks — the new requirements stand on their own terms — and no requirement
   is MODIFIED here precisely so that two active changes never hold two live
   deltas on one requirement text.

Re-verified by sed after the report, not asserted from memory. The bot could not resolve the path it was reading, so it could not check the range it disputed — the path defect was real and the range claim was its shadow. Recording both halves rather than silently taking the whole finding, because a refused half that goes unrecorded returns next round.

Worth noting these are the second citation defect in this packet: 7e9b2829 had already self-corrected :24-27 → :46-48 before this round. Same family, different failure mode — that one hid because the quoted sentence wraps a line, so a single-line grep for "no requirement is" returns nothing. Wrong line, then wrong file: a citation can be false in more ways than it can be checked by eye, and both instances were found by re-grepping every anchor rather than by reading.

Gates re-run after the fix

gate result
openspec validate add-binding-access-identity --strict valid
openspec validate --all --strict 78 passed, 0 failed
doc-health vs origin/main @ 99a6ff8d 4 critical / 6 error / 28 warning / 12 info — identical both sides, new findings []

Still STOPPED before merge. Council review precedes ratification; Brett's approve is the merge act.

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.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

Suppressed comments (6)

Previously missed (4) — in code that hasn't changed since the last review.

README.md:399

  • "Brett's approve" reads like a grammatical error (verb used as a noun). If this is meant to refer to the GitHub approval action, "approval" is clearer and matches normal English usage.
  path continuing the 2026-08-28 gate-rules ruling: council review PRECEDES
  ratification, and Brett's approve is the merge act. That change ratified "One
  identity MAY be shared; one AUTHORITY SHALL NOT" and — as one of three items

openspec/changes/add-binding-access-identity/proposal.md:24

  • "Brett's approve" is grammatically awkward (verb used as noun). If this refers to the GitHub approval action, "Brett's approval" is clearer.

This issue also appears on line 210 of the same file.

Review path: **this change is the first subject of the §7.4 council-reviewed
but human-approved path** — the continuation of the 2026-08-28 gate-rules
ruling. Council review PRECEDES ratification; Brett's approve is the merge act.
Nothing in this packet is ratified by its authoring, by its bot round, or by

openspec/changes/add-binding-access-identity/tasks.md:161

  • Same grammatical issue: "approve" is a verb. "Approval" reads correctly and avoids ambiguity.
      OUTSIDE the pipeline, on the 2026-08-28 procedure.
- [ ] 7.2 **Brett Heap's approve is the merge act and the ratification act.**
      Until it happens this packet is `Status: draft` and carries no ratification
      citation — the promoted lifecycle rule requires one only for

openspec/changes/add-binding-access-identity/.openspec.yaml:82

  • Same grammatical issue: "approve" is a verb. "Approval" reads correctly and avoids ambiguity.
    — the promoted lifecycle rule requires one only for `Status: ratified`.
    THE RATIFYING ACT IS SEPARATE, SCHEDULED, AND ITS PATH IS PART OF THIS
    PACKET'S POINT: this change is the designated FIRST SUBJECT of the
    §7.4-shaped council-reviewed-but-human-approved path, the continuation of
    the 2026-08-28 gate-rules ruling. Council review PRECEDES ratification and

README.md:410

  • This reference drops the leading directory, which makes it ambiguous in the README context. Using the full repo-relative path (or a link) makes it clear which fixture is meant.
  `secret_ref` pass whenever the sharing bindings name different principals, and
  `examples/credential-contracts/negative/dispatch-reuses-content-secret.yaml` — two bindings genuinely served
  by two different workload identities — becomes CONFORMING, silently retiring

openspec/changes/add-binding-access-identity/proposal.md:213

  • Same grammatical issue here: "approve" is a verb. "Approval" reads correctly and keeps the meaning.
1. Authoring, the bot round, and the council read are all PRE-ratification. None
   of them ratifies anything.
2. The council review happens OUTSIDE the pipeline, on the 2026-08-28 procedure.
3. **Brett Heap's approve is the merge act and the ratification act.** Until it

Copilot AI review requested due to automatic review settings August 29, 2026 09: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.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

…ssary, so both change

Four findings, all verified against source before being taken, all real.

P1 -- the load-bearing compatibility claim was FALSE. It said every new refusal
is reachable only through a field no earlier record could carry "because the
field did not exist". The binding entry object sets no
additionalProperties: false (schema :138-146; the file's only such setting is
:56, a different object), so an open object has ALREADY accepted a key named
access_identity as an inert extra property, and this change gives it meaning --
such a record can newly be refused. Withdrawn, replaced by the narrower true
claim (a record declaring NONE of the three fields is unaffected) plus task 4.6:
MEASURE the already-carrying population before the cut and put the count,
including a zero, in the CHANGELOG as the evidence. Whether a newly-meaningful
open key keeps the ADDITIVE class goes to the council as OQ-4 rather than being
settled here. The general lesson is in design 4: a compatibility claim resting
on "the field did not exist" is only as strong as the schema's closure -- in an
open object no key ever failed to exist, only failed to mean anything.

P1 -- the consumer field was omitted on a DISPROVEN reason. The packet argued
the map key already names the system; it does not. credential_bindings is keyed
by REQUIREMENT ID, stated in terms by the custody change's own design (:121-125)
and by the shipped example's intent_dispatch / corpus_content_write keys. Task
4.5 says "no consumer or access-identity field" -- two things -- so the field
was inside the quoted scope and its omission was the deviation. Restored as a
third additive optional field; the disproof is recorded rather than the
conclusion quietly swapped.

P1 -- reusing _looks_like_raw_secret would NOT implement the prohibition. It
matches six markers or a wholly base64-like 40+ char value, so a connection
string, password=hunter2 and a dotted JWT all pass, while the requirement
forbids passwords, tokens and connection strings by name. Task 3.3 now expands
the detector to the enumerated forms, and the requirement states the honest
limit: passing proves no ENUMERATED form was found, never that the value is safe.

P2 -- unconstrained strings admit "" and "  ", which are pairwise distinct and
name nobody, satisfying the conjunction with no real identifiers; and a blank on
a binding sharing nothing never reaches the grouping check at all. Non-blank
constraint on the fields themselves, refused wherever it appears.

3 requirements, 12 -> 15 scenarios: each of the three new ones is a finding.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings August 29, 2026 09:23
@brettheap

Copy link
Copy Markdown
Contributor Author

Codex round taken — 4 findings, ALL REAL, all verified against source before being taken, in a8b0662d

This was a strong round. Three P1s and a P2, and every one of them was checked against the file it cited before I moved a word. Two of them changed the packet's substance, not its wording.

P1 — the load-bearing compatibility claim was FALSE. Withdrawn.

The proposal claimed: "every new refusal is reachable only through a field no earlier record could carry, because the field did not exist." I had named this in design.md as "the one a reviewer should attack." It was attacked, and it fell.

contracts/schemas/xfactory-credential-contracts.schema.yaml:138-146 sets no additionalProperties: false — verified, and the file's only such setting is at :56, on a different object. An open object has already been accepting a key named access_identity as an inert extra property. It never failed to exist; it only ever failed to mean anything. This change gives it meaning, so a record already carrying it can newly be refused.

Replaced with the narrower true claim (a record declaring none of the three fields is unaffected) plus task §4.6: MEASURE the already-carrying population before the cut — grep every pinned consumer's credentials/ tree and this repo's examples/, and put the count including a zero in the CHANGELOG as the evidence the class claim rests on. Whether a newly-meaningful open key keeps ADDITIVE (MINOR) is a versioning-policy judgement, so it goes to the council as OQ-4 rather than being settled by me.

The transferable lesson is now in design.md §4: a compatibility claim that rests on "the field did not exist" is only as strong as the schema's closure. The safe formulation asks what a record DECLARES, never what the schema happened to name.

P1 — consumer was omitted on a DISPROVEN reason. Field restored.

I argued the field was unnecessary because "the binding's map key already names the system." It does not. credential_bindings is keyed by requirement id — stated in terms by the custody change's own design (openspec/changes/add-notebook-hosting-credential-custody/design.md:121-125) and confirmed by the shipped example's intent_dispatch / corpus_content_write keys, which are purposes. Without the field, two requirement-keyed bindings could carry distinct access identities while leaving unstated which system holds each — so the attribution the capability asks the store's access log to deliver stayed unprovable.

Task 4.5 says "no consumer or access-identity field" — two things. The field was inside the quoted scope all along and its omission was the deviation. Restored as a third additive optional field, ambiguity resolved by naming (consumer = the system, operated_identity = the identity), and the disproof is recorded in OD-2 rather than the conclusion quietly swapped.

P1 — reusing _looks_like_raw_secret would NOT have implemented the prohibition

Confirmed at scripts/validate-credential-contracts.py:38-40,60-62: six markers, or a wholly base64-like 40+ char value (fullmatch). So postgresql://user:password@host/db, password=hunter2 and a dotted JWT all pass — while the requirement forbids passwords, tokens and connection strings by name. My task §3.3 had said "_looks_like_raw_secret already exists", which would have shipped a requirement its own realization did not enforce.

§3.3 now expands the enumeration (credential-bearing URIs, password=/secret=/token= assignments, structured bearer tokens) with a fixture per form, and the requirement gained a paragraph plus a scenario stating the honest limit: passing proves no ENUMERATED form was found, never that the value is safe.

P2 — blank principal references. Taken, and widened.

"" and " " are pairwise distinct and name nobody, so unconstrained strings would let the conjunction be satisfied by records identifying no authority at all. Non-blank constraint now sits on the fields themselves (schema minLength + anti-whitespace pattern, §3.1), not only inside the grouping check — because a blank on a binding that shares no reference never reaches that check (§3.2a). Precedent cited: the doxBench admission-form predicate, issue #263.

Net effect

before after
fields 2 3 (consumer restored)
requirements 3 3
scenarios 12 15 — each new one is a finding
ODs / OQs 6 / 3 7 / 4

Gates re-run: openspec validate --strict valid; --all --strict 78 passed, 0 failed; doc-health vs origin/main @ 99a6ff8d identical both sides (4 critical / 6 error / 28 warning / 12 info), new findings [].

Still STOPPED before merge — council review precedes ratification, Brett's approve is the merge act. The council now has two questions it did not have this morning: OQ-4 (does a newly-meaningful open key keep the ADDITIVE class?) and OD-2's correction.

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.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Comment thread README.md
Comment on lines +417 to +418
refuses; every new refusal is reachable only through a field no earlier record
could carry. Also takes the decision that change's task 4.1 said a successor
@brettheap

Copy link
Copy Markdown
Contributor Author

Closed as SUPERSEDED by #497 (add-binding-consumer-identity), which landed 2026-08-29 after a four-seat §7.4 council review and formal ratification for the same named successor (custody tasks.md §4.5). A read-only comparison (this session, 2026-08-29) found: every requirement here is covered by the ratified change — usually more rigorously (compat verified by construction across six pre-existing shapes; the shared-secret discriminator hardened with the requirement-ref-binding condition that defeats the laundering attack this draft's Requirement 2 remains open to); the field shapes are structurally incompatible (both use 'consumer' — scalar here, object there), so this draft cannot merge as a complement. Two genuinely distinct items are being filed as follow-ups against the ratified line rather than reviving this shape: the raw-secret detector expansion (tasks §3.3 here) and the forward scenario-complete sequencing obligation on 'Canonical credential record shapes' (design OD-3 here). This PR's OD/OQ record remains valuable as authored provenance.

@brettheap brettheap closed this Aug 30, 2026
@brettheap
brettheap deleted the change/binding-template-extension branch September 2, 2026 18:53
brettheap added a commit that referenced this pull request Sep 3, 2026
…shapes' (#507) (#599)

* Name the forward MODIFIED obligation on 'Canonical credential record shapes' (#507)

Adds one task-list line (§7.3) to add-credential-escrow-checkout/tasks.md:
whichever change next carries a MODIFIED delta on the credential-contracts
requirement "Canonical credential record shapes" must restate it
scenario-complete against canon as it then stands, explicitly including the
`consumer:` block members promoted by add-binding-consumer-identity (archived
2026-08-31, which correctly declined to MODIFY this requirement itself, per
issue #507). Also notes that this packet's own live MODIFIED block on the
same requirement must be re-read against canon before its own archive act.
The modified-block-currency doc-health family (error severity on its
gate-bearing arm since 2026-08-31) is the mechanical guard for the loss class
named in #329/#330; this task is the bookkeeping the guard does not replace.

No delta, proposal, design, or ratified text is touched; no existing box is
ticked or unticked.

Refs #507, #329, #330, #496.

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

* Fix split code span and split the archive-local duty from the forward obligation (PR #599 review)

Addresses two bot review findings on PR #599:

- Copilot: the inline code span around "Canonical credential record shapes"
  in §7.3 was split across a line break, which renders incorrectly in
  Markdown. Rewrapped so every backtick span in the added section closes on
  the line it opens on (verified with a small script over the added lines).

- Codex (P2): a single §7.3 checkbox could not honestly represent two
  obligations with different lifecycles — this packet's own pre-archive
  re-read (done once, at this packet's own archive) and the forward
  obligation on whichever future change next restates the requirement
  (indefinite, not discharged by this packet at all). Split them: §7.2's
  archive gate now explicitly includes this packet's own re-read as one of
  its own preconditions, and §7.3 is reworded to say plainly that it stays
  open across this packet's own archive and is discharged only by the future
  change that actually restates the requirement.

Sourcery's review was its standard private-repo upsell stub, not a content
finding, and needs no action.

No delta, proposal, design, or ratified text is touched; no existing box is
ticked or unticked.

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

---------

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

Development

Successfully merging this pull request may close these issues.

2 participants