Skip to content

Make the per-system credential authority representable in the record - #493

Closed
brettheap wants to merge 16 commits into
mainfrom
change/extend-credential-binding-authority
Closed

brettheap wants to merge 16 commits into
mainfrom
change/extend-credential-binding-authority

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

What this is

The named successor owed by task 4.5 of add-notebook-hosting-credential-custody, which Brett ratified on 2026-08-23 with its admitted enforcement gap in view. That packet ruled one identity / per-system authority — where more than one system authenticates as the same operated identity, each reaches it through its own binding, access identity, grant, rotation visibility and audit trail — and then recorded, in a scenario of its own ratified delta, that the published record cannot express it:

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

xfactory_credential_binding_template requires [provider, secret_ref, owner, rotation_policy] with vault optional, and scripts/validate-credential-contracts.py compares no authorities. Two bindings naming one vault principal validate cleanly today. So does one binding naming two — the record cannot tell the difference, which means no check can.

The forcing fact was found by reading the tree, not by reasoning about it. contracts/avatar-client/broker-server-key-binding.template.yaml is kind: xfactory_credential_binding_template — the very record kind this extends — and it already carries fetch_identity: install_federated_workload_identity, in a document-level block the schema neither declares nor forbids. That is the same defect, on the same schema, that its own issuance_preconditions vocabulary was added to retire, in that block's own words: "the mechanism existed as a domain-local extra key riding a neutral schema that neither declared nor forbade it, so a refusal had no neutral home to be declared against." The estate has already reached for this field and had nowhere to put it.

What it proposes

Three additive optional fields on each credential_bindings entry, in the estate's own spellings — consumer, fetch_identity, requirement_id — plus one new refusal (shared-fetch-identity), one narrowly-conditioned refinement of shared-secret-identity, and the validator's first warning channel.

fetch_identity, not a second spelling: promoted canon already says the lane receives "a fetch-identity identifier" and that reference delivery is "a vault URI plus the runtime's own fetch identity". "Access identity" — the custody packet's prose and the projection doc's — names the same thing; the requirement declares the synonymy and the ratified text is not edited to match. requirement_id matches the grant template's existing field rather than coining a _ref variant beside it.

Three ADDED requirements, no MODIFIED block, deliberately. Two of the seven promoted requirements already carry live deltas from active changes (add-credential-escrow-checkout on "Canonical credential record shapes", add-notebook-projection-identity on "The credential vault operator is an execution binding"), and a second live delta on one requirement is the exact hazard the custody packet's design refused for its own text.

The decision this puts to the council and to Brett

Task 4.1 left one question open and made it a precondition of any fixture: should shared-secret-identity distinguish two credentials collapsed into one from two consumers of one credential?

Position: YES — and the discriminator is the SHARED requirement_id, never the distinct consumer.

The obvious answer is to exempt on distinct consumers (and distinct identities). This repository contains the counterexample, packaged as a test fixture. examples/credential-contracts/negative/dispatch-reuses-content-secret.yaml holds the fault the check exists to catch — a dispatch credential and a content-write credential on one secret_ref. Those two bindings have distinct consumers (a zero-write serving tier and a privileged CI apply lane) and, under the promoted dispatch-only separation requirement, must hold distinct identities. So the naive exemption is satisfied exactly by the record it must refuse: it would turn a packaged negative green. Only "the sharing bindings resolve the SAME requirement" separates one key serving two purposes from one key serving two consumers of one purpose.

The alternative is recorded so the ruling is a choice, not a rubber stamp: leave shared-secret-identity unconditional. Its honest cost is that the ratified two-consumer shape then has no conforming single-document representation — and because the comparison is per-document (and always was), the estate can split the two bindings across two files and trip nothing. The unconditional rule does not prevent the shape; it prevents the shape being written where a check can see it.

Two further shapes were considered and declined, with reasons, in design.md: one binding carrying a consumer list (contradicts the ratified "its OWN binding… revocable on its own"), and a boolean marker whose only effect is to silence the check (the species this schema's own const: true issuance-precondition design and Brett's trust-anchor ruling both refuse).

Seven decisions taken on the authoring session's authority are listed and flagged for veto in proposal.md § Decisions put to the review.

Release train

contracts/ is untouched by this PR — the proposal cuts nothing and drifts no release inventory. target_release is the next additive minor, deliberately not reserved: measured on this branch's base, contracts/manifest.yaml:3 reads contract-v2.1 and the CHANGELOG heads at contract-v2.1 — 2026-08-28, so v2.1 is spent and any earlier note naming it or any other number for this work is stale. contract-v2.2 is the expected allocation but is not claimed, because the ratified policy says "A proposed change MUST NOT reserve a minor number before merge order is known" and the active ratified add-credential-escrow-checkout edits the same schema file and owes the same minor. That packet declines to number itself for the identical reason.

Why a cut is owed at all, measured rather than assumed: contracts/releases/contract-v2.1.digests.yaml holds 192 entries, exactly five under contracts/schemas/, and the credential schema is not one of them — nor is its validator, nor anything under examples/. So the cut is not forced by release-inventory-drift. It is owed by the versioning policy: a registered bundle contract (id: credential-contracts) gaining optional fields and validator warnings is its ADDITIVE (minor) class verbatim. The fields becoming required is the BREAKING (major) class and is scheduled for the next major after a full minor of warnings — the contract-v1.34 pattern.

Validation

🤖 Generated with Claude Code

https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc

The named successor owed by task 4.5 of add-notebook-hosting-credential-custody,
ratified 2026-08-23 with its admitted enforcement gap in view. That packet ruled
one identity / per-system authority and then recorded, in a scenario of its own
ratified delta, that the published record cannot express it: the binding
template requires [provider, secret_ref, owner, rotation_policy], carries no
consumer and no identity field, and the validator compares no authorities — so
two bindings naming one vault principal validate cleanly and the invariant is
held by review rather than by the record.

The forcing fact was found by reading the tree: contracts/avatar-client/
broker-server-key-binding.template.yaml is kind
xfactory_credential_binding_template and already carries fetch_identity in a
document-level block the schema neither declares nor forbids — the same defect,
on the same schema, that its own issuance_preconditions vocabulary was added to
retire.

Three ADDED requirements, no MODIFIED block: two of the seven promoted
requirements already carry live deltas from active changes, and a second live
delta on one requirement is the hazard the custody packet's design refused.

Three additive optional fields (consumer, fetch_identity, requirement_id) in the
estate's own spellings, one new refusal (shared-fetch-identity), and the
validator's first warning channel. contracts/ is untouched by the proposal; the
additive cut is scheduled for realization with its minor allocated by merge
order, coupled to add-credential-escrow-checkout.

The decision put to the council is task 4.1's open question, and the
recommendation is not the obvious one: discriminate on the shared requirement_id
and never on the distinct consumer, because the packaged negative
dispatch-reuses-content-secret.yaml has distinct consumers and must have
distinct identities, so the obvious exemption would turn this repository's own
test fixture green.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc
Copilot AI lite review requested due to automatic review settings August 29, 2026 08:53

@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

…ace it was made

Self-review before the first review round. The packet said "the three fields
become required at the next major". That is true of consumer and fetch_identity
and false of requirement_id, and the falsity is forced by the versioning policy
rather than a matter of taste: only the first two warn when absent, because a
binding that is the only one resolving its requirement already carries that fact
in its map key, and a major may not require a field no minor ever deprecated.

So requirement_id stays optional across the major and is obligatory only as a
CONDITION OF CLAIMING the shared-secret exemption — where the record asserts
something extra and pays for it — and the validator's warning deliberately does
not name it, because warning on it would put it on the very path this packet
keeps it off.

