oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1# Brief: Equipo heals itself — no coordinator choice, kept-fresh logins, no setup blocks
2
3Branch `self-heal` from main 80c15d0 (DEPLOYED, EQUIPO_ALWAYS_ON=1 now).
4Paul (2026-11-06 20:10Z): "this still feels like stuff the coordinator
5should just be able to self-heal on" and "why should I even have to
6choose a coordinator?" Production state right now:
7- After Paul tapped Set up (project `equipo` created), the next turn was
8 `admission_denied` ("Your coordinator cannot start work yet. Check the
9 team settings."): budget_records has a team budget but `"Projects":
10 null` (no project budget), coordinator_limits exists.
11- Both connections now report Available=0, UnavailableReason
12 `account.sign_in_again`: the Claude logins in the dedicated homes
13 expired. V1 deliberately has no refresh (see docs/live-gate.md), so
14 every few hours Paul would have to sign in again on docs-t1. Not
15 acceptable.
16
17Deliver:
181. Logins stay fresh without Paul: the runner keeps each dedicated home's
19 provider login valid using the OFFICIAL CLI's own refresh (for Claude
20 2.1.312 and Codex 0.165.0 find the CLI-native path that refreshes
21 from its refresh token without a model turn; run it in the dedicated
22 home itself, never copying or parsing tokens in Equipo code; serialise
23 with the existing home locks; never during a turn). Staged copies must
24 not consume refresh tokens that invalidate the source: fix the lease
25 so refresh only ever happens in the source home and staged copies are
26 short-lived. Only a revoked/invalid refresh token makes a connection
27 "sign in again", and then Equipo tells Paul once, with the exact
28 command. Owner mode needs no recertification for this. Test with fake
29 CLIs plus a live proof on claude-a: authorization below.
302. No coordinator choice: remove the "Coordinator connection" picker and
31 Save/Reset from "Your coordinator" (keep a read-only line saying which
32 connection is in use and why). Equipo picks automatically and fails
33 over to any available connection of the person's own runner
34 (prefer recently healthy, then least busy) on every turn.
353. Nothing blocks on setup: default budgets cover projects too (projects
36 inherit the team budget when unset); any admission denial Equipo can
37 resolve itself (missing default, stale binding, busy connection) it
38 resolves, and the turn proceeds or waits with a live status in the
39 thinking bubble ("Waiting for claude-a…"), retrying automatically when
40 the blocker clears. A system note appears only when a human must act
41 (revoked login, no runner), with one exact action.
424. Coordinator self-diagnosis: give the coordinator a read-only tool
43 `equipo_status` (its own runner/connections/budgets/project state, no
44 secrets) so it can explain or route around problems in its reply.
455. Tests + `make e2e-live` covering: project created by card then work
46 admitted; expired login refreshed without human; no picker.
47AUTHORISATION: live proof on the paul@tito.io claude-a home ONLY for the
48refresh path and a coordinator reply via e2e-live (<= 20 turns). You may
49stop/start the production runner unit (equipo-runner.service) briefly to
50run the refresh proof, leaving it running at the end. Never print or copy
51credential contents. New strings `// COPY REVIEW PENDING`. ONE full
52`make -k ci` (rerun at most twice). Commit subject < 80, body
53`Co-Authored-By: Astra <noreply@openai.com>`; commit only, the controller
54pushes. CONTROLLER-REPORT-self-heal.md. Scratch removed; no copy-review
55server. Print a five-line summary.
56