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