Sandboxed-agent release: agents and operators can read worker state with devintern worker runs|stats|automations|prs|queue|status|overview|logs without reaching the dashboard over the network, a worker that cannot be seen from inside a PID-namespaced sandbox is reported as unknown instead of stopped, and the worker can keep teammates’ open PRs caught up with their base (sync_team_prs, off by default). The dashboard now shows automation source health, and blocked automation runs, feature-branch lock races, and leftover poll cursors are fixed.
Added
- Read dashboard data from the command line:
devintern worker runs(withruns show,runs logs, andruns artifacts),stats,automations,prs,queue,status,overview, andlogsread the workspace database directly, with no running dashboard or worker and no network, so sandboxed agents whose Bash commands get their own network namespace can still inspect the worker. With--json, stdout is exactly the body of the matchingGET /api/...route; without it each command prints a compact table. A missing or unreadable database exits 1 instead of looking like “no runs”.--workspaceaccepts theworkspace.tomlfile or its directory, then falls back toDEVINTERN_WORKSPACE_DIRand~/.devintern. Seedocs/code/dashboard.md - Opt-in base sync for teammates’ open PRs (
sync_team_prs, DEV-86): setsync_team_prs = trueon a GitHub[[repos]]entry to have the worker also catch teammates’ open, non-draft, same-repo PRs up with their base (authors withauthor_associationOWNER,MEMBER,COLLABORATOR, orMAINTAIN). These PRs use the same base-sync path as the agent’s own PRs, soconflict_resolutionmodes, scheduled windows, quiet period, retry backoff, and defer caps all apply; review feedback on them is never addressed. Discovery is one ETag-conditional open-PR list request per opted-in repo per poll, so repos that are not opted in make no extra requests. The flag requires an explicit agent sandbox (AGENT_SANDBOX=native,nono, ordocker;autoandnoneare refused) in each opted-in repo’s effective env: the worker refuses to start, and rejects live reloads, otherwise. It is rejected on non-GitHub repos. Seedocs/code/pr-follow-up.md#syncing-teammates-open-prs - Automation source health in the dashboard (DEV-191): when an error monitor such as Sentry cannot be read (rejected token, renamed project, provider outage, or rate limiting), the header shows N sources need attention on every page and links to a Source health table in Automations with each source’s status, last success, consecutive failures, last error, and next retry. The worker honors the provider’s
Retry-Afterwindow, capped atmax(poll_interval * 10, 1h)so an oversized hint cannot stall a source indefinitely, and the window survives restarts
Fixed
- Automation runs whose agent was blocked are recorded as escalated, not succeeded. A clean exit with no changes (a
--no-gitorallow_no_changesautomation) was always recordedsucceeded, even when the agent’s report said a gate failed, a push was refused, or a data source was unreachable. The implementation prompt now asks the agent to end with<!-- devintern:outcome status=blocked reason="…" -->when it could not meet the goal. A blocked run is recordedescalatedwith the reason inoutcome_reason, and the worker logs🛑 [automation:<id>] escalated: …instead of✅ … completed.status=partialstayssucceededwith the reason recorded; no marker,done, ornoopbehave as before. The marker is parsed only from the final report, strictly, with a bounded reason. See Reporting a blocked run - Worker liveness is reported as unknown, not stopped, from inside a PID-namespaced sandbox: a live host worker whose pid cannot be seen from a sandbox (for example bubblewrap
--unshare-pid) was reportedstopped,worker addsaid “No worker is running” and refused--wait, and a worker started in the sandbox could delete the live worker’s lock as stale and take it over. Locks now record their PID namespace; when the probe fails across namespaces,worker statusand/api/workerreportunknown,worker addqueues the task durably and allows--wait, and lock acquisition refuses to take over the lock - Feature branch creation no longer fails on shared git config lock contention: two fleet tasks starting together in the same bare clone could abandon a task with
feature branch creation failed, becausecheckout -b <branch> origin/<target>also wrote tracking config that needsconfig.lock. Feature branches are now created with--no-track(they no longer track the base branch), a half-created branch left by a lost lock is recovered, base-branch checkouts retry on a held lock, and a first push that loses the lock restores its upstream best-effort - Per-PR poll cursors are pruned when an agent PR closes: the PR-state, reviews, and CI watcher cursors for GitHub PRs and GitLab MRs stayed in the database forever, adding about five rows per PR to
devintern worker statusand/api/status. They are now deleted when the PR closes, and a startup sweep removes them for PRs that were already closed
Technical
- Local E2E coverage:
@devintern/e2egained offline coverage for--estimateon Linear (native estimate field), Asana (comment-only), and Azure DevOps (story points and comment update) with re-estimation, the license gate failing closed and signed-outwhoami/logout, and dashboard artifact and harness-log readback redaction and/api/workspace