Automation-resilience release: Muse Code joins the supported harnesses, interrupted ad-hoc worker tasks resume after a restart instead of failing, Sentry polling survives upstream outages without wedging the worker, and sandboxed agents can delegate work again. The srt and smolvm sandbox providers are removed without a deprecation release; see Upgrade notes before upgrading.
Upgrade notes
- Action required: the
srtandsmolvmsandbox providers are removed in 2.21.0 without a deprecation release. Both are gone, soAGENT_SANDBOX=srt|smolvm(or--sandbox srt|smolvm) in.devintern-code/.env, a workspace.env, or the shell now fails every run immediately — including unattended worker and webhook runs — anddevintern sandboxreports the same message and exits non-zero. Before upgrading from 2.20.1, switch tonono(whole-process confinement) ordocker(microVM boundary); the policy variables are unchanged. See Sandbox providers.
Added
- Muse Code harness (DEV-187):
AGENT_HARNESS=museruns Meta’smuse execCLI for story drafting and ticket implementation. DevIntern passes--disable-request-user-inputfor unattended runs (requires Muse Code 1.4.9+; older versions fail with an upgrade message), mapsskipPermissionsto--disable-approval(Muse’s filesystem sandbox stays on) with--sandbox-network enabledso headless publishing and package installs do not stall on Muse’s per-destination network review, maps--max-turnsto--max-model-steps, sendsAGENT_MODELto--modelandAGENT_EFFORTto--reasoning-effort, uses the:read-onlyprofile for read-only analysis, and delivers oversized prompts through--prompt-file.--jsonstays opt-in via structured output, so normal runs keep plain text output and the existing usage-limit/turn-limit detectors. On macOS undernono, DevIntern disables Muse’s inner Seatbelt (nested Seatbelt is unsupported), requiresMETA_API_KEY, and hides~/.config/muse/auth.jsonfrom the run so agent shell commands cannot read the stored credential. The Muse exit code reports how the turn ended, not whether the implementation or tests passed. Seedocs/code/configuration.md#agent-harness - Interrupted ad-hoc tasks auto-resume after a worker restart: startup recovery now inspects rows left
runningby a dead worker, and when the latest local run recorded a branch and implementation report (and the branch still exists) the row returns topendingso session pickup inherits that branch and report instead of failing. Automatic resume is bounded per row byWORKER_INJECTED_AUTO_RESUME_LIMIT(default1;0disables it) so a restart loop cannot re-run the same task forever, whileworker add --resumeand the dashboard Re-queue task reset the budget.--waitfollows the replacement run through a bounded restart grace, a row whose latest run already succeeded settlesdone, and a still-live task child blocks resume/re-queue until it exits
Removed
srtsandbox provider removed:AGENT_SANDBOX=srtand--sandbox srtnow fail with a migration error namingnono(ordockerfor a microVM boundary) instead of the generic unknown-provider list.nonoremains the supported whole-process wrapper. TheSANDBOX_RUNTIMEmarker is still detected so a DevIntern launched inside an existingsrtshell inherits the enclosing confinement instead of nesting another sandbox.smolvmsandbox provider removed:AGENT_SANDBOX=smolvmand--sandbox smolvmnow fail with a migration error namingdocker(ornonofor local confinement). The provider, its registration and export, its tests, setup notes, and documentation are gone. The supported providers arenative,nono, anddocker(plusnone/auto).
Fixed
- Implementation resume state is persisted before commit and auto-review: the harness now records the completed implementation stage, branch, and agent report before delivery’s commit, verification, and review phases, so a crash or
SIGTERMduring those phases leaves resumable state instead of forcing a fresh run. Session pickup requires landed commits (or an authoritative commit probe) before resuming, downgrades an early success to failed when delivery halts as incomplete, and prefers the newest fresh summary so a stale incomplete file from an earlier attempt cannot mask a later success. - Sentry polling survives upstream 5xx and hung connections: transient network errors and Sentry 5xx responses retry twice with short backoff and honor
Retry-Afterwithin a 4-second aggregate wait budget, each request carries a 10-second timeout and one whole fetch a 15-second cap, and non-auth 4xx plus auth/rate-limit responses classify immediately. Repeated identical failures log once with a recovery line, and the first tick no longer blocks worker startup or the auto-update successor. Sentry query tokenization keeps quoted phrases and a quotedis:unresolvedintact instead of dropping the required unresolved filter. --helpno longer executes subcommands:devintern init --helpscaffolded.devintern-code/anddevintern logout --helpsigned the user out because the pre-Commander dispatch ignored the flag.init,login,logout,whoami,sandbox, anddoctornow print their usage and exit 0, andworkspace --helppoints atworkerinstead of failing.- Sandboxed agents can delegate work with
worker add: the agent sandbox policy now grants write access toinjected/(ad-hoc task prompts),state/(the queue database), andautomations/(automation cursors), and the worker createsinjected/andautomations/at startup because a grant only covers existing paths. Enqueue failures report the error with the paths to grant instead of a minified stack trace, while--jsonkeeps stdout clean. - A reused base worktree starts from the default branch: the persistent base worktree shared by automations and review jobs was returned untouched, so a prior run’s feature branch or tracked leftovers could become the next automation’s starting commit. Reuse now detaches at
origin/<default>and discards tracked leftovers, leaving the previous branch intact and keeping untracked files such as installed dependencies. - GitHub webhooks reject an empty
WEBHOOK_SECRET: signature verification refuses an empty key and the server answers503 GitHub webhooks are not configured(matching the GitLab guard) instead of accepting an HMAC keyed with""that anyone can compute. - Slow ad-hoc tasks no longer stall other acquirers:
InjectedTaskAcquirer.start()awaited its first drain, so a slowworker addtask could leave scheduled automations and dashboard Run now stopped during startup. It now starts the interval without awaiting, and claims only up to the workspace’s global and per-repository concurrency limits. devintern sandboxauto mode picks the provider the resolver will use: the doctor’s preflight no longer probes throughnativefor harnesses it cannot wrap (for example goose), which made a healthynonoconfiguration exit non-zero even though the run would usenono.- Verification accepts approvals whose findings are below its threshold:
parseReviewFeedbackvalidated every verdict against the auto-review default (medium) beforeverifycould applyminSeverity: "high", so an approval listing advisory medium notes died as “Failed to parse review feedback JSON” and the step retried the agent twice before halting despiteonFail: "warn". The parser now separates schema validation from the approval policy, andverifyjudges approvals at its configuredminSeverity. - A contradictory verification verdict no longer burns two agent runs: an approval that listed a finding at or above
minSeveritywas rejected by the parser, so the step treated a deterministic policy rejection as a transient agent failure and re-ran verification (roughly 25 minutes per attempt) before halting despiteonFail: "warn".verifynow downgrades such a verdict to a rejection and letsonFaildecide; callers that do not own the policy still get the strict check.
Technical
- Expanded offline end-to-end coverage: GitLab worker lifecycle and hosted relay, the Jira lifecycle against an offline fake server, signed GitHub and GitLab
webhook servedeliveries, the fullworker addoption matrix, thenonosandbox boundary, and the fail-closed paths forsrt,smolvm,docker, andnative, plus a coverage matrix and delegation scout for future scenarios - Test runtime isolation: the suite strips worker runtime variables from its own process and subprocesses and gives the base-worktree fixture an explicit git identity, so
bun testbehaves the same inside and outside a worker task subprocess - Docs refresh: authenticated ways to reach the dashboard remotely, worker and multi-project workflow diagrams, a GitLab Issues row in the quick-start tracker table, and drift corrections across the configuration, dashboard, and integration guides
- Dependency maintenance:
@modelcontextprotocol/sdkmoves from 1.30.0 to 1.32.0, and the desktop workspace picks up DOMPurify 3.4.17, Electron 43.8.1, and happy-dom 21 (dev/test only); seven advisories remain blocked by transitive ranges