Skip to content

test(id): update non-player signer probe for the #6424 refusal - #8972

Merged
dezren39 merged 1 commit into
mainfrom
fix/probe-attestation-sign
Nov 12, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/probe-attestation-sign

Conversation

@dezren39

@dezren39 dezren39 commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Main is currently red: cargo test --workspace in pkgs/id fails to compile tests/probe_attestation_sign.rs (E0061, 2 sites). PR #6559 (#6424) gave sign_claim a &GenesisAgreement parameter and made both sign functions refuse non-player signers, updating every other test file but missing this salvaged probe, which also pinned the old no-refusal behaviour.

Fix (tests only, one file):

  • Pass &agreement at both sign_claim call sites.
  • Pin the new behaviour: stranger genesis/claim sign attempts return Err(SignError::NotAPlayer).
  • Viewer-side step now builds state from genuine player genesis events only (a stranger can no longer mint a signed claim via the public API); duplicate-seat refusal control unchanged.

Verified on the laptop: cargo test -p id --test probe_attestation_sign --test attestation_signer_player green (1 + 4 tests), cargo test -p id --no-run compiles all facade test targets with zero errors.

Context: found while capturing the step-0 baseline for crate-split step 6 (#4409); the split baseline needs a green main.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

PR #6559 made sign_genesis/sign_claim refuse non-player signers
(SignError::NotAPlayer) and gave sign_claim a &GenesisAgreement
parameter, but the salvaged probe test still called the old 5-arg
sign_claim and pinned the pre-#6424 behaviour, so the id test suite
no longer compiled on main. Update the probe to the new signature
and pin the refusal; the viewer-side check now uses only genuine
player genesis events, since a stranger can no longer mint a signed
claim through the public API.
@dezren39
dezren39 requested a review from a team as a code owner November 12, 2026 18:39
@dezren39
dezren39 merged commit 6741fc5 into main Nov 12, 2026
13 of 14 checks passed
@coderabbitai

coderabbitai Bot commented Nov 12, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 26 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 89d06c26-15d8-4e54-88fd-3faa39f61b98
Commits

Reviewing files that changed from the base of the PR and between cc02d60 and 7964b06.

Files selected for processing: 1

  • pkgs/id/tests/probe_attestation_sign.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T18:40:49.150367Z 7964b06 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 deleted the fix/probe-attestation-sign branch November 12, 2026 18:39
@dezren39

Copy link
Copy Markdown
Member Author

Salvage note (lane any-b, task 17212): duplicate PR #8785 diffed against this canonical PR — nothing unique

Per the duplicate-PR protocol, PR #8785 (the competing version of this same probe update, head f771d36) was diffed assertion-by-assertion against the version of pkgs/id/tests/probe_attestation_sign.rs that landed here in 7964b06:

Verdict: nothing unique in #8785 — it is being closed as superseded by this PR, with the evidence recorded on #8785 and on issue #8756.

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.

1 participant