Skip to content

feat(relay): add protocol v4 direct identity - #78

Merged
nicodes merged 1 commit into
mainfrom
ws1/546-protocol-v4
Aug 28, 2026
Merged

feat(relay): add protocol v4 direct identity#78
nicodes merged 1 commit into
mainfrom
ws1/546-protocol-v4

Conversation

@nicodes

@nicodes nicodes commented Aug 28, 2026

Copy link
Copy Markdown
Owner

Closes nicodes/ormos-be#546

Defines protocol v4 direct-system terminal/proxy identity while preserving v0-v3 behavior. V4 binds system ID, terminal record ID, exact generation, cwd, action fence, and expiry; labels and project-composite session identity are rejected.

Risk: high — public wire/security contract.

Team No Review: review and approval are intentionally skipped per workstream dispatch. Merge is gated on exact-head CI.

Verification (Go 1.25.13): go vet ./...; go test -race -count=1 ./...; govulncheck ./...; supported/unsupported platform-selection builds.

Deliberate gate failures:

  • Removed the authenticated-system equality check; go test ./relay -run TestV4DirectSystemIdentityAndTerminalBinding -count=1 failed with v4 terminal for another authenticated system was accepted.
  • Removed authoritative generation equality; go test ./internal/system -run TestTerminalV4UsesDirectSystemRecordGenerationIdentity -count=1 failed with fresh v4 admission ignored the authoritative exact generation.

Both breaks were reverted and the exact head is green locally.

@nicodes nicodes changed the title ws1/546 protocol v4 feat(relay): add protocol v4 direct identity Aug 28, 2026
@nicodes
nicodes merged commit 3dd54ee into main Aug 28, 2026
4 checks passed
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