Swept to every place the claim was made rather than fixed where it was noticed:
the requirement body and its next-major scenario, the proposal's front-matter,
its What Changes section and its decision 5, tasks 2.2 and section 8, the
README entry, and a new declined-option in design.md that records the earlier
sentence and its correction.

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

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

Introduces a new OpenSpec change packet, extend-credential-binding-authority, documenting an intended additive extension to the credential binding record so per-system secret-store authority can be declared in-record (via consumer, fetch_identity, requirement_id) and later enforced by validator changes at realization time.

Changes:

  • Adds a new OpenSpec change packet (proposal/design/spec/tasks + .openspec.yaml) describing the additive schema/validator evolution and associated fixture/test updates to be done at realization.
  • Updates the README “OpenSpec Records” index to list the new active change and summarize its purpose and decisions.

Reviewed changes

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

Show a summary per file
File Description
README.md Adds the packet to the “Active changes” index with a detailed synopsis.
openspec/changes/extend-credential-binding-authority/.openspec.yaml Declares the packet origin and relationships to related changes.
openspec/changes/extend-credential-binding-authority/proposal.md Defines the proposed additive record/validator changes and the decision points for review.
openspec/changes/extend-credential-binding-authority/design.md Records evidence, alternatives considered, and the intended validator semantics at realization.
openspec/changes/extend-credential-binding-authority/tasks.md Specifies the concrete realization tasks (schema, validator, fixtures/tests, docs, release ritual).
openspec/changes/extend-credential-binding-authority/specs/credential-contracts/spec.md Adds the delta requirements defining the new record authority fields and validator expectations.

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

Comment on lines +60 to +63
#### Scenario: A binding declares no authority
- **WHEN** a credential binding declares neither a consumer nor a fetch identity
- **THEN** it remains VALID at this major, because the fields are optional and nothing previously conforming is invalidated
- **AND** the validator raises a warning naming both fields, so the absence is visible rather than silent

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ACCEPTED — fixed in 6664e8fd. (Dispositioned in the PR conversation at the time; recording it on the thread too so every finding carries its answer where it was raised.)

The finding is right: the surrounding requirement discusses an additive minor introducing optional fields and a later major making two of them required, so "at this major" reads as the current major release rather than the current major-version line the minor lands on.

Swept every occurrence across all four records rather than the one line flagged — what stays valid now reads "throughout the CURRENT MAJOR LINE (every contract-v2.x bundle)" and what ends it reads "the next MAJOR VERSION".

Copilot AI review requested due to automatic review settings August 29, 2026 08:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

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

@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: 0229b373a6

ℹ️ 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 +22 to +24
THE THREE FIELDS ARE OPTIONAL AT THE MINOR THAT INTRODUCES THEM AND REQUIRED AT
THE NEXT MAJOR. A binding declaring neither a consumer nor a fetch identity
SHALL raise a validator WARNING naming both fields, and SHALL remain valid: an

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 Warn when any required authority field is absent

For a binding that declares fetch_identity but omits consumer, this “neither” predicate emits no warning, while the shared-identity check is deliberately skipped without a consumer and lines 88–93 rely on this warning to prevent that case from passing silently. A consumer-only binding and any binding missing requirement_id are likewise unwarned even though all three fields are promised as required at the next major, so these records can silently miss the authority declaration throughout the deprecation minor and then break on upgrade; trigger the warning whenever any future-required field is absent.

AGENTS.md reference: AGENTS.md:L9-L10

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ACCEPTED — and already fixed in 6664e8fd, which landed after this review started. Codex reviewed 0229b373a6; both halves of the finding were caught in self-review and swept before it arrived. Recording the agreement anyway, because independent confirmation of a defect is worth more than the fix.

Half one — the fetch_identity-without-consumer hole — is accepted exactly as written, including the mechanism. The "neither" predicate emitted no warning for a half-declared binding, and the shared-fetch-identity requirement's own scenario relied on that warning standing there. The predicate now fires whenever a binding does not declare both, names whichever is missing, and the requirement carries a new scenario for the half-declared shape.

Half two — requirement_id unwarned though promised required — is accepted as a contradiction and resolved the other way round, deliberately. The finding is right that the packet could not both promise all three as required and warn on only two. There are two ways out, and this packet takes the second:

  • warn on requirement_id too, which is the remedy suggested here; or
  • stop promising it as required.

It stays optional across the major boundary. A binding that is the only one resolving its requirement already carries that fact in its map key, so requiring it everywhere buys redundancy and a migration for every existing binding record in the estate, with no governance gain. Its job is narrower: it is the discriminator that opens the shared-secret exemption, so it is obligatory only where a record claims that exemption — a condition of the claim, stated in the requirement that grants it, not a property of every binding.

That makes the future-required set exactly {consumer, fetch_identity} — so the current head already satisfies the rule this finding asks for, "trigger the warning whenever any future-required field is absent", under the corrected set. The original sentence that made the premise true ("the three fields become required at the next major") was false of one of the three and is corrected in every place it appeared, with the correction recorded as a declined option in design.md rather than quietly rewritten.

Two fixes, one self-caught and one from Copilot's review.

SELF-CAUGHT, and forced by the rule the previous commit applied. The warning was
specified to fire only when a binding declared NEITHER consumer NOR
fetch_identity, while a scenario in the shared-fetch-identity requirement relied
on it standing where a binding declared a fetch identity and no consumer. Worse
than the inconsistency: since both fields are refused together at the next major
version, a record declaring one and omitting the other would have passed
silently through every minor and broken there unwarned — which is exactly the
defect the previous commit refused for requirement_id. The warning now fires on
EITHER absence and names whichever is missing, and the requirement carries a
scenario for the half-declared shape.

COPILOT, on the spec delta: "at this major" is ambiguous where the surrounding
text discusses an additive minor and a later major, because it reads as the
current major RELEASE rather than the current major-version LINE. Real and
worth fixing. Swept every occurrence across all four records rather than the one
line flagged: what stays valid now says "throughout the current major line
(every contract-v2.x bundle)", and what ends it says "the next major version".

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc
Copilot AI review requested due to automatic review settings August 29, 2026 08:57
@brettheap

Copy link
Copy Markdown
Contributor Author

Round 1 dispositions, pushed as 6664e8fd.

Copilot — "at this major" is ambiguous (spec.md:63): ACCEPTED and fixed. Real finding. The surrounding text discusses an additive minor introducing optional fields and a later major making two of them required, so "at this major" reads as the current major release rather than the current major-version line. Swept every occurrence across all four records rather than the one line flagged: what stays valid now says "throughout the CURRENT MAJOR LINE (every contract-v2.x bundle)" and what ends it says "the next MAJOR VERSION".

Sourcery returned its private-repo upsell stub, not a review.

Two further fixes are self-caught and land in the same push, recorded here because a reviewer should not have to find them twice:

  1. The deprecation warning covered half the shapes it will refuse. binding-authority-undeclared was specified to fire only when a binding declared neither consumer nor fetch_identity — while a scenario in the shared-fetch-identity requirement relied on it standing where a binding declared a fetch identity and no consumer. The deeper problem: both fields are refused together at the next major version, so a record declaring one and omitting the other would have sailed through every minor and broken there unwarned. It now fires on either absence, names whichever is missing, and the requirement carries a scenario for the half-declared shape.

  2. A claim that was true of two of the three fields. An earlier draft said "the three fields become required at the next major". requirement_id's absence never warns — a binding that is the only one resolving its requirement already carries that fact in its map key — so a major requiring it would break what no minor deprecated, which the versioning policy forbids. It stays optional across the major boundary and is obligatory only as a condition of claiming the shared-secret exemption. Swept to every place the claim appeared, with the correction recorded as a declined option in design.md.

