- A stage refused for a Claude usage limit no longer fails its run: the
runner tries the chats' Claude account auto-switch (per-home setting) and
reruns the visit, else parks the run in the new waiting_quota status
(persisted, with reset/resume time in run summaries, details and events)
and resumes the same visit at reset + 1 min, also after a restart.
resume_run / `pipelines resume` resumes now; cancel works on parked runs.
The rerun visit gets a "# Previous attempt" interruption note. Subscription
limits no longer say "top up the provider account".
- run/retry into an account known to be limited are deferred (quota_policy
defer/refuse/now; CLI refuses under --json/--yes unless --defer or --now).
- failure_class on runs (quota, loop_exhausted, timeout, permission_denied,
harness_error, blocked, environment, canceled, interrupted, budget,
check_failed, other) in RunSummary/RunDetail/events, CLI inspect/runs/wait/
stats and the app failure line.
- Claude permission denials (permission_denials / refused tool results) fail
a blocked visit with permission_denied naming the tool use.
- Harness failures are classified transient vs deterministic; deterministic
ones (and a repeated empty readback) skip error self-loops; transient
self-loops back off 15 s, 1 min, 4 min.
- Whole-run USD budget: run --budget, server default (run-budget /
get/set_run_settings); 80% warning notification, stop with class budget.
- App: waiting_quota status/filter with resume time, Resume now and Cancel,
failure class wording. Docs and skill references updated.
Merges main (check stage, delivery gate, Claude stage restart survival,
schedule changes).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- New `type=check` stage: the server runs a `commands` block (sh -c, per
command_timeout, workspace env) and routes on pass/fail; per-command status,
exit code, duration and bounded output are recorded and the failing output is
the handoff. With delivery=true it is the landing gate (commit leftovers,
merge moved main, checks in a fresh candidate worktree, fast-forward main).
Parser/registry, lint (silent guards), format docs, CLI inspect, app graph and
run detail rendering.
- delivery=true is accepted on every harness (and on check stages).
- permissions.shell on claude stages maps to Bash(cmd) / Bash(prefix:*) rules
instead of a bare Bash allow; stages without edit that change the workspace
fail the visit with the changed files listed (allow_workspace_changes=true
opts out; artifacts, public and harness state dirs are ignored).
- File-change capture: symlinks compared by target, untouched protected files no
longer make captures partial, untracked caches/dependency/build output left
out, lockfiles listed without patch, huge files compared by metadata, raised
patch/line limits. Outcome repair follow-ups are logged and counted on the
step (control.outcome_repairs).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Without a terminal, run behaves as --json, tui refuses and confirmations
fail fast naming --yes instead of prompting.
- inspect prints a compact summary by default; --step N, --transcripts and
--json give detail.
- wait names a failed run's stage and first diagnostic line, prints how to
answer a run waiting on a person, and exits 2 when any run failed,
was canceled or interrupted (1 stays for client errors).
- help describes the current # outcome / # handoff format.
- Task starter's Land stage drops edit to match format.md; skill docs
document run --json --yes, retry --yes --json and the new behaviour.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- schedule_followup returns the follow-up id and lists pending follow-ups;
count-then-queue is serialised so the 3-pending bound holds under
concurrent calls.
- cancel_followup {id} removes one of the chat's undelivered follow-ups.
- schedule_followup {run_id, on: finished|attention} queues a durable
follow-up (7-day deadline) that is released with the run's state when the
run ends or waits on a human; run must exist and not already meet the
condition; watches are re-armed from the restored queue after a restart.
- show_html results warn about scripts, remote resources (blocked by the
sandbox) and missing dark-mode support.
- The ambiguous-call error advice fits each tool instead of always
suggesting a different title.
- references/chat.md and the SKILL.md chat paragraph document the above, and
questions are no longer described as Claude-only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
show_html documents that declare dark support follow the app theme; others
stay light. Tool description and skill docs say so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Server: chat ntfy messages carry a sequence id derived from their app id;
clearing a chat app notification also clears it in ntfy (PUT
/<topic>/<seq>/clear, verified on ntfy v2.38.1).
- Server: a turn that sent an agent notify does not also send chat_reply.
- notify tool and MCP instructions: Pipelines already notifies at reply end
and for questions/approvals; notify is for mid-turn or background news.
- Shown notify items carry channels (apps/phone); the transcript row says
where it went.
- App: NotificationBridge.close(tag); web closes tracked Notifications and
tells other tabs over a BroadcastChannel; native bridge cancels by tag and
now supports macOS. AgentNotices closes on notifications_cleared and on
resubscribe cleared ids, and a tap sends clear_notifications.
- Docs: skill, chat reference, ntfy/notifications docs, app note.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ntfy uses the link only beside a web run view; otherwise it keeps the
run click and the receipt says why (app click stays the link).
- The outbox retry of a hook's failed publication re-resolves the stage's
link=, so the ntfy and app tap targets keep it.
- A valid link file is never the attached artifact.
- Notification artifacts are read through os.OpenRoot with O_NOFOLLOW.
- The link note is recorded once, on the first receipt, and never becomes
the run-level failure reason.
- Android: a recents relaunch does not reopen the link, and a run thread of
several entries opens the run rather than the latest external page.
- Docs and the protocol comment say "first non-empty line".
A stage's notify block may name `link=<pattern>` (validated like `open=`).
When the hook fires, the newest public/ match is read (at most 4 KiB); its
first non-empty line, if an absolute http(s) URL ntfy accepts as a click,
becomes the ntfy Click and the app notification click, with the run kept
as the app's run action and ntfy's browser view. A missing file or invalid
URL keeps today's tap target and is noted on the receipt diagnostic.
Android opens such an http(s) click in the browser (after clearing the
notification) instead of handing it to Flutter as a route.
Claude stages always get the Skill tool (bare Skill allow rule) and no
longer pass --disable-slash-commands or the disableBundledSkills settings
layer, so Claude Code's bundled skills are available. --setting-sources ""
stays, so the operator's personal (~/.claude/skills), claude.ai synced and
enabled-plugin skill folders are discovered per visit and passed as
generated skills-only session plugins (plugin.json plus skills/<name>
symlinks; no hooks, MCP servers or commands) after the skills block's own
plugin. The ambient-skill stream guard is removed.
Pi stages keep --no-skills (Pi's own discovery) and add --skill for each
block skill, then each operator skill folder, with read access to those
folders. OpenCode tool-using stages allow OpenCode's own skill tool for
exactly the personal and synced Claude skill names it discovers, plus
external_directory reads of their folders. Bundled Claude Code skills have
no folder and stay unavailable to Pi and OpenCode (documented).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A model stage may declare a skills block (name or name@N per line).
Drafts and publications are validated against the server skill library;
human/ntfy stages reject the block. Each run resolves unpinned names to the
latest version at admission and records name@N per stage (run
stage_skills, step skills); retry reuses the recorded versions. Every visit
gets a private read-only copy of exactly those bundles under the run's
artifact tree, and the harness loads only them: Claude via a session
plugin (--plugin-dir, Skill tool with per-skill allow rules, bundled skills
off, ambient loads fail the visit), Pi via --skill under --no-skills, and
OpenCode via per-session instruction entries (V2 only). The app shows the
block in the stage definition and the resolved versions on each visit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add references/chat.md (pipelines MCP chat tools incl. show_diff, sent
references, question forms, chat RPCs with send_at) and install it.
SKILL.md: run worktrees, retry modes and failed-only retry, wait through
human stages, server skill library, chat tools pointer.
operations/debugging: retry resumes the failed stage by default; interrupted
and canceled runs cannot retry; runs rm; search --debug-files; per-run
worktrees no longer future; session export for OpenCode/Claude/Pi and repair.
access: hashed web password, ./password, server-token, current proxy routes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add validated per-stage MCP allowlists while keeping builtin tools separate. Enable matching Claude Code permission rules only for Claude stages, reject unsupported harnesses, and document the unattended-stage safety model.
Agents started runs and moved on, then missed failures. The skill now
says to follow every run with a background pipelines wait, read the
result when it ends, and act on it instead of polling or promising a
report.
Preserve Settings as an independent navigation destination while landing the reviewed notification and skill-management updates. Keep the server and CLI skill contracts versioned and validated so the merged tree can be verified by the delivery gate.
A model stage with harness=claude, provider=anthropic and a Claude model id
runs one claude -p process per visit with the server user's Claude sign-in.
Only the declared tools exist (--tools) and nothing else is approved
(--permission-mode dontAsk); edits are approved only below the run directory
and the stage's artifacts directory. A permissions block, run write paths,
delivery=true and reasoning_effort none/minimal are refused, not widened.
Usage comes from the CLI's final result and counts toward budgets. Failures
are fixed text; billing, quota and rate-limit refusals map to
ErrProviderQuota. The redacted stream is the session export and evidence.
provider-check --harness claude and model overrides are covered.
A fresh run started from a repository's main checkout gets its own
worktree and branch next to the repository, so runs never share a tree
or see the operator's uncommitted work, and several can run at once.
Retries and runs started in a linked worktree keep their directory. A
clean, landed run tree is removed after success; anything else is kept.
The delivery gate commits what the land stage left uncommitted in a run
worktree, and no longer requires the operator's main checkout to be
clean: Git's fast-forward refuses safely when a local change conflicts.
archived_at on pipelines (migrated in place). archive_pipeline and
unarchive_pipeline by id or name with an expected-version guard;
list_pipelines hides archived unless include_archived. Archived
pipelines refuse runs, retries, new versions and name reuse, and
cannot be archived while an enabled schedule points at them.
CLI archive/unarchive and list --archived/--all, docs and skill note.
Rewrite format.md around turn files, the output.md order (# outcome, edge word, # handoff, detail), checks, configs, human stages and the land stage delivery gate (sh -c in a fresh detached worktree, clean checkouts incl. untracked, 64 KB output cap, opencode only). Align review guidance across practices, verification, orchestration and the feedback-loop example. Fix loop-limit semantics in control.md against runner.go, budget_tokens sizing, read for large inputs, blocked-else-error and one stage naming set. Move dated verification logs to docs/verification-history.md and brokered chat, TUI keys and harness internals to docs/operator-reference.md; label operator-only references in SKILL.md.
On a large Git workspace the 32 MiB retained-text budget was spent
alphabetically on files that never change, so small late edits were
recorded with no_patch. The stage-start snapshot now keeps text only for
files dirty or untracked at start; a clean tracked file keeps its hash and
stage-0 index blob id. When it changes or is deleted, the after capture
reads that blob in one `git cat-file --batch` and uses it only if its
SHA-256 matches the start read, so stage commits/resets do not move the
baseline and filters or assume-unchanged never yield a wrong patch. The
after capture shares unchanged files' representation instead of spending
budget on them again.
FileChange gains no_patch_reason (binary, file_size, budget, lines,
evidence_size, git_status, baseline). Non-Git workspaces keep their
behaviour.
Every stage used to be told to read memory.md, the full output of every
earlier turn (19 KB average, 92 KB max), and paid for it on each model call.
memory.md is now essential memory, hard-capped at 4 KB and inlined in the
prompt: the task, the previous stage's # handoff section (or its truncated
output head), a one-line-per-stage outcome ledger and the server-captured
changed files. history.md keeps the old full memory on disk; read-capable
stages are pointed at it and input.md for on-demand detail, and it is never
inlined. The prompt asks each stage for a short # handoff section.
The server skip fallback for stages with a skipped edge now applies only
when every earlier visit recorded a complete file-change capture with no
changed files and no image artifact. Any change (no repo-specific UI path
or extension list), any partial/unavailable/missing capture, a human
decision or a checkpoint-retry prefix runs the model. auto_skip=false opts
a stage out. The fallback verdict names the server fallback.
Capture compares over-budget text by hash and, in Git, lists paths it
could not compare when their git status changes, marked no_patch, so a
large workspace no longer records files: [] for a real edit. Run detail
gains a warnings list for partial/unavailable captures, also printed by
inspect on stderr.
The template catalog is now Example 1-4: one stage, two stages (handoff),
feedback loop (runner-owned limits, retries, timeout) and human decision
(type=human approve/revise/abort with notify hooks). All read-only or leave
changes uncommitted; none commits, pushes or deploys.
A brand-new database (schema created by this Open) gets the examples once at
server start, bound to the configured default model and harness. A
server_settings marker records the decision, so removed examples never come
back and existing installs are marked without any pipeline being added or
rewritten.
Checks the CLI on the server's PATH (install command when missing), signs in
with the harness's own login only when needed (--login forces it), keeps the
OpenCode/Pi model pickers, and verifies with the server's check. Works on
native and Docker installs (Docker delegates to the container setup); --host
is a hidden compatibility alias. harness list shows all four harnesses'
installed/signed-in/configured/default status. ./install --opencode|--pi now
point to the command; ./install ends with the next-step hint.
When canonical main is not an ancestor of the item HEAD, the gate now
merges main into the item workspace under the delivery lock, re-runs the
declared checks on the merged commit, and fast-forwards main to it. A
conflicting merge is aborted with the workspace verified unchanged and a
diagnostic naming the files. Successful catch-ups are logged.
Later visits' input.md held only the previous stage's output, so the
operator's task reached only the first stage; when a Prepare stage
summarised (paths, HEAD), Code never saw the task or its acceptance
checklist and either blocked (run #202) or did part of it (#195, #197,
#198). Later inputs now carry the run prompt under '# Run task' (headings
demoted) before '# Previous turn output'.
Six computed Flutter runs stopped at the export handoff gate because the
rendered session.html cap was 2 MiB while their complete sessions (well inside
the 8 MiB source read bound) rendered between 2.25 and 4.28 MiB once html
escaping and the readable projection duplicated native text.
Raise SessionExportFileLimit to 8 MiB, the server's existing per-artifact file
bound, so a complete export is still listed and served. Normal export
verification, versioned repair and the handoff gate keep using the single
shared constant. The source read bound is unchanged, and an over-cap render is
still visibly truncated and recorded partial.
Add focused regressions for a complete export above the old cap, an over-new-cap
file rejected as partial, repair above the old cap leaving original evidence
untouched, the gate accepting the larger repair, and the constant staying inside
the artifact file bound. Update the artifact, handoff-gate and operations docs
and record the diagnosis in docs/notes/session-export-render-cap.md.
Remove authoring from the skill description and move the authoring commands
and examples behind an explicit-request section in help. A skill test keeps the
default description from advertising authoring again.
Use existing pipelines for run requests and put task specifics in the run
prompt. Creation, edits and publication now require an explicit user request;
the authoring skill test enforces that guidance.
Raise phone body/meta type, controls and dock targets to 44/56px, make the chat
back arrow a visible 44px control, and give the star/menu 44px hit areas without
covering the chat status. Keep the shipped skill free of personal device and
project capture paths.
- Persist chat stars in the operator-session registry (chat_star) so every
browser/device shows the same Starred group; migrate old local stars once.
- Add a compact pipeline graph shape to list responses and draw a lightweight
list miniature; replace the cryptic id/version line with the stage count.
- Surface OpenCode form questions as a chat card (chat_answer), replay a
pending form to late subscribers, and notify for background questions.
- Make the mobile dock's Search cell equal to every destination, keep the
tab row visible with 100svh, and let Source use the full pane height.
- Let a fresh sign-in auto-connect to its own origin; use a Lax session cookie
with Expires so Remember me survives app/link launches.
- Keep shipped starters and the skill agnostic: no repository paths, project
areas or personal device commands; add Diagnose/Fix and Research starters.
- Refresh the installed skill and document the new browser conventions.