Skip to content

migration(rs256): phase 118 — Implement POST /v1/tokens#19

Merged
kjgbot merged 2 commits intomainfrom
migration/rs256/118-tokens-route
Apr 22, 2026
Merged

migration(rs256): phase 118 — Implement POST /v1/tokens#19
kjgbot merged 2 commits intomainfrom
migration/rs256/118-tokens-route

Conversation

@kjgbot
Copy link
Copy Markdown
Contributor

@kjgbot kjgbot commented Apr 22, 2026

Phase 118 — Implement POST /v1/tokens

Part of the api-keys + RS256 migration. See specs/api-keys-and-rs256-migration.md for the full design.

Generated by workflows/118-*.ts and committed by scripts/run-rs256-migration.sh. Every workflow runs the strict review template (implementer self-review + 2 parallel specialist peer reviewers + architect synthesis + approval gate); this PR exists because the gate passed.

Run order in the migration

118 → 119 → 120 → 121 → publish + propagate → 122 → 123

This PR is phase 118. Merge in order; each phase assumes its predecessors are deployed.

Review focus

The workflow already enforced security + spec/compat review. Human review here should focus on:

  • Cross-cutting concerns the workflow couldn't see (production load, capacity, customer-facing impact)
  • Anything in the diff that isn't in the spec — flag it before merge
  • Test coverage gaps the agents may have missed in their domain

kjgbot and others added 2 commits April 22, 2026 21:10
Generated by workflows/118-*.ts via scripts/run-rs256-migration.sh.
Spec: specs/api-keys-and-rs256-migration.md (phase 118).

Co-Authored-By: agent-relay <agent@agent-relay.com>
- Refresh path now revokes old JTI on successful rotation and detects
  re-use (cascade-revokes session). Closes single-use violation per
  specs/token-format.md:361-369.
- verifyLegacyToken validates iss, aud, exp/nbf with +/-60s skew per
  specs/token-format.md:130-133.
- Enforce max-10 sponsor-chain depth at issuance and refresh per
  specs/token-format.md:111-113.
- Adversarial tests covering each of the above.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@kjgbot kjgbot merged commit 0438cd4 into main Apr 22, 2026
2 checks passed
@kjgbot kjgbot deleted the migration/rs256/118-tokens-route branch April 22, 2026 20:52
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