A session asks to continue after its PRs land: auth stores and decides the continue kind (AGT-83) #212
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/auth!212
Loading…
Reference in a new issue
No description provided.
Delete branch "AGT-83-continue"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Work package: https://openproject.home.romaine.life/wp/AGT-83
strip-owner's side, which files and reads these requests: https://github.com/romaine-life/agent-tools/pull/239 (
strip-owner approval --kind continuerunsromaine-auth continue request --no-waitandromaine-auth continue wait ID --json). This PR lands first; the at-claude PR that shows the request in the window depends on auth accepting the kind.A Claude session whose PRs land cleanly is no longer woken; one that needs to keep working after they land asks Nelson with a continue request, which he approves or denies as he does break-glass.
Added
POST /api/continue/requests(machine token;{reason, session}, both required,minutesrefused) andGET /api/continue/requests/:id?wait=N, held open like break-glass's. Ids arecont_...; an undecided request lapses after 30 minutes, as break-glass's does. Status is pending, approved, denied or expired; an approved request stays approved, with no end time.POST /api/approvals/decidetakes kindcontinue(same approver-device rule), answeringgrantExpiresAt: null./continue/<id>page: approve or deny, browser session only (as the agent-device page; no bearer token decides one), no revoke.continue_request, created at startup, with no minutes, grant end or token columns;auth_continue_total{action,result};continue ...log lines. Agent devices can't file one.romaine-auth continue request --reason TEXT --session ID [--no-wait](no--minutes;--no-waitprints the usual one-line JSON withminutes0),continue wait ID [--json], andapprove|deny --kind continue ID. Client:RequestContinue,WaitContinue,KindContinue,IsApprovalKind.Not a grant. No token exchange reads it,
/api/break-glass/activenever lists it (so owner-guard never sees it), and nothing gives it a duration.Left alone: break-glass, Azure access and agent-device behaviour; the decide endpoint's signing and approver rules.
Tests:
ci-check6 jobs pass (262 node tests, 1 skipped), including newsrc/continue.test.ts(request parsing refuses minutes, status never ends an approval, no grant columns, no token audience) and a shared Go/TS hash vector for a continue decision;go test -p 4 ./client/ ./cmd/...passes, with new client and CLI tests.