Gates on the current head: openspec validate --all --strict 78/78; pytest tests/credential_contracts tests/doc-health 1335 passed; doc-health 0 new findings against a fresh origin/main baseline at the same --as-of in a basename-matched checkout (issue #342's identity trap avoided), totals identical on both sides.

@codex review

The either-absence fix ended a sentence where the original had a colon, which
left "an optional field plus a new validator warning is the additive class"
hanging as a fragment after a full stop. Corrective text gets the same scrutiny
as original text, so the paragraph is rewritten rather than patched: the change
classes now carry their own sentence, and the either-absence reasoning moves to
a paragraph of its own instead of being spliced into the middle of another.

Scanned the whole packet for the same class of artifact — orphaned clauses,
doubled words, lines the substitution left ragged — and found no others.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc
@brettheap

Copy link
Copy Markdown
Contributor Author

Pushed c80f256e: the either-absence fix had ended a sentence where the original carried a colon, orphaning "an optional field plus a new validator warning is the additive class" as a fragment after a full stop. Rewritten rather than patched, and the packet scanned for the same class of artifact elsewhere — none found.

Head is now c80f256e. Round 1's only substantive finding (Codex P1) and Copilot's clarity finding are both dispositioned above and fixed; the P1 was independently self-caught before the review landed, and its second half is resolved by narrowing what is promised rather than by widening what warns, with the reasoning in the inline reply.

@codex review

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 2 comments.

Comment on lines +30 to +33
for `requirement_id`. A deprecation that skips half the shapes it will refuse is
not a migration path. an
optional field plus a new validator warning is the additive class, and a
required field is the breaking class that owes at least one full minor of

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ACCEPTED — fixed in c80f256e, before this comment landed. Real defect, and mine: the either-absence sweep ended a sentence where the original carried a colon, orphaning "an optional field plus a new validator warning is the additive class" as a fragment. Rewritten rather than patched — the change classes now carry their own sentence and the either-absence reasoning moved to a paragraph of its own instead of being spliced into the middle of another. The packet was then scanned for the same class of artifact (orphaned clauses, doubled words, ragged substitutions); none elsewhere.

Comment on lines +40 to +50
- [ ] 2.2 `binding-authority-undeclared` (WARNING): a binding that does not
declare BOTH `consumer` and `fetch_identity`. FIRES ON EITHER ABSENCE, not
only on both — the two are refused together at the next major, so a record
declaring one and omitting the other must be warned or it breaks there with no
notice. The message names whichever is missing and states the removal version
allocated at 5.2; a deprecation warning that does not say when it becomes an
error is not a migration path. NOT raised for a missing `requirement_id` —
warning on it would put it on the deprecation path this packet deliberately
keeps it off. The message names BOTH fields and states the
removal version allocated at 5.2 — a deprecation warning that does not say
when it becomes an error is not a migration path.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ACCEPTED — fixed in 9313e509. Right on both counts, and the redundancy was hiding a contradiction: one copy said the message names whichever field is missing, the other said it names BOTH, so an implementer had no way to choose. The stale copy was pre-sweep text the either-absence fix appended to rather than replaced. Task 2.2 now states the contract once — the message NAMES WHICHEVER IS MISSING (both, when both are) and states the removal version — and design.md's rule 3 gains the same sentence, since it had specified the trigger without ever saying what the message says. Re-scanned every record in the packet for repeated sentences: none left.

Copilot AI review requested due to automatic review settings August 29, 2026 09:00
Task 2.2 carried the warning's message contract twice, and the two copies
disagreed: one said the message names whichever field is missing, the other
said it names BOTH. The second was the pre-sweep text, left behind when the
either-absence fix appended its own. Kept the accurate half — the message names
whichever is missing, both when both are — and deleted the stale copy.

Design's rule 3 gains the same sentence, since it specified the trigger without
ever saying what the message says.

Re-scanned every record in the packet for repeated sentences and found no
others.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc
@brettheap

Copy link
Copy Markdown
Contributor Author

Pushed 9313e509. Task 2.2 carried the warning's message contract twice and the two copies disagreed — one said the message names whichever field is missing, the other said it names BOTH. The second was pre-sweep text the either-absence fix appended to rather than replaced. Kept the accurate half, deleted the stale copy, and gave design's rule 3 the same sentence since it specified the trigger without ever saying what the message says. Re-scanned every record for repeated sentences: none left.

Head is 9313e509. openspec validate --all --strict 78/78.

@codex review

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.

Rendering defect, found by scanning every record for lines with an odd number
of backticks: five inline code spans opened on one line and closed on the next,
so a reader of the rendered proposal sees a stray space inside a schema field
list, a YAML key, a build command and a fixture path. The council seats read
this cold, and a path with a space in it is a path they cannot follow.

The generic join then put a space inside the one span that was a bare path, so
that was repaired by hand and every span re-checked for the same class rather
than the fix being trusted — the joiner is right for prose that wrapped at a
space and wrong for a path that wrapped mid-token, and only reading the result
tells them apart.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc
Copilot AI review requested due to automatic review settings August 29, 2026 09:03

@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: 9313e509b9

ℹ️ 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 +93 to +95
- [ ] 3.7 Add a test that a positive fixture carrying no authority fields
produces a WARNING and still exits 0 — the deprecation's own proof, in both
directions.

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 Test the one-field migration states

When realization follows these tasks, this test covers only a binding with neither authority field. An implementation retaining the old if not consumer and not fetch_identity predicate would pass 3.7 while remaining silent when exactly one field is absent, and an implementation that always names both fields would also pass despite violating task 2.2's corrected message contract. The fresh evidence on this head is that 3.7 remains neither-only; add consumer-only and fetch-identity-only cases and assert that each warning names only the missing field.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ACCEPTED IN FULL — fixed in 73443021. This is the best finding of the review, because it catches the test certifying exactly the behaviour the previous round had just rejected.

The point stands as written: 3.7 asked for one case — a binding with neither field — and that case cannot go red on the defect it exists to catch. An implementation keeping not consumer and not fetch_identity stays silent on the half-declared binding and passes; an implementation that always names both fields passes while violating 2.2's corrected message contract. A proof that cannot fail on the fault is not a proof of the fault, which is this repository's own mutation-harness lesson arriving from a new direction.

3.7 now covers all three migration states — neither, consumer-only, fetch_identity-only — and asserts for each that a warning is raised, that it names only the field actually missing, and that the run still exits 0.

Applied where it recurs, not only where you named it. Task 2.3's fail-open had the identical weakness: a test asserting only that no shared-fetch-identity error fires for a binding with an undeclared consumer would pass for an implementation that had simply deleted the rule. New task 3.8 asserts the silence and the standing undeclared-authority warning together, because that warning is the entire justification for staying silent — so a test that omits it is not testing the reasoning.

Gates on the new head: openspec validate --all --strict 78/78; doc-health 0 new findings against the same basename-matched origin/main baseline.

@brettheap

Copy link
Copy Markdown
Contributor Author

Pushed 6b92e3df: five inline code spans opened on one line and closed on the next, so a rendered reader saw a stray space inside a schema field list, a YAML key, a build command and a fixture path. Found by scanning every record for lines with an odd number of backticks. The generic join then put a space inside the one span that was a bare path, so that was repaired by hand and every span re-checked — the joiner is right for prose that wrapped at a space and wrong for a path that wrapped mid-token, and only reading the result tells them apart.

Round status. Codex reviewed 0229b373a6 and raised one P1, dispositioned in the inline thread: accepted, already self-caught, with its second half resolved by narrowing what the packet promises rather than widening what warns. Copilot raised three findings across three passes — all accepted and fixed — and its most recent pass on the current head generated no new comments. Sourcery returned its private-repo upsell stub rather than a review.

Four findings landed in total and every one was a genuine defect in this packet's own text; three of the four had already been caught in self-review before the bot comment arrived, which is recorded here as corroboration rather than as a claim of priority.

Gates on 6b92e3df: openspec validate --all --strict 78/78 · pytest tests/credential_contracts 2 passed (and 1335 passed across tests/credential_contracts tests/doc-health earlier in the series) · doc-health 0 new findings against a fresh origin/main baseline at the same --as-of in a basename-matched checkout, totals identical on both sides.

Nothing in this PR touches contracts/, so ratifying it drifts no release inventory. The substantive question for the council is unchanged and is in proposal.md § The decision this packet puts to the review.

@codex review

…atch

Codex P2 on tasks.md, accepted in full. Task 3.7 asked for one test — a binding
with neither authority field — which cannot go red on the fault the previous
commit fixed. An implementation keeping the old `not consumer and not
fetch_identity` predicate stays silent on a half-declared binding and passes it
anyway, and an implementation that always names both fields passes while
violating 2.2's corrected message contract. So the test would have certified
exactly the behaviour the review had just rejected.

3.7 now covers all three migration states — neither, consumer-only,
fetch-identity-only — and asserts that each warning names ONLY the field
actually missing.

Applied the lesson where it recurs rather than only where it was named. Task
2.3's fail-open had the identical weakness: asserting only that no
shared-fetch-identity error fires for a binding with an undeclared consumer
would pass for an implementation that had simply dropped the rule. New task 3.8
asserts the silence and the standing warning together, because the warning is
the entire justification for staying silent.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc
@brettheap

Copy link
Copy Markdown
Contributor Author

Head is 73443021, round 2 dispositioned.

Codex round 2 (P2, tasks.md): accepted in full and fixed — the strongest finding of the review. Task 3.7's single test could not go red on the defect round 1 had just fixed, so it would have certified the rejected behaviour. It now covers all three migration states and asserts each warning names only the missing field. The same weakness in 2.3's fail-open was fixed alongside it as new task 3.8, rather than waiting for a third round to name it.

Running tally — five findings, all genuine, all fixed:

# source finding disposition
1 Codex P1 warning predicate missed the half-declared binding; requirement_id promised required but never warned accepted; predicate widened, and the promise narrowed rather than the warning — reasoning in thread
2 Copilot "at this major" ambiguous accepted; swept every occurrence to "current major line" / "next major version"
3 Copilot stray lowercase clause after a period accepted; paragraph rewritten, packet rescanned
4 Copilot task 2.2 duplicated and self-contradictory accepted; stale copy deleted, contract stated once
5 Codex P2 deprecation test could not fail on its own defect accepted; three migration states, plus the same fix applied to the fail-open

Three of the five were independently self-caught before the bot comment landed; two (2 and 5) were not, and 5 in particular is the kind of defect self-review is worst at — the test looked complete because it tested the thing, just not the thing that could break.

contracts/ remains untouched, so ratifying this drifts no release inventory. The substantive question for the council is unchanged: proposal.md § The decision this packet puts to the review.

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

Pull request overview

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

Two threaded Copilot comments, both accepted. The packet defined the warning as
binding-authority-undeclared in task 2.2 and then referred to it three times as
"the undeclared-authority warning" — a second, informal identifier for one rule.

The count that makes this more than a style point: the spec delta used the
formal code ZERO times. That file is the one that PROMOTES INTO CANON, so the
only name canon would have carried for this warning was the informal one, while
the code the validator raises lives in a tasks file that does not promote. One
of the three occurrences is in a `#### Scenario:` THEN-clause, which is exactly
the text a test gets written against, so the drift had a direct route into an
assertion naming a code that does not exist.

All three now use `binding-authority-undeclared`; the spec delta names it twice
where it named it never.

Swept the whole change directory and the README entry for informal spellings of
all four rule codes — shared-fetch-identity, shared-secret-identity,
binding-authority-undeclared, authority-scope-indeterminate — and these three
were the only ones. The scenario title "A shared fetch identity with the
consumer undeclared" is deliberately left: it is a noun phrase about the field,
not a name for the rule, and its own THEN-clause names the code formally.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc
Copilot AI review requested due to automatic review settings August 29, 2026 09:45

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.

… namespace

Brett Heap's rulings on the 2026-08-29 merge-readiness convening. Three seats,
two blocking returns, one blocking finding reached independently by two of them
against a commit no bot has ever read.

D2 — THE BLOCKING DEFECT, AND IT WAS MINE. Decision 8 claimed the regrouping
"only ever narrows a refusal, and only where the two secrets are genuinely
distinct", and I proved it against the packaged negative as shipped. Two seats
executed it against that same fixture with ONE optional `vault:` line deleted
and got ERROR/exit 1 today, clean/exit 0 proposed. The claim was false and the
backward-compatibility proof the packet leaned on was one deletion from going
green. The grouping now FALLS BACK to bare `secret_ref` wherever any member of a
matching (provider, secret_ref) set omits `vault`, so
authority-scope-indeterminate ACCOMPANIES a verdict and never replaces one. The
false sentence is corrected in all three places it was made, and the seventh
fixture pins the ruling in the tree: green under the rejected grouping, red
under the ruled one.

D3 — the escape clause named an act the record could not perform. "Or records
the distinction" had nowhere to record it, so a fourth optional field is added
at this minor: identity_namespace. Named against the estate rather than
invented — `tenant`/`tenant_ref` are REJECTED because adopt-subject-tenant-
domain-vocabulary reserves `tenant` for the tenant-operator layer and reusing it
would give a ratified word a second sense in the same family; `realm` is
rejected as Keycloak-specific. Both keys now fall back toward REPORTING: the
identity key to provider alone, the secret key to the bare reference. An earlier
revision had them pointing opposite ways.

D4 — a scenario-complete MODIFIED block on "Dispatch-only credential least
privilege and serving-tier separation", the requirement that published the check
whose behaviour this packet changes. All three canon scenarios restated verbatim
plus one for the fallback. Measured after writing: the modified-block-currency
family reports NO finding against it, so no _LEDGER_SUBJECTS registration is
owed and adding one would fail that gate's own fresh/gone check.

D5 — two sequential cuts, this packet first. The coupling is not fixture
residency, which is what an earlier revision said: it is _self_test itself,
whose EXAMPLES_DIR is hard-coded and whose NEGATIVE_EXPECTATIONS is one
module-level dict. Certain, not conditional. Written into tasks 5.7 and mirrored
as a dated note in the escrow packet's own tasks, no open PR contending it.

D6 — the object stays open, but task 1.3's counterexample was measurably wrong:
closing it invalidates nothing shipped, because `resolution:` is document-level.
Replaced with the rule-based reason, and the object-closing's removal version is
now named in task 5.4 so `access_identity` carries a version rather than a
promise.

D8 — additive stands, with the honest-gap bullet that declaring the map key's
meaning makes a new pattern lawful, and a task requiring a map-key/requirement_id
disagreement to be REPORTED rather than silently resolved.

Schedule: S-3 specifies the self-test widening as a parallel WARNING_EXPECTATIONS
dict against the structure as it stands; S-4 names the manifest sha256 refresh
that no revision of the ritual had; S-9 extends the doc sweep to the two files
review found unreached; S-10 gives the collision-adjacent fail-open a separable
signal; S-11 records that provider and vault are placeholders BY RULE in this
repository's own templates; S-14 writes the archive-order constraint into task 7.
S-17 unchanged, as ruled. P-2 left unruled, as instructed.

Release facts fresh-counted 2026-08-30, not trusted from the brief: main
declares contract-v2.2, cut AND tagged, and merged add-signed-execution-chain
already names contract-v2.3 — so this packet's earliest free number is
contract-v2.4 and it is measured, not reserved. Task 5.2 now instructs a
re-count at realization, because this packet has outlived three "expected"
allocations already.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc
Copilot AI review requested due to automatic review settings August 30, 2026 00:24
@brettheap

Copy link
Copy Markdown
Contributor Author

Amendment round — Brett Heap's rulings on the 2026-08-29 merge-readiness convening

Head f98c26ac. Every ruling executed; no @codex review requested (quota spent — stated refusal 09:27Z/09:31Z).

D1 (a) — amended for re-verification. The seats re-verify: LS its mutation table, LI M1/M8, LQ narrowly.

D2 (a) — the blocking defect, and it was mine. Decision 8 claimed the regrouping "only ever narrows a refusal, and only where the two secrets are genuinely distinct", and I proved it against negative/dispatch-reuses-content-secret.yaml as shipped. Two seats executed it against that same fixture with one optional vault: line deleted — ERROR/exit 1 today, clean/exit 0 proposed. The claim was false and the backward-compatibility proof this packet leaned on was one deletion from going green. Amended per LS's prescription: the secret grouping falls back to bare secret_ref wherever any member of a matching (provider, secret_ref) set omits vault, so authority-scope-indeterminate accompanies a verdict and never replaces one. False sentence corrected in all three places (proposal.md d8, design.md, tasks.md 2.4). S-2: seventh fixture negative/shared-secret-vault-undeclared.yaml — green under the rejected grouping, red under the ruled one, asserting both the error and the warning.

D3 (a) — the fourth field, identity_namespace. The escape clause "or records the distinction" named an act the record could not perform. Named against the estate, not invented: tenant/tenant_ref REJECTED — adopt-subject-tenant-domain-vocabulary reserves tenant for the tenant-operator layer, and reusing it would give a ratified word a second sense inside the same contract family; realm REJECTED as Keycloak-specific (59 uses in add-identity-brokering); identity_namespace taken — zero collisions, follows the policy_namespace compound idiom, and is the phrase the requirement and the whole review already used. Identity key is (provider, identity_namespace, fetch_identity). Reconciled with rule 4: both keys now fall back toward reporting — identity to provider alone, secret to the bare reference. An earlier revision had them pointing opposite ways.

D4 (a) — scenario-complete ## MODIFIED Requirements block on "Dispatch-only credential least privilege and serving-tier separation": all three canon scenarios verbatim plus one for the fallback. Double-delta checked and clear. Measured after writing: modified-block-currency reports NO finding against it — it carries every promoted unit — so no _LEDGER_SUBJECTS registration is owed, and adding one would fail that gate's own fresh/gone check.

D5 (a) — two sequential cuts, this packet first. The coupling is _self_test, not fixture residency (EXAMPLES_DIR hard-coded, NEGATIVE_EXPECTATIONS one module-level dict), so it is certain rather than conditional. Written into tasks.md § 5.7, and mirrored as a dated note in add-credential-escrow-checkout's own tasks.md § 8.1 — permitted, since no open PR touches that file (re-checked at push time).

D6 (a) — object stays OPEN, but task 1.3's counterexample was measurably wrong: closing it invalidates nothing shipped, because resolution: is document-level and the closure applies to the per-binding object. Replaced with the rule-based reason. Object-closing's removal version now named in task 5.4, and LS-F10 recorded — the second spelling is not silent: a record declaring access_identity and neither real field draws binding-authority-undeclared, so this change's own channel is the compensating control.

D8 (a) — ADDITIVE stands, plus LQ's honest-gap bullet (declaring the map key's meaning makes a new pattern lawful) and LI's task (a map-key/requirement_id disagreement is reported, never silently resolved).

