Skip to content

test(companion): cover token revocation during network rebind - #406

Merged
BunsDev merged 1 commit into
mainfrom
companion-revoke-race
Oct 24, 2026
Merged

BunsDev merged 1 commit into
mainfrom
companion-revoke-race

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Adds the missing #109 regression for revocation during a network rebind. The test removes the original address, pauses a real replacement HTTPS listener before publication, revokes pairing access, and confirms the old token is rejected while the new token works with the same pinned certificate. Production behavior and address policy are unchanged.

The test passes on existing production code. A generated-code negative control captured authorization at listener startup and failed with 200 !== 401 for the revoked token; the original generated bytes were restored. Focused companion tests passed 27/27 with no skips, including LAN-gated cases. Full build, unit tests (2,085 passed, 22 skipped, zero failures), and typecheck passed. Independent review approved the test and cleanup. No local UI E2E was needed for this test/documentation change; hosted checks are pending.

The evidence and physical acceptance procedure maps existing coverage and preserves the pending physical secondary-LAN and VPN-policy gates. #109 remains open. No physical DHCP acceptance, new interface policy, wildcard binding or broader qualification is claimed.

Signed head: 0acf12dc88e17e7033b0acc5b167870df8486c67, based on main e3527f457842c6eff9c793f8efe7883013954d93. Raw first-pass, negative-control and full validation receipts are preserved outside the worktree.

@vercel

vercel Bot commented Oct 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 24, 2026 10:57am UTC

Request Review

@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage-agent

main e3527f4 companion-revoke-rac... 0acf12d +/-
65% 65% 0%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

@BunsDev
BunsDev added this pull request to the merge queue Oct 24, 2026
Merged via the queue into main with commit 21e50ba Oct 24, 2026
13 checks passed
@BunsDev
BunsDev deleted the companion-revoke-race branch October 24, 2026 12:00

This branch was successfully deployed

1 active deployment
Preview — 0acf12dc Deployed Oct 24, 2026 by vercel[bot]
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