183 Commits

Author SHA1 Message Date
alan 532ba48927 Run every pipeline run in its own worktree
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.
2026-11-10 16:06:40 +00:00
alan 1ad85de1f1 Keep step-up elevation for the signed-in session and stop gating terminals
The proxy forwards an HMAC-derived session id (X-Pipelines-Session) on
/connect and POST /files; the server trusts it only on token-authenticated
requests and keys elevation by it, so reconnects stay elevated up to a 24 h
cap. Terminals rely on their su -l login. The app no longer forgets the
elevation on disconnect and asks again only on a fresh refusal.
2026-11-10 03:00:45 +00:00
alan 50535dc5ea Merge branch 'worktree-agent-a7f96a1eb9a56587d'
# Conflicts:
#	cmd/pipelines-server/main.go
#	internal/server/websocket.go
#	scripts/manage.py
#	scripts/setup-native.py
#	web/serve.mjs
#	web/src/peerRelay.js
2026-11-10 01:25:04 +00:00
alan 31317be258 Document web sign-in and session hardening 2026-11-10 01:21:28 +00:00
alan a0f2cfec16 Merge branch 'worktree-agent-ac54c8919e940163a'
# Conflicts:
#	scripts/setup-native.py
2026-11-10 01:07:12 +00:00
alan e614f93578 Document the network defaults, LAN opt-in and migration 2026-11-10 01:06:17 +00:00
alan 12a74247ae Create the server token at install and document the security boundary 2026-11-10 00:59:39 +00:00
alan 9f38e38f6a Sign the app update feed with Ed25519 and verify it in the app
Each installation generates a private Ed25519 key once (0600, under
~/.config/pipelines), signs version.json with a detached version.json.sig
when publishing APK and desktop builds, and embeds its own and listed
trusted public keys in app builds. The app verifies the feed signature
before trusting the artifact sha256, refuses unsigned or foreign feeds when
it has keys, and requires the sha256 and Android signer in signed feeds.
2026-11-10 00:51:16 +00:00
alan 929e4cc017 Advertise tailnet and public routes in server discovery
The mDNS record now carries ts= (tailnet IPv4 addresses) and public= (the
installer's HTTPS origin from PIPELINES_WEB_PUBLIC_URL) in TXT, and browse,
the discover_servers RPC and /discovery return every route to a machine as
addresses with kinds lan, tailscale and public. Endpoint stays the LAN route
for older clients. Unsafe ts/public values are dropped.
2026-11-08 23:59:19 +00:00
alan c2d8d6d7a3 Record live multi-server browser acceptance and integration checks 2026-11-08 22:31:50 +00:00
alan 349428f11d Discover LAN servers and relay authenticated browser peer connections 2026-11-08 21:58:23 +00:00
alan 543e3f063a Add interactive password change command without service restart 2026-11-08 21:48:00 +00:00
alan 828227f549 Add complete uninstall reset for fresh native installations 2026-11-08 19:16:46 +00:00
alan 323faef686 Document Android update identity across multiple servers 2026-11-08 17:01:25 +00:00
alan 8ddf893de9 Publish APK certificate identity for multi-server compatibility 2026-11-08 16:58:47 +00:00
alan 761ff021fe Keep generated Linux plugin registries out of build identity 2026-11-08 16:50:15 +00:00
alan eea4b1ddc9 Document second-machine installation and verification scope 2026-11-08 16:48:57 +00:00
alan 36f73bb89d Build Linux and macOS clients with platform update feeds 2026-11-08 16:45:42 +00:00
alan 3fbfb85ace Observe native Claude automations and preserve pending timers 2026-11-08 15:52:22 +00:00
alan 9d3358be47 Expose session-owned chat automation metadata 2026-11-08 15:24:23 +00:00
alan 7b5a0e0310 Smooth mobile chat swaps and measure the actual peek viewport 2026-11-07 02:47:34 +00:00
alan b33970182c Proxy authenticated file explorer downloads and previews 2026-11-07 01:51:12 +00:00
alan 54ffb5d022 Record recovered session changes and verification evidence 2026-11-07 01:49:16 +00:00
alan 75bd4dcff0 Merge branch 'ws-files-viewer'
# Conflicts:
#	app/tool/capture/README.md
2026-11-07 01:45:03 +00:00
alan 84a03bea8d Complete chat file previews downloads and explorer actions 2026-11-07 01:44:42 +00:00
alan 61b382e9c0 Merge branch 'ws-stats-app'
# Conflicts:
#	docs/notes/server-stats.md
2026-11-07 01:44:15 +00:00
alan 8bf8cd9507 Add server health page with native controls and bounded refresh 2026-11-07 01:43:54 +00:00
alan f80edfabab Record Flutter terminal popup integration research 2026-11-07 01:39:49 +00:00
alan 95849f636a Add server stats websocket reporting 2026-11-07 01:35:39 +00:00
alan 2c1fa52e86 Merge branch 'main' into ws-files-panel 2026-11-07 01:06:30 +00:00
alan 5a1d503f58 Add chat files panel explorer shell with sorting and views 2026-11-07 01:06:23 +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 f4ba2ab25e Document verified Codex ai-memory connection repair 2026-11-07 00:29:24 +00:00
alan ed58e5a96f Record staged storage release and active-work delivery gate 2026-11-06 21:46:47 +00:00
alan 6abc309009 Expose storage usage and safe persisted age or size retention 2026-11-06 21:34:55 +00:00
alan 51ee950a5b Record verified backend deployment and preserved Claude hosts 2026-11-06 16:30:47 +00:00
alan 6421554bfe Expose recorded background task timing and progress metadata 2026-11-06 15:08:34 +00:00
alan c9a4cd0bf6 Record checked Codex timestamp fix and deferred deployment 2026-11-06 00:01:20 +00:00
alan 20a69b7e47 Forward recorded Codex turn timestamps to chat history 2026-11-06 00:00:21 +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 538143554c Split stage memory into capped essential memory.md and full history.md
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.
2026-11-04 13:00:48 +00:00
alan 07d4740d0c Show injected Claude input as agent reports and notices, not operator bubbles
Claude Code records subagent/peer reports, task notifications, reminders and
skill bodies as user-role entries. Classify them server-side (history and live
stream) by origin/isMeta/queued_command mode: reports become kind agent_report,
task notifications kind notice, harness meta is hidden, and the mid-turn
wrapper is unwrapped to the operator's text. The app draws a collapsed Agent
report card and a one-line system notice on the agent's side.
2026-11-02 16:44:07 +00:00
alan be932c846f Catch up a moved main in the delivery gate before landing
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.
2026-10-31 15:24:12 +00:00
alan 13c4035175 fix(turns): keep the run task in every stage's input
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'.
2026-10-31 02:52:16 +00:00
alan 83d013f10e docs: record Claude Code chat backend deployment 2026-10-22 18:23:48 +01:00