Skip to content

test: #27's refusals in the codes #29 gave the contract - #30

Merged
aledbf merged 1 commit into
mainfrom
main-codes
Nov 12, 2026
Merged

aledbf merged 1 commit into
mainfrom
main-codes

Conversation

@aledbf

@aledbf aledbf commented Nov 12, 2026

Copy link
Copy Markdown
Member

Part of #24. Main is red. #27 (merged 22:06) and #29 (merged 22:10) were both branched from the same commit, so neither ran against the other. On main, #27's tests now run against #29's contract, and two of them fail:

  • connect.test.ts refuses with no_key_held. The fake spin no longer writes that code, so the error came back as internal. The test now uses key_not_enrolled.
  • proxy.test.ts expected key_not_enrolled to be a code the contract does not know. It is known now. The test now checks that a refusal with it is the CLI's envelope, which showCliError shows with Add Key. The "unknown code" case uses a code no release writes yet.

Only tests change. Planted bug: proxyFailure not treating key_not_enrolled as an envelope turned the new test red; reverted with Edit.

🤖 Generated with Claude Code

#27 and #29 merged from the same base, so main ran #27's tests against #29's
contract: connect.test failed with no_key_held, which the fake spin no longer
writes, and proxy.test still held key_not_enrolled to be a code the contract
does not know. The refusal is key_not_enrolled now, shown with its Add Key;
the unknown code is one no release writes yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf merged commit f22d2ea into main Nov 12, 2026
3 checks passed
@aledbf
aledbf deleted the main-codes branch November 12, 2026 22:18
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