Commit Graph

373 Commits

Author SHA1 Message Date
alan 87a140754c Merge retry of initial recovered stream attachment 2026-11-07 16:43:35 +00:00
alan 6699d10eb8 Retry initial recovered chat stream attachment failures 2026-11-07 16:43:24 +00:00
alan d02bab3e4a Merge startup chat admission recovery gate 2026-11-07 16:41:58 +00:00
alan 692eb181c3 Merge conservative legacy task readback recovery 2026-11-07 16:41:58 +00:00
alan 62406f7fdb Hold external chat admission until live turn recovery completes 2026-11-07 16:41:02 +00:00
alan d0f616babc Keep trimmed legacy host task readback explicitly incomplete 2026-11-07 16:40:44 +00:00
alan d30b99e18e Merge metadata-only startup reattachment and unknown-readback handling 2026-11-07 16:37:01 +00:00
alan 63a89ec99c Retry retained Claude hosts from metadata readback without spawning work 2026-11-07 16:36:48 +00:00
alan d1f7c2141a Merge durable background-only startup recovery 2026-11-07 16:34:30 +00:00
alan 132a94192a Recover background chat observers from durable live membership 2026-11-07 16:33:49 +00:00
alan 886e3ea2b7 Merge replay boundary and native task identity reconnect regressions 2026-11-07 16:30:00 +00:00
alan 723ed3aa68 Prove task recovery beyond spool trim and order live events after snapshots 2026-11-07 16:28:26 +00:00
alan 5d38ba3352 Retain native task identity across partial progress notifications 2026-11-07 16:27:23 +00:00
alan f3a39a5e33 Retain native task identity across partial progress notifications 2026-11-07 16:23:49 +00:00
alan b15597662f Preserve independent background sessions through owner shutdown and idle cleanup 2026-11-07 16:23:20 +00:00
alan 1d8076ebdc Keep native Claude background tasks alive across detached sessions 2026-11-07 16:22:57 +00:00
alan 4ead2abdbf Restore hosted background tasks and preserve live hosts on reconnect failure 2026-11-07 16:22:51 +00:00
alan fd82eaa576 Restore hosted background tasks and preserve live hosts on reconnect failure 2026-11-07 16:22:38 +00:00
alan 5061cd5da4 Keep native Claude background tasks alive across detached sessions 2026-11-07 16:22:16 +00:00
alan 3da992075e Expose authoritative hosted Claude background task snapshot 2026-11-07 16:13:08 +00:00
alan 62cfa2f5ac Expose authoritative hosted Claude background task snapshot 2026-11-07 16:12:52 +00:00
alan 23cbcfc091 Merge branch 'ws-delivery' 2026-11-07 01:42:55 +00:00
alan 1a0f999fb1 Show prompts delivered into the running reply distinctly 2026-11-07 01:42:48 +00:00
alan dbf6398231 Correct CPU core counts and report incomplete data size scans 2026-11-07 01:38:59 +00:00
alan 95849f636a Add server stats websocket reporting 2026-11-07 01:35:39 +00:00
alan 46627c7204 Merge branch 'ws-files-http' 2026-11-07 00:54:53 +00:00
alan c4ccbb3f95 Add file size and modified time to directory listings 2026-11-07 00:54:36 +00:00
alan bfe89432bb Add contained home file endpoint 2026-11-07 00:53:15 +00:00
alan 0f49b31ca3 Clarify managed session storage and excluded native histories 2026-11-06 21:40:42 +00:00
alan 6abc309009 Expose storage usage and safe persisted age or size retention 2026-11-06 21:34:55 +00:00
alan aa19c82156 Protect containing worktrees from deleting nested checkouts 2026-11-06 21:29:51 +00:00
alan 18eec34f56 Measure server data and registered worktree storage safely 2026-11-06 21:27:11 +00:00
alan 6421554bfe Expose recorded background task timing and progress metadata 2026-11-06 15:08:34 +00:00
alan 20a69b7e47 Forward recorded Codex turn timestamps to chat history 2026-11-06 00:00:21 +00:00
alan f81e0e945b Allow the read-only retry test to run under integration load 2026-11-05 15:52:29 +00:00
alan 1e886faa41 Complete the Codex host initialization handshake once 2026-11-05 15:49:44 +00:00
alan 46f85556af Retry bounded budget reads after transient timeouts 2026-11-05 15:48:14 +00:00
alan c2a8f5ff16 Retain Codex interaction callbacks across server restarts 2026-11-05 14:32:59 +00:00
alan af178b83a1 Show recorded OpenCode models in the chat list 2026-11-05 13:42:01 +00:00
alan f5bf8ada8a Merge: archive and unarchive pipelines
# Conflicts:
#	internal/cli/commands.go
#	internal/pipeline/store.go
2026-11-04 23:39:02 +00:00
alan 06bf580154 Archive pipelines: hide unused ones while keeping their history
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.
2026-11-04 23:25:55 +00:00
alan cedfc22e45 Pipeline runs use the workspace's directory environment
Resolve the run workspace's environment with workenv (direnv, parent
.envrc, mise; same account rule as Claude chats) at run start and resume,
and apply it to Pi stage processes, a per-environment Pipelines-owned
OpenCode stage service (keyed by a hash of the change, reused across runs,
idle ones stopped after PIPELINES_OPENCODE_STAGE_IDLE_TIMEOUT, revived per
registration), delivery-gate checks and merges, plain-stage opencode CLI
calls and file-change capture git reads. Record the directory, .envrc
files, sources and variable names (never values) on the run detail; a
blocked .envrc becomes a run warning.
2026-11-04 18:08:42 +00:00
alan c83fb5406c Test: read the phone's clear and ack frames in either order 2026-11-04 17:47:17 +00:00
alan 4e0491d619 Merge main 2026-11-04 17:43:47 +00:00
alan 57f5219628 Artifacts: runner-internal turn files move to a Debugging files group
Each recorded artifact now carries a server group (deliverable or debug).
public/ files are deliverables; input/memory/history/output.md, session
exports and private/ scratch are debugging files. The app's Artifacts tab
lists deliverables and the Debug toggle reveals a separate Debugging files
group (older servers fall back to the filename rule); the TUI lists
deliverables first and marks debug rows; artifact search excludes debug
files unless include_debug / --debug-files is set.
2026-11-04 17:43:47 +00:00
alan 7d83b9d1ca Merge: pipelines skill rewrite per independent review 2026-11-04 17:27:30 +00:00
alan 5090f1cf4e Pipelines skill: outcome-first output, aligned review and loop guidance, operator material moved to docs
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.
2026-11-04 17:27:01 +00:00
alan 88dfc051e5 Model stages: outcome-first output shape and one in-session outcome repair
The prompt now says output.md must start with # outcome and the outcome
word alone on the next line, then # handoff, then detail. Runs 241/243
followed the old "start with # handoff" wording and dropped the outcome.

When a completed turn lacks a valid outcome, the OpenCode/agent and Pi
clients send one short follow-up in the same session asking only for the
outcome line. An outcome-only reply goes at the top of the original report;
a still-invalid reply fails with the same validation error as before. The
follow-up's tokens accrue to the session usage. No outcome is inferred.

Missing tools/evidence now name blocked when declared, else error. The
parser tolerates a trailing period on the outcome word.
2026-11-04 17:20:58 +00:00
alan 70391b17c2 Stage diffs: clean Git files take their baseline from the index blob
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.
2026-11-04 17:08:01 +00:00
alan 6870c81960 Skill install: also refresh Codex's copy under $CODEX_HOME/skills 2026-11-04 16:43:55 +00:00