| 1 | # Equipo: a coordinator and AI specialists for running your own apps |
| 2 | |
| 3 | Status: design, revision 3, 2026-11-03. Revision 3 (section 13) records |
| 4 | Paul's decisions of 2026-11-02 and 2026-11-03 and supersedes the parts of |
| 5 | sections 4, 6, 7 and 9 it names. Drafted by Claude (Opus 5.5) from a |
| 6 | brainstorm with Paul the same day. Every decision marked **Paul** was his in |
| 7 | that conversation; everything marked **call** is the drafter's and is open to |
| 8 | correction. Mockups from the brainstorm are in [`docs/mockups/`](../../mockups/). |
| 9 | |
| 10 | Supersedes, as a product, the platform-embedded team service in |
| 11 | `carlos/platform` (`docs/superpowers/specs/2026-11-01-team-service-design.md`, |
| 12 | feature discussion 508). That design's execution contracts (leases, fences, |
| 13 | budgets, evidence, recovery) still hold and its merged prototype |
| 14 | (`internal/team`, platform `ceee7a67`) is reused here. What changes is where |
| 15 | the product lives, who it is for and what it looks like. |
| 16 | |
| 17 | ## 1. Why |
| 18 | |
| 19 | Paul runs several apps on CARLOS (oficina, comercio, rastrillo and others) and |
| 20 | already does most of his engineering through AI agents driven by hand: one |
| 21 | session per task, Paseo to manage them, Amadan branches to land the work, |
| 22 | copy review and second-model review as habits. Equipo turns that habit into a |
| 23 | product: one conversation that takes a request ("fix this", "add that", "what |
| 24 | should I work on next?"), plans it, hands it to specialists, and comes back |
| 25 | with reviewed, verified work for a person to merge. |
| 26 | |
| 27 | The first milestone is **Paul trying it on his own apps** (Paul). |
| 28 | |
| 29 | ## 2. What it is |
| 30 | |
| 31 | - **A separate product, not part of the CARLOS console** (Paul). The UI has its |
| 32 | own navigation, projects and model accounts; it uses CARLOS as a supplier. |
| 33 | - **An Oficina app** (Paul), repository `amadan.net/oficina/equipo`. It follows |
| 34 | the suite's sharing doctrine (`oficina/suite`, |
| 35 | `docs/superpowers/specs/2026-09-05-suite-sharing-doctrine.md`): the team is |
| 36 | the boundary, one instance per team. |
| 37 | - **Named Equipo** (Paul): Spanish for team, and for kit. |
| 38 | - **For Paul and his teammates first** (Paul). Offering it to other CARLOS |
| 39 | customers is not a goal of this design. |
| 40 | - **Multiplayer from day one** (Paul). Everyone on the team shares projects |
| 41 | and work; each person has their own coordinator. |
| 42 | |
| 43 | ### Goals |
| 44 | |
| 45 | 1. A person asks for a bug fix, a feature or a recommendation in plain words |
| 46 | and gets back either an answer or a reviewed, verified Amadan branch. |
| 47 | 2. Everyone on the team can see, at a glance, what each specialist is doing, |
| 48 | how far along each task is, and what is waiting on them. |
| 49 | 3. A product view per project ranks what to do next, with reasons drawn from |
| 50 | the app's own errors and analytics in CARLOS. |
| 51 | 4. People choose which model accounts each project may use; the coordinator |
| 52 | picks the best fit per step within that and says why. |
| 53 | |
| 54 | ### Non-goals |
| 55 | |
| 56 | - Automatic merge or deploy. A person merges (Paul, carried from the team |
| 57 | service design). |
| 58 | - Production infrastructure changes, customer messages, money movement. |
| 59 | - A general agent runtime. Paseo runs the agents (Paul). |
| 60 | - Native Mac and iOS apps in the first milestone (**call**: Paul pictured both; |
| 61 | they follow once the web app has been tried. The web UI is responsive and |
| 62 | its phone layout is the model for the iOS app). |
| 63 | - Other CARLOS customers, billing, plans. |
| 64 | |
| 65 | ### Anti-goals (would make it a failure even if it works) |
| 66 | |
| 67 | - Specialists with personalities, names or staged dialogue. They are |
| 68 | categories with icons (Paul rejected both mineral names and initials). |
| 69 | - "Done" meaning "a model said so". Success needs evidence (section 6). |
| 70 | - Working around CARLOS or Amadan. A missing capability is a request to that |
| 71 | product, never a direct database, shell or AWS path. |
| 72 | - A coordinator quietly committing a person to something big (section 5.3). |
| 73 | |
| 74 | ## 3. Who and what |
| 75 | |
| 76 | ### 3.1 People and coordinators |
| 77 | |
| 78 | Each person on the team has **their own coordinator** (Paul calls it the |
| 79 | person's "delegate mirror"): the main chat they talk to. It learns that |
| 80 | person's preferences ("no em dashes", "reproduce before fixing") and plans |
| 81 | their requests that way. |
| 82 | |
| 83 | Preferences are inspectable and correctable on a preferences page, each with |
| 84 | its source (the message it came from) and a status: **confirmed** (the person |
| 85 | said so or accepted it) or **inferred** (the coordinator noticed a pattern). |
| 86 | Inferred preferences never decide anything on their own (section 5.3), and no |
| 87 | preference ever grants authority. |
| 88 | |
| 89 | Team-wide rules (house style, which models a project may use, budgets) are |
| 90 | separate from personal preferences and are set by a team owner. |
| 91 | |
| 92 | ### 3.2 Specialists |
| 93 | |
| 94 | Equipo ships with five default specialists (Paul): **Product, Design, Copy, |
| 95 | Engineering, Review**. Each is a category, shown as an icon plus its name, |
| 96 | never initials. |
| 97 | |
| 98 | Per team, each specialist has: its model selection (section 7), how many tasks |
| 99 | it runs at once, and standing instructions. Custom specialists (Ops, Data) |
| 100 | are later work (**call**). |
| 101 | |
| 102 | **Review is constrained**: it must use a different model family from whoever |
| 103 | built the change (carried from the team service design). |
| 104 | |
| 105 | ### 3.3 Projects |
| 106 | |
| 107 | A project is one thing to work on, with a **kind**: an **app**, a **website**, |
| 108 | or a bare **repository** (the platform itself is a repo, not a CARLOS app). |
| 109 | There is **one Projects list**, each card showing its kind, rather than |
| 110 | separate sections for apps and websites (Paul). Projects are grouped by **CARLOS account** |
| 111 | (Paul): a team connects one or more CARLOS accounts, and each account's |
| 112 | projects sit under it with a roll-up (projects, what needs people, budget |
| 113 | used). |
| 114 | |
| 115 | A project binds: a repository on Amadan, optionally a CARLOS app, which |
| 116 | accounts may build it, and which people own decisions in it (who merges, who |
| 117 | owns copy, and so on). |
| 118 | |
| 119 | ### 3.4 Tasks and plans |
| 120 | |
| 121 | Every request becomes a task with a **plan**: an ordered list of steps, each |
| 122 | held by one specialist, ending with a person. |
| 123 | |
| 124 | - **The coordinator proposes the plan; people can edit it** (Paul's question, |
| 125 | drafter's answer accepted): add, remove or reorder steps. |
| 126 | - **Three steps cannot be removed**: independent review, checks, and a person |
| 127 | at the end. A plan without them cannot reach success (section 6). |
| 128 | - An investigation plans only as far as it can see ("Find the cause, then you |
| 129 | decide"); later steps are planned when the cause is known. |
| 130 | - **Whether a plan waits for approval is configurable** (Paul): per project, |
| 131 | with a per-person override. Default: start straight away and let people |
| 132 | redirect (**call**). |
| 133 | |
| 134 | Typical plans (illustrative, not fixed): |
| 135 | |
| 136 | | Request | Steps | |
| 137 | |---|---| |
| 138 | | Bug | Engineering: reproduce, write the fix. Review: review, checks. Person: merge | |
| 139 | | Feature | Product: scope. Copy and Design where needed. Engineering: build. Review: review, checks. Person: merge | |
| 140 | | What's next? | Product: rank, with reasons. Person: decide. No branch | |
| 141 | |
| 142 | ## 4. What people see |
| 143 | |
| 144 | Mockups: [`docs/mockups/`](../../mockups/). They are brainstorm sketches; the |
| 145 | copy in them is not approved and the layout is the point. |
| 146 | |
| 147 | ### 4.1 Navigation |
| 148 | |
| 149 | **Hierarchical, the way the CARLOS console and Fiesta do it** (Paul): |
| 150 | |
| 151 | - **Desktop:** a rail. The team at the top (switchable), then Conversation, |
| 152 | Needs you, Journey, Projects, the specialists, Connections, Preferences. |
| 153 | The rail shows counts ("Engineering · 1 · 1 queued", "Copy · 1 waiting"). |
| 154 | See `nav.html`. |
| 155 | - **Phone:** drill-down index screens with a back link to the parent |
| 156 | (Work → Engineering → one task), as the console's mobile navigation does. |
| 157 | - No split screen (Paul: "I don't think I want to split-screen"). |
| 158 | - It should feel like **mostly talking to one thing** (Paul). |
| 159 | - **What the phone opens on is a personal setting** (Paul): the conversation |
| 160 | or the Work index. Default: the conversation (**call**, from "mostly |
| 161 | talking to one thing"). |
| 162 | |
| 163 | ### 4.2 Conversation |
| 164 | |
| 165 | One running conversation with the person's own coordinator. Tasks appear in it |
| 166 | as live cards. When a task is handed to a specialist, a short line says so |
| 167 | ("Fix VAT rate on invoice PDF is with engineering"). Questions that need the |
| 168 | person show as cards with an answer action. |
| 169 | |
| 170 | ### 4.3 Specialist pages |
| 171 | |
| 172 | Per specialist: a stat band (working now, queued, finished this week, tokens |
| 173 | this week), then cards for Working now, Queued, Finished this week and |
| 174 | Settings. Each task row shows its **progress as its real steps** inside that |
| 175 | specialist (Paul asked for progress; **call**: steps, never a percentage, |
| 176 | because an agent cannot estimate a percentage honestly). See `nav.html` and |
| 177 | `workload.html`. |
| 178 | |
| 179 | ### 4.4 Journey |
| 180 | |
| 181 | Every task with **its planned steps listed beside it, not in a table** (Paul). |
| 182 | Each step is a two-line chip: **the specialist's category above what it is |
| 183 | doing** (Paul), plus a third line with the model and account once one is |
| 184 | picked. Done, in progress, waiting on a person and still to come are |
| 185 | distinguishable by more than colour. Tasks are grouped: needs you, in |
| 186 | progress, queued, done this week. See `journey.html`. |
| 187 | |
| 188 | ### 4.5 Projects |
| 189 | |
| 190 | Overview grouped by CARLOS account (Paul); each project card shows what needs |
| 191 | people, what is in progress, what is next, and one signal line ("Errors 7d: 41 |
| 192 | ↑ 29 · checkout timeouts"). |
| 193 | |
| 194 | A project's **product view** (Paul: "from a product manager perspective"): |
| 195 | |
| 196 | - a stat band from CARLOS (errors, a key latency, shipped this week, agent time |
| 197 | and tokens this week); |
| 198 | - **Now** (in flight), **Next** (Product's ranked list, each item with its |
| 199 | reason and a Start action), **Later** (parked), **Shipped recently**; |
| 200 | - **Product's note**: a short plain-words summary of what to do and why, with |
| 201 | when it was written and from what. |
| 202 | |
| 203 | See `projects.html`. |
| 204 | |
| 205 | ### 4.6 Connections and model choice |
| 206 | |
| 207 | See section 7 and `models.html`. |
| 208 | |
| 209 | ## 5. Multiplayer |
| 210 | |
| 211 | ### 5.1 The team |
| 212 | |
| 213 | An Equipo instance belongs to one team. Its members are the team's roster. |
| 214 | Following the doctrine's **lone instance** shape (ruling 5), the first instance |
| 215 | is its own identity authority: keymail sign-in and an owners/members list, |
| 216 | as memoria runs today (**call**; moving to the suite home's roster is the |
| 217 | doctrine's suite shape and comes when the home serves it). |
| 218 | |
| 219 | ### 5.2 Routing work to people |
| 220 | |
| 221 | Each project names who owns which decisions. When a task needs a person, the |
| 222 | coordinator of the person who asked routes the question to the owner: it |
| 223 | lands in the owner's Needs you and in their conversation, with the task |
| 224 | attached. |
| 225 | |
| 226 | ### 5.3 Coordinators talking to each other |
| 227 | |
| 228 | **Coordinators may settle things between themselves, and people step in when |
| 229 | they deadlock** (Paul). The guardrails are the drafter's proposal, accepted |
| 230 | in the conversation without objection; listed here so they can be corrected: |
| 231 | |
| 232 | - A coordinator may settle a question for its person only from that person's |
| 233 | **confirmed** preferences or the team's rules. Wording, priority order and |
| 234 | plan details are the expected cases. |
| 235 | - An **inferred** preference never settles anything; the coordinator asks its |
| 236 | person. |
| 237 | - Every settlement shows in both people's conversations and either person can |
| 238 | overturn it. |
| 239 | - **Deadlock** (no agreement after two exchanges, or confirmed preferences |
| 240 | that conflict) goes to both people with each side's position summarised. |
| 241 | - Always a person: merging; spending beyond a project's budget; anything inside |
| 242 | a project the other person owns. |
| 243 | |
| 244 | Attribution follows doctrine ruling 9 ("a write names its real actor; no |
| 245 | sibling ever acts as a person"): a settlement is recorded as made **by the |
| 246 | coordinator, citing the preference it relied on**, never as the person. |
| 247 | |
| 248 | ## 6. Doing the work |
| 249 | |
| 250 | ### 6.1 Engine: Paseo |
| 251 | |
| 252 | *Superseded by section 13.1 (revision 3): Equipo no longer uses Paseo.* |
| 253 | |
| 254 | **Paseo runs the agents** (Paul). Each step of a plan becomes a Paseo agent run |
| 255 | on one of the team's machines (docs-t1 or tito-studio to start), in an |
| 256 | isolated worktree of the project's repository, with the provider, model and |
| 257 | settings the step was assigned. Paseo already supports Claude Code and Codex, |
| 258 | worktrees, cross-host agents and completion notifications. |
| 259 | |
| 260 | **Call**: the Equipo instance runs on CARLOS; it does not reach Paseo |
| 261 | directly. A small **runner** on each enrolled machine dials out to the |
| 262 | instance, claims steps (the prototype's fenced claim), drives the local Paseo |
| 263 | daemon, and reports events, usage and artefacts back. Paseo's control socket |
| 264 | is never exposed. The runner protocol is the team service design's (claim, |
| 265 | renew, stop, status, fence on every request). |
| 266 | |
| 267 | Specialists that only read (Product ranking, Review) still run through Paseo |
| 268 | so every model call is accounted the same way. |
| 269 | |
| 270 | ### 6.2 Results land on Amadan |
| 271 | |
| 272 | Engineering publishes to a review branch on the project's Amadan repository |
| 273 | through a disclosed agent account (`<name>~<operator keymail>`, badged), never |
| 274 | a person's credential. Equipo never merges and never pushes the default |
| 275 | branch. The person merges through Amadan's gate. |
| 276 | |
| 277 | ### 6.3 Evidence |
| 278 | |
| 279 | Carried unchanged from the team service design (its "Records and invariants" |
| 280 | section): success requires a reproduction that fails on the base and passes |
| 281 | on the candidate, the repository's own checks on the exact candidate, and an |
| 282 | independent review on that candidate. A changed candidate invalidates checks |
| 283 | and review. A model's narrative or a successful exit code never counts. |
| 284 | |
| 285 | **Evidence by kind of task** (**call**; the prototype has only `software_fix` |
| 286 | and a business reconciliation predicate, and these extend it): |
| 287 | |
| 288 | | Kind | Success requires | |
| 289 | |---|---| |
| 290 | | Bug | As above: frozen reproduction fails on base, passes on candidate; checks; independent review | |
| 291 | | Feature | An acceptance test written in the scope step and frozen by hash before building, failing on base and passing on candidate; checks; independent review | |
| 292 | | Copy or design only | Checks; independent review; the owning person's approval of the rendered change. No reproduction | |
| 293 | | Recommendation ("what's next?") | No branch and no evidence predicate. Success is the answer delivered with its sources; the three undeletable steps do not apply because nothing is published | |
| 294 | |
| 295 | ### 6.4 Checks are not an agent run |
| 296 | |
| 297 | Reproductions and checks run in the **runner's check executor**, not in a |
| 298 | Paseo agent: trusted code that runs the pinned check definitions from the |
| 299 | base revision against the exact candidate and records exit status, test |
| 300 | counts and bounded logs (**call**, from the team service design's |
| 301 | verification rules). The frozen reproduction or acceptance test is stored in |
| 302 | the Equipo instance's artefact store, outside every worktree, and handed to |
| 303 | the executor by hash. |
| 304 | |
| 305 | ### 6.5 Publishing |
| 306 | |
| 307 | The **runner holds the Amadan agent credential**; agents never do (**call**). |
| 308 | When Engineering finishes, the runner checks the candidate hash, the target |
| 309 | repository and that the ref is the task's review branch, then pushes. Agents' |
| 310 | worktrees have no push credential and git hooks and credential helpers are |
| 311 | disabled in them. This is the team service design's broker, reduced to the |
| 312 | runner. |
| 313 | |
| 314 | ### 6.6 Where coordinators run |
| 315 | |
| 316 | *Superseded by section 13.1 (revision 3): Equipo no longer uses Paseo.* |
| 317 | |
| 318 | Each person's coordinator is a **long-lived Paseo agent on a machine that |
| 319 | person enrolled**, one per person per team, using that person's own |
| 320 | connection (Paul ruled connections per person; the placement is a **call**; the instance holds no model credentials, so every |
| 321 | model call goes through Paseo and is accounted the same way). Conversation |
| 322 | turns travel instance → runner → Paseo and back. Coordinator-to-coordinator |
| 323 | settlement (section 5.3) is a **structured exchange of proposals** relayed by |
| 324 | the instance, each side stating its position and the preference it relies |
| 325 | on, not a free dialogue (**call**). |
| 326 | |
| 327 | ### 6.7 Records, budgets and authority |
| 328 | |
| 329 | Astra's prototype (`carlos/platform` `internal/team` at `ceee7a67`, with |
| 330 | `internal/teamcontract`) moves into this repository and becomes Equipo's |
| 331 | record of jobs, steps, attempts, actions, budgets, evidence and recovery. |
| 332 | **Call**: copy it in with its tests and history noted in the commit, then |
| 333 | remove it from platform in a separate platform branch; nothing in platform |
| 334 | imports it (verified 2026-11-01). Equipo is its own Go module, |
| 335 | `amadan.net/oficina/equipo`. It does not import `oficina/suite` in the first |
| 336 | milestone (that module does not resolve yet; doctrine revision 8) and runs |
| 337 | as a lone instance. |
| 338 | |
| 339 | Mapping onto the prototype (**calls**): |
| 340 | |
| 341 | - **Authority**: the instance's own roster and project ownership implement |
| 342 | the prototype's Authority interface; there is no console. |
| 343 | - **Budgets**: the prototype's account ceiling becomes the **team** ceiling; |
| 344 | each **project** has its own limits (calls, tokens, time per period) under |
| 345 | it; a task is a job, its plan's steps are steps. The account roll-up in the |
| 346 | Projects view is the sum of its projects. |
| 347 | - **Plan edits**: a plan is a layer above the store. Steps not yet started |
| 348 | can be added, removed or reordered; each edit is a new plan revision |
| 349 | recorded as an event; started and finished steps are immutable. The store |
| 350 | gains append-step and cancel-unstarted-step operations under the existing |
| 351 | revision guard. |
| 352 | - **Recovery quarantine**: the first milestone adds an owner-only, audited |
| 353 | **release** after reconciliation, because a single-team, owner-run instance |
| 354 | has someone to make that call. Uncertain external actions stay unknown and |
| 355 | charged. A hosted restore protocol remains later work. |
| 356 | - **Hibernation**: CARLOS wakes an instance on request, and the runner's |
| 357 | renewals and reports are requests, so a running step keeps it awake. The |
| 358 | runner buffers results while the instance wakes. |
| 359 | |
| 360 | ### 6.8 Connections live on machines |
| 361 | |
| 362 | *Superseded by section 13.1 (revision 3): Equipo no longer uses Paseo.* |
| 363 | |
| 364 | A subscription connection is **an account signed in on a specific machine's |
| 365 | Paseo** (**call**). Each person enrolls the machine(s) their own accounts are |
| 366 | signed in on, with a runner. The scheduler sends a step only to a machine that |
| 367 | holds the connection it was assigned, which is always a connection of the |
| 368 | person whose task it is. |
| 369 | |
| 370 | **Subscriptions are first-class connections** (Paul): a Claude or ChatGPT |
| 371 | subscription is used through the provider's own unmodified CLI (Claude Code, |
| 372 | Codex), signed in by the person on their own machine, driven by Paseo. |
| 373 | Equipo never sees, stores or relays the login; it only knows the connection |
| 374 | exists on that machine. Metered API keys are an alternative connection type, |
| 375 | not a requirement. A subscription harness cannot enforce a token or currency |
| 376 | ceiling, so its usage is recorded and shown, and Equipo's own limits (calls, |
| 377 | time, attempts) still apply. If Paseo cannot run two Claude accounts on |
| 378 | one machine, each Claude account lives on a different machine (docs-t1, |
| 379 | tito-studio) and pinning still works; the probe in section 7 decides which. |
| 380 | |
| 381 | ### 6.9 How the runner drives Paseo |
| 382 | |
| 383 | *Superseded by section 13.1 (revision 3): Equipo no longer uses Paseo.* |
| 384 | |
| 385 | Each enrolled machine runs **`equipo-runner`** (**call**: a small Go binary, |
| 386 | a user service under systemd or launchd, no root, no inbound ports). |
| 387 | |
| 388 | 1. **Enrol.** The person runs `equipo-runner enrol`, approves it in the |
| 389 | browser (a device-code sign-in to their Equipo instance) and gets a runner |
| 390 | credential bound to them and that machine. The runner asks the local Paseo |
| 391 | which providers and profiles are signed in and reports them as that |
| 392 | person's connections on that machine. |
| 393 | 2. **Wait for work.** The runner holds an outbound HTTPS connection to the |
| 394 | instance and long-polls for steps assigned to a connection on this |
| 395 | machine. It sees only its own person's steps. |
| 396 | 3. **Claim and brief.** It claims a step (fenced, as in the prototype) and |
| 397 | receives the brief: repository, base commit, review branch, the step's |
| 398 | instructions, the specialist's standing instructions, the person's |
| 399 | relevant confirmed preferences, provider, model, settings and limits. |
| 400 | 4. **Workspace.** It keeps one clone per project, fetched from Amadan with |
| 401 | its agent credential, registers it as a Paseo project, and creates a |
| 402 | Paseo worktree workspace on the review branch from the base commit. |
| 403 | 5. **Run.** It starts a Paseo agent in that workspace (`paseo run --json` |
| 404 | with the provider, model and mode, the brief as the prompt) and follows |
| 405 | its timeline (`paseo logs`, `inspect`, `wait`), turning it into Equipo |
| 406 | events: progress, usage, questions. |
| 407 | 6. **Questions.** When the agent asks something or needs a permission, the |
| 408 | runner relays it to the instance (to the coordinator, then to a person if |
| 409 | needed) and sends the answer back with `paseo send`. |
| 410 | 7. **Finish.** It records the resulting commit, hands reproductions and |
| 411 | checks to the check executor (section 6.4), uploads artefacts and, for a |
| 412 | publish step, pushes the review branch (section 6.5). Then it archives |
| 413 | the agent and workspace. |
| 414 | 8. **Cancel.** `paseo stop`, then archive, then report the stop as |
| 415 | acknowledged. |
| 416 | |
| 417 | Coordinators (section 6.6) are long-lived Paseo agents driven the same way |
| 418 | through `paseo send`. They act through a small **Equipo tool server** that the |
| 419 | runner provides to the agent (propose a plan, ask a person, read a project, |
| 420 | settle a proposal), so their decisions arrive as structured calls, not parsed |
| 421 | prose. |
| 422 | |
| 423 | **Probe before building** (**call**): verify on docs-t1 that Paseo's CLI or |
| 424 | daemon API gives the runner (a) machine-readable timeline and usage per |
| 425 | agent, (b) agent questions and permission requests as events it can answer, |
| 426 | (c) MCP or tool-server configuration per agent, and (d) two Claude accounts |
| 427 | side by side (Paseo already keeps separate provider homes per daemon home, |
| 428 | which suggests yes). Gaps are requests to Paseo. An alternative worth |
| 429 | weighing in the probe is shipping the runner as a Paseo plugin rather than |
| 430 | a separate process. |
| 431 | |
| 432 | ## 7. Models and accounts |
| 433 | |
| 434 | Paul: assign a particular Claude account to a particular project, and also |
| 435 | let the coordinator choose the most appropriate account, service and model per |
| 436 | task and step. |
| 437 | |
| 438 | - **Connections belong to people, not the team** (Paul: "each account should |
| 439 | connect to their own provider"). Each person connects their own model |
| 440 | accounts. A person's coordinator, and the steps of tasks they start, use |
| 441 | that person's connections; nobody's work draws on someone else's |
| 442 | subscription. Each connection shows what is left. Subscriptions (Claude on paul@tito.io, Claude on keymail, Codex) show |
| 443 | their allowance; metered API keys show spend against a hard cap. |
| 444 | - **Per project**: a team owner sets which providers and model families the |
| 445 | project allows. Each person ticks which of their own connections they use |
| 446 | for it and may pin one ("comercio uses paul@tito.io for Claude work"). |
| 447 | - **How the coordinator picks**, per project: best fit for each step |
| 448 | (default), always the pinned account, or ask each time. |
| 449 | - **Shown everywhere**: the plan shows each step's pick and the reason ("Long |
| 450 | code task; Codex has the most headroom this week"); every finished step |
| 451 | records what actually ran. |
| 452 | |
| 453 | Rules regardless of setting: never outside the project's ticked connections; |
| 454 | never switch account mid-step without telling the person; Review always a |
| 455 | different family from the builder. |
| 456 | |
| 457 | **Dependencies to verify, not work around:** |
| 458 | |
| 459 | - Can Paseo run two Claude accounts side by side on one machine? If not, that |
| 460 | is a request to Paseo. |
| 461 | - Is there a supported way to read a subscription's remaining weekly |
| 462 | allowance? If not, the bars show usage Equipo counted itself, labelled as |
| 463 | such. |
| 464 | |
| 465 | ## 8. CARLOS as a supplier |
| 466 | |
| 467 | A team connects CARLOS accounts. Equipo needs, per connected account: |
| 468 | |
| 469 | 1. **Sign-in or connection consent** by a person who is a member of that |
| 470 | CARLOS account. |
| 471 | 2. **A read-only, scoped credential** for app errors, analytics and app |
| 472 | metadata. The team service design found that today's `instance` and |
| 473 | `operate` roles also allow mutations; a read-only role is a platform |
| 474 | feature to request (carlos/platform), not something to approximate. |
| 475 | 3. **App-to-repository link**: which repository an app is built from. If |
| 476 | CARLOS does not record it, Equipo stores the binding per project (set by a |
| 477 | person) and the platform request is optional. |
| 478 | |
| 479 | Before (1) and (2) exist, "connecting a CARLOS account" in the first |
| 480 | milestone means naming it and binding its apps to repositories by hand; it |
| 481 | grants Equipo nothing. Until (2) exists, the product view runs without |
| 482 | CARLOS signals: Now, Next and |
| 483 | Later still work, ranked from open issues and people's requests, and the |
| 484 | signal line says it is not connected. **Call**: no CLI-credential shortcut. |
| 485 | |
| 486 | ## 9. Gates for the first milestone |
| 487 | |
| 488 | The team service design gated live use on metered API keys with hard caps and |
| 489 | on bubblewrap-confined workers. For Paul's own repos on his own machines, the |
| 490 | first milestone relaxes both (drafter's proposal in the conversation; Paul |
| 491 | chose Paseo, which implies it, but did not rule on the gates explicitly): |
| 492 | |
| 493 | - Subscription logins through Paseo are allowed. Usage is recorded and shown; |
| 494 | it is not enforced as a currency cap. |
| 495 | - Workers run in Paseo's worktrees under the harnesses' own sandboxes, not |
| 496 | bubblewrap. |
| 497 | |
| 498 | Both gates return before anyone outside Paul's team uses it. |
| 499 | |
| 500 | Kept in the first milestone: no merge or deploy; agent accounts on Amadan; |
| 501 | evidence before success; budgets and limits per project (calls, tokens, time) |
| 502 | enforced by Equipo even when cost is not; cancel stops the Paseo agent and |
| 503 | records it. |
| 504 | |
| 505 | **Doctrine egress (section 8 of the doctrine).** Sending conversation and code |
| 506 | to model providers is egress, and **Equipo needs it** (Paul: "Equipo |
| 507 | obviously needs to send stuff out to providers"). The doctrine admits egress |
| 508 | only per-team opt-in to one named recipient chosen by the app. Equipo's |
| 509 | amendment, to record in `oficina/suite` Appendix A: |
| 510 | |
| 511 | - Egress to model providers is the product's purpose, so Equipo has no |
| 512 | egress-off floor; a team without connections can still track work by hand. |
| 513 | - The app names the providers it supports (Anthropic and OpenAI in the first |
| 514 | milestone). A **person** chooses among them by connecting their own |
| 515 | accounts; a team owner can restrict which a project allows. |
| 516 | - Disclosure: the README's first paragraph names the providers, and every |
| 517 | step records the provider, model and account that ran it. |
| 518 | |
| 519 | ## 10. First milestone: Paul tries it |
| 520 | |
| 521 | Equipo deploys under the **`oficina` CARLOS account** on the flagship |
| 522 | console (Paul: `https://console.carloku.com/a/oficina`). |
| 523 | |
| 524 | Done when Paul, and one teammate, can: |
| 525 | |
| 526 | 1. Sign in to the team's Equipo instance on CARLOS. |
| 527 | 2. Connect a CARLOS account and add two projects (say oficina and comercio). |
| 528 | 3. Each connect at least one of their own model accounts (Paul a Claude and |
| 529 | a Codex account) and set per-project picks. |
| 530 | 4. Ask "fix this bug" and watch it travel Engineering → Review → him, ending |
| 531 | in an Amadan branch with evidence attached; merge it himself. |
| 532 | 5. Ask "what's next?" for a project and get a ranked answer with reasons. |
| 533 | 6. See the rail, a specialist page, Journey and the product view live. |
| 534 | 7. Route a question to the teammate and see coordinators settle a wording |
| 535 | question from confirmed preferences, or escalate on deadlock. |
| 536 | 8. Cancel a running task and see it stop. |
| 537 | |
| 538 | Copy for every user-facing string goes through copy review before it ships. |
| 539 | |
| 540 | ## 11. Open, for Paul |
| 541 | |
| 542 | None at revision 2. Resolved by Paul on 2026-11-01: egress is needed |
| 543 | (section 9); each person connects their own providers (section 7); the |
| 544 | phone's landing screen and plan approval are configurable (sections 4.1 and |
| 545 | 3.4). The doctrine amendment in section 9 still has to be written into |
| 546 | `oficina/suite`. |
| 547 | |
| 548 | ## 12. Left to the builder |
| 549 | |
| 550 | Visual detail within Fiesta and estilo; data schemas beyond the prototype's; |
| 551 | the runner's packaging; the shape of the product ranking prompt; exact |
| 552 | deadlock thresholds; how settled preferences are learned and surfaced, within |
| 553 | section 3.1's rules. |
| 554 | |
| 555 | |
| 556 | ## 13. Revision 3 decisions (2026-11-03) |
| 557 | |
| 558 | ### 13.1 Direct launch replaces Paseo (Paul) |
| 559 | |
| 560 | Paseo is built for a person watching agents, not as an auditable launcher, |
| 561 | and every live-gate blocker came from that layer. The runner launches the |
| 562 | providers' own unmodified CLIs directly: Claude Code headless |
| 563 | (`claude -p --output-format stream-json`) and Codex through its app-server. |
| 564 | Each attempt runs inside a bubblewrap PID namespace owned by the runner, so |
| 565 | ending the namespace proves every process has stopped. Isolation is by |
| 566 | construction: exact settings per run, user configuration ignored, tools |
| 567 | pinned per specialist, Claude's sandbox and Codex's deny profile both |
| 568 | working inside the namespace. The runner keeps its own durable event |
| 569 | journal; a mid-turn crash leaves the step waiting for a person and never |
| 570 | redispatches. Evidence: `2026-11-03-direct-cli-probe.md` and |
| 571 | `2026-11-03-bwrap-nesting.md`. Plan: `2026-11-03-equipo-plan-2b-direct.md`. |
| 572 | |
| 573 | Consequences: supervised trial mode, the dedicated runner OS user and the |
| 574 | unconfined-Codex acknowledgement are no longer needed (Codex is confined by |
| 575 | its deny profile). |
| 576 | |
| 577 | ### 13.2 Dedicated Equipo credential homes (controller ruling, plan 2b) |
| 578 | |
| 579 | Each model account is signed in once, by its person, into an Equipo-only |
| 580 | credential home at enrolment. Equipo never uses everyday interactive logins, |
| 581 | because a token refresh inside Equipo would sign out the person's own |
| 582 | sessions. A new credential generation with the same identity triggers a |
| 583 | fresh preflight; a different identity stops the step. |
| 584 | |
| 585 | ### 13.3 Navigation: Teams at the top (Paul) |
| 586 | |
| 587 | The hierarchy is Teams, then a team, then its pages. On iPhone the back |
| 588 | button leads up this hierarchy; there is no team dropdown. Teams lists every |
| 589 | team the person belongs to (each its own Equipo instance) and what needs |
| 590 | them across all of them. The Mac sidebar starts with a Teams section. The |
| 591 | web app follows the same structure. |
| 592 | |
| 593 | ### 13.4 No project picker (Paul) |
| 594 | |
| 595 | The box people type into has no project picker. The coordinator works out |
| 596 | the project from the message and the recent conversation; the task card |
| 597 | shows the project it chose and a tap corrects it. When it is genuinely |
| 598 | unclear, the coordinator asks with a one-tap question. |
| 599 | |
| 600 | ### 13.5 One conversation, threads per task |
| 601 | |
| 602 | There is one main conversation per person; nobody creates or manages |
| 603 | threads. Every task has its own thread automatically, reached from the task |
| 604 | (the message icon on iPhone, "About this task" beside the steps on the |
| 605 | Mac). A reply about a task in the main conversation is routed to that |
| 606 | task's thread, with a short line in the main conversation saying so. |
| 607 | |
| 608 | ### 13.6 Custom specialists (Paul) |
| 609 | |
| 610 | People create their own specialists beyond the five defaults: name, icon, |
| 611 | standing instructions, allowed models, tools and the projects they apply |
| 612 | to. The coordinator may suggest a new specialist when it sees a recurring |
| 613 | need; it never creates one. |
| 614 | |
| 615 | ### 13.7 Playbooks (Paul) |
| 616 | |
| 617 | A playbook is a saved line-up of specialists for a kind of work (for |
| 618 | example "Website change": Copy, Design, Engineering, Review, then a person). |
| 619 | People create and edit playbooks and can make one the default for a |
| 620 | project or a kind of request. The coordinator picks a playbook per request, |
| 621 | adapts it to the task and shows which it used; it may propose a new |
| 622 | playbook when it keeps building the same plan, which a person saves or not. |
| 623 | Every playbook keeps independent review, checks and a person at the end. |
| 624 | "Team" keeps meaning a group of people; groups of specialists are |
| 625 | playbooks. |
| 626 | |
| 627 | ### 13.8 Native apps |
| 628 | |
| 629 | Equipo gets native iPhone and Mac apps in each platform's idiom (mockups in |
| 630 | `docs/mockups/native.html`): the iPhone opens on the conversation with the |
| 631 | team one step back, questions arrive as notifications answerable from the |
| 632 | lock screen, and the Mac uses a sidebar, the conversation and the selected |
| 633 | task side by side, plus a menu bar item for what needs the person. Building |
| 634 | them follows plan 3, which provides the API, the conversation and push |
| 635 | notifications they need. Interface rules: values and badges never wrap; |
| 636 | secondary text truncates; no coloured left-border accents. |
| 637 | |
| 638 | ### 13.9 Specialist and playbook templates (Paul) |
| 639 | |
| 640 | Equipo ships the five default specialists and a library of templates |
| 641 | grouped by purpose (Quality: QA and testing, Accessibility, Performance; |
| 642 | Safety: Security, Privacy; Running things: Ops, Data, Support; Words and |
| 643 | reach: Docs, Localisation, SEO) plus a blank one. Adding a template gives |
| 644 | the team its own copy to edit; a later improvement to a template is offered |
| 645 | as a suggestion showing what changed, never applied silently. Engineering |
| 646 | and Review cannot be removed. Playbooks work the same way, starting from |
| 647 | shipped templates (Bug, Website change, Infra change, Investigation). |
| 648 | |
| 649 | ### 13.10 Where work runs (Paul: both hosted and own machine) |
| 650 | |
| 651 | Three kinds of runner, usable side by side: |
| 652 | 1. **Your own machine** (Mac or Linux), enrolled with one command and a |
| 653 | pairing code, no sudo; on a Mac the app can enrol it. Works with a |
| 654 | person's Claude or ChatGPT plan. |
| 655 | 2. **Hosted by Equipo on CARLOS**, using CARLOS isolated exec (#126) for the |
| 656 | same containment; platform gaps are requests to carlos/platform. Uses a |
| 657 | metered **API key**: Equipo never holds a person's subscription login on |
| 658 | its servers (section 6.8 and the provider rule in section 7). |
| 659 | 3. **Provider cloud agents** (Claude Code on the web, Codex cloud) as |
| 660 | outside builders for repos with a GitHub mirror, if a programmatic API |
| 661 | exists (to be probed). Reproduction, checks and review still run on a |
| 662 | trusted runner; their work is labelled as built remotely. |
| 663 | |
| 664 | ### 13.11 Onboarding |
| 665 | |
| 666 | Five steps, the same on web, Mac and iPhone (`docs/mockups/onboarding.html`): |
| 667 | welcome to the team; connect a model account by device code (one is enough |
| 668 | to start, a second family is requested before the first review); choose |
| 669 | where work runs; choose specialists (defaults ticked, library one tap |
| 670 | away); a safe first task that reads and recommends and changes nothing. |
| 671 | |
| 672 | ### 13.12 Several accounts per provider |
| 673 | |
| 674 | A person may connect any number of Claude and Codex accounts, each its own |
| 675 | connection in its own Equipo credential home, each showing its remaining |
| 676 | allowance. Projects tick which may be used and may pin one; the coordinator |
| 677 | picks per step by fit and headroom and says why. A step never changes |
| 678 | account mid-step; a later step may use another of the person's accounts, |
| 679 | recorded. Connections are never shared or pooled across people. |
| 680 | |
| 681 | |