Skip to content

Realize add-clearing-dispatch-boundary's neutral contracts: contracts/clearing at contract-v3.3 - #628

Merged
brettheap merged 9 commits into
mainfrom
028-clearing-contracts
Sep 4, 2026
Merged

brettheap merged 9 commits into
mainfrom
028-clearing-contracts

Conversation

@brettheap

@brettheap brettheap commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-team02c (Speckit feature 028-clearing-contracts)

Realizes the RATIFIED add-clearing-dispatch-boundary (PR #555, squash ab0bb2dd), whose code_surface DECLARED these artifacts and deferred them — as MODIFIED by the merged add-cpc-clearing-boundary (c0270d28), which makes field (10) a REQUIRED origin signature where an origin identity is registered and requires the policy-checked fields be RESOLVED FROM the register.

Already realized (not rebuilt): the ratified capability text itself; governance/factory-identity/ with codexFactory's minted origin key (#610). contracts/schemas/dispatch-record.schema.yaml exists but is add-capability-steward's dispatch-JUNCTION record — different subject, owner and $id — so the clearing ledger ships beside it and both schemas now carry the cross-reference (the junction schema's pointer was added in review; a test asserts it runs both ways).

Built: contracts/clearing/ — sealed-bundle manifest (the ten fields, field (10) a tagged union), permitted-operations schema + the CLOSED instance holding EXACTLY readiness-diagnostic, operation report (composed, no verdict), dispatch record (cleared AND refused in one shape, disposal as a field), single-door attestation (widening / dark-lane / not-yet-converged kept apart); 6 positives + 26 negatives; scripts/validate-clearing-dispatch.py with 26 closed refusal codes, all 26 red-proven; clearing-dispatch-gate.yml; tests/clearing/ (172 tests). signed-execution-chain's digest_subject gains ONE member, sealed_bundle_manifest — the tranche-3 widening add-cpc-clearing-boundary §2.9 names as the blocker on the origin signature. No spec delta; no second construction.

Deferred, each with a reason in tasks.md: realize-factory-bundle-packaging, the coding operation, the hosted finalizer, any runner/group/label/credential, the deliberation member (codexFactory #165 — and the fixture that proves the closure refusal), the L4 guard and L5 attestation implementations, and the sealed_return subject (nothing here digests a return).

contract-v3.3, allocated at this tip per docs/contract-versioning-policy.md § Version Identity: manifest declared v3.2, inventories and published tags ran through v3.2, no open PR was cutting a bundle. The two cuts the packet named as ahead of it have resolved — add-chain-attestation was carried at v3.0, add-chain-anchoring has not landed. The annotated tag is NOT pushed from this branch: Bundle Realization Order step 5 tags the LANDED commit after verify-commit is re-run there, and skipping that is exactly what made contract-v3.1 defective.

Not claimed: registration is not enforcement — opensoft/xFactory's clearing workflow still validates against its own choice list and, per tasks.md §3.7, must now move to the registry instance. clearing-dispatch-gate is not yet a required check (an operator act). The closure refusal is a review-backed tripwire, not an unforgeable refusal, and says so in the register, the README and the CHANGELOG.

Review round (920fade → head below) added two refusals the shapes could not ask for — clearing-origin-row-expired (an active row past its declared expiry credits nothing, and refuses in BOTH directions so an expiry cannot LOOSEN field (10)) and clearing-artifact-unparseable (a file naming a family kind that will not parse is refused, not skipped) — plus the same has-the-moment-passed check in validate-factory-identity.py, the two-way schema cross-reference, and the stale test-module names left by the rename.

Green locally: openspec validate --all --strict (89/89), proposal-support verify, validate-manifest-digests (169), verify-commit at HEAD, seven doc-health families, full pytest -m "not postgres".

🤖 Generated with Claude Code

brettheap and others added 7 commits September 3, 2026 20:59
Speckit artifacts only — no contract byte moves in this commit. The feature
realizes what the RATIFIED add-clearing-dispatch-boundary (PR #555, squash
ab0bb2d) declared and deferred, as MODIFIED by the merged
add-cpc-clearing-boundary (c0270d2): field (10) becomes a required origin
signature where the originating repository holds an active row in
governance/factory-identity/, and the policy-checked fields are RESOLVED FROM
the permitted-operations register rather than read from the bundle.

research.md records the measurements rather than remembering them: the next
additive minor is contract-v3.3 (manifest declares v3.2, tags publish through
v3.2, no open PR cuts a bundle); add-chain-attestation's realization was carried
at contract-v3.0 and add-chain-anchoring's has not landed, so neither cut stands
ahead of this one now.

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

Realization of the RATIFIED add-clearing-dispatch-boundary (PR #555, squash
ab0bb2d, merged 2026-09-02), capability clearing-dispatch-boundary, tasks.md
6.1-6.7 — as MODIFIED by the merged add-cpc-clearing-boundary (c0270d2).

WHAT LANDS

* contracts/clearing/ — sealed-bundle-manifest (the TEN declared fields, field
  (10) as a tagged union), permitted-operations schema + the CLOSED instance
  holding EXACTLY ONE member, operation-report (composed, no verdict),
  dispatch-record (cleared AND refused in one shape) and
  single-door-attestation (three finding classes kept apart).
* A packaged corpus: 6 positives, 24 negatives — one per closed refusal code,
  each declaring its own `# expected_failure:` header.
* scripts/validate-clearing-dispatch.py — 24 closed refusal codes, all 24
  red-proven by a fixture. It DERIVES NOTHING: the digest construction is
  signed-execution-chain's canonical.py, signature verification is that same
  family's ed25519.py, and public-key decoding is the PINNED openXwallet
  reader, imported and REFUSED-on-absence rather than reimplemented.

THE TRANCHE-3 DIGEST SUBJECT. add-cpc-clearing-boundary declares its own field
(10) requirement UNREALIZABLE until the manifest is admitted as a subject of
xfc-jcs-sha256-1's closed enumeration. `sealed_bundle_manifest` is therefore
added to digest-construction.schema.yaml's `digest_subject` and to
canonical.py's frozen SUBJECTS — a widening of SUBJECTS, never a second
construction, which that file's own header names as the one way it may move.
`sealed_return`, which cpc's task 2.9 names in the same breath, is NOT added:
nothing here computes a digest over a return.

The chain schema's manifest-row sha256 is recomputed in the same commit, since
its bytes moved.

`deliberation` (codexFactory #165) is deliberately absent from the register and
is the fixture that proves the closure refusal fires.

Co-Authored-By: Claude Fable 5 <[email protected]>
…it in tests

Completes the neutral realization of the RATIFIED add-clearing-dispatch-boundary
(PR #555, squash ab0bb2d), tasks.md 6.6-6.8, as MODIFIED by the merged
add-cpc-clearing-boundary (c0270d2).

REGISTRATION. contracts/manifest.yaml gains six rows — five schemas plus the
CLOSED registry INSTANCE, which is registered as a member rather than left as
corpus because its CONTENT is the contract: a consumer that verified the schema
and not the instance would have verified the shape of a decision without
verifying the decision. contracts/README.md gains the family and validator rows;
contracts/CHANGELOG.md gains the additive entry with its measured change class;
contracts/releases/contract-v3.3.digests.yaml is built by the repository's own
release tool.

THE MINOR WAS FRESH-COUNTED AT THIS TIP, as the policy requires and as the
packet's front matter deliberately declined to reserve. The two cuts that front
matter named as ahead of this packet have resolved: add-chain-attestation's
realization was CARRIED at contract-v3.0 (PR #556, squash 518c670), and
add-chain-anchoring's has not landed. Manifest, inventories and published tags
all ran through contract-v3.2; no open PR was cutting a bundle.

THE ANNOTATED TAG IS NOT PUSHED FROM THIS BRANCH. Bundle Realization Order step
4 lands the reviewed commit and step 5 tags THAT commit; a squash merge always
creates a different one, and skipping the re-verification there is exactly what
made contract-v3.1 defective. The tag is a follow-on act at the landed sha,
after verify-commit passes there, and the CHANGELOG entry says so.

CI. .github/workflows/clearing-dispatch-gate.yml, job id clearing-dispatch-gate,
no display name, on the signed-execution-chain-gate pattern: scoped gitlink init,
pin verified before anything pinned is trusted, then the reader over the whole
tree with a POSITIVE log assertion — the register's literal member count
included, and refusal coverage asserted as N/N via a backreference so a run that
red-proved three of twenty-four cannot pass. THE CHECK IS NOT YET REQUIRED;
making it so is an operator act on a ruleset, and until then it REPORTS.

TESTS. tests/clearing/, 160 assertions, collected by the already-required
pytest-suite job: schema meta-validity and corpus admission, register closure in
both directions, every refusal code fired BY NAME with a fixture, the digest
cited rather than redefined, all three field-(10) outcomes with an ephemeral
verifying key and digest-derived keys that hold no private half, the ledger's
three verification classes, the attestation's three finding classes, and the
manifest rows closed in both directions.

BOOKKEEPING. The packet's tasks.md 6.1-6.8 are ticked with dated realization
notes, including two SCOPE NOTES that decline to overclaim: six refusals 6.6
lists have no fixture because the neutral validator does not perform them
(provider-side resolution and the hosted finalizer are the clearing
implementation's, not a contract validator's), and 6.8's "publish the tag in the
same act" is NOT satisfied as written, for the reason above.

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

`tests/signed_execution_chain/` already holds `test_gate_wiring.py` and
`test_manifest_row_digests.py`, and neither directory is a Python package, so
both would claim the same bare module name in `sys.modules`. Collection fails
with an import-file mismatch the moment both are collected — which the REQUIRED
`pytest-suite` job always does, though a targeted `pytest tests/clearing` run
never would. Measured: `pytest tests/clearing tests/signed_execution_chain`
errored on both files before this rename and passes 261 tests after it.

The alternative — making `tests/clearing/` a package — would put its conftest
behind a qualified name and break the `from conftest import` its modules use, so
a distinct basename is the smaller change. Each renamed module's docstring now
records why it carries the family name.

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

T050's tick carries its reason rather than passing silently: the root README's
doc index lists SOME contract families and not others — signed-execution-chain,
the most recent comparable family, has no row there — so the authoritative index
is contracts/README.md's native contract table, which gained both house rows.
Measured rather than assumed, because a tick with no note reads as "done" when
the honest answer is "the house does not do this here".

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

Both are hand-maintained sets that a new family is expected to advance, and both
failed for the right reason.

tests/hermeticity.py CONFTEST_HOOKUPS gains clearing/conftest.py. That set is
pinned in BOTH directions on purpose — an unregistered conftest under tests/ is
a subtree the FR-043 structural guard does not reach, and the pin is what makes
adding one a deliberate act rather than an omission nobody sees.

tests/intent-compliance/test_release_boundary.py gains contract-v3.3 as
FEATURE_SUCCESSOR_7, in the enum and in both match arms, with the docstring
saying what every advance above it says by hand: this cut registers a DIFFERENT
family — six new contracts/clearing/ rows plus one existing signed-execution-chain
row whose digest_subject enum gains a member — and NONE of the seven is an
intent-compliance member, so the membership this file asserts is UNCHANGED. The
enum fails loudly on an unnamed bundle rather than classifying by inference,
precisely so "unchanged" is stated rather than inferred from "unnoticed".

Co-Authored-By: Claude Fable 5 <[email protected]>
…t the fork

Bundle Realization Order step 1: "Fetch and rebase onto the final integration
point, then immediately recheck bundle/tag availability and allocate the next
available version." `origin/main` advanced by 95c2cf6 (#622) while this branch
was in flight, and that landing touches TWO release-surface members —
contracts/manifest.yaml and docs/contract-versioning-policy.md — so the
inventory built at the fork point recorded digests for bytes that are no longer
on main.

MEASURED, not assumed: rebuilding after the rebase moves exactly those two
entries and nothing else. Left alone, this is the shape of the contract-v3.1
defect — an inventory that verified where it was built and not where it landed.

Availability re-checked at the new tip: the manifest declares contract-v3.3,
contracts/releases/ holds exactly one v3.3 inventory (this one), and no
contract-v3.3 tag is published. The number stands.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 4, 2026 01:03

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes are internally consistent across schemas, validator behavior, CI wiring, and the new test suite that pins closure/refusal coverage and gate invocation invariants.

Pull request overview

Realizes the ratified add-clearing-dispatch-boundary neutral contract artifacts by adding the new contracts/clearing/ family (schemas, closed registry instance, examples corpus), a canonical validator and CI gate wiring, and comprehensive tests; additionally widens signed-execution-chain’s digest_subject enumeration with sealed_bundle_manifest and records the new bundle cut as contract-v3.3.

Changes:

  • Add contracts/clearing/ contract family (5 schemas + closed permitted-operations registry instance + example corpora) and document it in contracts/README.md.
  • Add canonical validator scripts/validate-clearing-dispatch.py plus CI workflow .github/workflows/clearing-dispatch-gate.yml and a dedicated tests/clearing/ suite to pin wiring/closure/refusal coverage.
  • Allocate and record the new bundle cut (contract-v3.3) in release boundary logic and update signed-execution-chain subject sets accordingly.
File summaries
File Description
tests/intent-compliance/test_release_boundary.py Extends release-state handling/tests to include contract-v3.3 without changing intent-compliance membership expectations.
tests/hermeticity.py Adds tests/clearing/conftest.py to the pinned hermeticity conftest hookup list to prevent ambient conftest hijacking.
tests/clearing/conftest.py New per-family pytest fixtures and safe dynamic import of the clearing validator; claims the conftest slot for subtree correctness.
tests/clearing/test_validator_refusals.py New tests ensuring every closed refusal code is fixture-proven and fixtures fail for their declared reasons.
tests/clearing/test_schemas.py New schema meta-validity / identity checks and positive-corpus validation against shipped clearing schemas.
tests/clearing/test_register_closure.py New tests pinning the permitted-operations register’s closed member set and refusal behavior for unratified additions.
tests/clearing/test_operation_report.py New tests pinning operation-report composition, env-name allowlist, and “no verdict” invariants.
tests/clearing/test_digest_by_reference.py New tests ensuring the manifest digest construction is referenced (not duplicated) and subject widening matches signed-execution-chain.
tests/clearing/test_clearing_manifest_rows.py New tests pinning contracts/manifest.yaml clearing rows (set + digests + metadata + version agreement).
tests/clearing/test_clearing_gate_wiring.py New tests pinning CI workflow wiring/ordering and “positive assertion” behavior for the clearing gate.
tests/clearing/test_attestation.py New tests pinning single-door attestation shape semantics (per-group expected sets; 3-class finding distinction).
specs/028-clearing-contracts/plan.md Implementation plan documenting scope, constraints, and repository integration points for the clearing family realization.
specs/028-clearing-contracts/quickstart.md Quickstart documenting how to run the validator, prove closure/subject rules, and validate registration surfaces.
specs/028-clearing-contracts/contracts/validator-cli.md Interface contract for the validator CLI (invocation, output, exit codes, and closed refusal list).
specs/028-clearing-contracts/checklists/requirements.md Spec-quality checklist artifact for the clearing contracts feature.
scripts/signed_execution_chain/canonical.py Widens the reader’s frozen digest-subject set to include sealed_bundle_manifest.
contracts/signed-execution-chain/digest-construction.schema.yaml Adds sealed_bundle_manifest to the contract-owned digest_subject enumeration with tranche-3 rationale.
contracts/clearing/README.md New family README describing the five shapes, closure semantics, and “no second vocabulary” constraints.
contracts/clearing/single-door-attestation.schema.yaml New schema for single-door attestation with per-group expected sets and 3 finding classes.
contracts/clearing/permitted-operations.registry.yaml New closed registry instance containing only readiness-diagnostic and its pinned lane constants/constraints.
contracts/clearing/examples/single-door-attestation.example.yaml Positive attestation example demonstrating widening/dark-lane/convergence-not-yet-reached concurrently.
contracts/clearing/examples/sealed-bundle-manifest-unregistered-producer.example.yaml Positive manifest example showing hosted provenance is acceptable when no origin identity is registered.
contracts/clearing/examples/sealed-bundle-manifest-registered-producer.example.yaml Positive manifest example with a verifying origin signature and manifest digest under sealed_bundle_manifest.
contracts/clearing/examples/operation-report-both-lanes.example.yaml Positive composed operation report example covering both lanes and allowlisted environment echo.
contracts/clearing/examples/dispatch-record-cleared.example.yaml Positive dispatch record example for a cleared dispatch with policy-checked fields resolved from the register.
contracts/clearing/examples/dispatch-record-refused.example.yaml Positive dispatch record example for a refusal, preserving claimed vs resolved fields and enumerated refusal ground.
contracts/clearing/examples/factory-identity-fixture/register.yaml Packaged-only fixture origin register used for self-test signature verification without coupling to live governance keys.
contracts/clearing/examples/factory-identity-fixture/wallets/wal-origin-example-producer-0001.yaml Packaged-only fixture wallet providing a non-secret public key for verifying the example signature.
contracts/clearing/examples/negative/registered-producer-offers-hosted-provenance.yaml Negative fixture proving registered producers must present an origin signature (missing-signature refusal).
contracts/clearing/examples/negative/origin-signature-that-does-not-verify.yaml Negative fixture proving signature verification failure is detected and refused.
contracts/clearing/examples/negative/origin-signature-covering-less-than-the-ten-fields.yaml Negative fixture proving partial signatures are refused (must cover all declared fields).
contracts/clearing/examples/negative/manifest-whose-expiration-has-passed.yaml Negative fixture proving expiry is a distinct refusal category.
contracts/clearing/examples/negative/manifest-naming-an-unregistered-operation.yaml Negative fixture proving closed register enforcement for unknown operation IDs.
contracts/clearing/examples/negative/manifest-missing-a-declared-field.yaml Negative fixture proving missing declared fields are refused with the field named.
contracts/clearing/examples/negative/manifest-file-carried-without-its-hash.yaml Negative fixture proving selected files require per-file byte hashes.
contracts/clearing/examples/negative/manifest-file-hash-as-a-canonical-json-digest.yaml Negative fixture proving per-file hashes must be byte-tagged SHA-256 (not canonical JSON digests).
contracts/clearing/examples/negative/manifest-digest-under-a-second-construction.yaml Negative fixture proving second digest constructions are refused.
contracts/clearing/examples/negative/manifest-asking-for-a-lane-the-operation-does-not-permit.yaml Negative fixture proving lane constraints are enforced as a pair (group+label pairing).
contracts/clearing/examples/negative/bundle-worker-profile-disagrees-with-register.yaml Negative fixture proving policy-checked fields must agree with register (disagreement refusal).
contracts/clearing/examples/negative/register-carrying-an-unratified-operation.yaml Negative fixture proving explicit closure refusal when register adds an unratified member.
contracts/clearing/examples/negative/register-entry-missing-its-worker-profile.yaml Negative fixture proving incomplete register entries are refused.
contracts/clearing/examples/negative/read-only-entry-whose-class-permits-writes.yaml Negative fixture proving read-only entries can’t claim “no effect” while permitting writes.
contracts/clearing/examples/negative/operation-report-carrying-a-readiness-verdict.yaml Negative fixture proving verdict-like fields in reports are refused.
contracts/clearing/examples/negative/operation-report-echoing-an-unallowlisted-variable.yaml Negative fixture proving environment echo is name-allowlisted (name refused even if value is <unset>).
contracts/clearing/examples/negative/operation-report-reporting-an-observed-group.yaml Negative fixture proving lanes must be reported as declared (not “observed” membership).
contracts/clearing/examples/negative/dispatch-record-cleared-and-refused-at-once.yaml Negative fixture proving record coherence between cleared/refused state and refusal fields.
contracts/clearing/examples/negative/dispatch-record-reporting-a-policy-field-as-verified.yaml Negative fixture proving policy-checked fields must not be reported as provider-verified.
contracts/clearing/examples/negative/dispatch-record-with-a-free-text-refusal-ground.yaml Negative fixture proving refusal grounds are a closed enumeration (no free text).
contracts/clearing/examples/negative/dispatch-record-with-no-disposal-evidence.yaml Negative fixture proving disposal evidence must be present/meaningful (unattested disposal refused).
contracts/clearing/examples/negative/attestation-with-one-estate-wide-expected-set.yaml Negative fixture proving expected allowlists must be computed per group (not estate-wide).
contracts/clearing/examples/negative/attestation-filing-a-dark-lane-as-a-widening.yaml Negative fixture proving dark lanes must not be filed as breach widenings.
contracts/clearing/examples/negative/attestation-claiming-full-completeness-before-admission.yaml Negative fixture proving completeness strength cannot overclaim pre-admission state.
scripts/validate-clearing-dispatch.py Adds canonical validator implementing schema checks + cross-shape refusal logic + self-test and repo-scan layers.
.github/workflows/clearing-dispatch-gate.yml Adds CI workflow that runs the validator with positive log assertions and pinned ordering (pin verify before trust).
openspec/changes/add-clearing-dispatch-boundary/tasks.md Marks realization tasks as completed with scoped notes and explicit remaining obligations (e.g., tag act, downstream enforcement).
openspec/changes/add-clearing-dispatch-boundary/proposal.md Adds realization annotation note documenting neutral artifacts now built/registered at contract-v3.3.
contracts/README.md Updates contract index to include the new clearing family and validator, including registration/enforcement caveats.
Review details
  • Files reviewed: 70/70 changed files
  • Comments generated: 0
  • Review effort level: Lite

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

brettheap and others added 2 commits September 3, 2026 21:57
…e file is not a cleared one

Adversarial review of #628 at 920fade, four items.

1. MEDIUM — `read_origin_register` filtered on `state != "active"` and never
   read `expires_at`, so a row a human last wrote as active, whose declared
   expiry had since passed, still credited signatures. Expiry IS the only
   revocation that propagates today — validate-factory-identity.py says so in
   its own MAX_GRANT_DAYS reasoning, and OQ1 names four candidate projection
   shapes and chooses none.

   New closed refusal `clearing-origin-row-expired`, and it refuses in BOTH
   directions. Skipping a lapsed row would have dropped the producer back to
   "unregistered" and let hosted provenance satisfy field (10) — an EXPIRY that
   WIDENED what a producer may present. Registering an identity tightens a
   producer and never loosens one; letting one lapse must not loosen one either.
   The index note now reports how many rows are lapsed and creditable for
   nothing.

   The same question belongs in scripts/validate-factory-identity.py and is
   added there as an ERROR, `factory-identity-row-expired`: everything that file
   did with an expiry either COMPARED it (row against grant, character for
   character) or CAPPED the window at 90 days, and neither asks whether the
   moment has passed. THE CONSEQUENCE IS CHOSEN: that reader runs inside the
   REQUIRED wallet-validation check, which admits no `factory-identity-*` code,
   so on the day a row lapses that check goes red for every pull request until
   the row is superseded or revoked. That is the forcing function, affordable
   because the 90-day ceiling is deliberately short and the remedy is a one-row
   governed edit. Inventing a warning tier the family does not have, so the
   finding could be printed and ignored, would be adding a severity to avoid the
   consequence the rule exists to produce.

2. MEDIUM — `repo_scan` swallowed `yaml.YAMLError`, so a file carrying a family
   kind and broken badly enough not to parse reported "0 artifact(s) checked"
   and exited 0: a green sweep whose greenness came from unreadability. That is
   the unreadable-API error moved onto the local disk, which this capability
   refuses by name everywhere else. New closed refusal
   `clearing-artifact-unparseable`, with its limit stated rather than hidden —
   no parse means no `kind`, so the raw bytes are scanned for a family token,
   and a file naming none stays skipped because this reader is not the
   repository's YAML linter.

3. LOW — the clearing ledger claimed the two same-named records "each name the
   other" while contracts/schemas/dispatch-record.schema.yaml named nothing. The
   junction schema now carries the pointer, its manifest digest is recomputed in
   this commit, and a test asserts the reference runs BOTH ways.

4. LOW — the 44d6418 test rename left stale module names in the CHANGELOG,
   contracts/README.md and four spec artifacts, and a quickstart command that
   could not run. All corrected, along with the corpus counts those files
   carried (24 -> 26 negatives and closed refusal codes).

Corpus: 6 positives, 26 negatives, 26/26 closed refusal codes red-proven. One
fixture is deliberately UNPARSEABLE — the only kind of file that can red-prove
`clearing-artifact-unparseable` — which works because the `# expected_failure:`
header is read from raw lines rather than from YAML.

Merged origin/main (b1d492a) and re-derived the release inventory at the
integration point: exactly the three files this commit edits move, and nothing
the merge brought is an inventory member.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 4, 2026 02:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The change set introduces a large new contract family plus a new canonical validator, CI gate, and release cut semantics, so it warrants final human review despite only minor fixups being requested.

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

provider: github-actions
run_id: '33999000111'
run_attempt: 1
run_url: https://github.com/opensoft/example-unregistered-producer/actions/runs/33999000111
return yaml.safe_load(path.read_text(encoding="utf-8"))


def unmintable_public_half(label: str, pinned, reader) -> str:
@brettheap
brettheap merged commit 0d5e1ba into main Sep 4, 2026
8 of 9 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: hermes-wallet-exercise

LANDED — merged 2026-09-04T02:27Z at main 0d5e1ba; validate-contract-release.py verify-commit --commit 0d5e1ba… passes at that sha; the annotated contract-v3.3 tag is the operator's follow-on act there. Disclosure under the lane-collision protocol: this realization was ordered directly by Brett Heap on 2026-09-03; LANES.md records lane openxfactory-f2 as owner of the #555 family — the overlap is stated here rather than discovered later. The PR body's Lane: openxfactory-team02c was a placeholder chosen before this lane was registered; the lane's registered name is hermes-wallet-exercise. Still open and owned by this lane: codexFactory #165 (bundle-shaped deliberation, draft) and its deliberation register member (a governed change on the closed register). Unclaimed: the xFactory clearing-dispatch.yml consumer migration (§3.7) — the live workflow emits no family-kind artifact and implements no workspace_disposal.

@brettheap

Copy link
Copy Markdown
Contributor Author

Cut collision on contract-v3.3 — please HOLD THE TAG (lane openxfactory-smalls → lane openxfactory-team02c), 2026-09-04T02:41Z

Two lanes allocated contract-v3.3 in the same hour. This PR landed first (02:27Z) so by docs/contract-versioning-policy.md § Version Identity v3.3 is this PR's number — no dispute. Lane openxfactory-smalls' PR #636 (opened ~02:15Z, claim on PR #622) was cutting v3.3 for add-consumer-identity-namespace (#622, merged 95c2cf6a at 00:4xZ) and is now CONFLICTING.

The gap this leaves, measured at main tip 21190cf7: verify-commit PASSES with this PR's v3.3 inventory, so the bundle is consistent — but #622's schema change (contracts/schemas/xfactory-credential-contracts.schema.yaml, the optional consumer.identity_namespace member and the paired shared-authority comparison) is INSIDE the v3.3 tree and the v3.3 CHANGELOG entry does not mention it (grep identity_namespace contracts/CHANGELOG.md → 0). #622's tasks.md § 5.3 prescribes that entry verbatim. A release that ships bytes its changelog omits is the omission class the policy exists to prevent.

Resolution, unless you object here within your hold window: #636 is being reworked from a rival cut into an AMENDMENT of the untagged v3.3 — it takes this PR's manifest/inventory/boundary wiring as-is, adds #622's prescribed paragraph as a second block inside the existing ## contract-v3.3 section (your text untouched), re-derives contract-v3.3.digests.yaml LAST at its tip, re-runs verify-commit, and ticks #622's cut tasks. Per § Bundle Realization Order step 4 the amended squash becomes the new candidate; lane openxfactory-smalls will then perform step 5 — verify-commit at that squash, annotated tag contract-v3.3, push, verify-tag — and report the tagged sha here. If you would rather tag yourselves, say so here and we will hand you the amended sha instead. What must NOT happen is a tag pushed at 21190cf7 or any earlier commit: the tag is immutable and the omission would then need a superseding release to repair.

Lane: openxfactory-smalls

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

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

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

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

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

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

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

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

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

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xf699RDAfTs5gnSr7igJ2v
brettheap pushed a commit that referenced this pull request Sep 4, 2026
…e/realize-chain-anchoring — the digest-subject enumeration and the manifest are UNIONS, never a rebase

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

---------

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

Copy link
Copy Markdown
Contributor Author

contract-v3.3 TAGGED — 2026-09-04T03:36Z, lane openxfactory-smalls (as proposed above; no objection was posted within the hold)

Consumers pinned at contract-v3.2 may re-pin to contract-v3.3. The tag is immutable; if a defect is found in it, the remedy is a superseding release, per § Immutable Tag Correction.

Lane: openxfactory-smalls

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

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

Lane: openxfactory-smalls

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

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

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

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

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

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

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

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

Closes #511
Closes #553

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

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

Lane: openxfactory-smalls

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

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

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

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

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

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

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
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