| 1 | # Brief: drop refresh from v1, and one guided live-gate script |
| 2 | |
| 3 | Worktree `/home/paulca/amadan.net/oficina/equipo-try-equipo`, branch |
| 4 | `try-equipo`, from main (plans 2b and 3 merged; copy accepted for now). Read |
| 5 | AGENTS.md, `docs/live-gate.md`, `scripts/live-gate.sh`, |
| 6 | `scripts/runner-release-check.py`, the certification code under |
| 7 | `internal/directlive` and `internal/runner/certified`, and equipo discussion |
| 8 | 5 (`amadan discuss show oficina/equipo 5`). |
| 9 | |
| 10 | ## Paul's rulings (2026-11-04; fixed) |
| 11 | |
| 12 | 1. **No token refresh in v1.** Certification and release must not require a |
| 13 | certified refresh. The manifest records "no refresh" explicitly (for |
| 14 | example `certified_refresh: null` with a reason), the release check and |
| 15 | verifier accept that, and egress allows no auth refresh host. When a |
| 16 | dedicated home's token expires, the connection goes to account |
| 17 | maintenance with a visible "sign in again" state; a step never |
| 18 | silently fails or retries on another account. Remove the refresh |
| 19 | exercise from the live driver; keep everything else. |
| 20 | 2. **One guided script**, `scripts/try-equipo.sh`, that Paul runs as |
| 21 | himself on docs-t1 (no sudo, no root) to complete the whole live gate: |
| 22 | - check prerequisites (pinned Claude 2.1.312, Codex 0.165.0, |
| 23 | `codex-code-mode-host`, bubblewrap 0.11.0, unprivileged user |
| 24 | namespaces, Go) and print exactly what is missing; |
| 25 | - create dedicated homes under `~/.local/share/equipo/accounts/` (two |
| 26 | Claude homes for the account-change case, one Codex home), mode 0700, |
| 27 | refusing any existing interactive or ZeroSub home; |
| 28 | - run each provider's official sign-in scoped to its home, then show the |
| 29 | observed account and ask Paul to confirm it (trust on first use); |
| 30 | - write `equipo-identity.json`, `bindings.json` and `runner.env` itself |
| 31 | (mode 0600) with absolute paths it detects, asking only for what it |
| 32 | cannot detect (the instance is `https://equipo.bds.oncarlos.com`); |
| 33 | - create the disposable repo and sentinels itself; |
| 34 | - ask for the calibration limits with sensible defaults shown; |
| 35 | - run the certification (the existing live driver), including the |
| 36 | account-change case across the two Claude homes and recording the |
| 37 | Codex 0.165.0 tool inventory, then sentinel-denial for each surface; |
| 38 | - on success, write the manifest candidate and print the one command the |
| 39 | controller runs to release; on failure, print what failed and leave |
| 40 | nothing half-configured that a re-run cannot resume. |
| 41 | It must be safe to re-run and resumable. It never prints or stores |
| 42 | credential contents, sign-in links or tokens. |
| 43 | 3. Update `docs/live-gate.md` to describe running `scripts/try-equipo.sh` |
| 44 | (short and plain, no em dashes), and remove the "do not run until the |
| 45 | controller closes these gaps" warning once items 2 and 3 are wired. |
| 46 | |
| 47 | ## Tests |
| 48 | |
| 49 | The script's logic should live in Go (a `equipo-runner try` subcommand or a |
| 50 | small `cmd/`), with the shell script a thin wrapper, so it is testable: |
| 51 | fake CLIs for sign-in and status, a refused interactive home, resume after |
| 52 | an interrupted run, identity mismatch refusal, the no-refresh manifest |
| 53 | accepted by the release check, and an expired-token connection showing |
| 54 | "sign in again". Keep existing certification tests green. |
| 55 | |
| 56 | ## Rules |
| 57 | |
| 58 | Targeted tests, then `make ci` once in the background to completion |
| 59 | (network allowed; never GOPROXY=off; poll the log until exit; it must |
| 60 | pass). Commit with `--author "codex <codex~paul@keymail.dev>"`, subjects |
| 61 | under 80 characters, push `try-equipo`. Do not run real sign-ins, provider |
| 62 | sessions or enrolment. No Anthropic-model reviewers or other agents, no |
| 63 | `.claude/HANDOFF.md`, no copy-review server (list new strings). Scratch |
| 64 | under `$TMPDIR`, removed; Go caches at defaults; tests must not require |
| 65 | TMPDIR to be set. Print a five-line summary. |
| 66 | |