Skip to content

Canary: prove required wallet-validation rejects an issuerless review grant - #387

Closed
brettheap wants to merge 1 commit into
mainfrom
canary/wallet-validation-s2-6-20260826
Closed

brettheap wants to merge 1 commit into
mainfrom
canary/wallet-validation-s2-6-20260826

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

DO NOT MERGE. This is the controlled canary for add-wallet-carried-review-authority task 2.6.

The branch removes issued_by from the live registered review-authority grant while preserving valid YAML. Expected result: the required wallet-validation check fails with issuer-unrecorded, and normal merge is blocked by org ruleset 21538893.

After the failed check and ruleset state are captured as realization evidence, this PR will be closed and its branch deleted without landing the malformed grant.

Copilot AI lite review requested due to automatic review settings August 26, 2026 18:06

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

Pull request overview

Controlled canary PR intended to prove the required wallet-validation gate rejects a malformed review-authority grant by removing the issued_by field from the live registered grant, expecting validation to fail with issuer-unrecorded and block merge via org ruleset enforcement.

Changes:

  • Remove issued_by from grant-mrc-0001 to intentionally trigger wallet validator refusal for a review-class grant.

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

Comment on lines 27 to 28
issued_at: "2026-08-25T12:45:00Z"
issued_by: [email protected]
state: active
@brettheap

Copy link
Copy Markdown
Contributor Author

CANARY PASS (expected red), 2026-08-26. Head 423b8f92cc1304b3050f4f41213b490a4e65975f; workflow run 32997867639, job/check-run 98271703098. The YAML syntax gate passed. validate-openxwallet.py . scanned the live production path and returned exactly ERROR [issuer-unrecorded] ... grant-mrc-0001.yaml ... records no issued_by, ending with 1 error(s), 0 warning(s) and exit code 1. GitHub reported this PR BLOCKED; the branch-rules API independently returned required context wallet-validation from org ruleset 21538893 with strict policy off. Closing without merge and deleting the canary branch; malformed content never reaches main.

@brettheap brettheap closed this Aug 26, 2026
@brettheap
brettheap deleted the canary/wallet-validation-s2-6-20260826 branch August 26, 2026 18:18
brettheap pushed a commit that referenced this pull request Sep 1, 2026
…t it

Copilot's review finding, confirmed and taken. Three committed lines pointed at
`~/projects/xFactory/...` files for the 4.5 ruleset read and the 4.6 canary
record. A path on one machine is not evidence anyone else can follow, and an
archived packet is exactly the artifact that outlives the machine.

The facts were already recorded inline — the ruleset parameters, the run id, the
check-run id, the named refusal, the BLOCKED status — so nothing is lost by
dropping the pointers. What replaces them is durable and world-visible: issue
#534, where both the live ruleset read and the four conjuncts are quoted verbatim,
PR #549's own closing comment, and the endpoints themselves, which anyone with org
access can re-read. That is the #387 precedent's shape: the evidence lives in the
prose beside the box and in the pull request's own record.

One correction to the finding's reasoning, since it will be read later: it cites a
repository-constitution rule against host-specific paths, and no such rule turned
up — `docs/tui-spec-questionnaire.md` and
`docs/notebook-projection-migration-evidence-2026-08-24.md` both carry absolute
`/home/brett/...` paths on `main` today. The finding is right on the substance and
wrong about the authority, and it is taken on the substance.

