oficina / equipo Public

Brief: runner exits with runner.contract on start

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 057899149ec7c02c52f0c6809f64e5a028103637 parent 9f616f3
1 file changed, +38 −0
  • docs/superpowers/plans/CODEX-BRIEF-runner-start.md +38 −0

CI failed — run details

diff --git a/docs/superpowers/plans/CODEX-BRIEF-runner-start.md b/docs/superpowers/plans/CODEX-BRIEF-runner-start.md
new file mode 100644
index 00000000..53267fdb
--- /dev/null
+++ b/docs/superpowers/plans/CODEX-BRIEF-runner-start.md
@@ -0,0 +1,38 @@
+# Brief: enrolled runner exits with runner.contract on start
+
+Branch `runner-start` from main 9f616f3 (deployed; execution enabled).
+docs-t1 runner was installed manually per CONTROLLER-REPORT-enable-
+execution.md ("Install and enrol docs-t1 as paulca"): release at
+~/.local/share/equipo-runner/releases/9f616f3/, runner.env updated
+(backup runner.env.before-enable-execution), `equipo-runner enrol`
+SUCCEEDED (state/credentials.json now exists). User unit
+~/.local/share/equipo-runner/equipo-runner.service (linked into
+~/.config/systemd/user, EnvironmentFile=runner.env, ExecStart=
+.../9f616f3/equipo-runner run). On start: journal shows
+"Runner error runner.contract at -." then exit 1. The controller has
+STOPPED the unit (systemctl --user stop equipo-runner.service).
+
+Do:
+1. Find the exact failing check (ErrContract has many sources:
+ internal/runner/config.go config issues, http.go, coordinator_service
+ .go, runnerproto/retry.go, account_login.go...). Reproduce by running
+ `equipo-runner run` in the foreground with the same EnvironmentFile
+ (env -i + runner.env), briefly, and stop it; no jobs exist, so no
+ provider work will start; if it reaches the job loop, stop it within
+ a minute. You may read runner.env and bindings.json (not credential
+ files, not account homes).
+2. Fix the cause: if it's local configuration (a missing/obsolete
+ variable, path, bindings path), give the exact minimal edit to
+ runner.env and apply it ONLY after recording the before/after in the
+ report (keep the backup). If it's a code defect, fix it on this branch
+ with a test.
+3. Make the error diagnostic: `runner.contract at -` must name the field
+ or check (like config issues do) without secrets.
+4. Report the exact commands for the controller to restart the unit and
+ to confirm in the app that the runner is online and the two Claude
+ accounts are reported. Do not start the systemd unit yourself.
+Targeted tests; if code changed, ONE full `make -k ci` (rerun at most
+twice), commit subject < 80, body `Co-Authored-By: Astra
+<noreply@openai.com>`, push. CONTROLLER-REPORT-runner-start.md. No
+copy-review server; scratch removed; nothing left running. Print a
+five-line summary.