Schedule: S-3 specifies the widening concretely as a parallel WARNING_EXPECTATIONS dict against the structure as it stands (chosen over a tuple value so the error path's startswith comparison is untouched) · S-4 names the contracts/manifest.yaml sha256 refresh, atomic with the schema edit, that no revision of the ritual had — with the note that validate-manifest-digests.py is red at head and base on an unrelated row, so a green run cannot be the acceptance signal · S-9 extends the doc sweep to the two unreached files and gives 4.2 the example-plus-bullets shape · S-10 separable collision-adjacent signal · S-11 placeholders-by-rule · S-14 archive-order into task 7 · S-17 NO CHANGE, as ruled · P-2 left unruled — no text added either way.

Fixture set is now 3 positive + 5 negative = eight, enumerated by name in code_surface and agreeing across the Impact line, tasks preamble and design. One consequence worth flagging: task 3.11's premise was falsified by D2's fallback — the undeclared-vault shape now refuses, so the warning-without-refusal case had to be rebuilt deliberately by satisfying the exemption. 3.11 and 3.12 are not duplicates: 3.11 proves the warning stands alone where the record earns it, 3.12 proves it never stands alone where it does not.

Release facts fresh-counted 2026-08-30 against origin/main (b710976b), not taken from the brief: contract-v2.2 is declared and tagged, and the merged add-signed-execution-chain already names contract-v2.3 — so this packet's earliest free number is contract-v2.4, stated as a measurement and not reserved. Task 5.2 now instructs a re-count at realization, because this packet has outlived contract-v1.45, contract-v2.1 and contract-v2.2 as its "expected" allocation. Every v2.2 mention swept.

Gates: openspec validate --all --strict 78/78 (including add-credential-escrow-checkout) · pytest tests/credential_contracts 2 passed · validator self-test PASS · doc-health 0 new findings against a fresh basename-matched baseline at the advanced origin/main, totals identical both sides. tests/doc-health skipped locally — CI carries it. No rebase was needed: git merge-tree against the advanced main reports zero conflicts.

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

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 7 out of 7 changed files in this pull request and generated 4 comments.

Comment thread README.md Resolved
Comment thread README.md Outdated
Comment on lines +443 to +445
estate can split it across two files and trip nothing. THREE ADDED
requirements and NO MODIFIED block, deliberately: two of the seven promoted
requirements already carry live deltas. `contracts/` is untouched by the

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ACCEPTED — fixed in 022e6d07. Both halves were false, and this is the worse of the two README findings: the entry claimed "THREE ADDED requirements and NO MODIFIED block" while the same entry already described a MODIFIED block and the delta carries a ## MODIFIED Requirements section.

It now reads THREE ADDED requirements PLUS ONE MODIFIED, on "Dispatch-only credential least privilege and serving-tier separation" — the requirement that published the check whose behaviour this packet changes, restated scenario-complete. The "deliberately" clause was true until the convening ruled a block in; the double-delta hazard it guarded against was re-checked and does not reach that requirement, because the two live MODIFIED deltas in active changes sit on different requirements. That re-check is now stated in the entry rather than left implicit.

Comment on lines +56 to +57
ALL THREE FIELDS ARE OPTIONAL AT THE MINOR THAT INTRODUCES THEM, AND EXACTLY TWO
OF THEM BECOME REQUIRED AT THE NEXT MAJOR VERSION. A binding that does not

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ACCEPTED — fixed in 022e6d07, and this is the one that mattered most. This site is inside the spec delta, which promotes into canon: the requirement opened with "the four facts" and then said "ALL THREE FIELDS ARE OPTIONAL", so canon would have carried a requirement contradicting itself three lines apart.

It now reads ALL FOUR FIELDS ARE OPTIONAL, with the deprecation path stated exactly: consumer and fetch_identity become required at the next major; identity_namespace and requirement_id remain optional across that boundary, for one reason covering both — neither one's absence ever warns, so no major may require it without breaking a shape no minor deprecated. For the namespace the point is sharper than a versioning technicality: its absence is not a defect awaiting migration, it is a record declining to make a distinction, which the identity comparison already handles by falling back to provider alone and REPORTING. A field whose omission is a conforming answer cannot become mandatory later.

Comment on lines +74 to +78
**Three optional fields, on the binding, in the estate's own words.** Each entry
of `credential_bindings` may declare `consumer` (the consuming system),
`fetch_identity` (the identity that consumer authenticates to the secret store
with), and `requirement_id` (the credential requirement the binding resolves).
No new record kind, no new envelope, no required field.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ACCEPTED — fixed in 022e6d07. The What Changes summary still enumerated three fields and omitted identity_namespace entirely, which is the worst place to undercount after code_surface: as you say, a reader implements from the list.

It now names all four, with the field's meaning (the directory, account or tenant within the provider that ISSUES the identity) and the required/optional split stated inline, so the summary and the front-matter agree. Decision 4 was reworded in the same pass — it argued "three fields rather than two" and now carries both additions and what cutting each one costs.

brettheap and others added 2 commits August 29, 2026 20:37
…ial-binding-authority

# Conflicts:
#	README.md
Polish round. Four live Copilot findings, lead-quality's LQ-F9, and
lead-integration's condition — all one class, and it is the standing lesson
landing on this packet for the third time: a definition gained a conjunct and
the sentences beside it went stale.

When the council's ruling added `identity_namespace` the packet became a
four-field change, and six "three fields" sentences did not move with it. TWO OF
THEM WERE INSIDE THE SPEC DELTA THAT PROMOTES TO CANON, which is the half that
matters: canon would have carried a requirement describing four facts in its
first line and "ALL THREE FIELDS" in its third. README's "THREE ADDED
requirements and NO MODIFIED block" was flatly false in both halves — the count
and the block — since the amendment ruled a MODIFIED block in.

LI's condition is answered where it belongs, in the delta rather than in a
commit message: `identity_namespace` and `requirement_id` stay OPTIONAL ACROSS
THE MAJOR BOUNDARY, and for one reason that covers both — neither one's absence
ever warns, so no major may require it without breaking a shape no minor
deprecated. For the namespace the point is sharper than a versioning technicality:
its absence is not a defect awaiting migration, it is a record declining to make
a distinction, which the identity comparison already handles by falling back to
`provider` alone and REPORTING. A field whose omission is a conforming answer
cannot become mandatory later.

LQ-F9: design's fixture sub-list still enumerated the pre-amendment three and
closed "adding these three moves no bundle member" while the count sentence four
lines above already said eight. Now all eight, each named with the decision it
pins, and the stale-list defect recorded rather than quietly repaired.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc
Copilot AI review requested due to automatic review settings August 30, 2026 00:40
Applied under Brett's D2(a)/D3(a) principle — both fallbacks err toward
reporting — and SUBJECT TO HIS VETO, since it extends a ruled mechanism to a
site the ruling did not name.

Lead-security executed the record rather than arguing it: one `secret_ref`, one
`requirement_id`, distinct consumers, the SAME `fetch_identity`, and
`identity_namespace` declared on ONE SIDE ONLY. Under the delta's literal
reading the two triples differ, so the pair reads as "pairwise distinct", the
exemption OPENS, and the shared-secret refusal is LOST at exit 0 — in the same
requirement that says a record failing both rules SHALL HEAR BOTH.

The fallback had been stated for the shared-fetch-identity RULE and not for the
EXEMPTION's distinctness test, so the two halves of one requirement disagreed
about what an undeclared namespace means. A one-sided namespace does not make
two identities distinct; it makes their distinctness UNKNOWN, and the delta
mistook the second for the first.

The exemption's `fetch_identity` comparison now carries the same either-side
scope task 2.3 already states for the collision rule: where any member of a
compared pair omits `identity_namespace`, the pair is compared on
`(provider, fetch_identity)` alone and the exemption does not open on an
indeterminate qualification.

AND THE PARAGRAPH THAT CLAIMED THIS COULD NOT HAPPEN IS REWRITTEN RATHER THAN
PATCHED. It argued the exemption is never decided on an indeterminate
qualification "from the grouping rather than needing a rule of its own",
reasoning that the comparison reduces to the namespace and the identity name,
"both of which the record either states or does not". That step is the error:
it treats a one-sided declaration as determinate. The property now holds because
a rule says so, and the old reasoning is quoted as the thing that was wrong.

Ninth fixture pins it — green under the triple-only comparison, red under the
ruled scope — and it is the exemption-side twin of the grouping-side fixture, so
the claim that both rules point the same way is now executable rather than
asserted. Counts swept again to 3 positive + 6 negative across all five sites.

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

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 7 out of 7 changed files in this pull request and generated 3 comments.

Comment on lines +2 to +3
code_surface: openxFactory — a SCHEMA CHANGE plus its validator, fixtures and tests. `contracts/schemas/xfactory-credential-contracts.schema.yaml` gains FOUR ADDITIVE OPTIONAL FIELDS on each entry of `credential_bindings` in the existing `xfactory_credential_binding_template`: `consumer`, `fetch_identity`, `identity_namespace` and `requirement_id`. `scripts/validate-credential-contracts.py` gains one new refusal (`shared-fetch-identity`), one refinement of an existing refusal (`shared-secret-identity` gains a narrowly-conditioned exemption that opens only on positive declarations, AND is regrouped onto the qualified key `(provider, vault, secret_ref)` rather than the bare `secret_ref` it groups by today, WITH A FALLBACK to the bare grouping wherever any member of a matching `(provider, secret_ref)` set omits `vault` — decision 8, the one change this packet makes to a check it did not author), and its FIRST WARNING CHANNEL, carrying two codes (`binding-authority-undeclared`, warning across the current major line and error at the next major version; and `authority-scope-indeterminate`, SECRET COMPARISON ONLY, where an omitted optional `vault` leaves two matching secret references un-adjudicable). The two comparison keys are qualified and DELIBERATELY DIFFERENT — `(provider, identity_namespace, fetch_identity)` for the authority, `(provider, vault, secret_ref)` for the secret — because a principal granted on two vaults is ONE authority and a vault-qualified identity key would report nothing on exactly the record the ratified per-system rule forbids. BOTH keys FALL BACK toward reporting where their qualifier is undeclared: the secret key to the bare reference, the identity key to `provider` alone. `examples/credential-contracts/` gains EIGHT fixtures, enumerated here by name so the count is checkable rather than recalled — THREE POSITIVES (`notebook-hosting.binding-template.example.yaml`, the two-consumer shape; a cross-provider positive; and `two-namespaces.binding-template.example.yaml`, a same-named principal in two declared namespaces) and FIVE NEGATIVES (`negative/shared-fetch-identity.yaml`; `negative/shared-secret-different-requirements.yaml`; `negative/shared-fetch-identity-across-vaults.yaml`, which pins the identity key against re-acquiring `vault`; `negative/authority-scope-indeterminate.yaml`; and `negative/shared-secret-vault-undeclared.yaml`, which pins the fallback by proving a refusal survives an omitted `vault`) — and `tests/credential_contracts/test_dispatch_credential_contract.py` moves with them, including the self-test count string it asserts, which is derived once at realization rather than written here. NO NEW RECORD KIND. NO REQUIRED FIELD. `contracts/` IS UNTOUCHED BY THIS PROPOSAL — the release ritual is scheduled in tasks.md § 5 for realization, and no bundle is cut by the packet that proposes it.
target_release: THE NEXT ADDITIVE MINOR, DELIBERATELY NOT NUMBERED HERE. `docs/contract-versioning-policy.md` states the rule this front-matter obeys: "A proposed change MUST NOT reserve a minor number before merge order is known." FRESH-COUNTED AGAINST `origin/main` ON 2026-08-30, BECAUSE THIS TRAIN MOVES FASTER THAN A PROPOSAL SITS: `contracts/manifest.yaml` declares `contract-v2.2` and `contracts/CHANGELOG.md` heads at `contract-v2.2 — 2026-08-29`, with the annotated tag `contract-v2.2` PUBLISHED. So `contract-v2.2` is SPENT, and the earlier revisions of this front-matter that named it as this packet's expected allocation are stale — as were the ones before that naming `contract-v2.1`, and as any number written here will eventually be. Further: the MERGED `add-signed-execution-chain` already names `contract-v2.3` as its own target, so the earliest number this packet could take is `contract-v2.4`, and even that is not claimed. NOTHING IS RESERVED HERE, under the policy sentence above. Three packets now contend for the next additive minors — this one, `add-credential-escrow-checkout` (same schema file), and the signed-execution-chain train — and a number written in a proposal is a number another packet may spend first, which is exactly what the rule exists to prevent; the `contract-v1.28` renumber sweep is the standing precedent for the cost. The number is allocated AT REALIZATION by merge order (tasks.md § 5.2), and § 5.2 instructs a re-count at that moment rather than trusting this paragraph. WHY A CUT IS OWED AT ALL, MEASURED RATHER THAN ASSUMED: parsed on 2026-08-29, `contracts/releases/contract-v2.1.digests.yaml` holds 192 entries, exactly five of them under `contracts/schemas/`, and `xfactory-credential-contracts.schema.yaml` IS NOT ONE OF THEM — neither is its validator, nor anything under `examples/`. So the cut is NOT forced by `release-inventory-drift`, which is the usual reason a schema edit owes one. It is owed by the VERSIONING POLICY instead: the schema is a registered bundle contract (`contracts/manifest.yaml`, `id: credential-contracts`), and a registered contract gaining optional fields and validator warnings is that policy's ADDITIVE (MINOR) class verbatim, under which "Domain repos on the same major version remain conformant without changes". `consumer` and `fetch_identity` becoming REQUIRED is the BREAKING (MAJOR) class and is scheduled for the next major, not for this cut; `requirement_id` stays optional across it, because its absence never warns and a major may not break what no minor deprecated.
Comment thread README.md
Comment on lines +522 to +526
- [extend-credential-binding-authority](openspec/changes/extend-credential-binding-authority/proposal.md)
— the NAMED SUCCESSOR owed by task 4.5 of
`add-notebook-hosting-credential-custody`, which Brett ratified 2026-08-23
with its admitted enforcement gap in view. That packet ruled ONE IDENTITY /
PER-SYSTEM AUTHORITY and then recorded, in a scenario of its own ratified
Comment on lines +42 to +47
related:
- openxFactory:change:add-notebook-hosting-credential-custody # ACTIVE and ratified; its task 4.5 names this successor and its two ADDED requirements are the obligations this packet makes checkable
- openxFactory:change:add-notebook-projection-identity # ACTIVE; carries the live MODIFIED delta on "The credential vault operator is an execution binding", which is one of the two canon requirements this packet deliberately does not modify
- openxFactory:change:add-credential-escrow-checkout # ACTIVE and ratified; edits the SAME schema file and the SAME validator, and owes the same next additive minor — the merge-order coupling is stated in design.md
- openxFactory:change:qualify-avatar-live-voice # ACTIVE; owns contracts/avatar-client/broker-server-key-binding.template.yaml, the shipped record already carrying an undeclared `fetch_identity` key on this very record kind
- openxFactory:change:promote-credential-contracts # promoted the binding-template shape this packet extends
Copilot AI review requested due to automatic review settings August 30, 2026 00:43
@brettheap

Copy link
Copy Markdown
Contributor Author

Polish round — integration repaired, six stale-count sites swept, LS-R3 closed

Head 28f8a4ec. GitHub now reports MERGEABLE (state BLOCKED = awaiting required approval, not conflicts).

1. The integration failure was mine, and so was the wrong evidence. I reported "zero conflicts by merge-tree". That was false: I used the legacy three-arg git merge-tree, which prints a diff and never exits non-zero. The --write-tree form exits 1 with CONFLICT (content): Merge conflict in README.md, and GitHub read CONFLICTING / DIRTY — so pytest-suite and wallet-validation had no merge ref and never ran on f98c26ac. A check that cannot fail is not a check, which is the lesson this packet's own text argues twice; I applied it to the subject and not to my own tooling.

Repaired by MERGE, not rebase (346c0d08), so the seats' judged commits stay intact. The README conflict was both sides inserting at the same Active changes: anchor; resolved by keeping both insertions in the block's newest-first convention — main's two entries exactly where main placed them, then this packet's, then the pre-existing block. openspec validate --all --strict post-merge: 79 passed, 0 failed (up from 78 — main's newly-landed packet).

2. Four Copilot findings — all accepted, all one class, dispositioned inline. After identity_namespace landed, six "three fields" sentences did not move with it: a definition gained a conjunct and the sentences beside it went stale. Two were inside the spec delta that promotes to canon — canon would have carried a requirement opening with "the four facts" and saying "ALL THREE FIELDS" three lines later. README's "THREE ADDED requirements and NO MODIFIED block" was false in both halves.

3. LQ-F9 — design's fixture bullet list still enumerated the pre-amendment three and closed "adding these three moves no bundle member" while the count sentence four lines above already said eight. Now the full set, each bullet naming the decision it pins.

4. LI's condition — answered in the delta, where canon will carry it: identity_namespace and requirement_id stay optional across the major boundary, for one reason covering both — neither one's absence ever warns, so no major may require it without breaking a shape no minor deprecated.

LS-R3 — a real hole, closed in its own commit 28f8a4ec

Applied under Brett's D2(a)/D3(a) principle (both fallbacks err toward reporting) and subject to his veto, since it extends a ruled mechanism to a site the ruling did not name.

Lead-security executed the record rather than arguing it: one secret_ref, one requirement_id, distinct consumers, the same fetch_identity, identity_namespace on one side only. The triples differ, so the pair read as "pairwise distinct", the exemption opened, and the shared-secret refusal was lost at exit 0 — inside the same requirement that says a record failing both rules SHALL HEAR BOTH. The fallback had been stated for the collision rule and not for the exemption's distinctness test, so two halves of one requirement disagreed about what an undeclared namespace means.

A one-sided namespace does not make two identities distinct; it makes their distinctness UNKNOWN, and the delta mistook the second for the first. The exemption's comparison now carries the same either-side scope task 2.3 already states for the rule.

And the paragraph asserting this could not happen is rewritten, not patched. It argued the property followed "from the grouping rather than needing a rule of its own", because the comparison reduces to the namespace and identity name, "both of which the record either states or does not" — and that step is exactly the error. The property now holds because a rule says so, with the old reasoning quoted as the thing that was wrong.

Ninth fixture pins it: green under the triple-only comparison, red under the ruled scope. It is the exemption-side twin of the grouping-side fixture, so "both rules point the same way" is now executable rather than asserted. Fixtures 3 positive + 6 negative = nine, swept across all five count sites.

Integration fact for the convening, not acted on

Main landed add-binding-consumer-identity (ratified 2026-08-29) while this PR sat. It edits the same schema file and the same record kind, adding a nested consumer: block whose members include fetch_identity, holder_ref and a qualified requirement_ref — substantially this packet's subject, in an incompatible shape (this packet's fields are flat). No automated check fires: duplicate-packet reports nothing (the deltas are not byte-identical restatements) and the two packets MODIFY different requirements, so no double-delta collides. But if both promote, the schema carries both a flat fetch_identity and a consumer.fetch_identity. That is a substantive conflict no gate in this repository can see, and it needs a ruling rather than a merge order. Flagged, not resolved.

Gates on 28f8a4ec: openspec validate --all --strict 79/79 · pytest tests/credential_contracts 2 passed · validator self-test PASS · doc-health 0 new findings vs a fresh basename-matched baseline at b710976b, totals identical both sides. tests/doc-health skipped locally; CI carries it — and now actually can, having a merge ref.

Diffstat of my own two commits (346c0d08..28f8a4ec, excluding the merge's main-side content), so the seats can confirm the polish touches nothing they executed:

 README.md                                     | 13 +++--
 .../extend-credential-binding-authority/design.md | 65 +++++++++++++------
 .../proposal.md                                   | 26 ++++++---
 .../specs/credential-contracts/spec.md            | 51 ++++++++++-----
 .../extend-credential-binding-authority/tasks.md  | 35 ++++++++----
 5 files changed, 138 insertions(+), 52 deletions(-)

Five files, all inside this packet plus its README entry. No @codex review requested.

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

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 7 out of 7 changed files in this pull request and generated 6 comments.

Comment on lines +100 to +103
comparison is qualified, and the two keys DIFFER ON PURPOSE:
`(provider, fetch_identity)` for the authority and `(provider, vault, secret_ref)`
for the secret. An identity does not live in a vault — one principal granted on
two vaults is ONE authority, and folding `vault` into the identity key would
Comment on lines +295 to +297
authorities. With it ABSENT the comparison falls back to `provider` alone and
reports them — chosen over the silent opposite, and now escapable by declaring
the field rather than by an instruction with nowhere to record it.
Comment on lines +246 to +248
**THE COMPARISON KEYS ARE QUALIFIED, AND THEY ARE DELIBERATELY DIFFERENT:**
`(provider, fetch_identity)` for the authority and `(provider, vault, secret_ref)`
for the secret.
WARNS, so no major may require it without breaking a shape no minor ever
deprecated. `identity_namespace`'s absence is not a defect to be migrated away —
it is a record declining to make a distinction, which the identity comparison
already handles by falling back to `provider` alone and REPORTING. A field whose
Comment on lines +198 to +201
WHERE `identity_namespace` IS ABSENT THE COMPARISON FALLS BACK TO `provider`
ALONE, AND THAT FALLBACK ERRS TOWARD REPORTING. An undeclared namespace does not
excuse the comparison: two identically-named principals under one provider with
no namespace declared SHALL still be reported, because the record does not say
Comment on lines +209 to +210
refuses rather than clears; the identity comparison falls back to `provider`
alone where `identity_namespace` is unestablished, so it reports rather than
@brettheap

Copy link
Copy Markdown
Contributor Author

Closed as SUPERSEDED by #497 add-binding-consumer-identity

Brett Heap ruled this in-session on 2026-08-30. #497 was ratified 2026-08-29 after its own four-seat §7.4 sitting and merged 21:12Z; it is on origin/main now. It answers the same named successor — add-notebook-hosting-credential-custody tasks.md §4.5 — and this PR's shape cannot merge as a complement, because both use the key consumer and the shapes are structurally incompatible: flat fields here, an object block there. Same disposition as #496, closed the same way 2026-08-30T00:21Z.

Coverage map

#493 requirement / decision #497
consumer + fetch_identity on the binding Covered, harder — a declared consumer: block (holder_ref + fetch_identity), declared-at-the-minor / constrained-at-the-major
requirement_id declared, map key is a binding id Covered, harder — a qualified requirement_ref (id + requirements document, with a path grammar and a resolution rule), and the map key constrained to a grammar instead of left a convention
Warning channel, deprecation before the major Covered, harder — eight enumerated warning codes, one per shape the major will refuse, with "a warning set that leaves any refused-at-the-major shape unwarned does not serve the deprecation"
shared-secret-identity refinement Covered, and safer by construction — refusal is the default, lifted only by six conditions holding over every pair; the first-against-rest arity bug is replaced, not extended
shared-fetch-identity (new refusal) Covered, harder — shared-authority-identity, raised on the holder/fetch pair independently of secret_ref, replacing rather than accompanying the default finding
D2 fallback, authority-scope-indeterminate Moot — #497 never qualifies the grouping by provider/vault, so the defect the fallback repaired cannot arise
Decision 9 — identity namespace NOT covered → filed as #511
S-4 manifest sha256 refresh Covered, harder — tasks 5.2, plus 5.4's machine-checked recompute-and-refuse gate at cut time
S-14 archive order Covered, harder — 7.2 carries the constraint and a grep check
S-11 placeholders-by-rule Moot — no provider/vault qualification to adjudicate placeholder tokens; the stub case is handled by a declared const-true token that a placeholder may not satisfy

Ported probes — #493's execution-proven findings re-run against #497's ratified text

Prototyped from the ratified delta, the same method the seats used (the change ships no code):

Probe Result
LS-F1 / LI-F1 — dispatch-reuses-content-secret with vault deleted from one side DOES NOT APPLY. Still shared-secret-identity. "Bindings … that share a secret_ref SHALL be REFUSED by default" — bare reference, no vault qualification, so the one-optional-line deletion that broke #493 cannot break this
LS-R3 — lift claimed on an indeterminate qualification (one-sided holder_ref, same fetch_identity) DOES NOT APPLY. Caught, and by the sharper finding: shared-authority-identity. "EVERY CONDITION FAILS CLOSED … an absent block, a shared holder reference"
Codex finding 7 — is the identity qualified by vault? DOES NOT APPLY. One principal, two consumers, two different vaults → reported. "The finding SHALL be raised on the holder/fetch-identity pair … independently of the secret reference"
Decision 9 — same-named principals, one provider, different tenants APPLIES → #511. Reported as an authority collapse, and no member of the block can record the distinction
Map key vs requirement_ref disagreement DOES NOT APPLY. Refused. "each reference's requirement_id EQUALS THE MAP KEY of the binding that carries it" — the laundering attack is closed, where #493 only asked that a disagreement be reported
LI-F3 — manifest sha256 in the release ritual DOES NOT APPLY to #497 (tasks 5.2 / 5.4). The pre-existing red checker half was unfiled → #512

Control: the legitimate two-consumer shape still lifts cleanly, so the probes are discriminating rather than uniformly red.

Issues filed

Record and branch

The convening record is at codexFactory hermes/domain/review-councils/records/2026-08-29-merge-readiness-openxfactory-pr-493-binding-authority.md — PR pending. Three seat returns sit beside it.

The branch change/extend-credential-binding-authority is RETAINED, deliberately, and must not be deleted. It is the readable bot record: five review rounds, eleven bot findings with inline dispositions, and the two execution-proven defects (LS-F1/LI-F1's one-line mutation and LS-R3's indeterminate lift) that #497 is confirmed above to be immune to. Two of those were caught by seats executing prototypes against commits no bot ever read, which is the argument for the §7.4 procedure and is worth keeping legible.

No approve, no merge. Closing on Brett's ruling.

@brettheap brettheap closed this Aug 30, 2026
@brettheap
brettheap deleted the change/extend-credential-binding-authority branch September 2, 2026 18:53
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