Co-Authored-By: Claude Fable 5 <[email protected]>
brettheap added a commit that referenced this pull request Sep 1, 2026
…laration says so (#534) (#550)

* The declaration stops saying the reader is unrequired, because it is required

`signed-execution-chain-gate` became a REQUIRED check on `main` on 2026-08-31 —
opensoft org ruleset 21957695, a dedicated ruleset mirroring the wallet-gate
precedent 21538893 — and a deliberately broken chain was then SEEN failing a real
pull request: canary #549, run 33455808456, check-run 99695407307, exactly one
named refusal (`leaf_hash_link_broken`), the pull request reported BLOCKED,
closed unmerged with its branch deleted. Those are `add-signed-execution-chain`
tasks 4.5 and 4.6, carried at issue #534. This commit changes no rule and adds no
capability; it makes the RECORDED state match the world.

THE FLIP. The packaged conformance declaration records
`is_required_in_ruleset: true`, names the ruleset in the schema's own
`ruleset_ref`, points `ruleset_evidence_ref` at the live read and the canary, and
moves SEC-R9 from `partial` to `satisfied` — its `declared_residual` removed,
because the validator refuses a satisfied entry that also declares one, and its
reason rewritten to state the act and the canary with their ids. The other eight
entries did not move: SEC-R1 and SEC-R6 keep their structural residuals and the
reader still refuses either recorded `satisfied`. Requirement 9 being met makes
the tranche ENFORCED, not complete. The reader now reports 0 errors and 0
warnings where it emitted the standing `reader-not-required` warning on every
run.

THE TESTS THAT PINNED THE OLD STATE. `test_the_reader_says_the_capability_confers_nothing_yet`
becomes `test_the_reader_no_longer_says_the_capability_confers_nothing` — the
assertion INVERTED rather than deleted — and a new
`test_a_declaration_recording_the_reader_unrequired_still_warns` holds the reader
to the rule for any realization that is NOT gated, so the first test cannot go
green for the wrong reason. `test_a_declaration_recording_sec_r9_satisfied_while_unrequired_is_refused`
keeps its name and its point; its mutation now has to set the reader unrequired
too, because SEC-R9 `satisfied` is the CORRECT record here and the refusal was
always about the pairing.

HISTORICAL RECORDS ARE AMENDED, NEVER REWRITTEN. `contracts/CHANGELOG.md`'s
contract-v2.5 section keeps every sentence it shipped with and gains a dated
addendum; README's OpenSpec Records entry keeps its account of what the archive
act did and did not do, and gains the correction after it; the archived
`tasks.md` has 4.5 and 4.6 ticked with their evidence beneath them and NOT ONE of
its "OPEN"/"NOT DONE"/"BLOCKED BY CONSTRUCTION" restatements edited away — those
were true when written, and deleting them is exactly the tidying-up they exist to
resist. Present-tense claims that are now false are corrected where they live:
both READMEs, the reader's docstring, the workflow header and its `--strict`
rationale, two test docstrings, the manifest comment, and the staged topic's
INDEX entry.

NOT TOUCHED, DELIBERATELY: `openspec/specs/signed-execution-chain/spec.md`, whose
requirement 9 was always conditional and needs no edit — canon moves through an
OpenSpec change, not a state flip; the negative fixture that must keep recording
`is_required_in_ruleset: false`, which still red-proves its code; and the
`OrganizationAdmin: always` bypass, which the declaration states rather than
implies a strength around.

Verified: the gate's exact invocation 0 errors 0 warnings exit 0;
`pytest tests/signed_execution_chain` 75 passed; `validate-manifest-digests.py`
155 rows verify; `openspec validate --all --strict` 78 passed.

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

* Cite the evidence where anyone can read it, not where one machine kept it

Copilot's review finding, confirmed and taken. Three committed lines pointed at
`~/projects/xFactory/...` files for the 4.5 ruleset read and the 4.6 canary
record. A path on one machine is not evidence anyone else can follow, and an
archived packet is exactly the artifact that outlives the machine.

The facts were already recorded inline — the ruleset parameters, the run id, the
check-run id, the named refusal, the BLOCKED status — so nothing is lost by
dropping the pointers. What replaces them is durable and world-visible: issue
#534, where both the live ruleset read and the four conjuncts are quoted verbatim,
PR #549's own closing comment, and the endpoints themselves, which anyone with org
access can re-read. That is the #387 precedent's shape: the evidence lives in the
prose beside the box and in the pull request's own record.

One correction to the finding's reasoning, since it will be read later: it cites a
repository-constitution rule against host-specific paths, and no such rule turned
up — `docs/tui-spec-questionnaire.md` and
`docs/notebook-projection-migration-evidence-2026-08-24.md` both carry absolute
`/home/brett/...` paths on `main` today. The finding is right on the substance and
wrong about the authority, and it is taken on the substance.

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

---------

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