oficina / equipo Public

Make website previews reliable

Previews now check the homepage and exported assets against the approved digest, rather than trusting the marker alone. Unverified results report failure, and ambiguous publications cannot be blindly retried. Targeted offline tests, builds, vet and formatting passed, but host tests and the full gate were blocked by environment restrictions; nothing was verified live. Safe retry controls and publishing/verifying status updates still need follow-up.

Equipo task tkqrytoyd4ql, Engineering step attempt 1.
Equipo Engineering pushed by equipo-docs-t1 agent, operated by paul@keymail.dev 06f9b27f11bf1df204c105671f87843725785076 parent c6feb47
10 files changed, +454 −200
  • docs/engineering/preview-reliability.md +56 −0
  • internal/equipo/chat/tasks.go +8 −1
  • internal/equipo/copy.go +173 −172
  • internal/runner/thin/preview.go +25 −8
  • internal/runner/thin/preview_devbox.go +1 −10
  • internal/runner/thin/preview_devbox_test.go +5 −5
  • internal/runner/thin/preview_test.go +9 −4
  • internal/runner/thin/preview_verify.go +74 −0
  • internal/runner/thin/preview_verify_test.go +102 −0
  • internal/wire/tasks.go +1 −0

CI failed — run details

diff --git a/docs/engineering/preview-reliability.md b/docs/engineering/preview-reliability.md
new file mode 100644
index 00000000..451c61b7
--- /dev/null
+++ b/docs/engineering/preview-reliability.md
@@ -0,0 +1,56 @@
+# Preview verification hardening
+
+This is a partial fix, not completion of the preview recovery workflow.
+
+## Findings
+
+The runner prefers explicitly paired CARLOS devbox over Carloku. Devbox
+shares the approved export in one command; Carloku creates/renews an app,
+ships a version, then promotes it. Both record publication intent before
+mutations and both previously returned StepDone when verification failed.
+Restart reconciliation previously checked only the exact marker. None of
+these findings establishes the cause of the historical barber report.
+
+The task scheduler places only one preview per candidate. Generic task retry
+creates a new attempt and is not a safe way to recover an ambiguous preview
+publication. Preview failures are now explicitly excluded from that path.
+Authorization before host mutations and credential handling are unchanged.
+
+## Change
+
+Unconfirmed runner results are failed, with fixed, host-neutral reasons, no
+URL, and the unconfirmed outcome retained by the instance. Verification checks
+the exact marker, the homepage at `/`, and every exported asset against the
+approved digest, with a total deadline and no redirects. Temporary HTTP errors
+are retried within that deadline. Expired results cannot become ready. Devbox
+retains the bounded local export so interrupted publication can be reconciled
+read-only, including its assets. A recovered marker must name the original
+task, candidate, step and attempt. No external mutation is replayed.
+
+## Remaining work and operational limitations
+
+There is not yet a person-facing read-only retry action, nor separate
+publishing/verifying status updates. Terminal blocked steps cannot yet be
+reconciled through the UI. Do not use a fresh publication attempt as a workaround
+for an ambiguous command result. A follow-up needs an authorized reconciliation
+command for the original attempt, serialized with cancellation, candidate
+changes and host teardown, preserving the original expiry across restarts.
+Retained export cleanup should accompany that lifecycle. The instance's older
+withdrawn-attempt settlement path still represents ambiguity as done/unconfirmed.
+
+Devbox links require tailnet access. No live configuration, credential, host or
+site was inspected or changed, and live usability has not been established.
+
+## Validation
+
+Offline in-memory HTTP tests cover homepage and asset failure, stale digest,
+transient HTTP failure, cancellation and expiry. Existing host regression tests
+were updated to serve assets and assert failed results; duplicate restart
+reconciliation is asserted to issue no additional commands. Running the host
+suite was blocked by the sandbox's prohibition on local listening sockets;
+the escalation request was unavailable. Instance preview tests passed.
+The documented CI gate passed release-copy checking but stopped at its
+repository-metadata-dependent dead-reference check in this checkout.
+
+Linux and Darwin build gates, vet (including testbuild and Darwin), and formatting
+passed offline with VCS stamping disabled. Cached dependencies were sufficient.
diff --git a/internal/equipo/chat/tasks.go b/internal/equipo/chat/tasks.go
index 8bd81f2e..d7a99029 100644
--- a/internal/equipo/chat/tasks.go
+++ b/internal/equipo/chat/tasks.go
@@ -1416,6 +1416,13 @@ func (t *txn) stepReport(l Lease, v *wire.StepReport) error {
// A metered step's model (one chosen per step, §16.7).
s.Model, changed = v.Usage[n-1].Model, true
}
+ if s.Specialist == wire.SpecialistPreview && v.State == wire.StepFailed && v.Preview != nil {
+ done, ok := acceptPreviewDone(l, role, &s, v)
+ if !ok || v.CandidateSHA != s.CandidateSHA {
+ return nil
+ }
+ s.Preview = done
+ }
switch v.State {
case wire.StepRunning:
if s.State == wire.StepQueued && v.Hold == nil {
@@ -1890,7 +1897,7 @@ func (t *txn) retryStep(k *taskRecord, person string) (attempt int64, err error)
attempt = st.Attempt
return attempt, t.saveTask(k)
}
- if !found || st.State != wire.StepFailed || !st.Terminated {
+ if !found || st.State != wire.StepFailed || !st.Terminated || st.Specialist == wire.SpecialistPreview {
return 0, ErrNotRetryable
}
if st.Person != person {
diff --git a/internal/equipo/copy.go b/internal/equipo/copy.go
index 5c77ecd6..557596fb 100644
--- a/internal/equipo/copy.go
+++ b/internal/equipo/copy.go
@@ -737,178 +737,179 @@ var pageCopy = map[string]string{
// COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context): conversation.title
// COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
"conversation.thinking": "Thinking",
- "chat.offline": "Your runner is offline. Messages wait here until it is back.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.failed": "The coordinator could not answer this message.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.failed_many": "The coordinator could not answer these messages.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "chat.cancelled": "Stopped.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.read_task_subject": "Checking ‘%s’…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "chat.activity.cancel_task_subject": "Cancelling ‘%s’…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "chat.activity.add_report_subject": "Adding to ‘%s’…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "chat.activity.hold_merge_subject": "Holding the merge for ‘%s’…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "chat.activity.start_task_subject": "Handing ‘%s’ to Engineering…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "chat.activity.read_change_subject": "Looking at the change on ‘%s’…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "chat.activity.add_project_repo": "Adding %s…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "chat.activity.create_project_repo": "Creating %s…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "chat.activity.star_project_repo": "Starring %s…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "chat.activity.thinking": "Thinking", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.status": "Checking your projects…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.add_project": "Adding a project…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.ask_person": "Writing you a question…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.other": "Working…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.find": "Looking for it…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.search_code": "Searching the code…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.read_file": "Reading the code…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.create_project": "Creating a repository…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.set_project_home": "Updating where new projects go…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.star_project": "Starring a project…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "chat.activity.write_note": "Writing notes…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.read_notes": "Reading notes…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.read_file_repo": "Reading %s…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.search_code_repo": "Searching %s…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.move_in": "Moving in… %s", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.explore": "Looking at new access… %s", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.record_task": "Noting the task…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.add_finding": "Noting what I found…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.start_task": "Handing it to Engineering…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.read_task": "Checking the task…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.cancel_task": "Cancelling the task…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "nav.tasks": "Tasks", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.card.access_resolved": "%s is reachable now.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.card.grant_check": "Check now", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.stage.noted": "Noted", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.stage.investigated": "Looking into it", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.stage.in_progress": "In progress", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.stage.in_review": "In review", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.stage.ready_to_merge": "Ready to merge", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.stage.done": "Done", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.stage.cancelled": "Cancelled", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.track.reviewed": "Review", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
- "work.track.preview": "Preview", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
- "work.track.decided": "Decided", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
- "work.tl.merge_dropped": "An earlier attempt to add this change was dropped when the task became an exploration.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
- "work.stopped": "Stopped: %s", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.reason.runner_restarted": "the runner restarted", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.reason.no_changes": "nothing needed changing", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.reason.push_failed": "the push to Amadan failed", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.reason.push_conflict": "the branch changed on Amadan", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.reason.step_timeout": "it ran out of time", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.reason.interrupted": "the runner lost track of it", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.reason.other": "something went wrong", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.reason.provider_failed": "the model connection failed", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.provider_rejected": "the model service declined the request", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.policy_rejected": "Equipo's rules blocked it", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.sign_in_again": "a model account needs you to sign in again", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.workspace_refused": "the runner could not set up a place to work", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.clone_failed": "the runner could not copy the project from Amadan", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.superseded": "newer work replaced it", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.needs_macos": "it needs a Mac", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.checks_timeout": "the checks ran out of time", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.checks_unavailable": "this runner cannot run the checks", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.needs_network": "the checks need a network connection", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.placement_refused": "no runner could take it", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.withdrawn": "it was withdrawn before it started", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.transfer_refused": "the work could not move between runners", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.runner_offline": "the runner it needs was offline too long", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.sandbox_unproven": "the Mac's sandbox is not proven yet", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.unknown": "the runner reported a problem this version of Equipo does not recognise", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.pushed": "Pushed %s at %s", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.open": "Open on Amadan", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.recover": "Recover", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.needs.machine_removed": "Stopped: the machine was removed mid-step. Make sure it's switched off, then Recover", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.reason.machine_removed": "the machine was removed mid-step", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.retry": "Retry", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.cancel": "Cancel", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.step": "%s, attempt %d: %s", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.step.queued": "waiting", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.step.running": "working", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.step.done": "done", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.step.failed": "stopped", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.step.cancelled": "cancelled", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.findings": "Findings", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.steps": "Steps", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.notes": "Notes", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.note_add": "Add a note", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.notes_empty": "No notes yet.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.noted_by": "Noted by %s", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.tasks_empty": "No tasks yet. Tell the coordinator what needs doing.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.all_tasks": "All tasks", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.projects_empty": "No projects yet. They appear here when the coordinator adds them.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "nav.working": "working", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "nav.more": "+%d more", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.specialist.engineering": "Engineering", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.specialist.checks": "Checks", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.specialist.review": "Review", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.round": "fix round %d", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.spend": "Used %s tokens (%s cached)", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.spend_uncached": "Used %s tokens", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.spend_at_least": "at least %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.spend_step": "%s: %s tokens (%s cached)", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.spend_step_uncached": "%s: %s tokens", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.spend_questions": "Questions", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.spend_left_out": "Earlier usage not shown", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.spend_steps": "Tokens each step used", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.checks.passed": "Checks passed (%s)", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.checks.failed": "Checks failed (%s, exit %d)", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.checks.none": "No checks found", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.checks.needs_macos": "Checks can't run here (needs macOS)", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.checks.needs_network": "Checks can't run here (they need the network)", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.checks.checks_timeout": "Checks didn't finish in time", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.checks.checks_unavailable": "Checks can't run on this runner", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.checks.running": "Running checks…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.checks.outside_sandbox": "%s, ran outside the sandbox", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.review.approve": "Approved (%s)", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.review.changes_requested": "Changes requested (%s)", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.review.running": "Reviewing…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.review.other_family": "another model family", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.review.same_family": "same family", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.review.same_account": "same family, same account", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.needs.fix_rounds": "Needs you: still not approved after two fix rounds", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.needs.branch_moved": "Needs you: the branch moved on Amadan after it was checked", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.needs.review_blocked": "Needs you: the review ended without a verdict", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.reason.no_verdict": "the review gave no verdict", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.reason.candidate_unavailable": "the commit was not on Amadan", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.reason.account_unavailable": "no model account was ready", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.review_findings": "Review found", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.needs_empty": "Nothing needs you right now.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.thread": "Questions and notes", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.thread_empty": "No questions or notes yet.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.ask.target": "Asking %s", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.ask.change": "change", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.ask.placeholder": "Ask %s about this work", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.ask.queued": "Waiting for its turn…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.ask.failed": "%s couldn't answer: %s.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.ask.cancelled": "Question cancelled.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.ask.reason.session_gone": "its session for this work is no longer kept", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.ask.reason.task_ended": "the task has ended", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.stage.merging": "Merging…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.merged": "Merged into %s at %s", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.merged_without_checks": "Merged into %s at %s, without checks", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.merge_now": "Merge", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.specialist.merge": "Merge", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "work.specialist.preview": "Preview", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.tl.preview_built": "Prepared %d files (%s).", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.tl.preview_ready": "Preview ready", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.tl.preview_unconfirmed": "Preview could not be confirmed", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.card.preview": "Preview: %s (expires in %s)", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.card.preview_open": "Preview: %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.card.preview_tailnet": "Preview: %s (on your tailnet)", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
- "work.direction.pair": "How to pair a preview host", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
- "machines.previews": "Previews", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
- "machines.previews_devbox": "Previews: %s (on your tailnet)", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
- "machines.previews_carloku": "Previews: %s (on Carloku temporary sites)", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
- "machines.previews_none": "No preview host is paired yet.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
- "machines.previews_lede": "Equipo is designed to pair with a CARLOS preview host, so you can open mockups and pages in your browser.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
- "machines.previews_devbox_how": "On a machine with CARLOS devbox, set EQUIPO_PREVIEW_HOST=devbox for its runner. Previews then open on your tailnet.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
- "machines.previews_carloku_how": "For Carloku, set EQUIPO_PREVIEW_CREDENTIAL_PATH to the path of the runner's credential file. Previews are public and expire after 7 days.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
- "work.preview.in_days": "%d days", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.preview.in_day": "1 day", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.preview.today": "less than a day", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.preview_cap": "the account already has 20 previews", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.preview_expired": "this task's preview expired and its name is still taken", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.preview_config": "this version cannot use release/preview.json", // 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", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.preview_state": "Equipo could not read the preview's state", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.reason.preview_failed": "a Carloku command for the preview failed", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "chat.offline": "Your runner is offline. Messages wait here until it is back.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.failed": "The coordinator could not answer this message.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.failed_many": "The coordinator could not answer these messages.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "chat.cancelled": "Stopped.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.read_task_subject": "Checking ‘%s’…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "chat.activity.cancel_task_subject": "Cancelling ‘%s’…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "chat.activity.add_report_subject": "Adding to ‘%s’…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "chat.activity.hold_merge_subject": "Holding the merge for ‘%s’…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "chat.activity.start_task_subject": "Handing ‘%s’ to Engineering…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "chat.activity.read_change_subject": "Looking at the change on ‘%s’…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "chat.activity.add_project_repo": "Adding %s…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "chat.activity.create_project_repo": "Creating %s…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "chat.activity.star_project_repo": "Starring %s…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "chat.activity.thinking": "Thinking", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.status": "Checking your projects…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.add_project": "Adding a project…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.ask_person": "Writing you a question…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.other": "Working…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.find": "Looking for it…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.search_code": "Searching the code…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.read_file": "Reading the code…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.create_project": "Creating a repository…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.set_project_home": "Updating where new projects go…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.star_project": "Starring a project…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "chat.activity.write_note": "Writing notes…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.read_notes": "Reading notes…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.read_file_repo": "Reading %s…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.search_code_repo": "Searching %s…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.move_in": "Moving in… %s", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.explore": "Looking at new access… %s", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.record_task": "Noting the task…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.add_finding": "Noting what I found…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.start_task": "Handing it to Engineering…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.read_task": "Checking the task…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.cancel_task": "Cancelling the task…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "nav.tasks": "Tasks", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.card.access_resolved": "%s is reachable now.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.card.grant_check": "Check now", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.stage.noted": "Noted", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.stage.investigated": "Looking into it", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.stage.in_progress": "In progress", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.stage.in_review": "In review", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.stage.ready_to_merge": "Ready to merge", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.stage.done": "Done", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.stage.cancelled": "Cancelled", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.track.reviewed": "Review", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "work.track.preview": "Preview", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "work.track.decided": "Decided", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "work.tl.merge_dropped": "An earlier attempt to add this change was dropped when the task became an exploration.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "work.stopped": "Stopped: %s", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.reason.runner_restarted": "the runner restarted", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.reason.no_changes": "nothing needed changing", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.reason.push_failed": "the push to Amadan failed", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.reason.push_conflict": "the branch changed on Amadan", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.reason.step_timeout": "it ran out of time", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.reason.interrupted": "the runner lost track of it", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.reason.other": "something went wrong", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.reason.provider_failed": "the model connection failed", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.provider_rejected": "the model service declined the request", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.policy_rejected": "Equipo's rules blocked it", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.sign_in_again": "a model account needs you to sign in again", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.workspace_refused": "the runner could not set up a place to work", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.clone_failed": "the runner could not copy the project from Amadan", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.superseded": "newer work replaced it", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.needs_macos": "it needs a Mac", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.checks_timeout": "the checks ran out of time", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.checks_unavailable": "this runner cannot run the checks", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.needs_network": "the checks need a network connection", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.placement_refused": "no runner could take it", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.withdrawn": "it was withdrawn before it started", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.transfer_refused": "the work could not move between runners", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.runner_offline": "the runner it needs was offline too long", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.sandbox_unproven": "the Mac's sandbox is not proven yet", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.unknown": "the runner reported a problem this version of Equipo does not recognise", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.pushed": "Pushed %s at %s", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.open": "Open on Amadan", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.recover": "Recover", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.needs.machine_removed": "Stopped: the machine was removed mid-step. Make sure it's switched off, then Recover", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.reason.machine_removed": "the machine was removed mid-step", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.retry": "Retry", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.cancel": "Cancel", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.step": "%s, attempt %d: %s", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.step.queued": "waiting", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.step.running": "working", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.step.done": "done", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.step.failed": "stopped", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.step.cancelled": "cancelled", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.findings": "Findings", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.steps": "Steps", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.notes": "Notes", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.note_add": "Add a note", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.notes_empty": "No notes yet.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.noted_by": "Noted by %s", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.tasks_empty": "No tasks yet. Tell the coordinator what needs doing.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.all_tasks": "All tasks", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.projects_empty": "No projects yet. They appear here when the coordinator adds them.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "nav.working": "working", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "nav.more": "+%d more", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.specialist.engineering": "Engineering", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.specialist.checks": "Checks", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.specialist.review": "Review", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.round": "fix round %d", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.spend": "Used %s tokens (%s cached)", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.spend_uncached": "Used %s tokens", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.spend_at_least": "at least %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.spend_step": "%s: %s tokens (%s cached)", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.spend_step_uncached": "%s: %s tokens", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.spend_questions": "Questions", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.spend_left_out": "Earlier usage not shown", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.spend_steps": "Tokens each step used", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.checks.passed": "Checks passed (%s)", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.checks.failed": "Checks failed (%s, exit %d)", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.checks.none": "No checks found", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.checks.needs_macos": "Checks can't run here (needs macOS)", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.checks.needs_network": "Checks can't run here (they need the network)", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.checks.checks_timeout": "Checks didn't finish in time", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.checks.checks_unavailable": "Checks can't run on this runner", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.checks.running": "Running checks…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.checks.outside_sandbox": "%s, ran outside the sandbox", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.review.approve": "Approved (%s)", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.review.changes_requested": "Changes requested (%s)", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.review.running": "Reviewing…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.review.other_family": "another model family", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.review.same_family": "same family", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.review.same_account": "same family, same account", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.needs.fix_rounds": "Needs you: still not approved after two fix rounds", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.needs.branch_moved": "Needs you: the branch moved on Amadan after it was checked", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.needs.review_blocked": "Needs you: the review ended without a verdict", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.reason.no_verdict": "the review gave no verdict", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.reason.candidate_unavailable": "the commit was not on Amadan", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.reason.account_unavailable": "no model account was ready", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.review_findings": "Review found", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.needs_empty": "Nothing needs you right now.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.thread": "Questions and notes", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.thread_empty": "No questions or notes yet.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.ask.target": "Asking %s", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.ask.change": "change", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.ask.placeholder": "Ask %s about this work", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.ask.queued": "Waiting for its turn…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.ask.failed": "%s couldn't answer: %s.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.ask.cancelled": "Question cancelled.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.ask.reason.session_gone": "its session for this work is no longer kept", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.ask.reason.task_ended": "the task has ended", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.stage.merging": "Merging…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.merged": "Merged into %s at %s", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.merged_without_checks": "Merged into %s at %s, without checks", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.merge_now": "Merge", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.specialist.merge": "Merge", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.specialist.preview": "Preview", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.tl.preview_built": "Prepared %d files (%s).", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.tl.preview_ready": "Preview ready", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.tl.preview_unconfirmed": "Preview could not be confirmed", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.card.preview": "Preview: %s (expires in %s)", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.card.preview_open": "Preview: %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.card.preview_tailnet": "Preview: %s (on your tailnet)", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "work.direction.pair": "How to pair a preview host", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "machines.previews": "Previews", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "machines.previews_devbox": "Previews: %s (on your tailnet)", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "machines.previews_carloku": "Previews: %s (on Carloku temporary sites)", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "machines.previews_none": "No preview host is paired yet.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "machines.previews_lede": "Equipo is designed to pair with a CARLOS preview host, so you can open mockups and pages in your browser.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "machines.previews_devbox_how": "On a machine with CARLOS devbox, set EQUIPO_PREVIEW_HOST=devbox for its runner. Previews then open on your tailnet.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "machines.previews_carloku_how": "For Carloku, set EQUIPO_PREVIEW_CREDENTIAL_PATH to the path of the runner's credential file. Previews are public and expire after 7 days.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "work.preview.in_days": "%d days", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.preview.in_day": "1 day", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.preview.today": "less than a day", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.preview_cap": "the account already has 20 previews", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.preview_expired": "this task's preview expired and its name is still taken", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.preview_config": "this version cannot use release/preview.json", // 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", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.reason.preview_state": "Equipo could not read the preview's state", // 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",
+ "work.reason.preview_failed": "the preview host command failed; publication may have happened, so do not blindly publish again", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
"work.reason.runner_outdated": "the runner needs an update for previews", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
"work.rebase": "rebase", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
"work.needs.merge_conflict": "Needs you: it still conflicts with the default branch after a rebase", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
diff --git a/internal/runner/thin/preview.go b/internal/runner/thin/preview.go
index 9749b408..6327646b 100644
--- a/internal/runner/thin/preview.go
+++ b/internal/runner/thin/preview.go
@@ -458,7 +458,7 @@ func (e *Engineer) preview(ctx context.Context, r stepRow, progress func(wire.St
// After a restart: nothing is rebuilt or sent; the marker decides.
var mark previewMark
raw, err := os.ReadFile(filepath.Join(stage, previewMarker))
- if err != nil || json.Unmarshal(raw, &mark) != nil {
+ if err != nil || json.Unmarshal(raw, &mark) != nil || mark.Task != r.TaskID || mark.Candidate != r.CandidateSHA || mark.Step != r.StepID || mark.Attempt != r.Attempt {
return e.previewDone(rep, r, previewExport{}, nil, false)
}
// Even when the step was cancelled meanwhile: the marker says what
@@ -585,18 +585,22 @@ func (e *Engineer) preview(ctx context.Context, r stepRow, progress func(wire.St
return rep2
}
-// previewDone ends the step: deployed when the marker answered with this
-// export, else unconfirmed (never retried); a reason means it failed
-// after Carloku may have changed, which the step says as unconfirmed too.
+// previewDone reports failure unless the exact export is usable. An ambiguous
+// mutation remains unconfirmed and must not be replayed as a new publication.
func (e *Engineer) previewDone(rep wire.StepReport, r stepRow, ex previewExport, expires *time.Time, served bool, reason ...string) wire.StepReport {
host := e.activePreviewHost()
app := host.App(r.TaskID)
- rep.State, rep.Termination = wire.StepDone, true
+ rep.State, rep.Reason, rep.Termination = wire.StepFailed, "preview_verify", true
rep.Preview = &wire.PreviewResult{Phase: wire.PreviewDone, App: app, Digest: ex.Digest, Files: ex.Files, Bytes: ex.Bytes, Outcome: wire.PreviewUnconfirmed}
if len(reason) > 0 {
rep.Reason = reason[0]
}
+ if expires != nil && !expires.After(time.Now()) {
+ rep.Reason = "preview_expired"
+ return rep
+ }
if served {
+ rep.State, rep.Reason = wire.StepDone, ""
rep.Preview.Outcome, rep.Preview.URL, rep.Preview.ExpiresAt = wire.PreviewDeployed, host.Origin(app)+"/", expires
}
return rep
@@ -605,17 +609,24 @@ func (e *Engineer) previewDone(rep wire.StepReport, r stepRow, ex previewExport,
// previewServed fetches the marker from the task's preview app.
func (e *Engineer) previewServed(ctx context.Context, r stepRow, want previewMark) bool {
host := e.activePreviewHost()
- return e.markerServed(ctx, host, host.App(r.TaskID), previewMarker, want)
+ return e.markerServed(ctx, host, host.App(r.TaskID), previewMarker, want, func(ctx context.Context, client *http.Client, origin string) bool {
+ return previewFilesServed(ctx, client, origin, filepath.Join(e.root(), stepKey(r), "preview"), want.Digest)
+ })
}
// markerServed fetches marker from app's origin on host, following no
// redirect and sending no credential, until it names exactly this export
// or the window ends.
-func (e *Engineer) markerServed(ctx context.Context, host previewHost, app, marker string, want previewMark) bool {
+func (e *Engineer) markerServed(ctx context.Context, host previewHost, app, marker string, want previewMark, checks ...func(context.Context, *http.Client, string) bool) bool {
client := host.HTTP()
if client == nil {
client = &http.Client{Timeout: 10 * time.Second, CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
}
+ copyClient := *client
+ copyClient.CheckRedirect = func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }
+ client = &copyClient
+ ctx, cancel := context.WithTimeout(ctx, previewVerifyFor)
+ defer cancel()
origin := host.Origin(app)
if origin == "" {
return false
@@ -632,7 +643,13 @@ func (e *Engineer) markerServed(ctx context.Context, host previewHost, app, mark
res.Body.Close()
var got previewMark
if res.StatusCode == http.StatusOK && json.Unmarshal(raw, &got) == nil && got == want {
- return true
+ ok := true
+ for _, check := range checks {
+ ok = ok && check(ctx, client, origin)
+ }
+ if ok {
+ return true
+ }
}
}
if time.Now().After(deadline) {
diff --git a/internal/runner/thin/preview_devbox.go b/internal/runner/thin/preview_devbox.go
index c27f7f90..30268a6e 100644
--- a/internal/runner/thin/preview_devbox.go
+++ b/internal/runner/thin/preview_devbox.go
@@ -256,16 +256,7 @@ func (e *Engineer) publishDevbox(ctx context.Context, r stepRow, rep wire.StepRe
}
d.record(r.TaskID, devboxRecord{Name: name, URL: url})
served := e.previewServed(ctx, r, mark)
- if served {
- // devbox serves its own copy: the export can go (the marker stays
- // for a restart's reconcile).
- entries, _ := os.ReadDir(stage)
- for _, en := range entries {
- if en.Name() != previewMarker {
- os.RemoveAll(filepath.Join(stage, en.Name()))
- }
- }
- }
+ // Keep the bounded export for read-only reconciliation of every asset.
return e.previewDone(rep, r, ex, nil, served)
}
diff --git a/internal/runner/thin/preview_devbox_test.go b/internal/runner/thin/preview_devbox_test.go
index 11630bd5..9478d0e3 100644
--- a/internal/runner/thin/preview_devbox_test.go
+++ b/internal/runner/thin/preview_devbox_test.go
@@ -56,11 +56,11 @@ func devboxRig(t *testing.T) (*Engineer, *fakeDevbox, *[]string, stepRow) {
e, _, confirms, r := previewRig(t, mockups, nil)
fd := &fakeDevbox{t: t}
origin := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
- if fd.served == "" || fd.gone || req.URL.Path != "/"+previewMarker || req.Host != "eq-tk1.devbox.dev.example" {
+ if fd.served == "" || fd.gone || req.Host != "eq-tk1.devbox.dev.example" {
http.NotFound(w, req)
return
}
- http.ServeFile(w, req, filepath.Join(fd.served, previewMarker))
+ http.FileServer(http.Dir(fd.served)).ServeHTTP(w, req)
}))
t.Cleanup(origin.Close)
addr := strings.TrimPrefix(origin.URL, "http://")
@@ -79,7 +79,7 @@ func devboxRig(t *testing.T) (*Engineer, *fakeDevbox, *[]string, stepRow) {
// TestDevboxPreviewShares: paired with CARLOS devbox, a preview is one
// publish check and one share of the export as eq-<task>, from the fixed
// template with no credential; the link devbox prints is confirmed by the
-// marker, the domain is learnt for the hello, and the export goes (devbox
+// marker, the domain is learnt for the hello, and the export stays (devbox
// serves its own copy) but for the marker.
func TestDevboxPreviewShares(t *testing.T) {
e, fd, confirms, r := devboxRig(t)
@@ -106,8 +106,8 @@ func TestDevboxPreviewShares(t *testing.T) {
if host := PreviewHostOf(e.Devbox, nil)(); host == nil || host.Kind != wire.PreviewHostDevbox || host.Domain != "devbox.dev.example" {
t.Fatalf("hello host %+v", host)
}
- if entries, _ := os.ReadDir(stage); len(entries) != 1 || entries[0].Name() != previewMarker {
- t.Fatalf("export kept: %v", entries)
+ if entries, _ := os.ReadDir(stage); len(entries) != 4 {
+ t.Fatalf("export missing: %v", entries)
}
rec, ok := e.Devbox.recorded("tk1")
if !ok || rec.URL != "https://eq-tk1.devbox.dev.example" {
diff --git a/internal/runner/thin/preview_test.go b/internal/runner/thin/preview_test.go
index dd975a15..1cd3b5ae 100644
--- a/internal/runner/thin/preview_test.go
+++ b/internal/runner/thin/preview_test.go
@@ -110,11 +110,11 @@ func previewRig(t *testing.T, files map[string]string, links map[string]string)
f := &hubForge{dir: remote}
fc := &fakeCarlos{t: t, list: listHeader, fail: map[string]string{}}
origin := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
- if fc.served == "" || r.URL.Path != "/"+previewMarker {
+ if fc.served == "" {
http.NotFound(w, r)
return
}
- http.ServeFile(w, r, filepath.Join(fc.served, previewMarker))
+ http.FileServer(http.Dir(fc.served)).ServeHTTP(w, r)
}))
t.Cleanup(origin.Close)
var confirms []string
@@ -350,7 +350,7 @@ func TestPreviewUnconfirmed(t *testing.T) {
defer redirect.Close()
e.Preview.URL = func(string) string { return redirect.URL }
rep := e.Exec(context.Background(), r, func(wire.StepReport) {})
- if rep.State != wire.StepDone || rep.Preview == nil || rep.Preview.Outcome != wire.PreviewUnconfirmed || rep.Preview.URL != "" || strings.Count(fc.verbs(), "promote") != 1 {
+ if rep.State != wire.StepFailed || rep.Preview == nil || rep.Preview.Outcome != wire.PreviewUnconfirmed || rep.Preview.URL != "" || strings.Count(fc.verbs(), "promote") != 1 {
t.Fatalf("through a redirect %+v %s", rep.Preview, fc.verbs())
}
@@ -367,7 +367,7 @@ func TestPreviewUnconfirmed(t *testing.T) {
e, fc, _, r = previewRig(t, mockups, nil)
fc.fail["promote"] = "refused"
rep = e.Exec(context.Background(), r, func(wire.StepReport) {})
- if rep.State != wire.StepDone || rep.Preview.Outcome != wire.PreviewUnconfirmed || rep.Reason != "preview_failed" {
+ if rep.State != wire.StepFailed || rep.Preview.Outcome != wire.PreviewUnconfirmed || rep.Reason != "preview_failed" {
t.Fatalf("a failed promote %+v %+v", rep, rep.Preview)
}
}
@@ -397,6 +397,11 @@ func TestPreviewAfterRestart(t *testing.T) {
if rep.Preview == nil || rep.Preview.Outcome != wire.PreviewDeployed || len(fc.calls) != before {
t.Fatalf("reconciled %+v, %d commands after", rep.Preview, len(fc.calls)-before)
}
+ // Duplicate reconciliation is read-only, never another ship or promote.
+ rep = e.Exec(ctx, held, func(wire.StepReport) {})
+ if rep.Preview == nil || rep.Preview.Outcome != wire.PreviewDeployed || len(fc.calls) != before {
+ t.Fatal("duplicate reconciliation changed the host")
+ }
}
// TestHasPreviewAndOptions: Review's evidence reads the candidate's git
diff --git a/internal/runner/thin/preview_verify.go b/internal/runner/thin/preview_verify.go
new file mode 100644
index 00000000..4c4b86fa
--- /dev/null
+++ b/internal/runner/thin/preview_verify.go
@@ -0,0 +1,74 @@
+package thin
+
+import (
+ "context"
+ "crypto/sha256"
+ "encoding/hex"
+ "fmt"
+ "io"
+ "net/http"
+ "net/url"
+ "os"
+ "path/filepath"
+ "sort"
+)
+
+// Check every exported file, not just a marker that a broken deployment may
+// still serve. Recompute the approved digest from the served bytes. The root
+// must serve index.html, rather than a directory listing or a placeholder.
+func previewFilesServed(ctx context.Context, client *http.Client, origin, stage, digest string) bool {
+ var names []string
+ err := filepath.WalkDir(stage, func(p string, d os.DirEntry, err error) error {
+ if err != nil {
+ return err
+ }
+ if d.IsDir() {
+ return nil
+ }
+ name, err := filepath.Rel(stage, p)
+ if err != nil {
+ return err
+ }
+ if name == previewMarker {
+ return nil
+ }
+ if !d.Type().IsRegular() || !cleanPreviewPath(name) {
+ return errPreviewConfig
+ }
+ names = append(names, name)
+ if len(names) > previewMaxFiles {
+ return errPreviewTooLarge
+ }
+ return nil
+ })
+ if err != nil || len(names) == 0 {
+ return false
+ }
+ sort.Strings(names)
+ sum := sha256.New()
+ var total int64
+ home := false
+ for _, name := range names {
+ target := (&url.URL{Path: "/" + name}).EscapedPath()
+ if name == "index.html" {
+ target, home = "/", true
+ }
+ req, err := http.NewRequestWithContext(ctx, http.MethodGet, origin+target, nil)
+ if err != nil {
+ return false
+ }
+ res, err := client.Do(req)
+ if err != nil {
+ return false
+ }
+ raw, err := io.ReadAll(io.LimitReader(res.Body, previewMaxFile+1))
+ res.Body.Close()
+ total += int64(len(raw))
+ if err != nil || res.StatusCode != http.StatusOK || len(raw) > previewMaxFile || total > previewMaxBytes {
+ return false
+ }
+ hash := sha256.Sum256(raw)
+ fmt.Fprintf(sum, "%s %s\n", name, hex.EncodeToString(hash[:]))
+ }
+ return home && hex.EncodeToString(sum.Sum(nil)) == digest
+}
diff --git a/internal/runner/thin/preview_verify_test.go b/internal/runner/thin/preview_verify_test.go
new file mode 100644
index 00000000..2e7f330a
--- /dev/null
+++ b/internal/runner/thin/preview_verify_test.go
@@ -0,0 +1,102 @@
+package thin
+
+import (
+ "context"
+ "crypto/sha256"
+ "encoding/hex"
+ "fmt"
+ "net/http"
+ "net/http/httptest"
+ "os"
+ "path/filepath"
+ "testing"
+ "time"
+
+ "amadan.net/oficina/equipo/internal/wire"
+)
+
+func TestPreviewUsableFiles(t *testing.T) {
+ stage := t.TempDir()
+ files := map[string]string{"index.html": "<link rel=stylesheet href=style.css>hello", "style.css": "body {color: red}"}
+ sum := sha256.New()
+ for _, name := range []string{"index.html", "style.css"} {
+ os.WriteFile(filepath.Join(stage, name), []byte(files[name]), 0600)
+ h := sha256.Sum256([]byte(files[name]))
+ fmt.Fprintf(sum, "%s %x\n", name, h)
+ }
+ digest := hex.EncodeToString(sum.Sum(nil))
+ broken := ""
+ client := previewTestClient(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ if r.URL.Path == broken {
+ http.Error(w, "unavailable", 503)
+ return
+ }
+ http.FileServer(http.Dir(stage)).ServeHTTP(w, r)
+ }))
+
+ for _, target := range []string{"/", "/style.css", ""} {
+ broken = target
+ if got := previewFilesServed(context.Background(), client, "https://preview.example", stage, digest); got != (target == "") {
+ t.Fatalf("broken %q: %v", target, got)
+ }
+ }
+ if previewFilesServed(context.Background(), client, "https://preview.example", stage, "stale") {
+ t.Fatal("stale digest accepted")
+ }
+ ctx, cancel := context.WithCancel(context.Background())
+ cancel()
+ if previewFilesServed(ctx, client, "https://preview.example", stage, digest) {
+ t.Fatal("cancelled verification accepted")
+ }
+}
+
+func TestPreviewVerificationTransientAndBounded(t *testing.T) {
+ oldFor, oldEvery := previewVerifyFor, previewVerifyEvery
+ previewVerifyFor, previewVerifyEvery = time.Second, time.Millisecond
+ defer func() { previewVerifyFor, previewVerifyEvery = oldFor, oldEvery }()
+ want := previewMark{Task: "task", Digest: "exact"}
+ requests := 0
+ client := previewTestClient(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ requests++
+ if requests == 1 {
+ http.Error(w, "temporary", 503)
+ return
+ }
+ fmt.Fprint(w, `{"task":"task","digest":"exact"}`)
+ }))
+
+ host := &PreviewOptions{Client: client, URL: func(string) string { return "https://preview.example" }}
+ e := &Engineer{}
+ if !e.markerServed(context.Background(), host, "task", previewMarker, want) || requests != 2 {
+ t.Fatalf("transient failure not recovered: %d", requests)
+ }
+ ctx, cancel := context.WithCancel(context.Background())
+ cancel()
+ if e.markerServed(ctx, host, "task", previewMarker, want) {
+ t.Fatal("cancelled request accepted")
+ }
+}
+
+// Exercise HTTP responses offline without opening a listening socket.
+type previewTestTransport struct{ handler http.Handler }
+
+func (t previewTestTransport) RoundTrip(r *http.Request) (*http.Response, error) {
+ if err := r.Context().Err(); err != nil {
+ return nil, err
+ }
+ w := httptest.NewRecorder()
+ t.handler.ServeHTTP(w, r)
+ return w.Result(), nil
+}
+func previewTestClient(handler http.Handler) *http.Client {
+ return &http.Client{Transport: previewTestTransport{handler}}
+}
+
+func TestPreviewExpiredIsNotReady(t *testing.T) {
+ e := &Engineer{Preview: &PreviewOptions{Domain: "preview.example"}}
+ expires := time.Now().Add(-time.Minute)
+ rep := e.previewDone(wire.StepReport{}, stepRow{}, previewExport{}, &expires, true)
+ if rep.State != wire.StepFailed || rep.Preview.URL != "" || rep.Preview.Outcome != wire.PreviewUnconfirmed {
+ t.Fatalf("expired publication ready: %+v", rep)
+ }
+}
diff --git a/internal/wire/tasks.go b/internal/wire/tasks.go
index f1e43581..e6695c78 100644
--- a/internal/wire/tasks.go
+++ b/internal/wire/tasks.go
@@ -1024,6 +1024,7 @@ var StepReasons = map[string]bool{
"preview_too_large": true,
"preview_state": true,
"preview_failed": true,
+ "preview_verify": true,
// Publishing a site (protocol 16): the runner has no site host; the
// merged commit is not on the default branch; the config or output is
// refused or over its caps; the deploy failed.