Skip to content

feat(proactive-runtime): M1-M2 agent tokens + rotation hardening#38

Merged
khaliqgant merged 6 commits into
mainfrom
agent-relay/proactive-runtime-chain-1778505408
May 12, 2026
Merged

feat(proactive-runtime): M1-M2 agent tokens + rotation hardening#38
khaliqgant merged 6 commits into
mainfrom
agent-relay/proactive-runtime-chain-1778505408

Conversation

@khaliqgant
Copy link
Copy Markdown
Member

Summary

Part of the Proactive Agent Runtime spec (#513 in cloud). M1 (agent token issuance) + M2 (rotation hardening). M5 will land path-scoped tokens; commits will append to this same branch.

In this PR

  • M1 — Agent token issuance + 1h rotation per spec §6
  • M2 — Token revocation handling, broader rotation hardening, audit logger touchups

Test plan

  • Run: relayauth server + SDK tests
  • Reviewer: confirm agent-token endpoint matches gateway/src/relayauth-client.ts expectations

Notes

  • Branch shared across 7 repos.
  • M5 will add path-scoped tokens (multi-agent ACLs per spec §6.1) on this same branch.

🤖 Generated with Claude Code

Proactive Runtime Bot added 6 commits May 11, 2026 20:23
Cross-repo M1 implementation. See companion PRs and docs/proactive-runtime/spec.md (in cloud).
…-provider buildSummary, Airtable lazy fetch)

Cross-repo proactive-runtime milestone commit.
…-provider buildSummary, Airtable lazy fetch)

Cross-repo proactive-runtime milestone commit.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 12, 2026

Warning

Rate limit exceeded

@khaliqgant has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 5 minutes and 27 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: c8d96b7e-be45-494b-b93b-2281cf9f3ab3

📥 Commits

Reviewing files that changed from the base of the PR and between cc5d27c and c3f6d8c.

📒 Files selected for processing (31)
  • .trajectories/active/traj_1774612574920_f3fdc1c5.json
  • .trajectories/completed/2026-05/traj_1774612574920_f3fdc1c5.json
  • .trajectories/completed/2026-05/traj_1774612574920_f3fdc1c5.md
  • .trajectories/completed/2026-05/traj_1774647106611_54b83aed.json
  • .trajectories/completed/2026-05/traj_1774647106611_54b83aed.md
  • .trajectories/index.json
  • README.md
  • package.json
  • packages/sdk/typescript/src/__tests__/client-tokens.test.ts
  • packages/sdk/typescript/src/agent-token-session.ts
  • packages/sdk/typescript/src/client.ts
  • packages/sdk/typescript/src/errors.ts
  • packages/sdk/typescript/src/index.ts
  • packages/sdk/typescript/src/verify.ts
  • packages/server/src/__tests__/tokens-route.test.ts
  • packages/server/src/db/migrations/0002_workspace_agent_tokens.sql
  • packages/server/src/engine/audit-logger.ts
  • packages/server/src/lib/api-keys.ts
  • packages/server/src/lib/auth.ts
  • packages/server/src/lib/jwt.ts
  • packages/server/src/lib/token-verifier.ts
  • packages/server/src/middleware/scope.ts
  • packages/server/src/routes/policies.ts
  • packages/server/src/routes/role-assignments.ts
  • packages/server/src/routes/roles.ts
  • packages/server/src/routes/tokens.ts
  • packages/server/src/storage/api-key-types.ts
  • packages/server/src/storage/sqlite.ts
  • packages/types/src/token.ts
  • packages/types/tsconfig.tsbuildinfo
  • tests/agent-token.test.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent-relay/proactive-runtime-chain-1778505408

Comment @coderabbitai help to get the list of available commands and usage tips.

@khaliqgant khaliqgant marked this pull request as ready for review May 12, 2026 11:39
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@khaliqgant khaliqgant merged commit a9e2494 into main May 12, 2026
4 checks passed
@khaliqgant khaliqgant deleted the agent-relay/proactive-runtime-chain-1778505408 branch May 12, 2026 14:06
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