Unattended-worker release: the worker can auto-merge its own safe PRs (off by default), automations, estimations, and conflict resolution can each pick their own harness, model, and effort, and devintern worker doctor diagnoses an idle worker before it starts. The dashboard can now delegate tasks, report bugs, show queued and waiting work, and run any scheduled job on demand, and its API rejects cross-origin and DNS-rebinding requests. Usage-limited harness chains now pause tracker polling, scheduled automations, mentions, and conflict resolution cleanly instead of re-deferring or dropping work.
Added
- Auto-merge safe agent PRs (off by default): with
[workspace].auto_merge = true, the worker merges its own GitHub PRs once they are green, conflict-free, free of change requests, and stable for 5 minutes (WORKER_AUTO_MERGE_QUIET_SECONDS). Any file matchingauto_merge_deny_pathsor a built-in deny path (.github/**,**/CODEOWNERS,.devintern-code/**) blocks the merge; a PR whose files all matchauto_merge_safe_pathsmerges with no agent run; otherwise it merges only on an explicit{"safe": true}verdict from themerge-safetyreview (auto_merge_review, on by default).auto_merge_methodpicks merge, squash, or rebase,auto_merge_harness/_model/_effortchoose the review agent, and repos can replace the safe-path list. Each PR gets one status comment, edited in place, that explains a merge or why the PR was left open, and PRs left open are labelledneeds-human-review([workspace].auto_merge_review_label,--review-label/--no-review-label;""turns it off) with the label removed on merge. Checks appear as live runs (Succeeded, Escalated, or Failed) and the Automations page lists an Auto-merge job with Run now - Per-job agent harness, model, and effort (DEV-184):
[[automations]]and[[estimations]]accept optionalharness,model, andeffort, and[workspace].conflict_resolution_harness/_model/_effortapply to automatic conflict resolution on GitHub and GitLab, so cheap mechanical jobs can run on a smaller model while tracker tasks keep the workspace default. A model-only override keeps harness failover. The dashboard shows each automation’s agent override,claudeis accepted as an alias forclaude-code, and pinning the deprecatedgeminialias now warns, naming the entry and key devintern worker doctor(DEV-190): checks a workspace before the worker starts — workspace config, work sources, tracker queries, repository access, team credentials, and more — and prints ✅/⚠️/❌ with a 💡 fix hint for each problem, exiting 1 on any failure. A healthy idle worker and a broken one no longer look the same- Team-scoped estimations:
[[estimations]]entries take an optionalteam = "<team name>"and then run against that team’s tracker and credentials instead of[defaults].trackerand the shared.env. The estimate run record stores the team - Delegate tasks and report bugs from the dashboard: a New task button opens a dialog that enqueues an ad-hoc task (
POST /api/tasks, the dashboard equivalent ofdevintern worker add), and run detail gains Report a problem, which files the same redacted report asdevintern report --run <id>after a binding consent preview - Run now for every scheduled job: the Automations page lists estimation sweeps (Run now runs the real
--estimatesweep) and scheduled conflict resolution (Run now opens the resolution window immediately for the normal grace period) beside prompt automations, each with its own run history - Queued and waiting work on the Overview: Active work now lists work the worker has accepted but not started — ad-hoc tasks, dashboard retries, and pending PR webhook events, ordered by when each becomes claimable and expandable in place (backed by a read-only
GET /api/queue). Automation occurrences holding their lease while they wait for the repository’s checkout are shown as Waiting for a slot on the Automations pages and in the queue instead of being invisible - Overview absorbs Task activity: Overview’s “Running now” becomes Active work, with phase tracks, step detail, Waiting to retry, and a collapsed Recently finished list; the separate Task activity tab is removed. The Automations list and the Workspace view group automations by repository
- Short PR work is admitted first: jobs that share a repository’s base checkout are admitted by priority — auto-merge, review replies, and CI fixes, then conflict resolution, then automations, tasks, and estimations — with a job that has waited 15 minutes promoted to the top so nothing starves. An auto-merge check now opens its run only once admitted, so a queued check no longer looks like an evaluation in progress
worker addwarns when every harness is usage-limited: the task is still enqueued and the command exits 0, but it prints the earliest reset time, suggests a fallback harness, and addsharnessPausedUntilto the JSON result
Fixed
- Auto-merge reads the merge-safety verdict only from the agent’s final stdout line. Previously the parser scanned stdout and stderr together and took the last
{"safe": ...}object, so a{"safe": true}literal echoed in a harness transcript on stderr (for example from the PR diff in the prompt) could approve a PR the agent had rejected or never judged. Now only the last non-empty stdout line counts, after stripping ANSI codes; anything else is “no verdict” and never merges - Auto-merge reviews defer until the quota resets: a merge-safety review that hits a usage limit now waits for the failover chain’s reset time (or a pinned harness’s own hint) instead of retrying every 5 minutes, and an unrecognized limit no longer counts toward the failure budget that silently dropped the PR
- The dashboard API rejects cross-origin and DNS-rebinding requests: a central
Host/Origin/Content-Typeguard now protects every/apirequest, so a website open in the browser can no longer retry runs or trigger automations through the loopback server, and a rebinding domain can no longer read runs, transcripts, or logs. Remapped SSH tunnels, Tailscale Serve, and reverse proxies keep working - Scheduled automations skip runs while every harness is usage-limited: due occurrences are skipped (advancing the cursor, with no catch-up burst when the limit resets) and logged with the reset time, and dashboard Run now is rejected with the same reason, instead of each automation starting and failing within seconds
- Tracker polling pauses pickup while every harness is usage-limited: instead of searching, claiming, and deferring every ticket on every tick (about 700 log lines per two-hour window), polling logs the pause once and keeps the cursor and waiting tickets for the first tick after the limit clears
- Conflict resolution stays pending while no harness is available: a resolution deferred for capacity (usage limits or a draining worker) no longer counts toward the three-strike limit that marked the PR’s conflict event as processed and skipped it permanently; it waits for the reset time (or 5 minutes) and retries
- Scheduled conflict resolution finishes chains of sibling PRs: with
conflict_resolution = "scheduled", the window now stays open at least 15 minutes after each new conflict, attempt, or outcome, capped at one extra grace period past the nominal close, so a conflict caused by a sibling merge just before closing is still resolved the same day - @mentions are retried after interrupted runs and transient permission errors: a mention interrupted by shutdown or deferred by usage limits is retried on the next sweep without spending an attempt, a handler error is retried up to
WORKER_FEEDBACK_MAX_ATTEMPTS(default 3), and a 5xx or rate-limited permission check is retried instead of being treated as “no push access” - Task starts no longer fail on shared git config lock contention: every task start rewrote
extensions.worktreeConfigin the shared bare-clone config even when it was already set, so concurrent starts failed withcould not lock config file. The write is now skipped when the value is already set, and needed config writes retry briefly on a held lock - Worktree setup failures are recorded as failed runs: a fleet task that failed before its subprocess started left no run in the dashboard and only a generic queue reason; the executor now records a failed run with the real error
- Queue results keep the real failure reason: failed
worker addand scheduled-retry rows settled with the generictask pipeline did not complete cleanly; they now copy the reason recorded on the run for that queue claim, andworker add --waitno longer reports a different task’s outcome for pruned rows - OpenCode v2 is detected when the version probe fails: in a sandbox
opencode --versioncan exit non-zero (read-only data directory), which made the harness assume v1 flags that v2 rejects. The probe now reads a version-only line from a failed run and runs under the same environment as the agent devintern sandboxuses the same per-harness decision as real runs (DEV-192): withAGENT_SANDBOX=autoand a harness chain, its “Next run” line could name only the first harness’s provider. Doctor, worker preflight, and runtime now share one picker; anautoentry that would run unsandboxed is flagged instead of shown as ready, mismatched explicit providers get a relevant hint, and a cached sandbox decision is refreshed if the provider breaksdevintern reportemail redaction is linear on long input: a long run without@(a base64 blob or minified log line) took over two seconds per 100k characters; redacted output is unchanged
Technical
- Scheduled automations skip the clarity check: automation prompts are written by the operator, so they now always run with
--skip-clarity-check, saving an agent call per run - Merge-safety reviews skip the dependency install: the read-only review worktree no longer installs dependencies, and its transcript is filed under the auto-merge run
- Local E2E coverage:
@devintern/e2egained offline coverage for worker polling against fake Jira, Linear, Trello, Azure DevOps, and Asana servers, relaytask.changeddelivery, worker connect validation, nono sandbox workspace grants, the worker-embedded dashboard and its Host/Origin guard, no-op task runs, the git-hook repair loop, and telemetry and update-check opt-outs making no network calls - Dependency security updates:
honoand@hono/node-serverpatch updates andoxfmt^0.70.0resolve the advisories reported bybun audit, and resolved packages now require a 7-day minimum release age