Make Pipelines Docker-only with OpenCode and Pi

Install current verified harness releases inside Docker, preserve persistent accounts and settings, and provide separate interactive and pipeline model defaults with terminal onboarding and fuzzy pickers.

Add Docker-aware authoring transport, Pi stage execution, bounded workflow controls, reliable final-result readback and usage settlement, and finite short-lived CLI pipe draining. Keep dated installation evidence and packaged authoring guidance consistent.

Verified with a real Docker installation, both harness stages and interactive authors, the built-in plan/implement/review starter, independent host race/vet checks, installer tests, and packaged skill tests. Generated release receipts stay ignored in clean checkouts.
This commit is contained in:
2026-10-11 23:00:25 +01:00
parent c42a19f7d3
commit 05ae530442
131 changed files with 9297 additions and 355 deletions
+11 -5
View File
@@ -20,11 +20,17 @@ session had **no messages and zero usage counters**, even though `/generate`
returned a valid result. Polling that session treated placeholder zeros as known
accounting and did not enforce the intended limit.
Budgeted V2 text calls now use tracked `/prompt` → `/wait` → message readback,
with **all tools denied**. Their messages are retained in the stage audit, usage
is read from the tracked session, and a completed token-budgeted response with
zero reported tokens fails closed. Native V1 handling and unbudgeted text
generation keep their existing paths.
Budgeted V2 text calls now use tracked `/prompt` → bounded active-session polling
→ message readback, with **all tools denied**. Their messages are retained in the
stage audit, usage is read from the tracked session, and a completed
token-budgeted response with zero reported tokens fails closed. Native V1 handling
and unbudgeted text generation keep their existing paths.
A later reliability fix replaced the V2 `.../experimental/session/{id}/wait`
request, which timed out at the CLI's own ~six-minute limit (HTTP 499) on long
stages, with roughly one-second `GET /api/session/active` polls under the stage
context/deadline. That change has fake-CLI regression coverage in `internal/stage`;
it has not yet been exercised by a fresh live run.
The focused live rerun retained **952 reported tokens and $0.00016440**, failed
with `stage budget exceeded`, and stopped its owned session. This is reported