Skip to content

Archive add-dispatch-credential-contract (realized: openXdox dispatch minter live) - #177

Closed
brettheap wants to merge 1 commit into
mainfrom
change/archive-add-dispatch-credential-contract
Closed

brettheap wants to merge 1 commit into
mainfrom
change/archive-add-dispatch-credential-contract

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Summary

  • The openXdox intent-plane dispatch credential migration is fully realized. Ticks the six remaining tasks (1.3, 3.1, 3.2, 3.3, 4.1, 4.2 — all tasks now complete) with evidence:
    • 3.1 Org-owned openXdox Intent Dispatch GitHub App: ID 4582547, installation 153530982, {actions: write, metadata: read}, installed on opensoft/xFactory.
    • 3.2 Token-minter (Omnigent-Install CronJob, pinned Omnigent-Install@66ca33f) delivering short-lived installation tokens by reference into the inbox's dispatch secret; inbox stays stdlib-only.
    • 3.3 QA dispatch secret repointed off the personal-PAT stopgap; dox-intent-inbox-qa-20260810 deleted by Brett via GitHub settings 2026-08-15.
    • 4.1 End-to-end proof: an authorized intent dispatched intent-apply run #31856312594 (completed/success) on opensoft/xFactory; the minted token proved actions:write on that one repo only (contents 403); the content App (XFACTORY_APP, Contents:write) confirmed a separate binding. hermes-install closeout: readiness dox-dispatch-minter-ready = ready (6/6); CIR cir-opensoft-qa-dox-dispatch-minter completed.
  • Task 1.3 — registration at realization: allocates contract-v1.32 (the next additive bundle after the v1.31 baseline, per docs/contract-versioning-policy.md Version Identity item 2 + Bundle Realization Order step 1). This cut folds in TWO deltas:
    1. The two ADDED credential-contracts requirements from this change (dispatch-only least-privilege + serving-tier separation; reference-delivered credential with operator-as-binding).
    2. The openxWallet signature_algorithm widening (rsa-2048-sha256, rsa-3072-sha256) that had been sitting in CHANGELOG's Unreleased — pending bundle registration (fold into the next cut) note since PR Widen wallet signature algorithms to what the platform can verify #130 — since this genuinely is the next cut, it is folded in rather than left stale.
    • contracts/manifest.yaml contract_bundle_version bumped v1.31 -> v1.32; the openxwallet-record consumption_rule note repointed from "unreleased" to contract-v1.32.
    • contracts/CHANGELOG.md gets a new ## contract-v1.32 entry replacing the Unreleased section.
    • README OpenSpec Records entry moved from Active to Archived changes.
    • Deliberately NOT done: the release digest inventory (contracts/releases/contract-v1.32.digests.yaml) and the annotated contract-v1.32 git tag. Per the Bundle Realization Order, both are cut in a follow-up step once this content lands on published origin/main — mirroring the exact two-step precedent of contract-v1.31 (a content-registration commit, then a later separate "Cut contract-v1.31" commit + tag, done directly by Brett). Flagging for human follow-up, not creating a tag from this PR branch.
  • Archived via scripts/proposal-support.py . archive add-dispatch-credential-contract --yes (not bare openspec archive). This change had no staging-topic origin, so an ad_hoc origin was declared first (declare-adhoc) to satisfy the tool's strict origin gate; it also had never staged any supporting files, so a minimal, honest empty supporting-docs/manifest.yaml (files: []) was added so the packaging step had something truthful to work with — no content was fabricated. The archive folder is openspec/changes/archive/2026-08-14-add-dispatch-credential-contract/ (the openspec CLI's own clock briefly read 2026-08-15 UTC mid-run while local time was still 2026-08-14; the folder was renamed back to 2026-08-14 for date consistency with everything else in this PR).
  • Promotes the two ADDED requirements into openspec/specs/credential-contracts/spec.md (spec now carries the dispatch-only least-privilege/serving-tier-separation requirement and the reference-delivered/operator-as-binding requirement, alongside the pre-existing worker-credential requirements).

