Commit Graph

192 Commits

Author SHA1 Message Date
alan b1482b554b turn: keep the body written before a trailing outcome
ParseOutput returned only the text after the outcome value, so a stage that wrote
its result first and "# outcome" last handed the next stage "(no output)" — the
probe's Compose and Critique turns were both lost this way. The body is now the
whole document with just the outcome heading and value line removed, in order,
byte for byte. Tests cover a trailing and a mid-document outcome.
2026-10-19 23:31:06 +01:00
alan 217e11da1d Merge branch 'main' into turn-integration
# Conflicts:
#	internal/server/runner.go
#	internal/stage/model_prompt.go
#	internal/stage/model_run.go
#	internal/stage/model_test.go
2026-10-19 22:32:13 +01:00
alan e37b864c40 stage turns: replace JSON results with file-based markdown turns
Each model visit now gets <run>/stages/<seq>-<stage>/ with input.md,
memory.md, output.md, private/ and a shared run-level public/. The model
reads the two input files, follows the stage's instructions verbatim and
returns complete markdown; only the # outcome section is parsed.

- add internal/turn layout, render and output parsing
- write input.md/memory.md before a visit and output.md from the final
  message; inventory all turn files as stage artifacts
- accumulate completed turns and system-written public file additions in
  memory, including across retries and resume
- remove the JSON envelope, strict field validation, line format and the
  repair ladder for model stages
- republish pipeline authoring prompts and docs in the new style

Checks: go build ./..., go vet ./..., go test -count=1 ./..., gofmt -l .
2026-10-19 22:27:44 +01:00
alan 72aecd8b1f Remove resource pools, leases and wait queues
Drop the resource allocation feature end to end: store tables and migration, runner scheduling and cleanup, protocol types and commands, CLI commands, TUI screens, tests and docs. Existing databases open cleanly and definitions carrying a retired resources block still validate.
2026-10-19 22:27:27 +01:00
alan 7b6bd71dd8 turn: add file-based stage turn foundation 2026-10-19 20:06:18 +01:00
alan 2fe63012f9 chat: a verification chat can never appear in the operator's list
The operator's chat list showed ~99 stray "New chat" entries. The listing
was already fail-closed (registry-only); the fault was what got recorded: an
automated UI check drives the real page, so its throwaway chat was recorded as
an operator chat exactly like a manually created one and stayed in the list for
ever (each run added one).

Server: chat_create takes an optional ephemeral flag. The session is created,
bootstrapped, usable, closable and reopenable exactly like any other, but its
registry row is hidden, so chat_sessions never lists it. operator_sessions gains
an ephemeral column (idempotent migration, existing rows default to listed) and
the list query filters it; the single-row lookup does not, so close/reopen keep
working. RecordVerificationSession is the hidden recorder.

Web: the page marks a create ephemeral only when automation asks for it
(__pipelinesEphemeralChat, set by the UI smoke for its throwaway chat), so the
smoke's own runs stop polluting while a manual create is unchanged.

