Skip to content

Issue run-scoped capabilities for async polling - #313

Open
wsr3005 wants to merge 1 commit into
yc-software:mainfrom
wsr3005:codex/run-scoped-polling-capability
Open

Issue run-scoped capabilities for async polling#313
wsr3005 wants to merge 1 commit into
yc-software:mainfrom
wsr3005:codex/run-scoped-polling-capability

Conversation

@wsr3005

@wsr3005 wsr3005 commented Aug 10, 2026

Copy link
Copy Markdown

Summary

  • let source-authenticated async callers explicitly request a run polling capability with runAccess=capability
  • return an audience-, actor-, and run-bound capability in the existing capability response header
  • allow that capability to read only its exact run while preserving the Portal identity path for normal source-authenticated reads

Security properties

  • source authentication alone still cannot bypass the Portal identity gate
  • production tokens use the isolated capability secret and expire after one hour
  • ordinary async turn requests receive no capability
  • a capability for one run returns not found for every other run

Verification

  • 96 affected tests pass
  • TypeScript typecheck passes
  • ESLint, Oxlint, Prettier, and git diff --check pass
  • independent spec and standards/security reviews report no findings

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

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