Validation

  • OPENSPEC_TELEMETRY=0 openspec validate --all --strict: 57/57 passed, 0 failed.
  • scripts/validate-credential-contracts.py self-test: 2 positive + 3 negative examples confirmed; python3 -m pytest tests/credential_contracts/: 2 passed.
  • scripts/validate-manifest-digests.py: 131/132 verify; the one failure (contracts/omnigent/omnigent-domain-overlay.schema.yaml) is a pre-existing mismatch on origin/main, confirmed unrelated to this change (reproduced against a clean origin/main checkout before any edits).
  • scripts/doc-health.py --single-repo .: zero new findings versus a baseline captured before this branch's edits (diffed via --previous-report/--new-findings-out). The repo carries pre-existing baseline noise (3 critical record-immutability findings, several location-conformance/proposal-origin/status-validity findings, 2 staged-candidate-aging warnings) — all confirmed pre-existing and out of this change's scope; none touch any file this PR modifies.

Test plan

  • OPENSPEC_TELEMETRY=0 openspec validate --all --strict passes (57/57 here)
  • python3 -m pytest tests/credential_contracts/ passes
  • python3 scripts/validate-manifest-digests.py shows only the known pre-existing omnigent-domain-overlay mismatch
  • Follow-up (human, out of this PR): once merged to origin/main, cut the contract-v1.32 release digest inventory and annotated tag per the Bundle Realization Order

🤖 Generated with Claude Code

… minter live)

The downstream migration is fully realized: the org-owned openXdox Intent
Dispatch GitHub App (ID 4582547, installation 153530982, actions:write +
metadata:read only) is installed on opensoft/xFactory; a token-minter
(Omnigent-Install CronJob, pinned Omnigent-Install@66ca33f) delivers
short-lived installation tokens by reference into the inbox's dispatch
secret; the QA dispatch secret is repointed off the personal-PAT stopgap
(dox-intent-inbox-qa-20260810, retired); and an authorized intent dispatched
intent-apply run #31856312594 (completed/success) on opensoft/xFactory with
the minted token proven actions:write-only on that one repo (contents 403),
the content App (XFACTORY_APP) confirmed a separate binding. hermes-install
closeout: readiness result dox-dispatch-minter-ready = ready (6/6); CIR
cir-opensoft-qa-dox-dispatch-minter completed.

Ticks tasks 1.3/3.1/3.2/3.3/4.1/4.2 with evidence notes (all tasks now
complete). Registers the delta at realization: allocates contract-v1.32 (the
next additive bundle after the v1.31 baseline) and folds in, at the same
cut, the openxWallet signature-algorithm widening that was sitting in
CHANGELOG's "Unreleased — pending bundle registration (fold into the next
cut)" note since PR #130 — this being that next cut. contracts/manifest.yaml
contract_bundle_version bumped; the openxwallet-record consumption_rule note
repointed from "unreleased" to contract-v1.32. The release digest inventory
and annotated tag are deliberately deferred to a follow-up "Cut
contract-v1.32" step once this lands on published origin/main, mirroring
the two-step contract-v1.31 precedent.

Archives via scripts/proposal-support.py (declared an ad_hoc origin first,
since this change never had a staging topic; added a minimal, honest empty
supporting-docs/manifest.yaml since it staged no files). Promotes the two
ADDED requirements into openspec/specs/credential-contracts/spec.md.
openspec validate --all --strict: 57/57. validate-credential-contracts.py
self-test and the dispatch pytest suite pass. validate-manifest-digests.py:
131/132 (the one pre-existing failure, contracts/omnigent/
omnigent-domain-overlay.schema.yaml, predates this branch and is unrelated).
doc-health single-repo self-gate: zero new findings versus baseline.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 15, 2026 02:19

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@brettheap

