oficina / equipo Public

Make website previews reliable

Added the missing failure message to the review inventory, updated size exceptions to the measured preview code and tests, and replaced numeric HTTP statuses with named constants. Focused tests and available build checks passed without changing preview behavior. Staticcheck was blocked offline, Git-dependent checks remain unverified, and the new wording still needs copy review. No live previews or credentials were changed.

Equipo task tkqrytoyd4ql, Engineering step attempt 1.
Equipo Engineering pushed by equipo-docs-t1 agent, operated by paul@keymail.dev 53062ed9e67275529cbce0f64c661eef9e928604 parent 06f9b27
3 files changed, +7 −6
  • .rastrillo/budgets.txt +4 −4
  • docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md +1 −0
  • internal/runner/thin/preview_verify_test.go +2 −2

CI failed — run details

diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 6842c003..10824f90 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -14,8 +14,8 @@ perf GET /* skip Unknown private paths render 404; this fallback contains no scr
time internal/equipo/team 60s Plan 3 loaded CI measured 45.985s; niced serial reruns measured 18.079s and 22.031s. Keep migration, recovery, accounting and concurrency assertions; 60s leaves 30 percent headroom above loaded CI.
time internal/equipotest 300s Final fix package rerun measured 187.035s (review 172.4s); 300s gives 60 percent headroom for HTTP, sandbox, authority and final regression coverage.
-size internal/equipo 20601 - Shared web rendering: project correction chips and destination forms beside Roster. Measured 20601 source lines.
-size internal/wire 6447 - Shared protocol types and Encode; 25 adds placement choices and notebook corrections. Measured 6447 source lines.
+size internal/equipo 20602 - Shared web rendering and actionable preview verification failure copy. Measured 20602 source lines.
+size internal/wire 6448 - Shared protocol types and Encode, including the preview verification failure reason. Measured 6448 source lines.
size internal/equipotest - 13400 Task 21 repairs historical migration and conversation fixtures after Plan 3. Measured 13024 test lines; the 300s time ceiling is unchanged.
time internal/runner/checks 90s CI worker measured 44.553s (44.6s rounded);
time internal/runner 330s Plan 3 CI repair measured 292.120s for the full package (controller CI 472.184s).
@@ -38,7 +38,7 @@ time internal/runner/provider 15s Plan 3 CI repair measured 10.346s for the full
perf GET /releases/* skip Verified runner release file downloads, not browser GET screens.
perf GET /install.sh skip Mac runners: the one-line bootstrap a terminal pipes to sh, not a browser screen.
time internal/runner/containment 15s Plan 3 loaded CI measured 10.817s;
-size internal/runner/thin 26411 18927 Shared runner state and execution helpers; placement prompt and durable notebook corrections. Measured 26379 source and 18927 test lines.
+size internal/runner/thin 26493 19034 Shared runner state and execution helpers; preview publication reconciliation and exact homepage/assets verification stay beside publication state, with recovery regressions. Measured 26493 source and 19034 test lines.
time internal/thintest 240s Thin contract and page tests, the Assistant's and the models' included, share one harness. Measured 202s on a shared 16 CPU box (2026-11-13); CI runs two lanes.
time internal/runner/mac 30s Mac runners (Darwin worker): real process groups killed after a grace and proven gone (SIGTERM, SIGKILL, the marker sweep), and the probes run end to end with fake srt and xcodebuild, P6 killing.
time internal/runner/thin 45s Thin v1 slice 4 review: real git repositories for the merge and squash checks, a stalled fetch, and a 16 MiB candidate streamed through the review diff and the checks pack (about 5s).
@@ -56,7 +56,7 @@ perf GET /api/v1/tasks/{id} skip Thin v1 person API: bearer-only JSON for device
perf GET /api/v1/assistant/snapshot skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen.
perf GET /api/v1/assistant/messages skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen.
perf GET /api/v1/assistant/events skip Assistant event stream (Server-Sent Events), bearer-only and long-lived; not a screen.
-size internal/equipo/chat 30008 - Transactional authority and dispatch stay together; project confirmation, fenced moves and notebook learning. Measured 30008 source lines.
+size internal/equipo/chat 30015 - Transactional authority and dispatch stay together, including safe preview-only retry without rerunning approved work. Measured 30015 source lines.
perf GET /api/v1/questions/{id} skip Thin v1 person API: bearer-only JSON for devices; the browser reads questions on /tasks/{id}.
perf GET /api/v1/steps/{id}/log skip Thin v1 person API: bearer-only JSON for devices; the browser shows the log tail on /tasks/{id}.
perf GET /api/v1/connections/preference skip Connections slice 1 person API: bearer-only JSON for devices; the browser shows the preference on /conversation/connections.
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
index 53548822..9f35d3d2 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
@@ -6074,6 +6074,7 @@ records remain unchanged.
| `work.reason.preview_config` | this version cannot use release/preview.json | Release previews (2026-11-11) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `work.reason.preview_too_large` | the preview exceeds 2,000 files, 10 MiB per file or 50 MiB in total | Release previews (2026-11-11) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `work.reason.preview_state` | Equipo could not read the preview's state | Release previews (2026-11-11) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
+| `work.reason.preview_verify` | the preview page and assets could not be verified; check the host connection before reconciling this publication | Preview reliability (2026-11-15) | Runtime; COPY REVIEW REQUIRED |
| `work.reason.preview_failed` | a Carloku command for the preview failed | Release previews (2026-11-11) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `work.reason.runner_outdated` | the runner needs an update for previews | Release previews (2026-11-11) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `work.card.preview_tailnet` | Preview: %s (on your tailnet) | Preview hosts (2026-11-12) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
diff --git a/internal/runner/thin/preview_verify_test.go b/internal/runner/thin/preview_verify_test.go
index 2e7f330a..62c04bfc 100644
--- a/internal/runner/thin/preview_verify_test.go
+++ b/internal/runner/thin/preview_verify_test.go
@@ -28,7 +28,7 @@ func TestPreviewUsableFiles(t *testing.T) {
broken := ""
client := previewTestClient(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if r.URL.Path == broken {
- http.Error(w, "unavailable", 503)
+ http.Error(w, "unavailable", http.StatusServiceUnavailable)
return
}
http.FileServer(http.Dir(stage)).ServeHTTP(w, r)
@@ -59,7 +59,7 @@ func TestPreviewVerificationTransientAndBounded(t *testing.T) {
client := previewTestClient(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
requests++
if requests == 1 {
- http.Error(w, "temporary", 503)
+ http.Error(w, "temporary", http.StatusServiceUnavailable)
return
}
fmt.Fprint(w, `{"task":"task","digest":"exact"}`)