A session asks to continue after its PRs land: auth stores and decides the continue kind (AGT-83) #212

Merged
merge-queue merged 2 commits from AGT-83-continue into main 2026-11-29 20:42:27 -08:00
Owner

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 continue runs romaine-auth continue request --no-wait and romaine-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

  • Server: POST /api/continue/requests (machine token; {reason, session}, both required, minutes refused) and GET /api/continue/requests/:id?wait=N, held open like break-glass's. Ids are cont_...; 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/decide takes kind continue (same approver-device rule), answering grantExpiresAt: null.
  • /continue/<id> page: approve or deny, browser session only (as the agent-device page; no bearer token decides one), no revoke.
  • Table 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.
  • CLI: romaine-auth continue request --reason TEXT --session ID [--no-wait] (no --minutes; --no-wait prints the usual one-line JSON with minutes 0), continue wait ID [--json], and approve|deny --kind continue ID. Client: RequestContinue, WaitContinue, KindContinue, IsApprovalKind.
  • README section "Continuing after landing (AGT-83)"; the AGT-74 section, endpoint and metrics lists name the kind.

Not a grant. No token exchange reads it, /api/break-glass/active never 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-check 6 jobs pass (262 node tests, 1 skipped), including new src/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.

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 continue` runs `romaine-auth continue request --no-wait` and `romaine-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** - Server: `POST /api/continue/requests` (machine token; `{reason, session}`, both required, `minutes` refused) and `GET /api/continue/requests/:id?wait=N`, held open like break-glass's. Ids are `cont_...`; 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/decide` takes kind `continue` (same approver-device rule), answering `grantExpiresAt: null`. - `/continue/<id>` page: approve or deny, browser session only (as the agent-device page; no bearer token decides one), no revoke. - Table `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. - CLI: `romaine-auth continue request --reason TEXT --session ID [--no-wait]` (no `--minutes`; `--no-wait` prints the usual one-line JSON with `minutes` 0), `continue wait ID [--json]`, and `approve|deny --kind continue ID`. Client: `RequestContinue`, `WaitContinue`, `KindContinue`, `IsApprovalKind`. - README section "Continuing after landing (AGT-83)"; the AGT-74 section, endpoint and metrics lists name the kind. **Not a grant.** No token exchange reads it, `/api/break-glass/active` never 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-check` 6 jobs pass (262 node tests, 1 skipped), including new `src/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.
Comments name the continue kind among the decidable requests (AGT-83)
All checks were successful
Suite tofu / apply (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite tofu / scope (pull_request) Successful in 35s
Suite release / reserve (pull_request) Has been skipped
Suite web-app / check-image (pull_request) Has been skipped
Suite web-app / publish (pull_request) Has been skipped
Suite release / build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite web-app / scope (pull_request) Successful in 35s
Suite release / deliver-prune (pull_request) Has been skipped
Suite release / scope (pull_request) Successful in 43s
Suite release / deliver (pull_request) Has been skipped
Suite go / check-format (pull_request) Successful in 26s
Suite web-app / publish-static (pull_request) Has been skipped
Suite tofu / check-plan (pull_request) Has been skipped
Suite default / check-rules (pull_request) Successful in 22s
Suite default / check-logs (pull_request) Successful in 21s
Suite go / check-test-linux (pull_request) Successful in 35s
Suite tofu / reused-checks (pull_request) Successful in 21s
Suite go / check-test-windows (pull_request) Successful in 1m27s
Suite release / check-build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Successful in 1m36s
Suite default / reused-checks (pull_request) Successful in 27s
Suite go / reused-checks (pull_request) Successful in 19s
Suite web-app / check-test (.) (pull_request) Successful in 4m40s
Suite release / check-package (pull_request) Successful in 3m13s
Suite web-app / reused-checks (pull_request) Successful in 29s
Suite release / reused-checks (pull_request) Successful in 33s
merge-queue landed on main
2cb03e29d1
merge-queue deleted branch AGT-83-continue 2026-11-29 20:42:27 -08:00
Sign in to join this conversation.
No description provided.