Copy link
Copy Markdown
Contributor Author

Closing as superseded. The realization this PR reports is real and I verified most of it independently, but the PR's snapshot and its central bookkeeping act have both been overtaken by main. Investigated 2026-08-25; recording the evidence here so the eventual archive session starts from it rather than repeating the forensics.

Why it cannot merge as-is

1. It is mergeable-CONFLICTING against main. The merge base is e4394a06 (2026-08-14). main has since taken three commits to this change's active packet that the PR's archived snapshot predates:

commit what it added to the active packet
da1b0e90 slice 5A of govern-openspec-corpus-membership
450735f6 corrected slice 5A's dispatch-credential derivation
b7513733 swept the derivable proposal-origin warnings

Concretely, main's proposal.md now carries Status: ratified plus the Ratified: 2026-08-13 by Brett Heap … citation (added under the 2026-08-24 campaign, correcting 5A's first incomplete draft derivation under Brett's 2026-08-23 ruling), and main's .openspec.yaml carries the swept origin / approved_by pair from the 2026-08-25 sweep. The snapshot archived in this PR has neither. Merging it would archive a packet with the campaign's record state reverted.

2. Its central act is no longer possible. Task 1.3 here allocates contract-v1.32. That version was cut on 2026-08-15 for a different change — the Subject Hermes overlay kind plus the openxWallet RSA widening (add-subject-overlay-contract, PR #183) — and it is a published annotated tag, which the versioning policy makes immutable. main is now at contract-v1.42. The contracts/manifest.yaml, contracts/CHANGELOG.md and Unreleased-section edits in this PR are all written against a world that no longer exists.

What I verified as genuinely realized

Checked first-hand against live sources, not against this PR's body:

  • 3.1 — the App. Confirmed on the org installation list: app_id 4582547 (slug openxdox), installation 153530982, permissions exactly {actions: write, metadata: read}, repository_selection: selected, created 2026-08-13.
  • 3.2 — the token-minter. Present in opensoft/Omnigent-Install@main: dispatch_token_minter/mint.py, containers/dispatch-token-minter/Dockerfile, deploy/kubernetes/base/minter-cronjob.yaml, deploy/kubernetes/bootstrap/minter-rbac.yaml. The CronJob topology is real.
  • 4.1 — the end-to-end proof. intent-apply run 31856312594 on opensoft/xFactory, main, completed/success, 2026-08-15T01:22Z.
  • 3.3 — the retired PAT. Unverifiable by construction; a deleted credential leaves no artifact. It rests on the record in this PR's body.

Separately: the two ADDED credential-contracts requirements are not in openspec/specs/credential-contracts/spec.md on main (it carries five, none of them these), so the promotion this PR performs is still genuinely owed. The credential-contracts schema did get its first manifest registration, but at contract-v1.33, by add-client-identity-roster — not by this change.

Why I am not re-running the archive in the same breath

Task 1.3 is genuinely undischarged, and discharging it is not bookkeeping. The proposal's front matter reads target_release: next additive contract bundle (allocated at realization per docs/contract-versioning-policy.md), and the Bundle Realization Order makes that a serialized release act: allocate the next available version, update every release surface atomically in one candidate commit, run every gate against that exact commit, land it on published origin/main, then publish an annotated tag verified from a fresh checkout. This PR's own body flags the last step as human-owned, mirroring the contract-v1.31 two-step. There is also a real prior question — whether this change owes a bundle at all, given that it moves no contract schema bytes and its examples are content-addressed and deliberately outside the digest inventory — and that is a ruling, not a cleanup.

So the archive is left for a session that can settle 1.3 and cut or waive the bundle deliberately. add-dispatch-credential-contract stays active on main with its README OpenSpec Records row in the Active block, which is the honest state.

Closing rather than rebasing: the rebase would have to discard 1.3's entire contract-registration half, re-derive it against v1.42, and re-take the packet's current record state — which is a fresh archive, not a fixup of this branch.

@brettheap brettheap closed this Aug 25, 2026
brettheap pushed a commit that referenced this pull request Aug 26, 2026
… on the evidence it already had

add-dispatch-credential-contract has been sitting active since 2026-08-13 on a
promise it did not owe. Its proposal declared "target_release: next additive
contract bundle", and PR #177 duly tried to pay that debt by allocating a
contract-v1.32 cut. Brett ruled in session on 2026-08-25 that the line was
authoring boilerplate, mis-authored: this change moves no bytes under
contracts/, so there is no bundle to allocate. PR #177 was closed the same day
as superseded. The phantom obligation traces to a stale handoff assumption
carried forward at authoring time, never to a finding.

target_release is respelled to the ruled text — none, moving no contract bytes;
the schema shape it uses was published at DTN-004 and registered at
contract-v1.33 by add-client-identity-roster; examples and validator are
content-addressed by commit. A target_release_note records what the old value
said and why it was wrong, so the next reader does not re-derive the debt.

Task 1.3 ticks on that reading. Its README half landed with PR #168 (4e4190c);
its manifest/CHANGELOG half does not exist to perform, and deliberately so — the
credential-contracts family was registered at contract-v1.33 by a different
change, whose own amendment record rejected routing that registration through
THIS lane as cross-lane coupling.

Tasks 3.1, 3.2, 3.3 and 4.1 tick on evidence read back from the records
themselves rather than restated from the PR that claimed them: App 4582547 and
installation 153530982; the minter topology resolved as an in-cluster CronJob
pinned at omnigent-install 66ca33fd; intent-apply run 31856312594
completed/success with the minted token showing actions:write on one repo and
contents 403; readiness result
ready-opensoft-dox-qa-dispatch-minter-20260815t013000z ready on 6/6; and CIR
cir-opensoft-qa-dox-dispatch-minter completed at seq 9. The deletion of the
personal PAT dox-intent-inbox-qa-20260810 rests on Brett's record, and is
recorded as an operator attestation rather than a machine probe, because a
fine-grained PAT under an individual account is not enumerable by the
automation — the fragility this change existed to retire.

The fourth negative example task 2.1 promised is dispositioned rather than
shipped, and the paragraph corrects the record without disturbing the tick. An
operator-fixing contract cannot be written: a binding naming its operator in
owner is the CONFORMANT case, exclusivity has no field in the schema, and adding
one would be a schema change owing the very bundle this change does not owe. The
requirement's own scenarios agree — the two that say "the validator MUST report
an error" got fixtures; this one names no enforcer and its sibling assigns
rejection to repository policy. It is enforced by policy and by Case B of the
binding runbook, never by a fixture.

The archive itself is thin and measured. The delta is ADDED-only, so it carries
no MODIFIED-restatement hazard, and neither requirement title existed anywhere
in canon. Promotion moved exactly two requirements and six scenarios into
credential-contracts, taking it 5 -> 7 and 18 -> 24; the promoted bytes are
identical to the delta bytes, and the other 49 promoted specs are unchanged
byte for byte. promotion-fidelity is clean at error severity with the packet
genuinely in the scan set — 1 of 98 archived packets, not exempt, both titles
resolving into canon. openspec validate --all --strict reads 76, one fewer
active than before.

The archive folder is dated 2026-08-25, not the 2026-08-26 the CLI derived from
UTC while local time was still the 25th. The date prefix records when a packet
archived, and this one archives in the same commit and on the same day as the
seven siblings already dated 2026-08-25.

The README row moves Active -> Archived and stops speaking in plan voice: what
it promised to realize, it now cites as landed.

Co-Authored-By: Claude Fable 5 <[email protected]>
@brettheap
brettheap deleted the change/archive-add-dispatch-credential-contract branch September 4, 2026 19:25
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