Tests: a hidden row is never listed yet is still looked up and closable; a
normal re-record of the same id lists it again; a pre-ephemeral database
migrates with every existing chat still listed. Live data pruned separately
(107 -> 8 registry rows, backed up).
2026-10-19 13:15:08 +01:00
alan 4e4d09b6a4 Show only running background tasks in a compact chat bar
The chat background-task bar now lists only tasks that are still running, so an
exited task no longer lingers and the bar disappears when the last one ends. The
one-line 'running now and recently observed exits' subtitle is replaced by a
compact 'Background tasks · N running' header, and the list is capped at three
touch-sized rows and scrolls beyond that instead of pushing the composer down the
screen. Unit-tested (running-only set and the row cap) and the stale note
updated.
2026-10-19 01:24:20 +01:00
alan 4ab65692d6 Schedule Android UI review through the android-devices pool
The Android UI reviewer declares the android-devices pool instead of one
hard-coded Pixel, so a second UI run can use the idle foldable emulator instead
of waiting behind the single phone. Updates the Android map's device rules to
match the pool (replacing the old single-phone / no-emulator rule) and records
the pool, its members and the delivery-only personal Fold in a note. Safety
rules are unchanged; configuration and the pipeline version are separate steps.
2026-10-19 00:40:10 +01:00
alan d4dd7cb3df Merge branch 'main' into manager-honest-diffs 2026-10-19 00:36:15 +01:00
alan c464aa5188 Merge branch 'main' into small-actionbar-notifications
# Conflicts:
#	android/app/src/main/java/net/awan/pipelines/ui/theme/Dimens.kt
2026-10-19 00:31:10 +01:00
alan 63cae54fb4 Merge branch 'main' into chat-cross-client-echo-order 2026-10-19 00:08:33 +01:00
alan 7c6424971d Merge branch 'main' into small-fullwidth-body 2026-10-19 00:07:03 +01:00
alan 4bfd52d432 Integrate main while preserving Clear all and action-bar notification access 2026-10-19 00:02:27 +01:00
alan 50a9fa656f Merge branch 'main' into honest-incomplete-run-diffs 2026-10-19 00:01:44 +01:00
alan a724303474 Preserve reviewed incomplete-diff labels before controlled UI acceptance 2026-10-19 00:01:44 +01:00
alan 461b138413 fix retry-of-retry memory prefix reconstruction 2026-10-18 23:57:28 +01:00
alan e3d6aa0cce Merge branch 'main' into chat-hide-notice-timeout 2026-10-18 23:53:46 +01:00
alan a57decbf4e Merge branch 'main' into background-tasks-viewer 2026-10-18 23:45:42 +01:00
alan 80a1d1e0ea Bound pool declaration reads and document operator commands 2026-10-18 23:43:58 +01:00
alan 28dac46a80 Merge branch 'main' into resource-pool-operator-config 2026-10-18 23:40:12 +01:00
alan 9e31e054ac Merge branch 'main' into resource-pool-operator-config 2026-10-18 23:37:50 +01:00
alan 89a2bf1e01 Add operator resource pool configuration commands 2026-10-18 23:37:46 +01:00
alan ee9d4c846c Merge branch 'main' into notifications-clear-all 2026-10-18 23:37:17 +01:00
alan e851d261b5 Merge branch 'main' into pool-target-model-handoff 2026-10-18 23:33:30 +01:00
alan 31d78cc065 stage: expose resource targets to model harnesses 2026-10-18 23:33:30 +01:00
alan 58fa528afc test: retain committed stage diffs 2026-10-18 23:30:56 +01:00
alan 631ad0954e Merge branch 'main' into small-actionbar-notifications 2026-10-18 23:29:59 +01:00
alan e2a9a7b2d7 Merge branch 'main' into chat-hide-notice-timeout 2026-10-18 23:29:59 +01:00
alan 1ebf0f46dc Preserve hide notice re-entry fixes before renewed UI acceptance 2026-10-18 23:29:59 +01:00
alan 3187b0c06e Merge branch 'main' into chat-cross-client-echo-order 2026-10-18 23:28:54 +01:00
alan 6cb584ea45 Merge branch 'main' into background-tasks-viewer 2026-10-18 23:25:16 +01:00
alan 72281716c6 Preserve bounded background viewer fixes before resumed review 2026-10-18 23:25:16 +01:00
alan 178b57f8c5 Merge branch 'main' into small-fullwidth-body 2026-10-18 23:23:41 +01:00
alan efb95610ce Merge branch 'main' into notifications-clear-all 2026-10-18 23:22:28 +01:00
alan dad89493de Preserve reviewed Clear all change for leased UI verification 2026-10-18 23:22:28 +01:00
alan 94b22732dd Merge branch 'main' into resource-pool-runner-handoff 2026-10-18 23:20:55 +01:00
alan a022b58c5c Wire pool resource targets through runner and repair quarantined-member handoff 2026-10-18 23:20:55 +01:00
alan d22e7a4cdf Merge branch 'fix-worktree-diff-capture' 2026-10-18 23:17:38 +01:00
alan 8b07dbc8ba Merge branch 'main' into fix-worktree-diff-capture 2026-10-18 23:17:13 +01:00
alan ae6bcff270 Keep binary artifacts from exhausting source diff capture budget 2026-10-18 23:17:13 +01:00
alan 1f304bf0e5 Merge branch 'main' into remove-run-evidence-tab 2026-10-18 23:16:32 +01:00
alan 9d10301c36 Merge branch 'main' into small-shell-wire-defaults 2026-10-18 23:12:23 +01:00
alan 2a6760aa95 Merge branch 'main' into remove-run-evidence-tab 2026-10-18 23:12:23 +01:00
alan e1adb687d4 fix server retry memory input override ordering 2026-10-18 22:18:16 +01:00
alan a4c7149060 Merge branch 'main' into android-target-pool-allocation 2026-10-18 22:10:47 +01:00
alan 91fd6722cc Merge branch 'main' into small-shell-wire-defaults 2026-10-18 22:10:27 +01:00
alan c659d39acd Merge branch 'main' into small-actionbar-notifications 2026-10-18 22:06:48 +01:00
alan a567257b92 feat: move attention access to action bars 2026-10-18 22:06:45 +01:00
alan 149ff0e06a fix: make shared page bodies full width 2026-10-18 21:58:24 +01:00
alan 6c8eda9f47 fix android shell output wire defaults 2026-10-18 21:54:22 +01:00