Merge branch 'design' into main
Equipo design, roadmap, Paseo probe and plan 1 Design rev 2 approved by Paul 2026-11-01; plan 1 READY AFTER FIXES (Opus R2), fixes applied.
16 files changed,
+2,254
−0
docs/mockups/README.md+19 −0docs/mockups/conversation.html+123 −0docs/mockups/journey.html+90 −0docs/mockups/models.html+105 −0docs/mockups/nav.html+112 −0docs/mockups/projects.html+94 −0docs/mockups/workload.html+124 −0docs/superpowers/plans/2026-11-01-equipo-plan-1-foundation.md+303 −0docs/superpowers/plans/2026-11-01-equipo-roadmap.md+27 −0docs/superpowers/plans/CODEX-BRIEF-plan-0-paseo-probe.md+60 −0docs/superpowers/plans/CODEX-BRIEF-plan-1-foundation-fixes-R1.md+58 −0docs/superpowers/plans/CODEX-BRIEF-plan-1-foundation.md+82 −0docs/superpowers/plans/REVIEW-BRIEF-plan-1-foundation-R1.md+71 −0docs/superpowers/plans/REVIEW-FINDINGS-plan-1-foundation-R1.md+65 −0docs/superpowers/specs/2026-11-01-equipo-design.md+543 −0docs/superpowers/specs/2026-11-01-paseo-probe.md+378 −0
No CI script — run details
diff --git a/docs/mockups/README.md b/docs/mockups/README.md| new file mode 100644 |
| index 00000000..a59d9d5f |
| --- /dev/null |
| +++ b/docs/mockups/README.md |
| @@ -0,0 +1,19 @@ |
| +# Mockups from the 2026-11-01 brainstorm |
| + |
| +Sketches Paul reacted to while the design was shaped. The layout is the |
| +point; the copy is not approved and goes through copy review when built. |
| + |
| +- `conversation.html`: the conversation with your own coordinator, desktop and phone. |
| +- `nav.html`: the navigation Paul settled on. Fiesta-style rail on desktop, |
| + drill-down index screens on the phone, icons plus names. |
| +- `workload.html`: each specialist's tasks with step progress (section 1). |
| + Its top-tab layout and letter avatars were superseded by `nav.html`. |
| +- `journey.html`: every task with its planned steps beside it, specialist |
| + category above each step. |
| +- `projects.html`: projects grouped by CARLOS account, and one project's |
| + product view. |
| +- `models.html`: connections, per-project account choice, and the |
| + coordinator's picks with reasons. |
| + |
| +Letters in coloured squares anywhere except `nav.html` are placeholders. Paul |
| +rejected initials: the real UI uses an icon plus the specialist's name. |
diff --git a/docs/mockups/conversation.html b/docs/mockups/conversation.html| new file mode 100644 |
| index 00000000..8b036fe1 |
| --- /dev/null |
| +++ b/docs/mockups/conversation.html |
| @@ -0,0 +1,123 @@ |
| +<!DOCTYPE html><html><head><meta charset="utf-8"><title>Conversation</title><style>body{margin:0;padding:28px 36px;background:#eef0f3;color:#1b1f27;font:15px/1.5 -apple-system,system-ui,sans-serif}h2{font-size:22px;margin:0 0 6px}h3{font-size:16px;margin:26px 0 10px}.subtitle{color:#4b5260;max-width:1000px;margin:0 0 10px}</style></head><body><style> |
| +.m,.phone{font:14px/1.45 -apple-system,system-ui,sans-serif;color:#1b1f27;background:#f6f7f9} |
| +.ic{width:16px;height:16px;flex:none} |
| +.m{border:1px solid #dde1e8;border-radius:10px;overflow:hidden;display:flex;height:700px;margin-bottom:30px} |
| +.rail{width:230px;flex:none;padding:14px 10px;font-size:13.5px} |
| +.acc{display:flex;align-items:center;gap:8px;padding:6px 8px;margin-bottom:10px;font-weight:600} |
| +.acc small{font-weight:400;color:#6b7280;margin-left:auto} |
| +.ri{display:flex;align-items:center;gap:9px;padding:6px 9px;border-radius:7px;color:#3b4250;margin:1px 0} |
| +.ri.cur{background:#fff;box-shadow:0 0 0 1px #e1e5ec,0 1px 2px rgba(0,0,0,.06);color:#1b1f27;font-weight:600} |
| +.ri .n{margin-left:auto;white-space:nowrap;font-size:11.5px;color:#6b7280;font-weight:400} |
| +.ri .n.w{color:#9a5b00;font-weight:600} |
| +.sub{margin-left:16px;border-left:1px solid #e1e5ec;padding-left:6px} |
| +.rl{font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;color:#8a919c;margin:10px 9px 4px} |
| +.tmain{flex:1;background:#fff;border-left:1px solid #e6e9ef;padding:20px 28px;overflow:hidden} |
| +.eb{font-size:12px;color:#6b7280;margin:0} |
| +h1.t{font-size:1.25rem;margin:0 0 14px;font-weight:600} |
| +.band{display:flex;border:1px solid #e3e7ee;border-radius:9px;margin-bottom:18px} |
| +.band div{flex:1;padding:9px 14px;border-inline-start:1px solid #e3e7ee}.band div:first-child{border:0} |
| +.band b{display:block;font-size:1.5rem;font-variant-numeric:tabular-nums}.band small{color:#6b7280;font-size:12px} |
| +.tcard{border:1px solid #e3e7ee;border-radius:9px;margin-bottom:14px} |
| +.tcard h2{font-size:13.5px;margin:0;padding:9px 14px;border-bottom:1px solid #eef0f4;font-weight:600} |
| +.trow{display:flex;gap:12px;align-items:center;padding:10px 14px;border-bottom:1px solid #f0f2f5} |
| +.trow:last-child{border:0} |
| +.trow .nm{width:230px}.trow .nm b{display:block;font-size:13.5px}.trow .nm small{color:#6b7280;font-size:12px} |
| +.pill{font-size:11.5px;border-radius:10px;padding:1px 8px;background:#eef3ff;color:#1f56d6;white-space:nowrap} |
| +.pill.w{background:#fff4e5;color:#9a5b00}.pill.q{background:#f1f3f7;color:#5b6472}.pill.d{background:#e8f6ee;color:#17703f} |
| +.steps{display:flex;gap:4px;flex:1;max-width:260px}.steps i{flex:1;height:5px;border-radius:3px;background:#e3e7ee} |
| +.steps i.d{background:#17703f}.steps i.c{background:#1f56d6}.steps i.w{background:#d98a00} |
| +.trow .r{margin-left:auto;color:#6b7280;font-size:12px;white-space:nowrap} |
| +.chev{width:15px;height:15px;color:#9aa1ad} |
| +.kv{display:flex;padding:8px 14px;border-bottom:1px solid #f0f2f5;font-size:13px}.kv span{width:160px;color:#6b7280} |
| +.kv:last-child{border:0} |
| +.phones{display:flex;gap:22px;flex-wrap:wrap} |
| +.phone{width:290px;height:600px;flex:none;border:10px solid #1b1f27;border-radius:38px;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column} |
| +.ph{background:#fff;border-bottom:1px solid #e6e9ef;padding:30px 12px 8px;font-size:14px;display:flex;align-items:center;gap:4px;min-height:22px} |
| +.ph a{color:#1f56d6;text-decoration:none;display:flex;align-items:center} |
| +.ph .bk{transform:rotate(180deg);width:16px;height:16px} |
| +.pb{padding:12px;overflow:hidden;flex:1} |
| +.ctx{display:flex;gap:10px;align-items:center;margin:2px 0 12px} |
| +.ctx .big{width:34px;height:34px;border-radius:9px;background:#eef3ff;color:#1f56d6;display:flex;align-items:center;justify-content:center} |
| +.ctx .big .ic{width:19px;height:19px} |
| +.ctx h1{font-size:1.15rem;margin:0} |
| +.ix{background:#fff;border:1px solid #e3e7ee;border-radius:10px;overflow:hidden;margin-bottom:12px} |
| +.ixr{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid #f0f2f5;font-size:14px} |
| +.ixr:last-child{border:0} |
| +.ixr .ic{color:#1f56d6} |
| +.ixr .n{margin-left:auto;font-size:12px;color:#6b7280}.ixr .n.w{color:#9a5b00;font-weight:600} |
| +.ixr small{display:block;font-size:11.5px;color:#6b7280} |
| +.pl{font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;color:#8a919c;margin:6px 4px 6px} |
| +.vs{position:relative;padding-left:22px} |
| +.vs .s{position:relative;padding:0 0 14px} |
| +.vs .s::before{content:"";position:absolute;z-index:1;box-sizing:border-box;left:-18px;top:4px;width:12px;height:12px;border-radius:50%;background:#f6f7f9;border:2px solid #c3c9d3} |
| +.vs .s::after{content:"";position:absolute;left:-13px;top:19px;bottom:-1px;width:2px;background:#dfe3ea} |
| +.vs .s:last-child::after{display:none} |
| +.vs .s.d::before{background:#17703f;border-color:#17703f}.vs .s.c::before{background:#1f56d6;border-color:#1f56d6} |
| +.vs .who{font-size:10.5px;letter-spacing:.05em;text-transform:uppercase;color:#6b7280;font-weight:600} |
| +.vs .what{font-size:13.5px}.vs .s.c .what{font-weight:600}.vs small{display:block;color:#6b7280;font-size:11.5px} |
| +.note2{font-size:12.5px;opacity:.8;margin:0 0 10px} |
| +</style><style> |
| +.conv{display:flex;flex-direction:column;height:100%} |
| +.feed{flex:1;overflow:hidden;display:flex;flex-direction:column;gap:12px;max-width:760px;width:100%;margin:0 auto} |
| +.u{align-self:flex-end;background:#eef3ff;border:1px solid #d4e0ff;border-radius:12px;padding:9px 13px;max-width:70%} |
| +.a{align-self:flex-start;max-width:80%;line-height:1.5} |
| +.who2{font-size:11.5px;color:#6b7280;margin:0 0 3px;display:flex;align-items:center;gap:6px} |
| +.who2 .ic{width:13px;height:13px} |
| +.tc{border:1px solid #e3e7ee;border-radius:10px;background:#fff;padding:11px 13px;align-self:stretch} |
| +.tc .h{display:flex;align-items:center;gap:8px}.tc .h b{font-size:14px}.tc .h small{color:#6b7280;font-size:12px} |
| +.tc .h .sp{margin-left:auto} |
| +.chain{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin-top:9px} |
| +.ch2{border:1px solid #e3e7ee;border-radius:8px;padding:4px 9px;font-size:12px;line-height:1.25;background:#fff;color:#6b7280} |
| +.ch2 .c1{display:block;font-size:10px;letter-spacing:.05em;text-transform:uppercase;font-weight:600} |
| +.ch2.d{background:#f1f9f4;border-color:#cfe9da;color:#17703f}.ch2.c{background:#eef3ff;border-color:#c9d8ff;color:#1b1f27}.ch2.c .c2{font-weight:600} |
| +.ch2.w{background:#fff6e8;border-color:#f0c98a;color:#7a4700} |
| +.ch2 .m3{display:block;font-size:10.5px;color:#8a919c} |
| +.arr{color:#c3c9d3;font-size:11px} |
| +.need{border-color:#f0c98a;background:#fffaf2} |
| +.btns{display:flex;gap:6px;margin-top:10px;flex-wrap:wrap} |
| +.b1{background:#2257df;color:#fff;border-radius:7px;padding:4px 12px;font-size:12.5px} |
| +.b2{border:1px solid #cfd5df;border-radius:7px;padding:4px 12px;font-size:12.5px;background:#fff} |
| +.settle{align-self:stretch;border-left:3px solid #7a4cc2;background:#faf8fe;border-radius:6px;padding:8px 12px;font-size:13px} |
| +.settle small{color:#6b7280;display:block;margin-top:2px} |
| +.rank{margin:6px 0 0;padding:0;list-style:none} |
| +.rank li{display:flex;gap:10px;align-items:baseline;padding:6px 0;border-top:1px solid #f0f2f5} |
| +.rank li .n{color:#9aa1ad;font-size:12px;width:14px}.rank li small{color:#6b7280;font-size:12px;display:block} |
| +.rank li .b2{margin-left:auto;padding:2px 10px} |
| +.comp{max-width:760px;width:100%;margin:12px auto 0;border:1px solid #cfd5df;border-radius:12px;background:#fff;padding:10px 12px} |
| +.comp .ph2{color:#9aa1ad;font-size:14px} |
| +.comp .bar2{display:flex;gap:8px;margin-top:8px;align-items:center;font-size:12px;color:#5b6472} |
| +.comp .bar2 span{border:1px solid #e3e7ee;border-radius:7px;padding:2px 8px;background:#f8f9fb} |
| +.comp .bar2 .send{margin-left:auto;background:#2257df;color:#fff;border:0} |
| +.day{align-self:center;font-size:11.5px;color:#8a919c} |
| +.tmain.full{padding:16px 24px 14px;display:flex;flex-direction:column} |
| +.phone .feed{gap:9px}.phone .u,.phone .a{font-size:13px}.phone .tc{padding:8px 10px} |
| +.phone .comp{margin:8px 0 0;padding:8px 10px} |
| +</style><h2>The conversation</h2><p class="subtitle">Your own coordinator. Tasks appear as live cards with their steps, questions as cards you can answer in one tap, and anything the coordinators settled between themselves as a marked line you can overturn. The composer picks which project you mean.</p><h3>Desktop</h3><div class="m"><div class="rail"><div class="acc"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" /> <path d="M16 3.128a4 4 0 0 1 0 7.744" /> <path d="M22 21v-2a4 4 0 0 0-3-3.87" /> <circle cx="9" cy="7" r="4" /></svg>tito<small>switch</small></div><div class="ri cur"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>Conversation</div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 12h-6l-2 3h-4l-2-3H2"/><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"/></svg>Needs you<span class="n w">1</span></div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="19" r="3"/><path d="M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15"/><circle cx="18" cy="5" r="3"/></svg>Journey</div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg>Projects<span class="n">5</span></div><div class="rl">Specialists</div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></svg>Product<span class="n">1</span></div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"/><path d="M16.4 3.6a2.1 2.1 0 0 1 3 3L7.4 18.6a2 2 0 0 1-.9.5l-2.9.8.8-2.9a2 2 0 0 1 .5-.8z"/></svg>Design<span class="n">idle</span></div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 7V4h16v3"/><path d="M9 20h6"/><path d="M12 4v16"/></svg>Copy<span class="n w">1 waiting</span></div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 18 6-6-6-6"/><path d="m8 6-6 6 6 6"/></svg>Engineering<span class="n">1 · 1 queued</span></div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/></svg>Review<span class="n">1</span></div><div class="rl">Team</div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22v-5"/><path d="M9 8V2"/><path d="M15 8V2"/><path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z"/></svg>Connections</div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" /> <path d="M16 3.128a4 4 0 0 1 0 7.744" /> <path d="M22 21v-2a4 4 0 0 0-3-3.87" /> <circle cx="9" cy="7" r="4" /></svg>People<span class="n">3</span></div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 5H3" /> <path d="M12 19H3" /> <path d="M14 3v4" /> <path d="M16 17v4" /> <path d="M21 12h-9" /> <path d="M21 19h-5" /> <path d="M21 5h-7" /> <path d="M8 10v4" /> <path d="M8 12H3" /></svg>Settings</div></div><div class="tmain full"><div class="conv"><div class="feed"> |
| +<div class="day">Today</div> |
| +<div class="u">The invoice PDF in oficina shows last month's VAT rate. Can you fix it?</div> |
| +<div class="a"><div class="who2"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>Coordinator</div>That's a bug in oficina. Here's the plan. I've started it; change anything you like.</div> |
| +<div class="tc"><div class="h"><b>Fix VAT rate on invoice PDF</b><small>oficina · bug · 6 min</small><span class="sp"><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></span></div> |
| +<div class="chain"><span class="ch2 d"><span class="c1">Engineering</span><span class="c2">Reproduce ✓</span><span class="m3">Opus · paul@tito.io</span></span><span class="arr">→</span><span class="ch2 c"><span class="c1">Engineering</span><span class="c2">Write the fix</span><span class="m3">Astra · Codex</span></span><span class="arr">→</span><span class="ch2 "><span class="c1">Review</span><span class="c2">Review</span><span class="m3">Opus · paul@tito.io</span></span><span class="arr">→</span><span class="ch2 "><span class="c1">Review</span><span class="c2">Checks</span></span><span class="arr">→</span><span class="ch2 "><span class="c1">You</span><span class="c2">Merge</span></span></div> |
| +<div class="btns"><span class="b2">Edit plan</span><span class="b2">Why these models?</span></div></div> |
| +<div class="u">What should I work on next in comercio?</div> |
| +<div class="a"><div class="who2"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>Coordinator</div>Product ranked it from errors, analytics and open requests: |
| +<ul class="rank"> |
| +<li><span class="n">1</span><div><b>Checkout timeouts</b><small>41 errors this week, started with Tuesday's release</small></div><span class="b2">Start</span></li> |
| +<li><span class="n">2</span><div><b>Slow product search</b><small>p95 1.8 s, 22% of visits</small></div><span class="b2">Start</span></li> |
| +<li><span class="n">3</span><div><b>Discount code accepted twice</b><small>2 reports, costs money</small></div><span class="b2">Start</span></li> |
| +</ul></div> |
| +<div class="tc need"><div class="h"><b>CSV export to reports</b><small>oficina · feature · needs you</small><span class="sp"><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></span></div> |
| +<div style="margin-top:6px">Copy asks: should the export's first money column be <b>Net</b> or <b>Subtotal</b>?</div> |
| +<div class="btns"><span class="b1">Net</span><span class="b1">Subtotal</span><span class="b2">Reply</span></div></div> |
| +<div class="settle"><b>Settled with Doc's coordinator:</b> the button reads "Export CSV", not "Download".<small>From Doc's confirmed preference "buttons say what they do" · 2 min ago · <u>Overturn</u></small></div> |
| +</div><div class="comp"><div class="ph2">Ask for a fix, a feature, or what's next</div><div class="bar2"><span>oficina ▾</span><span>Attach</span><span class="send">Send</span></div></div></div></div></div><h3>Phone: what it opens on by default</h3><div class="phones"><div class="phone"><div class="ph" style="justify-content:space-between"><a><svg class="bk" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg>Work</a><span style="font-weight:600">Coordinator</span><span style="width:40px"></span></div><div class="pb" style="display:flex;flex-direction:column"> |
| +<div class="feed"> |
| +<div class="u">The invoice PDF in oficina shows last month's VAT rate.</div> |
| +<div class="a"><div class="who2"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>Coordinator</div>That's a bug. Plan started:</div> |
| +<div class="tc"><div class="h"><b>Fix VAT rate</b><span class="sp"><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></span></div> |
| +<div class="steps" style="margin-top:7px;max-width:none"><i class="d"></i><i class="c"></i><i></i><i></i><i></i></div><small style="color:#6b7280;font-size:11.5px">Engineering · writing the fix</small></div> |
| +<div class="tc need"><div class="h"><b>CSV export</b></div><div style="font-size:12.5px;margin-top:4px">Net or Subtotal?</div><div class="btns"><span class="b1">Net</span><span class="b1">Subtotal</span></div></div> |
| +<div class="settle" style="font-size:12px"><b>Settled with Doc:</b> "Export CSV".<small><u>Overturn</u></small></div> |
| +</div> |
| +<div class="comp"><div class="ph2" style="font-size:13px">Ask</div></div> |
| +</div></div></div></body></html> |
| \ No newline at end of file |
diff --git a/docs/mockups/journey.html b/docs/mockups/journey.html| new file mode 100644 |
| index 00000000..09b767cc |
| --- /dev/null |
| +++ b/docs/mockups/journey.html |
| @@ -0,0 +1,90 @@ |
| +<!DOCTYPE html><html><head><meta charset="utf-8"><title>journey</title><style>body{margin:0;padding:28px 36px;background:#eef0f3;color:#1b1f27;font:15px/1.5 -apple-system,system-ui,sans-serif}h2{font-size:22px;margin:0 0 6px}h3{font-size:16px;margin:22px 0 8px}.subtitle{color:#4b5260;max-width:1000px}.options,.option{display:none}</style></head><body> |
| +<style> |
| + .m{font:14px/1.45 -apple-system,system-ui,sans-serif;color:#1b1f27;background:#fbfbfc;border:1px solid #dde1e8;border-radius:10px;overflow:hidden;margin-bottom:28px} |
| + .top{display:flex;gap:18px;align-items:center;padding:10px 16px;border-bottom:1px solid #e6e9ef;background:#fff} |
| + .top b{color:#1f56d6;letter-spacing:.04em}.top span{color:#6b7280}.top .on{color:#1b1f27;font-weight:600;border-bottom:2px solid #1f56d6;padding-bottom:8px;margin-bottom:-11px} |
| + .top .acct{margin-left:auto;font-size:13px} |
| + .col{padding:16px 24px 22px} |
| + .seg{display:inline-flex;border:1px solid #cfd5df;border-radius:7px;overflow:hidden;font-size:12.5px;margin:0 0 16px} |
| + .seg span{padding:4px 12px;color:#6b7280}.seg .on{background:#eef3ff;color:#1f56d6;font-weight:600} |
| + .lbl{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:#6b7280;margin:14px 0 8px} |
| + .t{display:flex;gap:20px;align-items:flex-start;padding:12px 0;border-bottom:1px solid #eef0f4} |
| + .t .name{width:250px;flex:none}.t .name b{display:block}.t .name small{color:#6b7280} |
| + .path{display:flex;flex-wrap:wrap;align-items:center;gap:6px;flex:1} |
| + .st{display:inline-flex;align-items:center;gap:8px;border-radius:10px;padding:5px 12px 5px 6px;line-height:1.25;font-size:12.5px;border:1px solid #e3e7ee;background:#fff;color:#6b7280} |
| + .st .av{width:24px;height:24px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:#fff} |
| + .st.d{background:#f1f9f4;border-color:#cfe9da;color:#17703f} |
| + .st.c{background:#eef3ff;border-color:#c9d8ff;color:#1b1f27;font-weight:600} |
| + .st.w{background:#fff6e8;border-color:#f0c98a;color:#7a4700;font-weight:600} |
| + .st.q{opacity:.75} |
| + .ar{color:#c3c9d3;font-size:12px} |
| + .cP{background:#7a4cc2}.cD{background:#be185d}.cC{background:#c2410c}.cE{background:#1f56d6}.cR{background:#17703f}.cY{background:#6b7280} |
| + .note{font-size:12.5px;color:#6b7280;margin-top:6px;flex-basis:100%} |
| +</style> |
| + |
| +<h2>Journey: two-line steps, specialists by category</h2> |
| +<p class="subtitle">Each step shows the specialist's category above what it is doing. No names. Green is done, blue is happening now, amber is waiting on you, outlined is still to come.</p> |
| + |
| +<div class="m"> |
| + <div class="top"><b>CARLOS</b><span>Apps</span><span class="on">Team</span><span>Billing</span><span class="acct">Paul · tito</span></div> |
| + <div class="col"> |
| + <div class="seg"><span>Conversation</span><span class="on">Journey</span></div> |
| + |
| + <p class="lbl">Needs you</p> |
| + <div class="t"><div class="name"><b>CSV export to reports</b><small>oficina · feature · 18 min</small></div> |
| + <div class="path"> |
| + <span class="st d"><span class="av cP">P</span><span class="two"><span class="who">Product</span><span class="what">Scope ✓</span></span></span><span class="ar">→</span> |
| + <span class="st w"><span class="av cC">C</span><span class="two"><span class="who">Copy</span><span class="what">Column labels: "Net" or "Subtotal"?</span></span></span><span class="ar">→</span> |
| + <span class="st q"><span class="av cE">E</span><span class="two"><span class="who">Engineering</span><span class="what">Build</span></span></span><span class="ar">→</span> |
| + <span class="st q"><span class="av cR">R</span><span class="two"><span class="who">Review</span><span class="what">Review and checks</span></span></span><span class="ar">→</span> |
| + <span class="st q"><span class="av cY">✓</span><span class="two"><span class="who">You</span><span class="what">Merge</span></span></span> |
| + </div></div> |
| + |
| + <p class="lbl">In progress</p> |
| + <div class="t"><div class="name"><b>Fix VAT rate on invoice PDF</b><small>oficina · bug · 6 min · 31k tokens</small></div> |
| + <div class="path"> |
| + <span class="st d"><span class="av cE">E</span><span class="two"><span class="who">Engineering</span><span class="what">Reproduce ✓</span></span></span><span class="ar">→</span> |
| + <span class="st c"><span class="av cE">E</span><span class="two"><span class="who">Engineering</span><span class="what">Write the fix</span></span></span><span class="ar">→</span> |
| + <span class="st q"><span class="av cR">R</span><span class="two"><span class="who">Review</span><span class="what">Review</span></span></span><span class="ar">→</span> |
| + <span class="st q"><span class="av cR">R</span><span class="two"><span class="who">Review</span><span class="what">Checks</span></span></span><span class="ar">→</span> |
| + <span class="st q"><span class="av cY">✓</span><span class="two"><span class="who">You</span><span class="what">Merge</span></span></span> |
| + </div></div> |
| + <div class="t"><div class="name"><b>Retry failed webhooks</b><small>comercio · bug · 41 min · 88k tokens</small></div> |
| + <div class="path"> |
| + <span class="st d"><span class="av cE">E</span><span class="two"><span class="who">Engineering</span><span class="what">Reproduce ✓</span></span></span><span class="ar">→</span> |
| + <span class="st d"><span class="av cE">E</span><span class="two"><span class="who">Engineering</span><span class="what">Fix ✓</span></span></span><span class="ar">→</span> |
| + <span class="st d"><span class="av cR">R</span><span class="two"><span class="who">Review</span><span class="what">Review ✓</span></span></span><span class="ar">→</span> |
| + <span class="st c"><span class="av cR">R</span><span class="two"><span class="who">Review</span><span class="what">Checks · 212 of 340</span></span></span><span class="ar">→</span> |
| + <span class="st q"><span class="av cY">✓</span><span class="two"><span class="who">You</span><span class="what">Merge</span></span></span> |
| + </div></div> |
| + <div class="t"><div class="name"><b>Checkout timeouts</b><small>comercio · investigation · 9 min</small></div> |
| + <div class="path"> |
| + <span class="st c"><span class="av cP">P</span><span class="two"><span class="who">Product</span><span class="what">Find the cause</span></span></span><span class="ar">→</span> |
| + <span class="st q"><span class="av cY">✓</span><span class="two"><span class="who">You</span><span class="what">Decide what to do</span></span></span> |
| + <span class="note">Later steps get planned once the cause is known.</span> |
| + </div></div> |
| + |
| + <p class="lbl">Queued</p> |
| + <div class="t"><div class="name"><b>Date picker off by a day</b><small>rastrillo · bug · waiting for engineering</small></div> |
| + <div class="path"> |
| + <span class="st q"><span class="av cE">E</span><span class="two"><span class="who">Engineering</span><span class="what">Reproduce</span></span></span><span class="ar">→</span> |
| + <span class="st q"><span class="av cE">E</span><span class="two"><span class="who">Engineering</span><span class="what">Fix</span></span></span><span class="ar">→</span> |
| + <span class="st q"><span class="av cR">R</span><span class="two"><span class="who">Review</span><span class="what">Review</span></span></span><span class="ar">→</span> |
| + <span class="st q"><span class="av cR">R</span><span class="two"><span class="who">Review</span><span class="what">Checks</span></span></span><span class="ar">→</span> |
| + <span class="st q"><span class="av cY">✓</span><span class="two"><span class="who">You</span><span class="what">Merge</span></span></span> |
| + </div></div> |
| + |
| + <p class="lbl">Done this week</p> |
| + <div class="t" style="opacity:.6"><div class="name"><b>Trim trailing slash in shop URLs</b><small>comercio · merged yesterday</small></div> |
| + <div class="path"> |
| + <span class="st d"><span class="av cE">E</span><span class="two"><span class="who">Engineering</span><span class="what">Reproduce ✓</span></span></span><span class="ar">→</span> |
| + <span class="st d"><span class="av cE">E</span><span class="two"><span class="who">Engineering</span><span class="what">Fix ✓</span></span></span><span class="ar">→</span> |
| + <span class="st d"><span class="av cR">R</span><span class="two"><span class="who">Review</span><span class="what">Review ✓</span></span></span><span class="ar">→</span> |
| + <span class="st d"><span class="av cR">R</span><span class="two"><span class="who">Review</span><span class="what">Checks ✓</span></span></span><span class="ar">→</span> |
| + <span class="st d"><span class="av cY">✓</span><span class="two"><span class="who">You</span><span class="what">Merged ✓</span></span></span> |
| + </div></div> |
| + </div> |
| +</div> |
| +<style>.st .two{display:flex;flex-direction:column}.st .who{font-size:10.5px;letter-spacing:.05em;text-transform:uppercase;font-weight:600;opacity:.75}.st .what{font-size:12.5px}</style> |
| + |
| +</body></html> |
diff --git a/docs/mockups/models.html b/docs/mockups/models.html| new file mode 100644 |
| index 00000000..1f4cfc28 |
| --- /dev/null |
| +++ b/docs/mockups/models.html |
| @@ -0,0 +1,105 @@ |
| +<!DOCTYPE html><html><head><meta charset="utf-8"><title>models</title><style>body{margin:0;padding:28px 36px;background:#eef0f3;color:#1b1f27;font:15px/1.5 -apple-system,system-ui,sans-serif}h2{font-size:22px;margin:0 0 6px}h3{font-size:16px;margin:22px 0 8px}.subtitle{color:#4b5260;max-width:1000px}.options,.option{display:none}</style></head><body> |
| +<style> |
| + .sec{margin:0 0 34px}.sec>h3{margin:0 0 4px}.sec>p{margin:0 0 12px;opacity:.8;max-width:920px} |
| + .m{font:14px/1.45 -apple-system,system-ui,sans-serif;color:#1b1f27;background:#fbfbfc;border:1px solid #dde1e8;border-radius:10px;overflow:hidden} |
| + .top{display:flex;gap:18px;align-items:center;padding:10px 16px;border-bottom:1px solid #e6e9ef;background:#fff} |
| + .top b{color:#1f56d6;letter-spacing:.04em}.top span{color:#6b7280}.top .on{color:#1b1f27;font-weight:600;border-bottom:2px solid #1f56d6;padding-bottom:8px;margin-bottom:-11px} |
| + .top .acct{margin-left:auto;font-size:13px} |
| + .col{padding:16px 24px 22px} |
| + .lbl{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:#6b7280;margin:16px 0 8px} |
| + .cn{display:flex;align-items:center;gap:14px;padding:11px 14px;background:#fff;border:1px solid #e3e7ee;border-radius:9px;margin-bottom:8px} |
| + .cn .ic{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:13px;flex:none} |
| + .an{background:#c2410c}.oa{background:#111827}.lo{background:#0e7490} |
| + .cn .t{width:270px}.cn .t b{display:block}.cn .t small{color:#6b7280;font-size:12.5px} |
| + .bar{flex:1;max-width:260px}.bar .tr{height:7px;border-radius:4px;background:#e8ebf0;overflow:hidden}.bar .tr i{display:block;height:100%;background:#1f56d6} |
| + .bar small{color:#6b7280;font-size:12px} |
| + .hi i{background:#d98a00!important} |
| + .cn .r{margin-left:auto;font-size:12.5px;color:#6b7280;text-align:right} |
| + .two{display:flex;gap:24px}.two>div{flex:1;min-width:0} |
| + .chk{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid #eef0f4;font-size:13.5px} |
| + .box{width:16px;height:16px;border:1.5px solid #9aa1ad;border-radius:4px;flex:none;margin-top:2px;display:flex;align-items:center;justify-content:center;font-size:11px;color:#fff} |
| + .box.on{background:#2257df;border-color:#2257df} |
| + .chk small{display:block;color:#6b7280;font-size:12.5px} |
| + .pin{font-size:11px;background:#eef3ff;color:#1f56d6;border-radius:9px;padding:1px 7px;margin-left:6px} |
| + .radio{display:flex;gap:10px;align-items:flex-start;padding:8px 0;font-size:13.5px} |
| + .rd{width:15px;height:15px;border:1.5px solid #9aa1ad;border-radius:50%;flex:none;margin-top:2px}.rd.on{border:5px solid #2257df} |
| + .radio small{display:block;color:#6b7280;font-size:12.5px} |
| + .rt{background:#fff;border:1px solid #e3e7ee;border-radius:9px;padding:4px 14px} |
| + .rt .row{display:flex;gap:12px;padding:9px 0;border-bottom:1px solid #eef0f4;font-size:13.5px;align-items:baseline} |
| + .rt .row:last-child{border-bottom:0} |
| + .rt .k{width:120px;color:#6b7280;font-size:12px;text-transform:uppercase;letter-spacing:.05em} |
| + .rt .v{width:250px;font-weight:600}.rt .w{color:#5b6472;font-size:12.5px;flex:1} |
| + .path{display:flex;flex-wrap:wrap;align-items:center;gap:6px} |
| + .st{display:inline-flex;align-items:center;gap:8px;border-radius:10px;padding:6px 12px 6px 7px;line-height:1.25;border:1px solid #e3e7ee;background:#fff;color:#6b7280} |
| + .st .av{width:24px;height:24px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#fff} |
| + .st .two2{display:flex;flex-direction:column}.st .who{font-size:10.5px;letter-spacing:.05em;text-transform:uppercase;font-weight:600;opacity:.75}.st .what{font-size:12.5px}.st .mdl{font-size:11.5px;color:#6b7280;margin-top:1px} |
| + .st.d{background:#f1f9f4;border-color:#cfe9da;color:#17703f}.st.c{background:#eef3ff;border-color:#c9d8ff;color:#1b1f27}.st.c .what{font-weight:600} |
| + .ar{color:#c3c9d3;font-size:12px} |
| + .cP{background:#7a4cc2}.cE{background:#1f56d6}.cR{background:#17703f}.cY{background:#6b7280} |
| +</style> |
| + |
| +<h2>Which account and model does each step use?</h2> |
| +<p class="subtitle">Three layers. Connections are the model accounts you have. Each project says which of them it may use, and can pin one. Inside that, the coordinator picks per step and says why. Every step records what actually ran.</p> |
| + |
| +<div class="sec"> |
| +<h3>1. Connections (per CARLOS account)</h3> |
| +<p>Your model accounts, with how much of each is left. Subscriptions show their allowance; API keys show spend against a cap.</p> |
| +<div class="m"> |
| + <div class="top"><b>CARLOS</b><span>Apps</span><span class="on">Team</span><span>Billing</span><span class="acct">Paul · tito</span></div> |
| + <div class="col"> |
| + <div class="cn"><div class="ic an">A</div><div class="t"><b>Claude · paul@tito.io</b><small>Max subscription · via Paseo on docs-t1</small></div><div class="bar"><div class="tr"><i style="width:23%"></i></div><small>weekly 23% used · resets Thu</small></div><div class="r">Fable, Opus, Sonnet, Haiku</div></div> |
| + <div class="cn"><div class="ic an">A</div><div class="t"><b>Claude · keymail</b><small>Max subscription · via Paseo on docs-t1</small></div><div class="bar hi"><div class="tr"><i style="width:75%"></i></div><small>weekly 75% used · resets Thu</small></div><div class="r">Fable, Opus, Sonnet, Haiku</div></div> |
| + <div class="cn"><div class="ic oa">O</div><div class="t"><b>Codex · paul</b><small>ChatGPT subscription · via Paseo on docs-t1</small></div><div class="bar"><div class="tr"><i style="width:31%"></i></div><small>weekly 31% used</small></div><div class="r">Astra</div></div> |
| + <div class="cn"><div class="ic an">A</div><div class="t"><b>Anthropic API · team pilot</b><small>metered key · hard cap</small></div><div class="bar"><div class="tr"><i style="width:12%"></i></div><small>$6.10 of $50 this month</small></div><div class="r">any Claude model</div></div> |
| + <div class="cn" style="border-style:dashed;color:#6b7280">+ Connect another account</div> |
| + </div> |
| +</div></div> |
| + |
| +<div class="sec"> |
| +<h3>2. Project setting: which accounts comercio may use</h3> |
| +<p>Tick the accounts this project may draw on, optionally pin one. The coordinator never goes outside this list, and never switches account mid-step without telling you.</p> |
| +<div class="m"> |
| + <div class="top"><b>CARLOS</b><span>Apps</span><span class="on">Team</span><span>Billing</span><span class="acct">Paul · tito</span></div> |
| + <div class="col"><h3 style="margin:0 0 6px">comercio · models</h3> |
| + <div class="two"> |
| + <div> |
| + <p class="lbl">Accounts this project may use</p> |
| + <div class="chk"><div class="box on">✓</div><div>Claude · paul@tito.io<span class="pin">pinned for Claude work</span><small>used whenever a step calls for a Claude model</small></div></div> |
| + <div class="chk"><div class="box on">✓</div><div>Codex · paul<small>available for engineering and review</small></div></div> |
| + <div class="chk"><div class="box"></div><div>Claude · keymail<small>not for this project</small></div></div> |
| + <div class="chk"><div class="box"></div><div>Anthropic API · team pilot<small>metered; off unless you tick it</small></div></div> |
| + </div> |
| + <div> |
| + <p class="lbl">How the coordinator picks</p> |
| + <div class="radio"><div class="rd on"></div><div>Best fit for each step<small>Strongest model for hard steps, cheaper ones for routine work, the most headroom when allowances run low. Review always uses a different family from whoever built the change.</small></div></div> |
| + <div class="radio"><div class="rd"></div><div>Always the pinned account<small>Every step on paul@tito.io, except review, which still needs a second family.</small></div></div> |
| + <div class="radio"><div class="rd"></div><div>Ask me each time<small>The plan shows its picks and waits for your OK.</small></div></div> |
| + </div> |
| + </div></div> |
| +</div></div> |
| + |
| +<div class="sec"> |
| +<h3>3. What the coordinator picked, and why</h3> |
| +<p>Shown on the plan before it starts, and on every step afterwards. Click a step to change its pick.</p> |
| +<div class="m"> |
| + <div class="top"><b>CARLOS</b><span>Apps</span><span class="on">Team</span><span>Billing</span><span class="acct">Paul · tito</span></div> |
| + <div class="col"> |
| + <h3 style="margin:0 0 10px">Checkout timeouts · comercio</h3> |
| + <div class="rt"> |
| + <div class="row"><span class="k">Find the cause</span><span class="v">Opus · paul@tito.io</span><span class="w">Reading logs and traces across a release; needs strong reasoning.</span></div> |
| + <div class="row"><span class="k">Write the fix</span><span class="v">Astra · Codex</span><span class="w">Long code task; Codex has the most headroom this week (31% used).</span></div> |
| + <div class="row"><span class="k">Review</span><span class="v">Opus · paul@tito.io</span><span class="w">Must differ from the builder's family; Astra built it, so Claude reviews.</span></div> |
| + <div class="row"><span class="k">Checks</span><span class="v">no model</span><span class="w">Runs the repository's own tests; no tokens.</span></div> |
| + </div> |
| + <p class="lbl">On the Journey, each step carries its pick as a third line</p> |
| + <div class="path"> |
| + <span class="st d"><span class="av cP">P</span><span class="two2"><span class="who">Product</span><span class="what">Find the cause ✓</span><span class="mdl">Opus · paul@tito.io · 14k</span></span></span><span class="ar">→</span> |
| + <span class="st c"><span class="av cE">E</span><span class="two2"><span class="who">Engineering</span><span class="what">Write the fix</span><span class="mdl">Astra · Codex · 22k so far</span></span></span><span class="ar">→</span> |
| + <span class="st"><span class="av cR">R</span><span class="two2"><span class="who">Review</span><span class="what">Review</span><span class="mdl">Opus · paul@tito.io</span></span></span><span class="ar">→</span> |
| + <span class="st"><span class="av cR">R</span><span class="two2"><span class="who">Review</span><span class="what">Checks</span><span class="mdl">tests only</span></span></span><span class="ar">→</span> |
| + <span class="st"><span class="av cY">✓</span><span class="two2"><span class="who">You</span><span class="what">Merge</span></span></span> |
| + </div> |
| + </div> |
| +</div></div> |
| + |
| +</body></html> |
diff --git a/docs/mockups/nav.html b/docs/mockups/nav.html| new file mode 100644 |
| index 00000000..75c08b5d |
| --- /dev/null |
| +++ b/docs/mockups/nav.html |
| @@ -0,0 +1,112 @@ |
| +<!DOCTYPE html><html><head><meta charset="utf-8"><title>Work navigation</title><style>body{margin:0;padding:28px 36px;background:#eef0f3;color:#1b1f27;font:15px/1.5 -apple-system,system-ui,sans-serif}h2{font-size:22px;margin:0 0 6px}h3{font-size:16px;margin:26px 0 10px}.subtitle{color:#4b5260;max-width:1000px;margin:0 0 10px}</style></head><body><style> |
| +.m,.phone{font:14px/1.45 -apple-system,system-ui,sans-serif;color:#1b1f27;background:#f6f7f9} |
| +.ic{width:16px;height:16px;flex:none} |
| +.m{border:1px solid #dde1e8;border-radius:10px;overflow:hidden;display:flex;height:700px;margin-bottom:30px} |
| +.rail{width:230px;flex:none;padding:14px 10px;font-size:13.5px} |
| +.acc{display:flex;align-items:center;gap:8px;padding:6px 8px;margin-bottom:10px;font-weight:600} |
| +.acc small{font-weight:400;color:#6b7280;margin-left:auto} |
| +.ri{display:flex;align-items:center;gap:9px;padding:6px 9px;border-radius:7px;color:#3b4250;margin:1px 0} |
| +.ri.cur{background:#fff;box-shadow:0 0 0 1px #e1e5ec,0 1px 2px rgba(0,0,0,.06);color:#1b1f27;font-weight:600} |
| +.ri .n{margin-left:auto;white-space:nowrap;font-size:11.5px;color:#6b7280;font-weight:400} |
| +.ri .n.w{color:#9a5b00;font-weight:600} |
| +.sub{margin-left:16px;border-left:1px solid #e1e5ec;padding-left:6px} |
| +.rl{font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;color:#8a919c;margin:10px 9px 4px} |
| +.tmain{flex:1;background:#fff;border-left:1px solid #e6e9ef;padding:20px 28px;overflow:hidden} |
| +.eb{font-size:12px;color:#6b7280;margin:0} |
| +h1.t{font-size:1.25rem;margin:0 0 14px;font-weight:600} |
| +.band{display:flex;border:1px solid #e3e7ee;border-radius:9px;margin-bottom:18px} |
| +.band div{flex:1;padding:9px 14px;border-inline-start:1px solid #e3e7ee}.band div:first-child{border:0} |
| +.band b{display:block;font-size:1.5rem;font-variant-numeric:tabular-nums}.band small{color:#6b7280;font-size:12px} |
| +.tcard{border:1px solid #e3e7ee;border-radius:9px;margin-bottom:14px} |
| +.tcard h2{font-size:13.5px;margin:0;padding:9px 14px;border-bottom:1px solid #eef0f4;font-weight:600} |
| +.trow{display:flex;gap:12px;align-items:center;padding:10px 14px;border-bottom:1px solid #f0f2f5} |
| +.trow:last-child{border:0} |
| +.trow .nm{width:230px}.trow .nm b{display:block;font-size:13.5px}.trow .nm small{color:#6b7280;font-size:12px} |
| +.pill{font-size:11.5px;border-radius:10px;padding:1px 8px;background:#eef3ff;color:#1f56d6;white-space:nowrap} |
| +.pill.w{background:#fff4e5;color:#9a5b00}.pill.q{background:#f1f3f7;color:#5b6472}.pill.d{background:#e8f6ee;color:#17703f} |
| +.steps{display:flex;gap:4px;flex:1;max-width:260px}.steps i{flex:1;height:5px;border-radius:3px;background:#e3e7ee} |
| +.steps i.d{background:#17703f}.steps i.c{background:#1f56d6}.steps i.w{background:#d98a00} |
| +.trow .r{margin-left:auto;color:#6b7280;font-size:12px;white-space:nowrap} |
| +.chev{width:15px;height:15px;color:#9aa1ad} |
| +.kv{display:flex;padding:8px 14px;border-bottom:1px solid #f0f2f5;font-size:13px}.kv span{width:160px;color:#6b7280} |
| +.kv:last-child{border:0} |
| +.phones{display:flex;gap:22px;flex-wrap:wrap} |
| +.phone{width:290px;height:600px;flex:none;border:10px solid #1b1f27;border-radius:38px;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column} |
| +.ph{background:#fff;border-bottom:1px solid #e6e9ef;padding:30px 12px 8px;font-size:14px;display:flex;align-items:center;gap:4px;min-height:22px} |
| +.ph a{color:#1f56d6;text-decoration:none;display:flex;align-items:center} |
| +.ph .bk{transform:rotate(180deg);width:16px;height:16px} |
| +.pb{padding:12px;overflow:hidden;flex:1} |
| +.ctx{display:flex;gap:10px;align-items:center;margin:2px 0 12px} |
| +.ctx .big{width:34px;height:34px;border-radius:9px;background:#eef3ff;color:#1f56d6;display:flex;align-items:center;justify-content:center} |
| +.ctx .big .ic{width:19px;height:19px} |
| +.ctx h1{font-size:1.15rem;margin:0} |
| +.ix{background:#fff;border:1px solid #e3e7ee;border-radius:10px;overflow:hidden;margin-bottom:12px} |
| +.ixr{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid #f0f2f5;font-size:14px} |
| +.ixr:last-child{border:0} |
| +.ixr .ic{color:#1f56d6} |
| +.ixr .n{margin-left:auto;font-size:12px;color:#6b7280}.ixr .n.w{color:#9a5b00;font-weight:600} |
| +.ixr small{display:block;font-size:11.5px;color:#6b7280} |
| +.pl{font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;color:#8a919c;margin:6px 4px 6px} |
| +.vs{position:relative;padding-left:22px} |
| +.vs .s{position:relative;padding:0 0 14px} |
| +.vs .s::before{content:"";position:absolute;z-index:1;box-sizing:border-box;left:-18px;top:4px;width:12px;height:12px;border-radius:50%;background:#f6f7f9;border:2px solid #c3c9d3} |
| +.vs .s::after{content:"";position:absolute;left:-13px;top:19px;bottom:-1px;width:2px;background:#dfe3ea} |
| +.vs .s:last-child::after{display:none} |
| +.vs .s.d::before{background:#17703f;border-color:#17703f}.vs .s.c::before{background:#1f56d6;border-color:#1f56d6} |
| +.vs .who{font-size:10.5px;letter-spacing:.05em;text-transform:uppercase;color:#6b7280;font-weight:600} |
| +.vs .what{font-size:13.5px}.vs .s.c .what{font-weight:600}.vs small{display:block;color:#6b7280;font-size:11.5px} |
| +.note2{font-size:12.5px;opacity:.8;margin:0 0 10px} |
| +</style><h2>Hierarchical navigation, the Fiesta way</h2> |
| +<p class="subtitle">No initials. Every specialist is an icon plus its name, in the same rail and index rows the console already uses. Desktop: Work sits in the account's rail and expands to its pages and specialists. Phone: drill down through index screens with a back link to the parent. "Work" is a working name: the console's existing Team page manages account members, so this can't take that name.</p> |
| +<h3>Desktop: Engineering opened from the rail</h3><div class="m"><div class="rail"><div class="acc"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" /> <path d="M16 3.128a4 4 0 0 1 0 7.744" /> <path d="M22 21v-2a4 4 0 0 0-3-3.87" /> <circle cx="9" cy="7" r="4" /></svg>tito<small>switch</small></div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>Conversation</div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 12h-6l-2 3h-4l-2-3H2"/><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"/></svg>Needs you<span class="n w">1</span></div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="19" r="3"/><path d="M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15"/><circle cx="18" cy="5" r="3"/></svg>Journey</div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg>Projects<span class="n">5</span></div><div class="rl">Specialists</div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></svg>Product<span class="n">1</span></div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"/><path d="M16.4 3.6a2.1 2.1 0 0 1 3 3L7.4 18.6a2 2 0 0 1-.9.5l-2.9.8.8-2.9a2 2 0 0 1 .5-.8z"/></svg>Design<span class="n">idle</span></div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 7V4h16v3"/><path d="M9 20h6"/><path d="M12 4v16"/></svg>Copy<span class="n w">1 waiting</span></div><div class="ri cur"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 18 6-6-6-6"/><path d="m8 6-6 6 6 6"/></svg>Engineering<span class="n">1 · 1 queued</span></div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/></svg>Review<span class="n">1</span></div><div class="rl">Team</div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22v-5"/><path d="M9 8V2"/><path d="M15 8V2"/><path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z"/></svg>Connections</div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" /> <path d="M16 3.128a4 4 0 0 1 0 7.744" /> <path d="M22 21v-2a4 4 0 0 0-3-3.87" /> <circle cx="9" cy="7" r="4" /></svg>People<span class="n">3</span></div><div class="ri"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 5H3" /> <path d="M12 19H3" /> <path d="M14 3v4" /> <path d="M16 17v4" /> <path d="M21 12h-9" /> <path d="M21 19h-5" /> <path d="M21 5h-7" /> <path d="M8 10v4" /> <path d="M8 12H3" /></svg>Settings</div></div><div class="tmain"> |
| +<p class="eb">Specialist · tito</p><h1 class="t">Engineering</h1> |
| +<div class="band"><div><b>1</b><small>working now</small></div><div><b>1</b><small>queued</small></div><div><b>3</b><small>finished this week</small></div><div><b>212k</b><small>tokens this week</small></div></div> |
| +<div class="tcard"><h2>Working now</h2> |
| + <div class="trow"><div class="nm"><b>Fix VAT rate on invoice PDF</b><small>oficina · bug</small></div><span class="pill">writing the fix</span><div class="steps"><i class="d"></i><i class="c"></i><i></i></div><span class="r">6 min · Astra · Codex</span><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></div> |
| +</div> |
| +<div class="tcard"><h2>Queued</h2> |
| + <div class="trow"><div class="nm"><b>Date picker off by a day</b><small>rastrillo · bug</small></div><span class="pill q">queued</span><div class="steps"><i></i><i></i><i></i></div><span class="r">waiting for a free slot</span><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></div> |
| +</div> |
| +<div class="tcard"><h2>Finished this week</h2> |
| + <div class="trow"><div class="nm"><b>Retry failed webhooks</b><small>comercio · now with review</small></div><span class="pill d">handed to review</span><div class="steps"><i class="d"></i><i class="d"></i><i class="d"></i></div><span class="r">Tue</span><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></div> |
| + <div class="trow"><div class="nm"><b>Trim trailing slash in shop URLs</b><small>comercio · merged</small></div><span class="pill d">merged</span><div class="steps"><i class="d"></i><i class="d"></i><i class="d"></i></div><span class="r">Mon</span><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></div> |
| +</div> |
| +<div class="tcard"><h2>Settings</h2> |
| + <div class="kv"><span>Models</span>Astra · Codex for long code tasks, Opus · paul@tito.io otherwise</div> |
| + <div class="kv"><span>Runs at once</span>1</div> |
| + <div class="kv"><span>Standing instructions</span>Reproduce before changing code. Run the repo's own checks.</div> |
| +</div> |
| +</div></div><h3>Phone: Work → Engineering → one task</h3><p class="note2">Each screen is an index of rows with a chevron, and a back link to its parent, like the console's app and account indexes. The conversation is a row, not the home screen, on the phone.</p><div class="phones"><div class="phone"><div class="ph"><a><svg class="bk" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg>tito</a></div><div class="pb"> |
| +<div class="ctx"><div class="big"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="19" r="3"/><path d="M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15"/><circle cx="18" cy="5" r="3"/></svg></div><div><p class="eb">tito</p><h1>Work</h1></div></div> |
| +<div class="ix"> |
| + <div class="ixr"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>Conversation<span class="n"></span><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></div> |
| + <div class="ixr"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 12h-6l-2 3h-4l-2-3H2"/><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"/></svg>Needs you<span class="n w">1</span><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></div> |
| + <div class="ixr"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="19" r="3"/><path d="M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15"/><circle cx="18" cy="5" r="3"/></svg>Journey<span class="n">5</span><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></div> |
| + <div class="ixr"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg>Projects<span class="n">5</span><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></div> |
| +</div> |
| +<p class="pl">Specialists</p> |
| +<div class="ix"> |
| + <div class="ixr"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></svg>Product<span class="n">1</span><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></div> |
| + <div class="ixr"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"/><path d="M16.4 3.6a2.1 2.1 0 0 1 3 3L7.4 18.6a2 2 0 0 1-.9.5l-2.9.8.8-2.9a2 2 0 0 1 .5-.8z"/></svg>Design<span class="n">idle</span><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></div> |
| + <div class="ixr"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 7V4h16v3"/><path d="M9 20h6"/><path d="M12 4v16"/></svg>Copy<span class="n w">1 waiting</span><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></div> |
| + <div class="ixr"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 18 6-6-6-6"/><path d="m8 6-6 6 6 6"/></svg>Engineering<span class="n">1 · 1 queued</span><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></div> |
| + <div class="ixr"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/></svg>Review<span class="n">1</span><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></div> |
| +</div></div></div><div class="phone"><div class="ph"><a><svg class="bk" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg>Work</a></div><div class="pb"> |
| +<div class="ctx"><div class="big"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 18 6-6-6-6"/><path d="m8 6-6 6 6 6"/></svg></div><div><p class="eb">Specialist · tito</p><h1>Engineering</h1></div></div> |
| +<p class="pl">Working now</p> |
| +<div class="ix"><div class="ixr"><div style="flex:1">Fix VAT rate on invoice PDF<small>oficina · writing the fix · 6 min</small><div class="steps" style="margin-top:5px"><i class="d"></i><i class="c"></i><i></i></div></div><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></div></div> |
| +<p class="pl">Queued</p> |
| +<div class="ix"><div class="ixr"><div style="flex:1">Date picker off by a day<small>rastrillo · waiting for a free slot</small></div><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></div></div> |
| +<p class="pl">Finished this week</p> |
| +<div class="ix"><div class="ixr"><div style="flex:1">Retry failed webhooks<small>comercio · handed to review</small></div><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></div><div class="ixr"><div style="flex:1">Trim trailing slash<small>comercio · merged</small></div><svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></div></div> |
| +</div></div><div class="phone"><div class="ph"><a><svg class="bk" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg>Engineering</a></div><div class="pb"> |
| +<p class="eb">oficina · bug</p><h1 style="font-size:1.15rem;margin:0 0 4px">Fix VAT rate on invoice PDF</h1><p class="eb" style="margin-bottom:14px">6 min · 31k tokens</p> |
| +<div class="vs"> |
| + <div class="s d"><div class="who">Engineering</div><div class="what">Reproduce ✓</div><small>Failing test on main · Opus · paul@tito.io</small></div> |
| + <div class="s c"><div class="who">Engineering</div><div class="what">Write the fix</div><small>Astra · Codex · 22k so far</small></div> |
| + <div class="s"><div class="who">Review</div><div class="what">Review</div><small>Opus · paul@tito.io</small></div> |
| + <div class="s"><div class="who">Review</div><div class="what">Checks</div><small>repository's own tests</small></div> |
| + <div class="s"><div class="who">You</div><div class="what">Merge</div></div> |
| +</div> |
| +<div class="ix" style="margin-top:6px"><div class="ixr"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>Talk about this task<svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></div><div class="ixr" style="color:#b42318"><svg class="ic" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>Cancel</div></div> |
| +</div></div></div></body></html> |
| \ No newline at end of file |
diff --git a/docs/mockups/projects.html b/docs/mockups/projects.html| new file mode 100644 |
| index 00000000..55e31ce1 |
| --- /dev/null |
| +++ b/docs/mockups/projects.html |
| @@ -0,0 +1,94 @@ |
| +<!DOCTYPE html><html><head><meta charset="utf-8"><title>projects</title><style>body{margin:0;padding:28px 36px;background:#eef0f3;color:#1b1f27;font:15px/1.5 -apple-system,system-ui,sans-serif}h2{font-size:22px;margin:0 0 6px}h3{font-size:16px;margin:22px 0 8px}.subtitle{color:#4b5260;max-width:1000px}.options,.option{display:none}</style></head><body> |
| +<style>.ahd{display:flex;gap:12px;align-items:baseline;margin:6px 0 10px;padding-bottom:6px;border-bottom:1px solid #e6e9ef}.ahd b{font-size:16px}.ahd span{color:#6b7280;font-size:12.5px}.grid{margin-bottom:22px} |
| + .sec{margin:0 0 34px}.sec>h3{margin:0 0 4px}.sec>p{margin:0 0 12px;opacity:.8;max-width:920px} |
| + .m{font:14px/1.45 -apple-system,system-ui,sans-serif;color:#1b1f27;background:#fbfbfc;border:1px solid #dde1e8;border-radius:10px;overflow:hidden} |
| + .top{display:flex;gap:18px;align-items:center;padding:10px 16px;border-bottom:1px solid #e6e9ef;background:#fff} |
| + .top b{color:#1f56d6;letter-spacing:.04em}.top span{color:#6b7280}.top .on{color:#1b1f27;font-weight:600;border-bottom:2px solid #1f56d6;padding-bottom:8px;margin-bottom:-11px} |
| + .top .acct{margin-left:auto;font-size:13px} |
| + .col{padding:16px 24px 22px} |
| + .seg{display:inline-flex;border:1px solid #cfd5df;border-radius:7px;overflow:hidden;font-size:12.5px;margin:0 0 16px} |
| + .seg span{padding:4px 12px;color:#6b7280}.seg .on{background:#eef3ff;color:#1f56d6;font-weight:600} |
| + .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px} |
| + .pc{background:#fff;border:1px solid #e3e7ee;border-radius:10px;padding:14px 16px} |
| + .pc h4{margin:0;font-size:15px;display:flex;align-items:center;gap:8px} |
| + .pc .sub{color:#6b7280;font-size:12.5px;margin:2px 0 10px} |
| + .chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px} |
| + .ch{font-size:12px;border-radius:10px;padding:2px 9px;background:#f1f3f7;color:#3b4250} |
| + .ch.w{background:#fff4e5;color:#9a5b00;font-weight:600}.ch.c{background:#eef3ff;color:#1f56d6}.ch.d{background:#e8f6ee;color:#17703f} |
| + .sig{font-size:12.5px;color:#3b4250;border-top:1px solid #eef0f4;padding-top:8px} |
| + .sig .up{color:#b42318;font-weight:600}.sig .dn{color:#17703f;font-weight:600} |
| + .dotg{width:9px;height:9px;border-radius:50%;display:inline-block} |
| + .g{background:#17a34a}.a{background:#d98a00}.r{background:#d92d20} |
| + .lbl{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:#6b7280;margin:18px 0 8px} |
| + .two{display:flex;gap:24px}.two>div{flex:1;min-width:0} |
| + .it{display:flex;gap:10px;align-items:flex-start;padding:9px 0;border-bottom:1px solid #eef0f4} |
| + .it .n{width:20px;color:#9aa1ad;font-size:12px;padding-top:2px} |
| + .it b{display:block;font-size:13.5px}.it small{color:#6b7280;font-size:12.5px} |
| + .it .st{margin-left:auto;font-size:12px;white-space:nowrap} |
| + .why{font-size:12px;color:#5b6472;background:#f6f7fa;border-radius:6px;padding:2px 7px;display:inline-block;margin-top:3px} |
| + .btn2{display:inline-block;border:1px solid #cfd5df;border-radius:6px;padding:2px 10px;font-size:12px;color:#1b1f27;background:#fff} |
| + .note{background:#fff;border:1px solid #e3e7ee;border-radius:10px;padding:12px 14px;font-size:13.5px} |
| + .kpi{display:flex;gap:12px;margin:0 0 6px}.kpi div{flex:1;background:#fff;border:1px solid #e3e7ee;border-radius:8px;padding:8px 12px} |
| + .kpi b{display:block;font-size:20px}.kpi small{color:#6b7280;font-size:12px} |
| +</style> |
| + |
| +<h2>Projects grouped by account</h2> |
| +<p class="subtitle">A third view beside Conversation and Journey. The overview shows every project's health at a glance. Opening one gives Now, Next and Later, with the reason each item is ranked where it is, drawn from the app's own errors and analytics in CARLOS.</p> |
| + |
| +<div class="sec"> |
| +<h3>1. All projects, grouped by account</h3> |
| +<p>Accounts are the outer layer, as they are everywhere else in CARLOS: who can see the work, whose budget pays for it. Each account shows its own roll-up; projects (apps or bare repos) sit inside.</p> |
| +<div class="m"> |
| + <div class="top"><b>CARLOS</b><span>Apps</span><span class="on">Team</span><span>Billing</span><span class="acct">Paul · tito</span></div> |
| + <div class="col"> |
| + <div class="seg"><span>Conversation</span><span>Journey</span><span class="on">Projects</span></div> |
| + <div class="ahd"><b>tito</b><span>account · 3 projects · 2 needs you · budget this month 31% used</span></div><div class="grid"><div class="pc"><h4><span class="dotg a"></span>oficina</h4><div class="sub">amadan.net/oficina · app oficina</div> |
| + <div class="chips"><span class="ch w">1 needs you</span><span class="ch c">1 in progress</span><span class="ch">3 next</span></div> |
| + <div class="sig">Errors 7d: 12 <span class="up">↑ 4</span> · VAT on invoices</div></div> |
| + <div class="pc"><h4><span class="dotg r"></span>comercio</h4><div class="sub">amadan.net/comercio · app shop</div> |
| + <div class="chips"><span class="ch c">2 in progress</span><span class="ch d">1 shipped this week</span><span class="ch">4 next</span></div> |
| + <div class="sig">Errors 7d: 41 <span class="up">↑ 29</span> · checkout timeouts</div></div> |
| + <div class="pc" style="border-style:dashed;color:#6b7280;display:flex;align-items:center;justify-content:center">+ Add a project</div></div><div class="ahd"><b>Personal</b><span>account · 2 projects · nothing needs you · budget 4% used</span></div><div class="grid"><div class="pc"><h4><span class="dotg g"></span>rastrillo</h4><div class="sub">amadan.net/rastrillo · app rastrillo</div> |
| + <div class="chips"><span class="ch">1 queued</span><span class="ch">2 next</span></div> |
| + <div class="sig">Errors 7d: 1 <span class="dn">↓ 3</span> · quiet</div></div> |
| + <div class="pc"><h4><span class="dotg g"></span>pullup</h4><div class="sub">amadan.net/pullup · app pullup</div> |
| + <div class="chips"><span class="ch">nothing in flight</span></div> |
| + <div class="sig">Visitors 7d: 2.1k <span class="dn">↑ 18%</span> · no new errors</div></div> |
| + </div> |
| + </div> |
| +</div></div> |
| + |
| +<div class="sec"> |
| +<h3>2. One project, product view</h3> |
| +<p>Now is what's in flight. Next is product's ranked list, each with its reason. Later is parked. Start, reorder or park from here; the coordinator picks the change up in the conversation.</p> |
| +<div class="m"> |
| + <div class="top"><b>CARLOS</b><span>Apps</span><span class="on">Team</span><span>Billing</span><span class="acct">Paul · tito</span></div> |
| + <div class="col"> |
| + <div class="seg"><span>Conversation</span><span>Journey</span><span class="on">Projects</span></div> |
| + <h3 style="margin:0 0 10px">comercio</h3> |
| + <div class="kpi"><div><b>41</b><small>errors, last 7 days (↑ 29)</small></div><div><b>3.2 s</b><small>checkout p95 (was 1.1 s)</small></div><div><b>1</b><small>shipped this week</small></div><div><b>2 h 10 m</b><small>agent time this week · 410k tokens</small></div></div> |
| + <div class="two"> |
| + <div> |
| + <p class="lbl">Now</p> |
| + <div class="it"><div><b>Checkout timeouts</b><small>Product · finding the cause · 9 min</small></div></div> |
| + <div class="it"><div><b>Retry failed webhooks</b><small>Review · running checks · 212 of 340</small></div></div> |
| + <p class="lbl">Next, ranked by product</p> |
| + <div class="it"><span class="n">1</span><div><b>Slow product search</b><small>p95 1.8 s on /search</small><br><span class="why">why: second-slowest page, 22% of visits</span></div><span class="st"><span class="btn2">Start</span></span></div> |
| + <div class="it"><span class="n">2</span><div><b>Discount code accepted twice</b><small>2 reports this month</small><br><span class="why">why: costs money; small fix</span></div><span class="st"><span class="btn2">Start</span></span></div> |
| + <div class="it"><span class="n">3</span><div><b>Order emails in Spanish</b><small>feature you asked for on 28 Oct</small><br><span class="why">why: your request, needs copy</span></div><span class="st"><span class="btn2">Start</span></span></div> |
| + <div class="it"><span class="n">4</span><div><b>Tidy unused CSS</b><small>housekeeping</small><br><span class="why">why: low risk, low value</span></div><span class="st"><span class="btn2">Start</span></span></div> |
| + </div> |
| + <div> |
| + <p class="lbl">Product's note</p> |
| + <div class="note">Checkout got slower after Tuesday's release and the timeouts started the same day. I'd fix that before anything else; it's likely costing orders. After that, search is the biggest drag on visits.<br><small style="color:#6b7280">Written 20 min ago from errors, analytics and open requests.</small></div> |
| + <p class="lbl">Later</p> |
| + <div class="it"><div><b>Gift cards</b><small>parked by you, 3 Oct</small></div></div> |
| + <div class="it"><div><b>Wishlist sharing</b><small>idea from 12 Sep</small></div></div> |
| + <p class="lbl">Shipped recently</p> |
| + <div class="it" style="opacity:.65"><div><b>Trim trailing slash in shop URLs</b><small>merged yesterday</small></div></div> |
| + </div> |
| + </div> |
| + </div> |
| +</div></div> |
| + |
| +</body></html> |
diff --git a/docs/mockups/workload.html b/docs/mockups/workload.html| new file mode 100644 |
| index 00000000..e318ac5f |
| --- /dev/null |
| +++ b/docs/mockups/workload.html |
| @@ -0,0 +1,124 @@ |
| +<!DOCTYPE html><html><head><meta charset="utf-8"><title>workload</title><style>body{margin:0;padding:28px 36px;background:#eef0f3;color:#1b1f27;font:15px/1.5 -apple-system,system-ui,sans-serif}h2{font-size:22px;margin:0 0 6px}h3{font-size:16px;margin:22px 0 8px}.subtitle{color:#4b5260;max-width:1000px}.options,.option{display:none}</style></head><body> |
| +<style> |
| + .sec{margin:0 0 34px} |
| + .sec>h3{margin:0 0 4px}.sec>p{margin:0 0 12px;opacity:.8;max-width:920px} |
| + .m,.phone{font:14px/1.45 -apple-system,system-ui,sans-serif;color:#1b1f27;background:#fbfbfc} |
| + .m{border:1px solid #dde1e8;border-radius:10px;overflow:hidden} |
| + .top{display:flex;gap:18px;align-items:center;padding:10px 16px;border-bottom:1px solid #e6e9ef;background:#fff} |
| + .top b{color:#1f56d6;letter-spacing:.04em}.top span{color:#6b7280}.top .on{color:#1b1f27;font-weight:600;border-bottom:2px solid #1f56d6;padding-bottom:8px;margin-bottom:-11px} |
| + .top .acct{margin-left:auto;font-size:13px} |
| + .body{display:flex;height:610px} |
| + .rail{width:310px;flex:none;border-right:1px solid #e6e9ef;background:#f4f6f9;padding:12px 10px;overflow:hidden} |
| + .sp{display:flex;gap:9px;align-items:center;padding:7px 8px;border-radius:8px} |
| + .sp.on{background:#fff;box-shadow:0 0 0 1px #d4e0ff} |
| + .av{width:26px;height:26px;border-radius:7px;flex:none;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff} |
| + .sp b{flex:1;font-size:13.5px}.sp .ct{font-size:12px;color:#6b7280} |
| + .task{margin:2px 0 6px 43px;padding:6px 9px;background:#fff;border:1px solid #e6e9ef;border-radius:7px;font-size:12.5px} |
| + .task.need{border-color:#f0c98a;background:#fffaf2} |
| + .task small{display:block;color:#6b7280;margin:1px 0 4px} |
| + .steps{display:flex;gap:3px}.steps i{flex:1;height:4px;border-radius:2px;background:#dfe3ea} |
| + .steps i.d{background:#17703f}.steps i.c{background:#1f56d6}.steps i.w{background:#d98a00} |
| + .lbl{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:#6b7280;margin:10px 8px 6px} |
| + .seg{display:inline-flex;border:1px solid #cfd5df;border-radius:7px;overflow:hidden;font-size:12.5px;margin:0 0 14px} |
| + .seg span{padding:4px 12px;color:#6b7280}.seg .on{background:#eef3ff;color:#1f56d6;font-weight:600} |
| + .col{padding:14px 22px;overflow:hidden;display:flex;flex-direction:column;flex:1;min-width:0} |
| + .msg{background:#fff;border:1px solid #e6e9ef;border-radius:10px;padding:9px 12px;margin:0 0 10px;max-width:72%} |
| + .me{margin-left:auto;background:#eef3ff;border-color:#d4e0ff} |
| + .card{border:1px solid #dfe4ec;background:#fff;border-radius:8px;padding:10px 12px;margin:0 0 10px;max-width:72%} |
| + .card small{color:#6b7280} |
| + .compose{margin-top:auto;border:1px solid #cfd5df;border-radius:10px;padding:11px 13px;color:#9aa1ad;background:#fff} |
| + .c1{background:#1b1f27}.cP{background:#7a4cc2}.cD{background:#be185d}.cC{background:#c2410c}.cE{background:#1f56d6}.cR{background:#17703f}.cY{background:#6b7280} |
| + /* journey board */ |
| + table.j{border-collapse:separate;border-spacing:0;width:100%;font-size:13px} |
| + table.j th{font-weight:600;text-align:left;padding:6px 8px;border-bottom:1px solid #e6e9ef;font-size:12px;color:#6b7280;white-space:nowrap} |
| + table.j th .av{display:inline-flex;width:18px;height:18px;font-size:10px;border-radius:5px;vertical-align:-4px;margin-right:5px} |
| + table.j td{padding:9px 8px;border-bottom:1px solid #eef0f4;vertical-align:top} |
| + table.j td.job b{display:block}table.j td.job small{color:#6b7280} |
| + .cell{border-radius:6px;padding:4px 7px;font-size:12px;line-height:1.3} |
| + .cd{background:#e8f6ee;color:#17703f}.cc{background:#eef3ff;color:#1f56d6;font-weight:600}.cw{background:#fff4e5;color:#9a5b00;font-weight:600}.cn{color:#b4bac4}.cs{color:#c9ced6} |
| + .phone{width:290px;height:600px;flex:none;border:10px solid #1b1f27;border-radius:38px;padding:30px 12px 12px;box-sizing:border-box;overflow:hidden;font-size:13px} |
| + .pair{display:flex;gap:22px;align-items:flex-start}.pair .m{flex:1;min-width:0} |
| + .mini{display:flex;gap:2px;margin-top:5px}.mini i{width:22px;height:5px;border-radius:2px;background:#dfe3ea}.mini i.d{background:#17703f}.mini i.c{background:#1f56d6}.mini i.w{background:#d98a00}.mini i.s{background:transparent;border:1px dashed #dfe3ea;height:3px} |
| +</style> |
| + |
| +<h2>Workload in the rail, and a Journey view for the whole picture</h2> |
| +<p class="subtitle">Progress is the job's own steps, not a guessed percentage: green done, blue in progress, amber waiting on you, grey still to come. The conversation stays home; "Journey" is a second view in the same main pane, one click away.</p> |
| + |
| +<div class="sec"> |
| +<h3>1. Conversation view, with each function's tasks and progress in the rail</h3> |
| +<p>Each function shows what it holds right now. A task's bar is its steps inside that function. "Needs you" floats to the top.</p> |
| +<div class="pair"> |
| +<div class="m"> |
| + <div class="top"><b>CARLOS</b><span>Apps</span><span class="on">Team</span><span>Billing</span><span class="acct">Paul · tito</span></div> |
| + <div class="body"> |
| + <div class="rail"> |
| + <div class="sp on"><div class="av c1">◆</div><b>Coordinator</b><span class="ct">talking with you</span></div> |
| + <p class="lbl">Needs you · 1</p> |
| + <div class="task need" style="margin-left:8px"><b>CSV export to reports</b><small>with copy · "Net" or "Subtotal"?</small></div> |
| + <p class="lbl">Functions</p> |
| + <div class="sp"><div class="av cP">P</div><b>Product</b><span class="ct">1</span></div> |
| + <div class="task"><b>Checkout timeouts</b><small>comercio · finding the cause · 2 of 3</small><div class="steps"><i class="d"></i><i class="c"></i><i></i></div></div> |
| + <div class="sp"><div class="av cC">C</div><b>Copy</b><span class="ct">1 waiting</span></div> |
| + <div class="task need"><b>CSV export to reports</b><small>oficina · column labels · waiting on you</small><div class="steps"><i class="d"></i><i class="w"></i><i></i></div></div> |
| + <div class="sp"><div class="av cE">E</div><b>Engineering</b><span class="ct">1 · 1 queued</span></div> |
| + <div class="task"><b>Fix VAT rate on invoice PDF</b><small>oficina · writing the fix · 2 of 3</small><div class="steps"><i class="d"></i><i class="c"></i><i></i></div></div> |
| + <div class="task" style="opacity:.6"><b>Date picker off by a day</b><small>rastrillo · queued</small></div> |
| + <div class="sp"><div class="av cR">R</div><b>Review</b><span class="ct">1</span></div> |
| + <div class="task"><b>Retry failed webhooks</b><small>comercio · running checks · 2 of 2</small><div class="steps"><i class="d"></i><i class="c"></i></div></div> |
| + <div class="sp"><div class="av cD">D</div><b>Design</b><span class="ct">idle</span></div> |
| + </div> |
| + <div class="col"> |
| + <div class="seg"><span class="on">Conversation</span><span>Journey</span></div> |
| + <div class="msg me">The invoice PDF in oficina shows last month's VAT rate. Can you fix it?</div> |
| + <div class="msg">It's with engineering, who'll reproduce it before changing code.</div> |
| + <div class="card"><b>Fix VAT rate on invoice PDF</b> <small>· oficina</small> |
| + <div class="mini"><i class="s"></i><i class="s"></i><i class="s"></i><i class="c"></i><i></i></div> |
| + <small>with engineering · reproduced on main, writing the fix · 6 min · 31k tokens</small></div> |
| + <div class="msg me">What should I work on next?</div> |
| + <div class="msg">Product ranked open bugs and errors from the last 7 days. Top is comercio checkout timeouts, 41 errors. I've started product on it.</div> |
| + <div class="compose">Ask for a fix, a feature, or what's next</div> |
| + </div> |
| + </div> |
| +</div> |
| +<div class="phone"> |
| + <div style="font-weight:600;font-size:17px;margin:0 0 8px">Team</div> |
| + <p class="lbl" style="margin-left:0">Needs you</p> |
| + <div class="task need" style="margin:0 0 8px"><b>CSV export</b><small>with copy · "Net" or "Subtotal"?</small></div> |
| + <div class="sp" style="padding-left:0"><div class="av cP">P</div><b>Product</b><span class="ct">1</span></div> |
| + <div class="task" style="margin-left:0"><b>Checkout timeouts</b><div class="steps"><i class="d"></i><i class="c"></i><i></i></div></div> |
| + <div class="sp" style="padding-left:0"><div class="av cE">E</div><b>Engineering</b><span class="ct">1 · 1 queued</span></div> |
| + <div class="task" style="margin-left:0"><b>Fix VAT rate</b><div class="steps"><i class="d"></i><i class="c"></i><i></i></div></div> |
| + <div class="sp" style="padding-left:0"><div class="av cR">R</div><b>Review</b><span class="ct">1</span></div> |
| + <div class="task" style="margin-left:0"><b>Retry failed webhooks</b><div class="steps"><i class="d"></i><i class="c"></i></div></div> |
| +</div> |
| +</div></div> |
| + |
| +<div class="sec"> |
| +<h3>2. Journey view: every task's path through the functions</h3> |
| +<p>Rows are tasks, columns are functions in order. Each task only visits the functions it needs; a bug skips design and copy. The last column is you: answering, reviewing the branch, merging.</p> |
| +<div class="m"> |
| + <div class="top"><b>CARLOS</b><span>Apps</span><span class="on">Team</span><span>Billing</span><span class="acct">Paul · tito</span></div> |
| + <div class="body" style="height:auto"> |
| + <div class="col" style="padding-bottom:20px"> |
| + <div class="seg"><span>Conversation</span><span class="on">Journey</span></div> |
| + <table class="j"> |
| + <tr><th style="width:24%">Task</th><th><span class="av cP">P</span>Product</th><th><span class="av cD">D</span>Design</th><th><span class="av cC">C</span>Copy</th><th><span class="av cE">E</span>Engineering</th><th><span class="av cR">R</span>Review</th><th><span class="av cY">✓</span>You</th></tr> |
| + <tr><td class="job"><b>CSV export to reports</b><small>oficina · feature · 18 min</small></td> |
| + <td><div class="cell cd">scoped ✓</div></td><td><div class="cell cs">skipped</div></td><td><div class="cell cw">column labels<br>needs your answer</div></td><td><div class="cell cn">next</div></td><td><div class="cell cn">then</div></td><td><div class="cell cn">merge</div></td></tr> |
| + <tr><td class="job"><b>Fix VAT rate on invoice PDF</b><small>oficina · bug · 6 min</small></td> |
| + <td><div class="cell cs">skipped</div></td><td><div class="cell cs">skipped</div></td><td><div class="cell cs">skipped</div></td><td><div class="cell cc">reproduced ✓<br>writing the fix</div></td><td><div class="cell cn">next</div></td><td><div class="cell cn">merge</div></td></tr> |
| + <tr><td class="job"><b>Retry failed webhooks</b><small>comercio · bug · 41 min</small></td> |
| + <td><div class="cell cs">skipped</div></td><td><div class="cell cs">skipped</div></td><td><div class="cell cs">skipped</div></td><td><div class="cell cd">fixed ✓</div></td><td><div class="cell cc">reviewed ✓<br>running checks</div></td><td><div class="cell cn">merge</div></td></tr> |
| + <tr><td class="job"><b>Checkout timeouts</b><small>comercio · investigation · 9 min</small></td> |
| + <td><div class="cell cc">finding the cause</div></td><td><div class="cell cn">?</div></td><td><div class="cell cn">?</div></td><td><div class="cell cn">likely</div></td><td><div class="cell cn">then</div></td><td><div class="cell cn">decide</div></td></tr> |
| + <tr><td class="job"><b>Date picker off by a day</b><small>rastrillo · bug · queued</small></td> |
| + <td><div class="cell cs">skipped</div></td><td><div class="cell cs">skipped</div></td><td><div class="cell cs">skipped</div></td><td><div class="cell cn">queued, engineering is full</div></td><td><div class="cell cn">then</div></td><td><div class="cell cn">merge</div></td></tr> |
| + <tr style="opacity:.55"><td class="job"><b>Trim trailing slash in shop URLs</b><small>comercio · done yesterday</small></td> |
| + <td><div class="cell cs">skipped</div></td><td><div class="cell cs">skipped</div></td><td><div class="cell cs">skipped</div></td><td><div class="cell cd">✓</div></td><td><div class="cell cd">✓</div></td><td><div class="cell cd">merged ✓</div></td></tr> |
| + </table> |
| + </div> |
| + </div> |
| +</div> |
| +</div> |
| + |
| +</body></html> |
diff --git a/docs/superpowers/plans/2026-11-01-equipo-plan-1-foundation.md b/docs/superpowers/plans/2026-11-01-equipo-plan-1-foundation.md| new file mode 100644 |
| index 00000000..2ff6b061 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/2026-11-01-equipo-plan-1-foundation.md |
| @@ -0,0 +1,303 @@ |
| +# Equipo Foundation Implementation Plan |
| + |
| +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. This names the future execution method; writing this plan does not authorize implementation or agent dispatch. |
| + |
| +**Goal:** Paul can sign in to a lone Equipo instance on CARLOS, add projects, and use the rail and account-grouped Projects overview, with no agents running. |
| + |
| +**Architecture:** A Rastrillo app owns the team roster and project metadata in its activation database. The copied prototype remains a separately tested execution library, with a roster-backed Authority and team/project budget contracts; Foundation does not open its execution store or dispatch work in production. Use the framework's sidebar shell and server-rendered forms. |
| + |
| +**Tech Stack:** Go 1.25.0 or later; `amadan.net/oficina/equipo`; `amadan.net/rastrillo/rastrillo v0.28.0`; chi v5, GORM, cgo-free `modernc.org/sqlite`; embedded HTML and Rastrillo's `day` assets. |
| + |
| +**Spec:** `docs/superpowers/specs/2026-11-01-equipo-design.md`, revision 2; Foundation row of `docs/superpowers/plans/2026-11-01-equipo-roadmap.md`; scope clarified by `docs/superpowers/plans/CODEX-BRIEF-plan-1-foundation.md`. |
| + |
| +## Global Constraints |
| + |
| +- “An Equipo instance belongs to one team. Its members are the team's roster.” Use lone-instance identity and membership together (doctrine rulings 1 and 5). |
| +- “Everyone on the team shares projects and work; each person has their own coordinator.” Foundation implements shared records; coordinators are plan 3. |
| +- “Equipo is its own Go module, `amadan.net/oficina/equipo`.” It “does not import `oficina/suite` in the first milestone”. |
| +- “Product, Design, Copy, Engineering, Review”; categories with icons, never initials. Store settings only. |
| +- “Connections belong to people, not the team.” Do not create team-owned provider accounts or put credentials into project or specialist records. |
| +- “No split screen”; phone navigation is “drill-down index screens with a back link to the parent”. Default phone landing is the conversation. |
| +- “Before (1) and (2) exist, ‘connecting a CARLOS account’ in the first milestone means naming it and binding its apps to repositories by hand; it grants Equipo nothing.” No CARLOS signals or CLI-credential shortcut. |
| +- “Equipo never merges and never pushes the default branch.” No runner, model call, repository fetch, publishing, merge or deployment endpoint in Foundation. |
| +- “Copy for every user-facing string goes through copy review before it ships.” Mockup copy is unapproved. Put app copy in one file and review before insertion into runtime artifacts. |
| +- Estilo's ruling is `day`, identical to the framework theme. Use attribute grammar, vendored assets, and scriptless forms/navigation. |
| +- Browser writes name the authenticated person (doctrine ruling 9). Never accept an actor, role or team identity from submitted form fields. |
| +- Keep Go caches at their defaults. Scratch goes under on-disk `$TMPDIR`; stop processes and remove scratch at the end. Local servers bind explicitly to `127.0.0.1`. |
| +- Only the human deployment task below publishes the app. This planning session creates only this file, with no commits, pushes, other repository changes or agents. |
| + |
| +## Review Focus |
| + |
| +1. A removed member or demoted owner with an existing cookie loses access immediately; roster lookup failures fail closed. Task 3: `TestRosterChangesAffectExistingSession`. |
| +2. A crafted repository binding or submitted decision owner cannot redirect future work outside the saved project or assign authority to an outsider. Tasks 4 and 6: `TestProjectRejectsUnsafeBinding`, `TestAuthorityRejectsMismatchedTarget`. |
| +3. Concurrent reservations, a period boundary and an uncertain stopped attempt cannot make project/team usage disappear or admit overspend. Task 5: `TestPeriodBudgetReservations` and `TestTimeChargeWaitsForContainment`. |
| +4. Repeated boot, duplicate form submission and stale edits preserve records and settings without silently overwriting another person's changes. Tasks 3, 4 and 7: bootstrap, idempotency and revision tests. |
| +5. A narrow screen, long project name or disabled JavaScript still permits navigation and project creation; a failed count never becomes a confident zero. Tasks 8 and 9: overview error and browser tests. |
| + |
| +--- |
| + |
| +## Grounding and scope decisions |
| + |
| +Initial grounding used Equipo `5042a9e`, memoria `617eb2a` and Rastrillo `v0.28.0`. Round 1 revisions were checked at Equipo HEAD `b8bfd57`, against that same Rastrillo tag (tag object `86dd77b`, commit `58718d8`) and `/home/paulca/amadan.net/carlos/platform-team-service/internal/team`. Prototype HEAD is `cb280f7`; its package diff against `ceee7a67` is empty. Copy from `ceee7a67`. |
| + |
| +| Source | Decision | |
| +|---|---| |
| +| Rastrillo `cmd/rastrillo/new.go` at `v0.28.0` | Generate the day/sidebar scaffold in scratch; this tag has no `--auth` flag. | |
| +| Rastrillo `ui` sidebar and `DESIGN.md` | Use the shipped shell and its phone index; its implemented navigation takes precedence over the older generic disclosure prose. | |
| +| Rastrillo `auth/auth.go`, `ui/partials/signin.html`, `pow/guard.go` | Use `SigninScreen` with the shipped partial and a `NoProof` guard; keep token age and single-use checks. | |
| +| Rastrillo `cmd/rastrillo/migration.go` | Nest the execution core under `internal/equipo` so the CLI finds one app. | |
| +| memoria app, auth and release files | Reuse app composition, fail-closed admission and human deployment conventions, adapted to the pinned Rastrillo APIs. | |
| +| memoria drive and local startup script | Keep local tooling separate and loopback-only; copy no secrets, addresses or production auth bypass. | |
| +| Prototype `internal/team` and `internal/teamcontract` at `ceee7a67` | Copy the execution library and contracts; rewrite the two contract imports, without extracting console code. Keep call settlement intact and add separate attempt-time accounting. | |
| +| estilo README; suite doctrine rulings 1, 5, 9 and §8 | Use `day`, one roster and the actual actor; Foundation has no provider egress. | |
| + |
| +**Boundary:** no task form, runner protocol, connections discovery, live counters, product ranking, coordinator, preference learning, evidence extensions or plan editor. Preserve prototype evidence, fencing and recovery tests. Add owner-only quarantine release in plan 2 before opening the execution store for live jobs; append/cancel-unstarted-step operations and plan revision events belong to plan 3. Neither is required for metadata-only Foundation. Removing the source packages from platform is separate work. |
| + |
| +The spec's full phone landing preference belongs with personal settings in plan 3. Foundation opens `/conversation` by default and provides `/work` explicitly. The brief pulls the basic phone shell forward from roadmap row 4; it does not pull forward the whole phone product. |
| + |
| +## File structure and contracts |
| + |
| +All paths below are relative to this repository unless absolute. Existing files are only the README, spec, roadmap, briefs and mockups. All application names/signatures below are **new planned interfaces**, not claims that they already exist. |
| + |
| +- `cmd/equipo/main.go`: configuration, activation, database lifetime, serving; no execution-store startup. |
| +- `internal/equipo/{app,config,auth,render,models,migrations}.go`: composition, sign-in, embedded templates/assets, app schema. |
| +- `internal/equipo/{roster,projects,specialists,authority,budgets}.go`: focused metadata services and prototype adapters. `store.go` holds shared transaction/error helpers. |
| +- `internal/equipo/team/*.go`, `internal/equipo/teamcontract/*_test.go`: copied core and external contracts; the core keeps its own SQLite migrations, witness and lock protocol. They do not enter app `Models` or `BootSchema`. |
| +- `internal/equipo/templates/{layout,signin_page,index,empty,projects,project,project_form,people,settings,specialist}.html`, `internal/equipo/static/equipo.css`, `internal/equipo/icons/icons.go`: shell, forms and icons; `signin_page.html` wraps the framework `signin` partial without redefining it. Scaffold static assets stay byte-identical to the library. |
| +- `internal/equipo/copy.go`: sole app-owned runtime copy source, with stable keys and copy-review status. Scaffold boilerplate, accessible names, errors and email text count too; framework-owned strings stay framework-owned. |
| +- `internal/equipo/migrations/0001_init.sql`, subsequent additive migrations and `schema.sql`; `Models []any` describes app tables only. |
| +- `internal/equipotest/`: HTTP, migration, asset, gate and browser tests. Core tests remain beside their packages. |
| +- `Makefile`, `.amadan/ci`, `.amadan/ci.d/`, `.rastrillo/budgets.txt`, `.gitignore`, `go.mod`, `go.sum`, `AGENTS.md`, `CLAUDE.md`, `manifest/README.md`: scaffold conventions and gates. Preserve existing `docs/`. |
| +- `run.sh`, `tools/drive/main.go`, `README.md`: local operation and reviewed human deployment instructions. |
| + |
| +Shared app types: `Role string` with only `owner` and `member`; `Actor{Address string}` derived from a verified session; `Member{Address string; Role Role; Revision int64; Active bool}`. Normalize lone-instance addresses with trim/lowercase, as memoria and doctrine specify. `Team{ID string; Name string; RosterEpoch int64}` has one persisted random ID, independent of CARLOS labels. App sentinel errors are `ErrForbidden`, `ErrNotFound`, `ErrConflict`, `ErrInvalid`, `ErrUnavailable`. |
| + |
| +`Store` wraps `*db.DB`; `NewStore(d *db.DB) *Store`. Mutators authorize the supplied trusted `Actor` against current roster rows inside their write transaction. Each mutation appends `AuditEvent{ID int64; Actor, Kind, RecordID string; At time.Time}` in that transaction; never audit credentials. `NewStore` itself grants nothing. HTTP middleware obtains the actor, and handlers never bind requests onto GORM models. |
| + |
| +## Task 1: Create the Rastrillo app and its gate |
| + |
| +**Files:** Create the scaffold files listed above, `internal/equipotest/foundation_test.go`; modify `README.md` only with reviewed setup prose. Reserve `copy.go` for reviewed strings; keep unapproved scaffold copy out of shipping artifacts. |
| + |
| +**Interfaces:** Consume the pinned Rastrillo APIs. Produce `App(d *db.DB, cfg Config, mailer mail.Sender, logger *slog.Logger) (*http.ServeMux, error)`, `Config{Origin, InstanceKey string; Owners []string; AllowLoggedMail bool}`, `LoadConfig(getenv func(string) string) (Config, error)`, `Schema`, `BootSchema`, `Models`, and the `Store` contract above. Keep the scaffold decomposition with `Router(d *db.DB, cfg Config, mailer mail.Sender, logger *slog.Logger) (chi.Router, error)`, `Mux(r http.Handler) *http.ServeMux` and `Configure(opts *rastrillo.Options, mux *http.ServeMux, started time.Time)`; update the generated HTTP/browser/performance harness callers together. Preserve `TestPerfScreens` and its `perftest.ScreenConfig.Signin` hook; Task 3 supplies a capturing-mailer sign-in helper, and Task 8 measures the private pages with its session cookie. Until Task 3, private routes return service unavailable rather than an unauthenticated scaffold page. |
| + |
| +- [ ] **Step 1: Write failing boot/gate tests.** `TestFoundationFailsClosed` requires an unauthenticated private request to fail, an empty key, invalid origin or incomplete SMTP config to reject boot. (Missing owners on an empty DB is Task 3's `TestRosterBootstrapOnce`, since `Bootstrap` is a Task 3 interface.) `TestFoundationMigratesTwice` applies `BootSchema` twice without losing a row. `TestCIGateSteps` checks executable CI wrappers call the same Make targets. Assertion examples: |
| + |
| + ```go |
| + // TestFoundationFailsClosed |
| + if err == nil { t.Fatal("missing production configuration accepted") } |
| + if response.Code == http.StatusOK { t.Fatal("private page served before auth") } |
| + // TestFoundationMigratesTwice |
| + if len(second.Applied) != 0 { t.Fatal("migration repeated on second boot") } |
| + ``` |
| + |
| +- [ ] **Step 2: Establish the red result.** Run `go test ./internal/equipotest -run 'TestFoundation|TestCIGateSteps' -count=1`; before scaffold creation the missing module/package is the expected failure. Once a compileable scaffold exists, also observe the behavioral auth refusal fail before adding the guard. |
| +- [ ] **Step 3: Generate and adapt the scaffold.** In a fresh directory made by `mktemp -d "$TMPDIR/equipo-scaffold.XXXXXX"`, run `go run amadan.net/rastrillo/rastrillo/cmd/rastrillo@v0.28.0 new --theme day --shell sidebar equipo`. Select its files into this existing checkout, preserving design documents; rewrite scaffold `equipo/internal/...` imports and module declaration to `amadan.net/oficina/equipo`. Set the Go floor to `1.25.0`, retain the pinned CLI tool dependency and run `go mod tidy`. Do not commit a local `replace`. Remove the example Note model before the first app migration ships. Before adding any new app-owned copy in this or later tasks, use the copy-review gate described in Task 8; its placement there does not postpone approval of earlier strings. |
| +- [ ] **Step 4: Wire configuration and gates.** Use `rastrillo.Resolve(rastrillo.Options{DBPath: "equipo.db", Logger: logger})`, `db.Open(opts.DBPath, logger)`, app construction, then `rastrillo.Serve(opts)` with `opts.DBPath = ""` after the app opens it. Require `EQUIPO_ORIGIN`, `EQUIPO_INSTANCE_KEY`, plus both `CARLOS_SMTP_HOST` and `CARLOS_SMTP_FROM`, or explicit local-only `EQUIPO_ALLOW_LOGGED_MAIL=1`. Reject logged mail on a public production origin. `EQUIPO_OWNERS` is required only to bootstrap an empty DB; after the team exists, ignore it, including changes or absence. Enforce that requirement in `Bootstrap`, where DB state is known. This pinned release predates `carlos.InstanceKey`; do not call that HEAD-only function. Use `mail.FromEnv("CARLOS", logger)`. Keep `Schema = migrate.MustFromFS(migrationFS, "equipo")` and `BootSchema = migrate.Merge(sessions.Schema, auth.Schema, pow.Schema, Schema)`; apply with `migrate.Apply`. CI includes build, vet, formatting, tests and `go run amadan.net/rastrillo/rastrillo/cmd/rastrillo migration check`, plus the scaffold's static/security checks. Update AGENTS to shared-team data, copy review, `make ci`, and no autonomous merge/deploy; remove its generic per-user `scope.Owned` instruction. |
| +- [ ] **Step 5: Verify.** Run the targeted tests, `make migration-check`, and `make build`; expect PASS, no schema drift, and cgo-free compilation. Remove scaffold scratch. Prove a removed CI target fails `TestCIGateSteps`, then restore it. |
| +- [ ] **Step 6: Commit during implementation.** Stage only Task 1 files; `git commit -m "feat: scaffold Equipo foundation"`. |
| + |
| +## Task 2: Move the prototype and preserve its contracts |
| + |
| +**Files:** Create every tracked source/test file from the two prototype directories under `internal/equipo/team/` and `internal/equipo/teamcontract/`; update `go.mod`, `go.sum`; create `internal/equipotest/core_imports_test.go`, `internal/equipo/team/main_test.go`, `internal/equipo/teamcontract/main_test.go`; modify `.rastrillo/budgets.txt`. |
| + |
| +**Interfaces:** Preserve `team.Open(ctx context.Context, path string, o team.Options) (*team.Store, error)`, `team.Authority.Introspect(context.Context, team.AdmissionRequest) (team.Admission, error)`, `Store.Resume`, `Store.Close`, and all existing record APIs. Preserve behavior; changes beyond imports are test-budget instrumentation and its narrowly scoped exception. |
| + |
| +- [ ] **Step 1: Write the import boundary test.** `TestCoreHasNoPlatformDependency` parses copied Go imports, rejects any platform or suite import, and requires both contract test files to import `amadan.net/oficina/equipo/internal/equipo/team`. |
| +- [ ] **Step 2: Observe failure.** Copy the tracked bytes from `git show ceee7a67:<path>` in the source repository, including tests and OS build tags, then run `go test ./internal/equipo/team ./internal/equipo/teamcontract -count=1`. Expect the contract package's forbidden platform-internal import to fail before rewriting it. |
| +- [ ] **Step 3: Fix module boundaries only.** Rewrite the two contract imports; resolve `modernc.org/sqlite` and `golang.org/x/sys` through the app module. Preserve fixture evaluators, fake adapters, clock injection, conservative unknown usage, locks and witness files. No production fixture runner and no unrelated core rewrite. Add `TestMain(m *testing.M)` calling `os.Exit(budget.Main(m))` in both copied test packages, using `amadan.net/rastrillo/rastrillo/budget`, as the scaffold gate requires. The copied core has 5,243 source lines, already over the 5,000 default; record a specific `size internal/equipo/team 6500 -` exception with a reason naming the preserved transactional core and this budget extension. Keep the 8,000 test-line default and all other package limits; do not split a proven store just to satisfy the initial copy gate. |
| +- [ ] **Step 4: Verify.** Run the two core packages and `go test ./internal/equipotest -run TestCoreHasNoPlatformDependency -count=1`; all original tests must pass. Run `make migration-check` to prove nested core directories do not confuse app discovery. Run `make budget` and the normal instrumented `make test` gate as well. No test run against the external repository is required. |
| +- [ ] **Step 5: Commit with provenance.** Stage copied packages and module/import test changes. Use subject `feat: move the team prototype into Equipo`; body `Copied internal/team and internal/teamcontract from carlos/platform ceee7a67. Platform removal is separate work.` Supply the body as a separate `git commit -m` argument, producing a real blank line. |
| + |
| +## Task 3: Persist the roster and wire sign-in |
| + |
| +**Files:** Create `internal/equipo/{store,roster,auth}.go`, `internal/equipo/templates/signin_page.html`, `internal/equipotest/{auth,roster}_test.go`; modify app configuration, models, migrations, rendering and composition. Keep the shared email-link helper in `internal/equipotest/auth_test.go` for HTTP, browser and performance callers. |
| + |
| +**Interfaces:** Produce `(*Store).Bootstrap(ctx context.Context, owners []string) error`, `Member(ctx context.Context, address string) (Member, error)`, `SetMember(ctx context.Context, actor Actor, address string, role Role, active bool, revision int64) error`; `NewAuth(d *db.DB, cfg Config, mailer mail.Sender, store *Store, logger *slog.Logger) (*auth.Auth, error)`; middleware `requireMember(next http.Handler) http.Handler` on the app. |
| + |
| +- [ ] **Step 1: Write tests.** `TestRosterBootstrapOnce` checks that an empty DB with no `EQUIPO_OWNERS` refuses to boot, then one team and normalized unique owners across two boots; changed or absent `EQUIPO_OWNERS` after first boot cannot add or resurrect members. `TestRosterProtectsLastOwner` tests store calls: last active owner cannot be removed/demoted, and a member cannot promote themselves. `TestRosterChangesAffectExistingSession` uses a test-only private handler behind the production middleware: demotion keeps the session but denies owner store mutations; removal deletes every session for that subject, and re-adding the member cannot revive an old cookie. A DB lookup failure on a still-valid session returns 503. `TestSigninAdmission` signs in owner/member through a capturing mailer, denies an outsider and invalid cookies, and checks that `Authorize` returns false on a DB error. `TestSigninCSRF` covers the mounted auth POST routes only; roster HTTP checks wait for Task 8. `TestAuthProductionConfig` applies `BootSchema` and calls the production `NewAuth`, requiring `auth.New` to succeed with its real guard and no `ProofOff`. `TestSigninNoProof` asserts that missing, premature and replayed tokens send no mail (the framework answers with a 303 to `err=check`; assert on the capturing mailer, not the status) and that a valid aged token sends one link without JavaScript. Assert: |
| + |
| + ```go |
| + if !errors.Is(err, equipo.ErrForbidden) { t.Fatal("member changed roster") } |
| + if response.Code != http.StatusServiceUnavailable { t.Fatal("roster failure hidden") } |
| + if teamCount != 1 || memberCount != 2 { t.Fatal("bootstrap duplicated records") } |
| + ``` |
| + |
| +- [ ] **Step 2: Run red tests.** `go test ./internal/equipotest -run 'TestRoster|TestSignin|TestAuthProductionConfig' -count=1`; expect missing interfaces or failed assertions before wiring admission. |
| +- [ ] **Step 3: Implement the roster.** Bootstrap in one transaction only when the team row is absent; persist monotonically increasing `RosterEpoch` on changes. Seed owners from the configured list, then use the DB as authority. Attribute the initial seed audit to `bootstrap`, not to a person who has not signed in. Roster changes use revision checks and preserve at least one owner. On removal, delete rows in the framework `sessions` table for the normalized subject in the same transaction as the roster update and audit; failure rolls back the removal. Keep the live roster check as well. Task 4 adds the assigned-decision-owner removal rule once projects exist. Missing rows are `ErrNotFound`; DB errors remain `ErrUnavailable`. |
| +- [ ] **Step 4: Wire existing auth.** After `BootSchema`, create `pow.New` with the instance key, `Nonces: pow.SQLNonces(d.Writer())`, `Difficulty: pow.NoProof` and `MinAge: pow.DefaultMinAge` (three seconds). Pass the guard as `Proof` to the process's single `auth.New`; leave `ProofOff` false. Set `Authorize` to return true only for current active members, false on missing rows or any DB error; `SubjectFor` returns the normalized address. Keep `KeymailServers: []string{"keymail.dev"}` and the supplied mailer/key/origin. |
| + |
| + Schedule `Auth.Sweep` and the nonce store's sweep hourly from the app's background loop so spent tokens and old links are pruned. Session creation after a racing removal is closed by checking a per-member removal epoch in `requireMember`: a session created before the member's latest re-add is refused. Choose `SigninScreen: true` and the shipped `ui` `signin`/`signin-title` partials in a stage-layout `signin_page.html` wrapper. Build the state with `Auth.SigninState(r)`, call `PrepareSigninResponse`, then render; wire `RenderConfirm` to that renderer. The partial includes `.State.Proof.Fields` on Begin forms and checks `NeedsScript`, so this `NoProof` configuration needs no `pow.Assets()` or script URLs. Verified at the tag in `ui/partials/signin.html`, `TestSigninNoProofRendersAnEnabledSubmit` and `TestBrowserNoProofWorksWithoutJavaScript`. |
| + |
| + Mount GET `/signin`, POST `/auth/begin`, GET `/auth/callback`, GET and POST `/auth/verify`, POST `/auth/forget`, and POST `/signout`; set `BeginPath` and `ForgetPath` to those mounted paths. Protect mutating routes with `csrf.Protect(cfg.Origin)`. Private routes use `Auth.RequireSession`, then `auth.From(r)` and a live roster lookup. Preserve framework keymail, email fallback, rate limiting and cookies. |
| + |
| + The shared test helper GETs `/signin?force=1`, keeps cookies, submits the rendered challenge fields after `MinAge` with a same-origin POST, captures the email link, GETs its confirmation page and POSTs its token to Verify. In HTTP/performance tests, resolve the link’s path and query against the test server base URL and send the configured Origin on POSTs. Use this forced email path without external DNS/provider calls, including browser and performance setup; never construct a session token or log a link in production. Keymail callback coverage remains in Rastrillo: its fake requires unexported `a.guard.base` and cannot be copied into an app test. |
| +- [ ] **Step 5: Verify.** Run the targeted tests plus `make migration-check`; exercise both red and green cases for removal and nil-auth startup. A nil auth handle must never grant access. |
| +- [ ] **Step 6: Commit.** Stage Task 3 files; `git commit -m "feat: add lone-instance membership and sign-in"`. |
| + |
| +## Task 4: Store CARLOS labels, projects and decision owners |
| + |
| +**Files:** Create `internal/equipo/projects.go`, `internal/equipotest/projects_test.go`; modify `internal/equipo/roster.go`, `internal/equipotest/roster_test.go`, models and additive migrations. |
| + |
| +**Interfaces:** Produce `Account{ID int64; Label string; Revision int64}` and `Project{ID, AccountID int64; Name, Repository, AppName, DefaultBranch string; Kind ProjectKind; Revision int64}`. `ProjectKind` accepts only `app`, `website` or `repository`. Enforce team-wide uniqueness on canonical `(Repository, AppName)`, with absent app stored as an empty string, so one repository can host distinct apps. `DecisionOwner{ProjectID int64; Decision, Address string}` stores decision keys `work`, `merge`, `copy`, `design`, `product`. Produce `SaveAccount(ctx context.Context, actor Actor, account Account) (Account, error)`, `SaveProject(ctx context.Context, actor Actor, project Project, owners []DecisionOwner, requestID string) (Project, error)`, `Projects(ctx context.Context) ([]ProjectGroup, error)`, and `Project(ctx context.Context, id int64) (ProjectDetail, error)` on `Store`. `ProjectGroup{Account Account; Projects []ProjectDetail}`; `ProjectDetail{Project Project; Owners []DecisionOwner}`. ID zero creates; existing IDs require exact revisions. |
| + |
| +- [ ] **Step 1: Write tests.** `TestProjectsSharedAndGrouped` creates two account labels and three projects spanning all kinds, one without an app; both members read all three in stable label/name order. `TestProjectRejectsUnsafeBinding` rejects non-Amadan hosts, userinfo, query/fragment, missing owner/repo, path traversal and encoded separators. `TestProjectOwnersAreMembers` rejects inactive/unknown addresses and duplicate decision keys; every project requires `work` and `merge` owners. `TestProjectRetryAndRevision` replays an identical request ID without duplication; different content under that ID conflicts; stale update preserves the saved record and owners. `TestProjectKindsAndDefaultBranch` accepts all three kinds, rejects unknown kinds and missing/invalid default branches, and persists an owner-entered branch across reopen. `TestProjectBindingUniqueness` permits two apps on one repository and rejects duplicate repository/app pairs, including blank-app duplicates. `TestRosterRemovalWhileAssigned` refuses removal while any decision assignment remains, then allows removal after reassignment; rollback preserves both roster and sessions. Test hostile HTML as a valid display name, not executable markup. |
| + |
| + ```go |
| + if len(groups) != 2 { t.Fatal("account groups lost") } |
| + if !errors.Is(err, equipo.ErrInvalid) { t.Fatal("unsafe binding accepted") } |
| + if before.ID != retried.ID { t.Fatal("retry created a second project") } |
| + ``` |
| + |
| +- [ ] **Step 2: Run red tests.** `go test ./internal/equipotest -run 'TestProjects|TestProject|TestRosterRemovalWhileAssigned' -count=1`. |
| +- [ ] **Step 3: Implement metadata transactions.** Only team owners configure account labels, repository/app bindings and decision owners; all active members can read. Accept `amadan.net/<owner>/<repo>` or its HTTPS spelling, canonicalize to the forge-qualified form `amadan.net/<owner>/<repo>` (the same spelling `team.TargetBinding.Repository` uses, so Authority compares like with like) with exactly two non-empty path segments, and store no credential. Blank `AppName` is valid for `repository` and `website` projects; an `app` project requires one; a `repository` project must leave it blank. Require kind and owner-entered `DefaultBranch` in the record and create/edit form. Use one validated canonical branch-name spelling for saved branches and target refs. Do not probe repositories or CARLOS. Refuse roster removal while any project decision is assigned to that member; check this inside the removal transaction. Validate owners within the same transaction as the project write, use allowlisted form DTOs later, and audit the actual person. Store idempotency keys with the actor, operation and input hash. A CARLOS label is display metadata, never a `team.AccountID` or authority boundary. |
| +- [ ] **Step 4: Verify.** Run the targeted tests and `make migration-check`; close/reopen the app DB and verify the same grouping and owner assignments. New form IDs are unique per rendered form; duplicate submit has one effect. |
| +- [ ] **Step 5: Commit.** Stage Task 4 files; `git commit -m "feat: add projects and decision ownership"`. |
| + |
| +## Task 5: Define and test team/project limits |
| + |
| +**Files:** Create `internal/equipo/budgets.go`, `internal/equipo/team/periodbudget.go`, `internal/equipo/team/periodbudget_test.go`, `internal/equipotest/budgets_test.go`; modify app models/migrations and core `model.go`, `jobs.go`, `budget.go`, `scheduler.go`, `store.go`, plus recovery/migration tests. |
| + |
| +**Interfaces:** New core `ProjectID int64`; `PeriodLimits{Calls, InputTokens, OutputTokens, Seconds int64}`; `BudgetSet{Revision int64; Team PeriodLimits; Projects map[ProjectID]PeriodLimits}`; `PeriodUsage{Reserved, Spent PeriodLimits}`. Add `Project ProjectID` to `JobSpec`/`Job` and `ConfigureBudgets(ctx context.Context, account AccountID, expectedRevision int64, budgets BudgetSet) error`, `PeriodUsage(ctx context.Context, account AccountID, project ProjectID, at time.Time) (PeriodUsage, error)` to `team.Store`; project zero requests team totals. App `BudgetConfig{Revision int64; Team team.PeriodLimits; Projects map[team.ProjectID]team.PeriodLimits}` is persisted in the app DB; `(*Store).SaveBudgets(ctx context.Context, actor Actor, config BudgetConfig) error` and `Budgets(ctx context.Context) (BudgetConfig, error)` manage it. |
| + |
| +- [ ] **Step 1: Write budget tests.** `TestBudgetConfiguration` pins owner-only changes, positive explicit limits, project limits no larger than team limits, unknown project rejection, overflow refusal and revision conflict. `TestBudgetLoweringBelowUsage` permits an otherwise valid lower limit below charged usage, preserves existing work/accounting, and blocks new reservations until headroom returns; test both app save and core configuration. `TestPeriodBudgetReservations` uses the fake clock: project A permits 2 calls, B permits 2, team permits 3; three one-call reservations succeed, fourth fails even across projects. Independently exhaust input tokens, output tokens and seconds. Concurrent last-slot requests yield exactly one success. `TestTimeChargeWaitsForContainment` reserves a 1,200-second attempt under a 1,500-second project ceiling: a second attempt is rejected; cancellation/lease expiry alone does not refund it; confirmed containment at 300 seconds settles 300, releasing 900 exactly once. `TestBudgetPeriodBoundary` advances from November to December UTC: settled November usage leaves December, unresolved usage remains charged, and a late receipt is counted once. `TestProjectBudgetMigration` opens a pre-extension DB and preserves existing jobs/ledger/witness behavior. `TestTimeReservationsDoNotChangeCallLedger` proves Claim/Contain do not create call reservations or alter `Ledger`, and receipt/audited settlement cannot touch time rows; repeat across cancellation, Release, Complete and reopen/Resume. Include containment retries, elapsed time above the reserve, and a period boundary. `TestConfiguredBudgetDropsAccountCostCap` isolates the old account cost ceiling from job/per-call limits and proves only the configured period hierarchy replaces it. |
| + |
| + ```go |
| + if !errors.Is(err, team.ErrBudget) { t.Fatal("team ceiling bypassed") } |
| + if successes != 1 { t.Fatal("last budget slot was not atomic") } |
| + if usage.Spent.Seconds != 300 { t.Fatal("contained time settled incorrectly") } |
| + ``` |
| + |
| +- [ ] **Step 2: Run red tests.** `go test ./internal/equipo/team -run 'TestPeriodBudget|TestTimeCharge|TestTimeReservations|TestBudgetPeriod|TestBudgetLowering|TestProjectBudget|TestConfiguredBudget' -count=1` and `go test ./internal/equipotest -run 'TestBudgetConfiguration|TestBudgetLoweringBelowUsage' -count=1`. |
| +- [ ] **Step 3: Implement metadata limits.** Use calendar months in UTC as the explicit Foundation period choice; spec leaves period length to the builder. Start with no configured budget, represented as unavailable/unset, never unlimited or fictitious spend. The owner must supply team limits before project limits, and project limits before any future job. Persist no invented numeric production defaults. Account roll-ups sum their projects using checked integer arithmetic. |
| +- [ ] **Step 4: Add period checks and separate time reservations.** Map core `AccountID` to persisted `Team.ID`. Configured jobs require a known nonzero project; children keep their parent's project. Check team/project totals atomically at call reservation and Claim. Configured period limits replace the lifetime account aggregate check, including its account-level `CostMicros` ceiling: `PeriodLimits` has no currency field. Preserve job/ancestor, per-call, pricing and concurrency limits, and legacy account checks in unconfigured fixture mode. `ConfigureBudgets` uses revision checks and permits lowering below usage; new reservations then fail until they fit. |
| + |
| + Add `time_reservations` keyed uniquely by attempt, recording team/project/job, original UTC period, reserved seconds, settled seconds and settlement state/time. Claim reserves `AttemptSeconds` atomically with the attempt. Only successful `Contain` settles elapsed time from attempt creation using the injected clock, once; overrun stays charged. Cancellation, lease expiry, Complete, Release and recovery leave uncontained time reserved. Count time only in period checks/`PeriodUsage`; leave `Usage`, call `reservations`, `Ledger`, receipt settlement and `SettleAudited` unchanged. |
| + |
| + Both call and time period totals count every open row regardless of its age and settled usage in its original reservation month. Use checked arithmetic, preserve history and add core migrations without changing witness/fence/lock guarantees. Production must configure the hierarchy before future job creation. |
| +- [ ] **Step 5: Verify.** Run targeted tests and both full core packages once. Preserve these existing call-ledger regressions: `TestReservationLimitsAndOverflow`, `TestSettlementRules`, `TestLateUsageAfterCancelAndAuditedSettlement`, `TestEveryReplayClassRetainsUnknownUsage`, `TestAuditedUnknownUsageDoesNotQuarantineOtherJobs`, `TestConcludeRevokesUnusedIntents` and `TestFixture`. Keep evidence, cancellation, unknown-outcome and restore tests green; app migrations still pass. Positive `CostMicros` policy validation and job/per-call enforcement remain; only the configured account aggregate cap is dropped. Subscription-policy relaxation remains plan 2. |
| +- [ ] **Step 6: Commit.** Stage Task 5 files; `git commit -m "feat: add team and project period limits"`. |
| + |
| +## Task 6: Implement Authority from roster and project ownership |
| + |
| +**Files:** Create `internal/equipo/authority.go`, `internal/equipotest/authority_test.go`; consume roster/project schemas without introducing a console grant table. |
| + |
| +**Interfaces:** `NewAuthority(store *Store, clock team.Clock) *RosterAuthority`; `(*RosterAuthority).Introspect(ctx context.Context, req team.AdmissionRequest) (team.Admission, error)`; `GrantRef(projectID int64, address string) string`. Grant refs use versioned JSON encoded with raw URL-safe base64, containing only project ID and canonical address; they are references, not credentials. `team.AccountID` must match persisted `Team.ID`. `Admission.Version` is the project's revision; `Admission.Epoch` is `RosterEpoch`; admissions last exactly five seconds. |
| + |
| +- [ ] **Step 1: Write tests.** `TestAuthorityUsesLiveRoster` admits a current `work` decision owner and a team owner, then rejects a removed member or reassigned work owner. `TestAuthorityRejectsMismatchedTarget` rejects unknown/malformed grants, wrong team, wrong repository, business targets, unknown operations, a mismatched app, a `DefaultRef` different from saved `Project.DefaultBranch`, and any `Ref` equal to that saved branch. Include a forged `DefaultRef="other"` with `Ref` set to the real default, across every allowed operation; a valid review branch with the saved default is admitted. `TestAuthorityFailureIsNotRevocation` injects a failed DB read and requires `team.ErrAuthorityUnavailable`, distinct from `team.ErrGrantRevoked`. `TestAuthoritySnapshotChanges` requires project revision/roster epoch changes and `ExpiresAt.Sub(IssuedAt) == 5*time.Second`. |
| + |
| + ```go |
| + if !errors.Is(err, team.ErrGrantRevoked) { t.Fatal("wrong repository admitted") } |
| + if !errors.Is(err, team.ErrAuthorityUnavailable) { t.Fatal("outage treated as revocation") } |
| + if admission.ExpiresAt.Sub(admission.IssuedAt) != 5*time.Second { t.Fatal("bad admission TTL") } |
| + ``` |
| + |
| +- [ ] **Step 2: Run red tests.** `go test ./internal/equipotest -run TestAuthority -count=1`. |
| +- [ ] **Step 3: Implement a read-only Authority.** Resolve grant identity and current project/roster in one DB read transaction. Allow `OpJobContinue`, `OpAttemptContinue`, `OpProviderCall` and `OpForgePublish` only for a current team owner or the project's `work` owner. For every admission, match repository and app to the saved project, require `Target.DefaultRef == Project.DefaultBranch`, and reject an empty `Target.Ref` or one equal to the saved default. Compare validated canonical branch names; job-supplied `DefaultRef` is never the authority. `OpForgePublish` grants publication only to that review ref, never merge. Reject `OpTrackerPublish` until its product contract exists. Other decision owners are routing records, not implicit execution permission. Return prototype errors with `errors.Is` compatibility. The later trusted job-creation adapter must derive `GrantRef` and requester from the authenticated person; possession of a ref never authorizes an HTTP request. No runner-facing endpoint is added here. |
| +- [ ] **Step 4: Verify integration.** In tests only, open `team.Open` with this Authority and fake adapters; call `Resume`, create a job, change ownership, and prove the next admission is stale or revoked. Run authority tests and the core contracts. Production `cmd/equipo` still opens only the app DB; execution-store persistence/replication and restore release must be resolved in plan 2 before enabling runners. |
| +- [ ] **Step 5: Commit.** Stage Task 6 files; `git commit -m "feat: authorize core work from the instance roster"`. |
| + |
| +## Task 7: Seed specialist records and their settings |
| + |
| +**Files:** Create `internal/equipo/specialists.go`, `internal/equipotest/specialists_test.go`; modify models and migrations. |
| + |
| +**Interfaces:** `Specialist{Key, ModelSelection, Provider, ModelFamily, Model, StandingInstructions string; MaxConcurrent int; Revision int64}`; `(*Store).Specialists(ctx context.Context) ([]Specialist, error)`; `SaveSpecialist(ctx context.Context, actor Actor, specialist Specialist) error`. Stable keys in order: `product`, `design`, `copy`, `engineering`, `review`. |
| + |
| +- [ ] **Step 1: Write tests.** `TestSpecialistsSeedOnce` requires exactly the five keys in order after two boots; edited instructions survive. `TestSpecialistSettings` permits owner writes, denies member writes, rejects unknown keys/modes, nonpositive concurrency and stale revisions. Records default to `ModelSelection="best_fit"`, concurrency 1, blank provider/family/model/instructions. These are builder-chosen inactive settings, not allocated accounts. `TestSpecialistsHaveNoRuntime` proves startup/settings edits do not create a core job or make a provider call. |
| + |
| + ```go |
| + if strings.Join(keys, ",") != "product,design,copy,engineering,review" { t.Fatal("wrong specialists") } |
| + if saved.StandingInstructions != instructions { t.Fatal("boot overwrote settings") } |
| + if jobs != 0 || calls != 0 { t.Fatal("settings started work") } |
| + ``` |
| + |
| +- [ ] **Step 2: Run red tests.** `go test ./internal/equipotest -run TestSpecialist -count=1`. |
| +- [ ] **Step 3: Implement seed and settings.** Seed missing keys transactionally during bootstrap, without overwriting existing rows. Accept model selection modes `best_fit` and `fixed`; fixed requires provider/family/model fields, but does not connect or validate a remote account. UI leaves these unset until configured. Do not hard-code current model names. Preserve the spec's different-family Review rule as a plan 2 assignment constraint; two stored defaults cannot prove that a future builder/reviewer pair is independent. |
| +- [ ] **Step 4: Verify.** Run tests and `make migration-check`; close/reopen and compare settings. All five categories remain visible when unconfigured. |
| +- [ ] **Step 5: Commit.** Stage Task 7 files; `git commit -m "feat: seed specialist settings without execution"`. |
| + |
| +## Task 8: Build the rail, empty screens and Projects overview |
| + |
| +**Files:** Create the planned templates, `internal/equipo/{navigation,handlers}.go`, `internal/equipo/static/equipo.css`, `internal/equipotest/pages_test.go`; modify `internal/equipotest/perf_test.go`, `render.go`, `copy.go`, `app.go`, icons. |
| + |
| +**Interfaces:** Produce `NavItem{Key, Group, Href, CopyKey, Icon string}` and `Navigation() []NavItem`; each handler has signature `(w http.ResponseWriter, r *http.Request)`. Use the Store interfaces from Tasks 3–7. `render(w http.ResponseWriter, name string, data any)` follows the pinned scaffold's buffered execution, not HEAD's newer `ui.Pages` API. |
| + |
| +- [ ] **Step 1: Write route tests.** `TestRailRoutes` verifies the team link, all 12 destinations in order (Conversation, Needs you, Journey, Projects; Specialists: Product, Design, Copy, Engineering, Review; Team: Connections, People, Settings), exactly one `aria-current` on each destination page (the `/work` index has no selected child), icon plus name, and no console Apps/Billing entries. `TestProjectsOverview` checks one account-grouped list spanning app/website/repository kinds, each card’s kind, repository/app/default branch/decision owners, an add-project form, zero activity only after successful reads, and an unavailable CARLOS signal state. `TestOverviewFailureIsNotZero` forces a DB error and expects 503. `TestProjectForms` submits create/edit as owner, reads as member, rejects member writes, CSRF and tampered actor fields; kind and default branch round-trip through create/edit, and HTML names are escaped. `TestRosterRouteCSRF` first succeeds with a same-origin owner POST to the mounted roster route, then requires a foreign-origin POST to return 403 without changing rows. `TestEmptyScreensDoNotStartWork` requires no enabled composer/run/connect-provider action. |
| + |
| + ```go |
| + if response.Code != http.StatusServiceUnavailable { t.Fatal("failed count rendered as empty") } |
| + if strings.Contains(body, "<script>alert(1)</script>") { t.Fatal("stored HTML executed") } |
| + if currentCount != 1 { t.Fatal("ambiguous navigation position") } |
| + ``` |
| + |
| +- [ ] **Step 2: Run red tests.** `go test ./internal/equipotest -run 'TestRail|TestProjectsOverview|TestOverviewFailure|TestProjectForms|TestRosterRouteCSRF|TestEmptyScreens' -count=1`. |
| +- [ ] **Step 3: Review copy before inserting it.** No existing runtime copy convention exists at this HEAD; establish `internal/equipo/copy.go` as that single source. Follow the copy-review skill during implementation: index every app-owned string with context, including validation, empty states, email subject/body, titles, labels and accessible names; apply Paul's edits verbatim. Required navigation names use Paul’s revised rail in the Round 1 brief and `docs/mockups/nav.html`. Other keys include `projects.empty`, `projects.add`, `signals.unconnected`, `form.invalid`, `form.conflict`, `service.unavailable`, `conversation.empty` and specialist empty states. Keep draft wording short; mark the inventory `COPY REVIEW REQUIRED` until approved. Do not copy mockup sample activity or invent final prose in this plan. Add reviewed README copy through the same gate. |
| +- [ ] **Step 4: Implement the shell and routes.** Use the pinned sidebar template/attributes; customize its blocks, not its mechanics. `/` redirects to `/conversation`; `/work` is the phone index (`view=index`); content pages have parent links back to `/work#nav-<key>`. Routes: GET `/conversation`, `/needs-you`, `/journey`, `/projects`, `/connections`, `/people`, `/settings`, `/specialists/{key}`, `/projects/new`, `/projects/{id}`, `/projects/{id}/edit`. POST `/accounts`, `/projects`, `/projects/{id}`, `/team/members`, `/team/budgets`, `/specialists/{key}` use the corresponding store mutators and redirect 303 after success. Render unknown IDs/keys as 404; invalid form as 422; stale revisions as 409; owner-only denial as 403. Use a single team header linking to `/people`, followed by the four work pages, the five Specialists and the Team group (Connections, People, Settings), as in the revised mockup. The header is not a second selected nav item or a team switcher. |
| +- [ ] **Step 5: Implement grouped cards and settings forms.** Projects overview uses account headings and project cards from `projects.html`; show each project’s saved kind and metadata and actual project counts in one list, with no separate app/website lists. With no jobs, activity areas have reviewed empty states, not sample work or percentages. Show configured limits and zero usage separately; missing limits are unset, not zero. Each project page is a metadata/settings detail, not the later product view. People exposes the roster; Settings exposes account-label and budget forms; specialist pages expose their stored settings plus empty working/queued/finished sections. Connections remains an empty destination; personal preferences stay in plan 3. Use `html/template` escaping, icons from the vendored icon set, and only theme tokens in app CSS. |
| +- [ ] **Step 6: Verify.** Run page tests and `go test ./internal/equipotest -run TestVendoredAssetsMatchTheLibrary -count=1`; confirm `theme.css` and `shell.css` are linked and copied library bytes match `v0.28.0`. Navigation and every form work without scripts. Update `TestPerfScreens` with seeded concrete `Paths` for project and specialist routes. Its `ScreenConfig.Signin` calls Task 3’s email-link helper using the supplied client/cookie jar and base URL, with the configured Origin on POSTs; sign-in and the `MinAge` wait occur before timing. Require 200 plus a page-specific content assertion for each private page, and keep redirects explicit for `/`; never count a sign-in redirect as a measured private page. Add `Expect` entries or `budgets.txt` skip records for `/signin`, `/auth/callback` and a token-less `/auth/verify`; `TestPerfBoot` configures owners. `make perf` joins the CI gate in this task, not before (private routes answer 503 until Task 8). Run `make perf`. |
| +- [ ] **Step 7: Commit.** Stage Task 8 files and approved copy; `git commit -m "feat: add the rail and grouped projects overview"`. |
| + |
| +## Task 9: Exercise the finished app in a browser and provide local startup |
| + |
| +**Files:** Create `run.sh`, `tools/drive/main.go`; modify `internal/equipotest/browser_test.go`, `README.md`, `.gitignore`; add `internal/equipotest/startup_test.go`. |
| + |
| +**Interfaces:** Keep production `App` from Task 1. The drive uses that app with a capturing mailer and a real framework session minted through its sign-in flow, not an auth-bypass flag. New drive flags: `-addr` (default `127.0.0.1:8824`), `-db` (required scratch DB path). `run.sh` consumes a local ignored environment file and executes the built binary with explicit `--db` and `--addr` flags, following memoria's script shape. |
| + |
| +- [ ] **Step 1: Add browser/startup assertions.** `TestFoundationBrowserWalk` uses Rastrillo `harness.New`, `rig.Run` and `rig.Screen` with `chromedp` as the pinned scaffold does: sign in through the capturing-mailer helper with the production `NoProof` guard and its `MinAge`, add account, create projects of all three kinds, reopen, edit, sign out. At widths 1280 and 390, and with JavaScript disabled, assert no horizontal overflow; all rail/index destinations reachable; specialist back link returns to its index row; long project names wrap; project creation succeeds. `TestProductionDoesNotUseDriveAuth` starts the production handler with missing/invalid auth configuration and requires refusal. Browser screenshots are inspection evidence, not a substitute for assertions. |
| +- [ ] **Step 2: Run the browser test before fixes.** `go test -tags browser ./internal/equipotest -run TestFoundationBrowserWalk -count=1`; observe the missing flow or rendering assertion fail. A skipped browser is not a pass; use an installed Chromium or `RASTRILLO_CHROME` as the scaffold supports. |
| +- [ ] **Step 3: Implement local tooling and fix browser failures.** `run.sh` requires origin and a persistent instance key, accepts owners for first-boot seeding only, opts into logged mail only for loopback development, uses `exec`, and never contains production secrets. The drive creates synthetic account/project data through real store/HTTP interfaces, opens no inbound address except loopback, and removes its own scratch on shutdown. Do not copy memoria's auth bypass into production or its hard-coded home directory. Review setup prose before writing it. |
| +- [ ] **Step 4: Verify the complete slice.** Run `make ci`, then the browser command, once with script enhancements and once without. Inspect desktop and phone pages, keyboard focus, parent navigation and empty states. Run `go test -race ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipotest` once for the changed transactional core/auth boundaries. Check no test uses an external provider or CARLOS credential. Stop drive/review servers and remove only session-owned scratch. |
| +- [ ] **Step 5: Commit.** Stage Task 9 files; `git commit -m "test: verify the foundation sign-in and project flow"`. |
| + |
| +## Task 10: Prepare the release and have a human deploy it |
| + |
| +**Files:** Modify `Makefile`, reviewed `README.md`; create `internal/equipotest/release_test.go`. Human deployment changes no source file. |
| + |
| +**Interfaces:** `make release` produces `releases/equipo-linux-arm64`; `RELEASE_GOARCH=amd64` is an explicit alternative. Stamp `amadan.net/rastrillo/rastrillo.BuildVersion` with `git rev-parse --short HEAD`. The deployment target is the `oficina` account on the flagship console, [https://console.carloku.com/a/oficina](https://console.carloku.com/a/oficina), as confirmed by Paul. Project account labels do not change that target. |
| + |
| +- [ ] **Step 1: Write a failing release check.** `TestReleaseStampContract` tests the Make recipe using a fake `go` executable to capture arguments: require `CGO_ENABLED=0`, Linux/arm64 defaults, correct output path and `-X amadan.net/rastrillo/rastrillo.BuildVersion=<commit>`. A dirty tracked file must make the recipe fail before building even with a supplied `VERSION`, and a supplied unrelated `VERSION` must not change the commit stamp. The recipe must include `-trimpath` and print `carlos deploy`, not the scaffold's `carlos ship`. Mutate the stamp/path deliberately, see failure, then restore it. No deploy command runs in this test or in CI. |
| +- [ ] **Step 2: Run red check.** `go test ./internal/equipotest -run TestReleaseStampContract -count=1`; the unadapted scaffold permits a `VERSION` override and prints `carlos ship`; expect those assertions to fail. Its existing stamping and output path are not missing features. |
| +- [ ] **Step 3: Implement the memoria release pattern.** Use `-trimpath` and `-ldflags "-s -w -X amadan.net/rastrillo/rastrillo.BuildVersion=$(git rev-parse --short HEAD)"` in the actual shell recipe, with Make's doubled dollar escaping. Reject dirty tracked files independently of the stamp variable, remove the arbitrary `VERSION` override, and replace the scaffold's printed ship command with the human deploy instruction. Document required origin, first-boot-only owners, stable instance key and platform SMTP configuration without secret values; provider credentials are not needed. Do not invent CARLOS configuration CLI flags: the human uses the supported account/app configuration surface, confirms the real HTTPS origin, and provisions these settings before startup. |
| +- [ ] **Step 4: Verify and commit the release preparation.** Run the release test, `make ci`, and commit Task 10 files with `git commit -m "build: prepare the human-run CARLOS release"`. Then `make release`; expect the stamped Linux/arm64 artifact. This commit is an implementation step, not permission to merge or deploy. |
| +- [ ] **Step 5: Human deploys to oficina on the flagship console.** This step is performed by Paul or a human operator, never by the implementing agent. From the clean, reviewed revision, confirm the CLI targets the flagship console and run the verified memoria command shape with Paul’s chosen account: |
| + |
| + ```sh |
| + carlos deploy --app equipo --account oficina --channel edge --timeout 5m ./releases/equipo-linux-arm64 |
| + ``` |
| + |
| + Flags precede the binary. Confirm the target's architecture before choosing the release override. Poll GET `/api/version` on the actual deployed origin until the process reports the stamped commit; the router's `X-Carlos-Version` is insufficient. |
| +- [ ] **Step 6: Human acceptance.** Sign in as a configured owner, add a second roster member, create an account label and projects spanning all three kinds (one repo-only), refresh/restart and verify persistence. Sign in as the member and verify shared visibility and denied owner edits. Open every empty destination and the phone Work index. Confirm no runner is enrolled, no execution job exists, and no provider/CARLOS credential was requested. Record acceptance in the normal review record; do not claim deployment from a successful local build. |
| + |
| +## Questions for Paul |
| + |
| +Resolved: Paul chose `oficina` on the flagship console, [https://console.carloku.com/a/oficina](https://console.carloku.com/a/oficina). Task 10 uses that account; no deployment-account question remains. His project-kind and revised-rail answers are applied in Tasks 4 and 8. |
| + |
| +## Self-review results |
| + |
| +1. **Spec coverage:** §§2, 3.2, 3.3, 4.1, 4.5, 5.1, 6.7 and 8 map to Tasks 1–10. Roster/sign-in: 3; projects/owners: 4; team/project limits: 5; Authority: 6; specialists: 7; rail/overview/phone shell: 8–9; human deployment: 10. Coordinator/runtime/evidence extensions, provider connections, product ranking and routing are excluded according to the roadmap. Plan-edit operations are plan 3; quarantine release and execution-store deployment are plan 2 prerequisites. No Foundation requirement is silently delegated to a future UI. |
| +2. **Dependency check:** Task 3 can finish with roster store operations, mounted auth routes and a private middleware test handler. Project-assignment removal checks belong to Task 4; roster HTTP CSRF checks belong to Task 8 and require a successful control POST. This prevents a missing route from passing as authorization protection. |
| +3. **Type/source consistency:** Framework references use verified `v0.28.0` APIs and its `amadan.net` module path, not memoria's old path or newer HEAD-only auth/scaffold APIs. Nested core placement avoids the migration CLI's single-app scan. `team.AccountID` always means the Equipo team; CARLOS labels never scope execution. Project revisions and roster epochs invalidate admissions. App and core migration ownership remain separate. |
| +4. **Review Focus:** All five failure classes have named tests in their owning tasks. Bootstrap and seeding preserve edits; session revocation is checked on requests; malformed bindings never become network requests; time and uncertain reservations remain charged; browser/layout and DB-failure tests prevent plausible empty results. |
| +5. **Accounting boundary check:** Time is keyed by attempt in its own table and settled only by Contain. It never enters call receipts or audited settlement. The named existing call-ledger tests must stay unchanged and pass alongside the configured-mode isolation test. Configured mode deliberately drops the account currency cap, while preserving job/per-call caps; lowering a budget blocks new reservations without rewriting prior usage. This planning pass checked source contracts, not execution of the future tests. |
| +6. **Conflicts found:** The mockup says the phone opens on Work, while spec §4.1 defaults to Conversation and later permits a personal choice; the spec wins. Paul’s revised rail supersedes the older spec’s Preferences entry: Foundation uses the Team group with Connections, People and Settings, with no console Apps/Billing. Roadmap row 4 mentions phone layout, but the Foundation brief explicitly requires its basic shell now. Spec §9's provider egress conflicts with the unamended suite §8; Foundation has no provider egress, and the separate amendment remains needed before later live use. Spec §§6.8/9 acknowledge subscriptions cannot enforce token/currency caps while also requiring token limits; this plan preserves recorded ceilings and the core's metered policy, leaving the runner plan to distinguish admission/reservation limits from what an unmodified subscription CLI can actually enforce. The prototype's distinct-provider review is stricter than the spec's distinct-family rule; preserve it here and resolve assignment behavior in plan 2. Use memoria’s release recipe over its stale “never deployed” README paragraph and the shipped sidebar over Rastrillo’s older disclosure prose. |
| + |
| +## Round 1 dispositions |
| + |
| +- P1-1: Added `pow.Schema`, a production `NoProof` guard with `MinAge`, the framework sign-in fields and startup/scriptless tests; this mode requires no pow assets. |
| +- P2-1: Specified attempt-keyed `time_reservations`, Contain-only settlement and period-only totals, excluded call settlement, and named the existing ledger regressions. |
| +- P2-2: Added owner-entered `Project.DefaultBranch`; Authority checks saved default/ref bindings for every admission, with forged-default tests. |
| +- P2-3: Replaced the inaccessible keymail fake with capturing-mailer email-link sign-in; framework tests retain keymail coverage. |
| +- P2-4: Moved assigned-owner removal to Task 4 and roster-route CSRF to Task 8 with a successful control request; Task 3 covers the store and auth. |
| +- P2-5: Corrected the repeated-migration assertion to `len(second.Applied) != 0`. |
| +- P3 (budgets): Made removal of configured account `CostMicros` explicit and allowed lowering below usage, with new reservations blocked. |
| +- P3 (auth): Made DB-error admission false, deleted removed members’ sessions transactionally, documented first-boot-only owners, and selected the shipped sign-in partial. |
| +- P3 (project uniqueness): Made canonical repository plus app unique, including the blank-app case. |
| +- P3 (speed tests): Specified `ScreenConfig.Signin` with the real email-link cookie flow before timing, seeded paths and private-page assertions. |
| +- P3 (proportion): Reduced the grounding table and Task 5 Step 4 to decisions and replaced self-review items 2 and 5 with dependency/accounting checks. |
| +- Paul’s deployment answer: Task 10 now targets `oficina` on the flagship console and the account question is resolved. |
| +- Paul’s project kinds: Added app/website/repository to the record, forms, tests and each card in one Projects list. |
| +- Paul’s rail: Task 8 now specifies the team header, four work pages, five Specialists and Team group with Connections, People and Settings. |
| + |
| +## Round 2 dispositions (Opus R2: READY AFTER FIXES) |
| + |
| +- P2-N1: the empty-DB owners check moved from Task 1 to Task 3's `TestRosterBootstrapOnce`. |
| +- P3s applied: perf `Expect`/skip records and `make perf` joining the gate at Task 8; hourly `Sweep` of auth and nonces; one forge-qualified repository spelling for projects and Authority; removal-epoch check against a racing sign-in; kind/app-name rules; NoProof assertions on the mailer; tag object versus commit in grounding. |
diff --git a/docs/superpowers/plans/2026-11-01-equipo-roadmap.md b/docs/superpowers/plans/2026-11-01-equipo-roadmap.md| new file mode 100644 |
| index 00000000..95bee84d |
| --- /dev/null |
| +++ b/docs/superpowers/plans/2026-11-01-equipo-roadmap.md |
| @@ -0,0 +1,27 @@ |
| +# Equipo: plans to the first try-out |
| + |
| +Spec: [Equipo design](../specs/2026-11-01-equipo-design.md), approved by Paul |
| +2026-11-01. The milestone is section 10 of the spec: Paul and one teammate |
| +trying it on their own apps. |
| + |
| +The spec spans several subsystems, so the milestone is four plans. Each one |
| +ends in software Paul can open and use, and each later plan is written once |
| +the one before it has landed, from what it taught. |
| + |
| +| Plan | Delivers | Paul can | |
| +|---|---|---| |
| +| 0. Paseo probe | A written report on what Paseo's CLI and daemon expose (spec 6.9) | Read what the runner can rely on, and which gaps go to Paseo | |
| +| 1. Foundation | The Rastrillo app, the prototype moved in, keymail sign-in, the team roster, CARLOS-account labels, projects with repo bindings and owners, the default specialists, the rail shell and Projects overview, deployed on CARLOS | Sign in, add his projects, see the empty rail | |
| +| 2. Runner | `equipo-runner` (enrol, claim, drive Paseo, check executor, publish, cancel), connections discovered per machine, a plain task form, live Journey and specialist pages | Ask for a bug fix through a form and get an Amadan branch with evidence | |
| +| 3. Coordinator | One coordinator per person as a Paseo agent, the Equipo tool server, the conversation, plan proposals and edits, approval setting, preferences page | Talk to it instead of filling a form | |
| +| 4. Team | Routing to owners, coordinator settlement and deadlock, per-project model picks with reasons, the product view (Now, Next, Later, Product's note, CARLOS signals once the platform has a read-only token), phone layout | Use it with a teammate, ask "what's next?" | |
| + |
| +Alongside, not blocking the try-out: |
| + |
| +- the Equipo amendment to the doctrine's egress section, on `oficina/suite`; |
| +- a carlos/platform request for a read-only scoped token and app-to-repo |
| + links (spec section 8); |
| +- removing `internal/team` and `internal/teamcontract` from carlos/platform |
| + once plan 1 has copied them. |
| + |
| +Plans 0 and 1 run now, in parallel. Plan 2 is written after the probe. |
diff --git a/docs/superpowers/plans/CODEX-BRIEF-plan-0-paseo-probe.md b/docs/superpowers/plans/CODEX-BRIEF-plan-0-paseo-probe.md| new file mode 100644 |
| index 00000000..7c8514c2 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/CODEX-BRIEF-plan-0-paseo-probe.md |
| @@ -0,0 +1,60 @@ |
| +# Brief: Equipo plan 0, the Paseo probe |
| + |
| +Find out, by running it, what Paseo on this machine (docs-t1) gives a program |
| +that wants to drive agents. The answers decide how Equipo's runner is built. |
| +Read spec section 6.9 first: |
| +`/home/paulca/amadan.net/oficina/equipo-design/docs/superpowers/specs/2026-11-01-equipo-design.md`. |
| + |
| +Paseo documentation available locally: |
| +`/home/paulca/.paseo/zerosub/homes/claude-047fd573ccc9/skills/paseo/SKILL.md`, |
| +`.../skills/paseo-help/`, `.../skills/paseo-plugin/` (same parent), and |
| +`paseo --help` / `paseo <cmd> --help`. |
| + |
| +## Questions to answer, each with the exact command and trimmed output as evidence |
| + |
| +1. **Create and follow an agent from a program.** `paseo run --json` (or the |
| + equivalent) in a workspace: what comes back, which IDs, how to start it in |
| + a specific git worktree on a named branch from a base commit. |
| +2. **Timeline and usage.** Can `paseo logs`, `inspect`, `attach` or `ls` |
| + return machine-readable events (JSON) and per-agent token usage, model |
| + and provider? Is there a streaming form a long-lived process can follow? |
| +3. **Questions and permissions.** When an agent asks a question or needs a |
| + permission, does that appear as an event a program can see and answer |
| + (`paseo send`, a permission response)? Try a mode that requires approval. |
| +4. **Stop and clean up.** `stop`, `archive`, `delete`, workspace archive: |
| + does stopping kill the agent's child processes? Is the stop observable? |
| +5. **Tools per agent.** Can a program give one agent an MCP server or tool |
| + configuration at creation time (flags, settings, profiles, plugin |
| + transforms)? |
| +6. **Accounts.** Can two different Claude logins be used side by side on |
| + one machine (separate daemon homes via `--home`, provider homes, |
| + profiles)? Do not sign in to anything new; inspect configuration and |
| + documentation, and say what would be needed. |
| +7. **Remote and hosts.** Can one daemon drive agents on another host |
| + (tito-studio), and what does a program need for that? |
| +8. **Runner as a Paseo plugin.** From the paseo-plugin documentation, could |
| + the runner be a plugin (lifecycle hooks, RPCs, background work, outbound |
| + HTTP)? Give a recommendation: separate process or plugin, and why. |
| + |
| +## How to run it safely |
| + |
| +- Use a throwaway git repository under `$TMPDIR` as the workspace. |
| +- Use the cheapest available models for any agent you start (for example a |
| + Haiku-class Claude model or the smallest Codex model), with tiny prompts |
| + ("create hello.txt containing hi"). At most six agent runs in total. |
| +- Never touch, stop, archive or message any agent or workspace you did not |
| + create. Do not restart, reload or reconfigure the Paseo daemon. Do not |
| + change `config.json`. |
| +- Archive or delete everything you created before you finish, and remove |
| + your scratch directory. |
| +- Do not spawn Anthropic-model reviewers or other helper agents beyond the |
| + probe agents above. |
| +- Do not create `.claude/HANDOFF.md`. Do not commit or push. |
| + |
| +## Output |
| + |
| +Write `/home/paulca/amadan.net/oficina/equipo-design/docs/superpowers/specs/2026-11-01-paseo-probe.md`: |
| +one section per question with the verdict (yes / no / partly), the evidence, |
| +and for every "no" or "partly" a one-paragraph request we could send to |
| +Paseo. End with a short "What the runner should rely on" list. Print a |
| +five-line summary when done. |
diff --git a/docs/superpowers/plans/CODEX-BRIEF-plan-1-foundation-fixes-R1.md b/docs/superpowers/plans/CODEX-BRIEF-plan-1-foundation-fixes-R1.md| new file mode 100644 |
| index 00000000..f23bdb16 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/CODEX-BRIEF-plan-1-foundation-fixes-R1.md |
| @@ -0,0 +1,58 @@ |
| +# Brief: revise Equipo plan 1 after review round 1 |
| + |
| +Edit `docs/superpowers/plans/2026-11-01-equipo-plan-1-foundation.md` in this |
| +worktree to resolve every finding in |
| +`docs/superpowers/plans/REVIEW-FINDINGS-plan-1-foundation-R1.md`, using the |
| +decisions below. Verify each change against Rastrillo `v0.28.0` |
| +(`git -C /home/paulca/amadan.net/rastrillo/rastrillo show v0.28.0:<path>`) |
| +and the prototype at |
| +`/home/paulca/amadan.net/carlos/platform-team-service/internal/team`. |
| + |
| +## Decisions (made by the controller; do not reopen) |
| + |
| +- **P1-1:** use `pow.New` with `Difficulty: pow.NoProof` (token form with |
| + `MinAge`, works without JavaScript; see `pow/browser_test.go` |
| + `TestBrowserNoProofWorksWithoutJavaScript` at the tag). Add `pow.Schema` to |
| + `BootSchema`, serve `pow.Assets()` if the form needs them, put the fields |
| + in the sign-in form, and add a test that `auth.New` succeeds with the |
| + production config. Not `ProofOff`. |
| +- **P2-1:** the reviewer's fix: a separate `time_reservations` table keyed |
| + by attempt, settled only in `Contain`, excluded from receipt and audited |
| + settlement, counted only in period checks. Name the existing tests that |
| + prove the call ledger is unchanged. |
| +- **P2-2:** add `Project.DefaultBranch` entered by an owner (no repository |
| + probing); Authority rejects a `DefaultRef` that differs and any `Ref` equal |
| + to it, with tests. |
| +- **P2-3:** test sign-in by email link through a capturing mailer. |
| +- **P2-4, P2-5:** as the findings say. |
| +- **P3s:** apply all of them: say configured mode drops account `CostMicros`; |
| + allow lowering a budget below usage (new work blocks); `Authorize` false on |
| + DB error; delete a removed member's sessions; document `EQUIPO_OWNERS` |
| + first-boot-only; use the framework's `SigninScreen`/`ui` sign-in partial |
| + if it exists at the tag and accepts the pow fields, otherwise the app's |
| + own `signin.html`, and say which; unique on repository plus app; say how |
| + the per-page speed test signs in; trim Task 5 Step 4 and the grounding |
| + table to decisions; replace self-review items 2 and 5 with checks that |
| + decide something. |
| + |
| +## Paul's answers since the plan was written (apply them) |
| + |
| +- Equipo deploys under the **`oficina` CARLOS account on the flagship |
| + console** (`https://console.carloku.com/a/oficina`). Resolve the "Questions |
| + for Paul" section with this and make Task 10 use it. |
| +- **Projects have a kind: app, website or repository.** One Projects list; |
| + each card shows its kind (spec section 3.3, commit 3bb1dae). Add the kind |
| + to Task 4's record and form and Task 8's overview. |
| +- The rail no longer includes the console's Apps and Billing. Equipo's rail |
| + is: team header; Conversation, Needs you, Journey, Projects; Specialists |
| + (the five); a Team group with Connections, People, Settings |
| + (`docs/mockups/nav.html`). Update Task 8 to match. |
| + |
| +## Rules |
| + |
| +- Edit only the plan file. Do not commit or push. Do not write product code. |
| +- Do not spawn Anthropic-model reviewers or other agents. |
| +- No `.claude/HANDOFF.md`. Scratch under `$TMPDIR`, removed at the end. |
| +- At the end of the plan, add a short "Round 1 dispositions" section: one |
| + line per finding saying how it was resolved. |
| +- Print a five-line summary when done. |
diff --git a/docs/superpowers/plans/CODEX-BRIEF-plan-1-foundation.md b/docs/superpowers/plans/CODEX-BRIEF-plan-1-foundation.md| new file mode 100644 |
| index 00000000..3be7ce00 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/CODEX-BRIEF-plan-1-foundation.md |
| @@ -0,0 +1,82 @@ |
| +# Brief: write Equipo plan 1 (Foundation) |
| + |
| +You are writing an implementation plan, not code. Work in this worktree |
| +(`/home/paulca/amadan.net/oficina/equipo-design`, branch `design`). |
| + |
| +## Read first |
| + |
| +1. The approved spec: `docs/superpowers/specs/2026-11-01-equipo-design.md`. |
| +2. The roadmap: `docs/superpowers/plans/2026-11-01-equipo-roadmap.md`. Plan 1 |
| + is the Foundation row. Do not plan rows 2 to 4. |
| +3. How to write the plan: follow |
| + `/home/paulca/.claude/plugins/cache/claude-plugins-official/superpowers/7.0.0/skills/writing-plans/SKILL.md` |
| + exactly (header, Global Constraints, Review Focus, task structure, |
| + interfaces, test-first steps, self-review). The header's execution line |
| + should name subagent-driven development. |
| +4. The mockups in `docs/mockups/`, especially `nav.html` (the navigation Paul |
| + chose) and `projects.html`. |
| + |
| +## Ground it in real code (read-only) |
| + |
| +- Rastrillo, the framework: `/home/paulca/amadan.net/rastrillo/rastrillo` |
| + (AGENTS.md, DESIGN.md, especially "Navigation", and its scaffold/cmd). |
| +- memoria, the closest existing Oficina app, as the template for repo layout, |
| + `make ci`, keymail sign-in with an owners list, `run.sh`, browser drive and |
| + how it is deployed on CARLOS: `/home/paulca/amadan.net/oficina/memoria`. |
| +- estilo's theme ruling: `/home/paulca/amadan.net/oficina/estilo/README.md`. |
| +- The suite doctrine, rulings 1, 5 and 9 and section 8: |
| + `/home/paulca/amadan.net/oficina/suite/docs/superpowers/specs/2026-09-05-suite-sharing-doctrine.md`. |
| +- The prototype being moved in: `/home/paulca/amadan.net/carlos/platform-team-service/internal/team` |
| + and `internal/teamcontract` (platform commit `ceee7a67`). Check its imports |
| + for anything platform-internal that cannot move as is, and plan for it. |
| + |
| +Every file path, package name, function name and command in the plan must be |
| +checked against these sources. Where Rastrillo or memoria already does |
| +something (sign-in, sessions, CSRF, migrations, the nav rail), the plan uses |
| +it rather than reinventing it, and names the exact package and function. |
| + |
| +## Scope of plan 1 |
| + |
| +Deliverable: Paul signs in to an Equipo instance, adds his projects, and sees |
| +the rail and the Projects overview, with no agents running yet. |
| + |
| +- Repository scaffold as a Rastrillo app with a `make ci` gate like memoria's, |
| + module `amadan.net/oficina/equipo`, AGENTS.md. |
| +- The prototype copied in with its tests passing under the new module path, |
| + per spec 6.7 (Authority from the instance's roster; team ceiling and |
| + project limits; plan-edit operations and the owner-only quarantine release |
| + are plan 2 or 3 unless they are needed now, say which). |
| +- Keymail sign-in, lone-instance roster with `owner` and `member` (spec 5.1). |
| +- CARLOS account labels and projects: repository binding on Amadan, optional |
| + app name, decision owners (spec 3.3, and spec 8: no credential yet). |
| +- The five default specialists as records with settings fields (spec 3.2), no |
| + behaviour. |
| +- UI: the rail shell from `nav.html` (team, Conversation, Needs you, Journey, |
| + Projects, the five specialists, Connections, Preferences), with empty |
| + states, and the Projects overview grouped by CARLOS account (no signals). |
| + Phone layout as drill-down index screens. User-facing strings go in one |
| + copy file per the repo's convention and are marked for copy review; do not |
| + invent final copy, keep it plain and short. |
| +- Deployment on CARLOS as a task the plan describes for a human to run, the |
| + way memoria deployed. Do not deploy anything yourself. If which CARLOS |
| + account it deploys to is unclear, list it under a "Questions for Paul" |
| + heading at the end of the plan rather than guessing. |
| + |
| +## Output |
| + |
| +Write the plan to |
| +`docs/superpowers/plans/2026-11-01-equipo-plan-1-foundation.md`. Keep it in |
| +proportion: interfaces, test names and assertions, commands, not function |
| +bodies. End with the self-review results. |
| + |
| +## Rules |
| + |
| +- Do not write product code, do not commit, do not push. Only create that |
| + one plan file. |
| +- Do not spawn or call Anthropic-model reviewers or any other agents. |
| +- Do not create `.claude/HANDOFF.md` or any file other than the plan. |
| +- Scratch goes under `$TMPDIR` and is removed when you finish. |
| +- Do not modify any other repository; everything outside this worktree is |
| + read-only. |
| +- When finished, print a five-line summary: task count, open questions, and |
| + anything in the spec you found contradictory. |
diff --git a/docs/superpowers/plans/REVIEW-BRIEF-plan-1-foundation-R1.md b/docs/superpowers/plans/REVIEW-BRIEF-plan-1-foundation-R1.md| new file mode 100644 |
| index 00000000..adc4d8ed |
| --- /dev/null |
| +++ b/docs/superpowers/plans/REVIEW-BRIEF-plan-1-foundation-R1.md |
| @@ -0,0 +1,71 @@ |
| +# Review brief: Equipo plan 1 (Foundation), round 1 of 3 |
| + |
| +Repo oficina/equipo, branch `design`, commit d8d5ce1. |
| +Under review: `docs/superpowers/plans/2026-11-01-equipo-plan-1-foundation.md` |
| +(written by Astra). |
| +Authorities: `docs/superpowers/specs/2026-11-01-equipo-design.md` (rev 2, |
| +approved by Paul 2026-11-01), `docs/superpowers/plans/2026-11-01-equipo-roadmap.md`, |
| +the brief `docs/superpowers/plans/CODEX-BRIEF-plan-1-foundation.md`, and the |
| +suite doctrine `/home/paulca/amadan.net/oficina/suite/docs/superpowers/specs/2026-09-05-suite-sharing-doctrine.md`. |
| + |
| +You are an independent reviewer. Read the plan, then the code it names, and |
| +check every claim against that code: Rastrillo at |
| +`/home/paulca/amadan.net/rastrillo/rastrillo` (the plan pins tag `v0.28.0`; |
| +use `git show v0.28.0:<path>` to read tagged files), memoria at |
| +`/home/paulca/amadan.net/oficina/memoria`, and the prototype at |
| +`/home/paulca/amadan.net/carlos/platform-team-service/internal/team` and |
| +`internal/teamcontract` (platform commit `ceee7a67`). |
| + |
| +## Fixed: do not re-argue |
| + |
| +- Paul's rulings recorded in the spec (marked "Paul"): separate Oficina app, |
| + multiplayer, coordinators per person, Paseo engine, categories not names, |
| + hierarchical rail and drill-down phone, connections per person, egress |
| + needed, configurable phone landing and plan approval. |
| +- Scope: Foundation only (roadmap row 1). Missing runner, coordinator or |
| + product-view work is not a finding. |
| +- Mockups since the plan was written dropped the console's Apps and Billing |
| + from the rail (the plan already treats the standalone rail as authoritative). |
| + |
| +## What to check |
| + |
| +1. Does every Rastrillo and memoria API, command, flag and path the plan |
| + names exist at the pinned versions, with the stated signatures? Would |
| + Task 1's scaffold route actually produce a buildable app? |
| +2. Will the prototype move (Task 2) compile and keep its tests passing under |
| + `internal/equipo/team`, given its imports and the module change? |
| +3. Sign-in, roster and authority (Tasks 3 and 6): can a removed member, a |
| + form-supplied actor or a forged project binding gain access or authority? |
| + Does anything fail open on a DB error? |
| +4. Budgets (Task 5): does the team-ceiling/project-limit mapping match spec |
| + 6.7 without breaking the prototype's reservation invariants? |
| +5. Is each task independently testable, in a sensible order, with no hidden |
| + dependency on a later task? |
| +6. Proportion: is anything in the plan a transcript of code rather than a |
| + decision, or a line that decides nothing? |
| + |
| +## Severity |
| + |
| +- **P1**: unsafe, would not compile, a test fails, or it would not work. |
| + Blocks the build. |
| +- **P2**: wrong or missing. Fixed without reopening this review. |
| +- **P3**: clarity or polish. Goes on a follow-up list; never a reason for |
| + another round. |
| + |
| +A P1 states its failure scenario and the evidence (file:line). Do not raise |
| +a P2 to P1 to keep the review open. |
| + |
| +## Output |
| + |
| +Findings ranked P1, P2, P3. Each gives the task, the problem, the evidence |
| +(file:line, verified), the failure scenario, a concrete fix and the |
| +invariant or trust boundary it breaks. End with exactly one verdict: |
| + |
| +- **READY**: no P1 and no P2. |
| +- **READY AFTER FIXES**: no P1. The listed P2s are fixed without another |
| + round. |
| +- **NOT READY**: one or more P1s, listed. |
| + |
| +Do not edit files. Do not spawn subagents of your own. Do not run full test |
| +suites; targeted `go build`/`go vet` or a single test in a scratch copy under |
| +`$TMPDIR` is fine. Keep Go caches at their defaults. |
diff --git a/docs/superpowers/plans/REVIEW-FINDINGS-plan-1-foundation-R1.md b/docs/superpowers/plans/REVIEW-FINDINGS-plan-1-foundation-R1.md| new file mode 100644 |
| index 00000000..d77b1533 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/REVIEW-FINDINGS-plan-1-foundation-R1.md |
| @@ -0,0 +1,65 @@ |
| +# Review findings: plan 1 (Foundation), round 1 (Opus 5.5), at 9d63eed |
| + |
| +Verdict: **NOT READY** (one P1). Recorded as returned, lightly condensed for |
| +the file; evidence citations are the reviewer's. |
| + |
| +## P1 |
| + |
| +**P1-1 (Task 3, touches Tasks 1 and 9): the sign-in config omits the |
| +required `Proof`/`ProofOff` choice, so the app cannot start.** At `v0.28.0`, |
| +`auth/auth.go:380-382` makes `auth.New` return `ErrProofUnset` when |
| +`Config.Proof` is nil and `ProofOff` is false (message at `auth/auth.go:353`). |
| +The plan's `auth.Config{...}` (plan line 128) copied memoria, which pins |
| +rastrillo `v0.23.0` with no `Proof` field. A real guard needs `pow.Schema` in |
| +`BootSchema`, `pow.Assets()` served and challenge fields in `signin.html`; |
| +JavaScript is needed unless `Difficulty: pow.NoProof`. `ProofOff` lets anyone |
| +make Equipo email any address, bounded only by rate limiting. Fix: decide in |
| +the plan, wire schema/assets/template, and test `auth.New` succeeds with the |
| +production config. |
| + |
| +## P2 |
| + |
| +- **P2-1 (Task 5): time reservation is unspecified and the obvious route |
| + breaks the ledger.** No seconds column (`store.go:206-220`, `Usage` |
| + `model.go:808`); `reserve` refuses non-single-call reservations |
| + (`budget.go:104-106`); release goes through actions (`scheduler.go:359`, |
| + `jobs.go:479`), recovery joins reservations to actions (`recovery.go:120`), |
| + `SettleAudited` charges the reserved amount. Fix: a separate |
| + `time_reservations` table keyed by attempt, settled only in `Contain`, |
| + excluded from receipt and audited settlement, counted only in period |
| + checks; name the tests proving the call ledger is unchanged. |
| +- **P2-2 (Tasks 4, 6): the "never the default branch" check compares against |
| + a job-supplied value.** `TargetBinding.DefaultRef` comes from the job spec |
| + (`model.go:217-236`) and `actions.go:242` compares against it; `Project` |
| + stores no default branch. Fix: `Project.DefaultBranch` entered by an owner; |
| + Authority rejects a mismatched `DefaultRef` and any `Ref` equal to it. |
| +- **P2-3 (Task 3): the keymail callback test cannot be written from the |
| + app** (the fake needs unexported `a.guard.base`, |
| + `auth/keymailfake_test.go:118`, `keymail.go:145-151`). Fix: test sign-in by |
| + email link through a capturing mailer; leave keymail to the framework. |
| +- **P2-4 (Task 3): depends on later tasks.** Removal-while-assigned needs |
| + Task 4's owners; `TestSigninCSRF` targets Task 8 routes (a missing route |
| + still refuses, so it tests nothing). Fix: move the rule and test to Task 4; |
| + Task 3 tests the store. |
| +- **P2-5 (Task 1): assertion does not compile.** `migrate.Result.Applied` is |
| + `[]string` (`migrate/apply.go:46`); use `len(second.Applied) != 0`. |
| + |
| +## P3 |
| + |
| +- Task 5: configured mode drops the account-level `CostMicros` limit; say so. |
| + Allow lowering a budget below current usage (new work blocks) instead of |
| + refusing. |
| +- Task 3: `Authorize` answers false on DB error, say so; removing a member |
| + should delete their sessions; `EQUIPO_OWNERS` after first boot is ignored, |
| + document it; choose framework `SigninScreen`/`ui` partial or app |
| + `signin.html`. |
| +- Task 4: repository-unique projects block one repo hosting two apps; make |
| + repository plus app unique. |
| +- Tasks 1/8: the per-page speed test needs to say how it signs in. |
| +- Proportion: Task 5 Step 4 and the grounding table read partly as code; |
| + self-review items 2 and 5 decide nothing. |
| + |
| +Confirmed by the reviewer: generator flags, migration-check placement, all |
| +other named APIs and signatures, prototype imports (stdlib, sqlite, x/sys), |
| +5,243 counted lines, Go 1.25.0 floor, crash-helper compatibility. No build |
| +or tests were run (sandbox caches read-only). |
diff --git a/docs/superpowers/specs/2026-11-01-equipo-design.md b/docs/superpowers/specs/2026-11-01-equipo-design.md| new file mode 100644 |
| index 00000000..071a395c |
| --- /dev/null |
| +++ b/docs/superpowers/specs/2026-11-01-equipo-design.md |
| @@ -0,0 +1,543 @@ |
| +# Equipo: a coordinator and AI specialists for running your own apps |
| + |
| +Status: design, revision 2, 2026-11-01. Drafted by Claude (Opus 5.5) from a |
| +brainstorm with Paul the same day. Every decision marked **Paul** was his in |
| +that conversation; everything marked **call** is the drafter's and is open to |
| +correction. Mockups from the brainstorm are in [`docs/mockups/`](../../mockups/). |
| + |
| +Supersedes, as a product, the platform-embedded team service in |
| +`carlos/platform` (`docs/superpowers/specs/2026-11-01-team-service-design.md`, |
| +feature discussion 508). That design's execution contracts (leases, fences, |
| +budgets, evidence, recovery) still hold and its merged prototype |
| +(`internal/team`, platform `ceee7a67`) is reused here. What changes is where |
| +the product lives, who it is for and what it looks like. |
| + |
| +## 1. Why |
| + |
| +Paul runs several apps on CARLOS (oficina, comercio, rastrillo and others) and |
| +already does most of his engineering through AI agents driven by hand: one |
| +session per task, Paseo to manage them, Amadan branches to land the work, |
| +copy review and second-model review as habits. Equipo turns that habit into a |
| +product: one conversation that takes a request ("fix this", "add that", "what |
| +should I work on next?"), plans it, hands it to specialists, and comes back |
| +with reviewed, verified work for a person to merge. |
| + |
| +The first milestone is **Paul trying it on his own apps** (Paul). |
| + |
| +## 2. What it is |
| + |
| +- **A separate product, not part of the CARLOS console** (Paul). The UI has its |
| + own navigation, projects and model accounts; it uses CARLOS as a supplier. |
| +- **An Oficina app** (Paul), repository `amadan.net/oficina/equipo`. It follows |
| + the suite's sharing doctrine (`oficina/suite`, |
| + `docs/superpowers/specs/2026-09-05-suite-sharing-doctrine.md`): the team is |
| + the boundary, one instance per team. |
| +- **Named Equipo** (Paul): Spanish for team, and for kit. |
| +- **For Paul and his teammates first** (Paul). Offering it to other CARLOS |
| + customers is not a goal of this design. |
| +- **Multiplayer from day one** (Paul). Everyone on the team shares projects |
| + and work; each person has their own coordinator. |
| + |
| +### Goals |
| + |
| +1. A person asks for a bug fix, a feature or a recommendation in plain words |
| + and gets back either an answer or a reviewed, verified Amadan branch. |
| +2. Everyone on the team can see, at a glance, what each specialist is doing, |
| + how far along each task is, and what is waiting on them. |
| +3. A product view per project ranks what to do next, with reasons drawn from |
| + the app's own errors and analytics in CARLOS. |
| +4. People choose which model accounts each project may use; the coordinator |
| + picks the best fit per step within that and says why. |
| + |
| +### Non-goals |
| + |
| +- Automatic merge or deploy. A person merges (Paul, carried from the team |
| + service design). |
| +- Production infrastructure changes, customer messages, money movement. |
| +- A general agent runtime. Paseo runs the agents (Paul). |
| +- Native Mac and iOS apps in the first milestone (**call**: Paul pictured both; |
| + they follow once the web app has been tried. The web UI is responsive and |
| + its phone layout is the model for the iOS app). |
| +- Other CARLOS customers, billing, plans. |
| + |
| +### Anti-goals (would make it a failure even if it works) |
| + |
| +- Specialists with personalities, names or staged dialogue. They are |
| + categories with icons (Paul rejected both mineral names and initials). |
| +- "Done" meaning "a model said so". Success needs evidence (section 6). |
| +- Working around CARLOS or Amadan. A missing capability is a request to that |
| + product, never a direct database, shell or AWS path. |
| +- A coordinator quietly committing a person to something big (section 5.3). |
| + |
| +## 3. Who and what |
| + |
| +### 3.1 People and coordinators |
| + |
| +Each person on the team has **their own coordinator** (Paul calls it the |
| +person's "delegate mirror"): the main chat they talk to. It learns that |
| +person's preferences ("no em dashes", "reproduce before fixing") and plans |
| +their requests that way. |
| + |
| +Preferences are inspectable and correctable on a preferences page, each with |
| +its source (the message it came from) and a status: **confirmed** (the person |
| +said so or accepted it) or **inferred** (the coordinator noticed a pattern). |
| +Inferred preferences never decide anything on their own (section 5.3), and no |
| +preference ever grants authority. |
| + |
| +Team-wide rules (house style, which models a project may use, budgets) are |
| +separate from personal preferences and are set by a team owner. |
| + |
| +### 3.2 Specialists |
| + |
| +Equipo ships with five default specialists (Paul): **Product, Design, Copy, |
| +Engineering, Review**. Each is a category, shown as an icon plus its name, |
| +never initials. |
| + |
| +Per team, each specialist has: its model selection (section 7), how many tasks |
| +it runs at once, and standing instructions. Custom specialists (Ops, Data) |
| +are later work (**call**). |
| + |
| +**Review is constrained**: it must use a different model family from whoever |
| +built the change (carried from the team service design). |
| + |
| +### 3.3 Projects |
| + |
| +A project is one thing to work on, with a **kind**: an **app**, a **website**, |
| +or a bare **repository** (the platform itself is a repo, not a CARLOS app). |
| +There is **one Projects list**, each card showing its kind, rather than |
| +separate sections for apps and websites (Paul). Projects are grouped by **CARLOS account** |
| +(Paul): a team connects one or more CARLOS accounts, and each account's |
| +projects sit under it with a roll-up (projects, what needs people, budget |
| +used). |
| + |
| +A project binds: a repository on Amadan, optionally a CARLOS app, which |
| +accounts may build it, and which people own decisions in it (who merges, who |
| +owns copy, and so on). |
| + |
| +### 3.4 Tasks and plans |
| + |
| +Every request becomes a task with a **plan**: an ordered list of steps, each |
| +held by one specialist, ending with a person. |
| + |
| +- **The coordinator proposes the plan; people can edit it** (Paul's question, |
| + drafter's answer accepted): add, remove or reorder steps. |
| +- **Three steps cannot be removed**: independent review, checks, and a person |
| + at the end. A plan without them cannot reach success (section 6). |
| +- An investigation plans only as far as it can see ("Find the cause, then you |
| + decide"); later steps are planned when the cause is known. |
| +- **Whether a plan waits for approval is configurable** (Paul): per project, |
| + with a per-person override. Default: start straight away and let people |
| + redirect (**call**). |
| + |
| +Typical plans (illustrative, not fixed): |
| + |
| +| Request | Steps | |
| +|---|---| |
| +| Bug | Engineering: reproduce, write the fix. Review: review, checks. Person: merge | |
| +| Feature | Product: scope. Copy and Design where needed. Engineering: build. Review: review, checks. Person: merge | |
| +| What's next? | Product: rank, with reasons. Person: decide. No branch | |
| + |
| +## 4. What people see |
| + |
| +Mockups: [`docs/mockups/`](../../mockups/). They are brainstorm sketches; the |
| +copy in them is not approved and the layout is the point. |
| + |
| +### 4.1 Navigation |
| + |
| +**Hierarchical, the way the CARLOS console and Fiesta do it** (Paul): |
| + |
| +- **Desktop:** a rail. The team at the top (switchable), then Conversation, |
| + Needs you, Journey, Projects, the specialists, Connections, Preferences. |
| + The rail shows counts ("Engineering · 1 · 1 queued", "Copy · 1 waiting"). |
| + See `nav.html`. |
| +- **Phone:** drill-down index screens with a back link to the parent |
| + (Work → Engineering → one task), as the console's mobile navigation does. |
| +- No split screen (Paul: "I don't think I want to split-screen"). |
| +- It should feel like **mostly talking to one thing** (Paul). |
| +- **What the phone opens on is a personal setting** (Paul): the conversation |
| + or the Work index. Default: the conversation (**call**, from "mostly |
| + talking to one thing"). |
| + |
| +### 4.2 Conversation |
| + |
| +One running conversation with the person's own coordinator. Tasks appear in it |
| +as live cards. When a task is handed to a specialist, a short line says so |
| +("Fix VAT rate on invoice PDF is with engineering"). Questions that need the |
| +person show as cards with an answer action. |
| + |
| +### 4.3 Specialist pages |
| + |
| +Per specialist: a stat band (working now, queued, finished this week, tokens |
| +this week), then cards for Working now, Queued, Finished this week and |
| +Settings. Each task row shows its **progress as its real steps** inside that |
| +specialist (Paul asked for progress; **call**: steps, never a percentage, |
| +because an agent cannot estimate a percentage honestly). See `nav.html` and |
| +`workload.html`. |
| + |
| +### 4.4 Journey |
| + |
| +Every task with **its planned steps listed beside it, not in a table** (Paul). |
| +Each step is a two-line chip: **the specialist's category above what it is |
| +doing** (Paul), plus a third line with the model and account once one is |
| +picked. Done, in progress, waiting on a person and still to come are |
| +distinguishable by more than colour. Tasks are grouped: needs you, in |
| +progress, queued, done this week. See `journey.html`. |
| + |
| +### 4.5 Projects |
| + |
| +Overview grouped by CARLOS account (Paul); each project card shows what needs |
| +people, what is in progress, what is next, and one signal line ("Errors 7d: 41 |
| +↑ 29 · checkout timeouts"). |
| + |
| +A project's **product view** (Paul: "from a product manager perspective"): |
| + |
| +- a stat band from CARLOS (errors, a key latency, shipped this week, agent time |
| + and tokens this week); |
| +- **Now** (in flight), **Next** (Product's ranked list, each item with its |
| + reason and a Start action), **Later** (parked), **Shipped recently**; |
| +- **Product's note**: a short plain-words summary of what to do and why, with |
| + when it was written and from what. |
| + |
| +See `projects.html`. |
| + |
| +### 4.6 Connections and model choice |
| + |
| +See section 7 and `models.html`. |
| + |
| +## 5. Multiplayer |
| + |
| +### 5.1 The team |
| + |
| +An Equipo instance belongs to one team. Its members are the team's roster. |
| +Following the doctrine's **lone instance** shape (ruling 5), the first instance |
| +is its own identity authority: keymail sign-in and an owners/members list, |
| +as memoria runs today (**call**; moving to the suite home's roster is the |
| +doctrine's suite shape and comes when the home serves it). |
| + |
| +### 5.2 Routing work to people |
| + |
| +Each project names who owns which decisions. When a task needs a person, the |
| +coordinator of the person who asked routes the question to the owner: it |
| +lands in the owner's Needs you and in their conversation, with the task |
| +attached. |
| + |
| +### 5.3 Coordinators talking to each other |
| + |
| +**Coordinators may settle things between themselves, and people step in when |
| +they deadlock** (Paul). The guardrails are the drafter's proposal, accepted |
| +in the conversation without objection; listed here so they can be corrected: |
| + |
| +- A coordinator may settle a question for its person only from that person's |
| + **confirmed** preferences or the team's rules. Wording, priority order and |
| + plan details are the expected cases. |
| +- An **inferred** preference never settles anything; the coordinator asks its |
| + person. |
| +- Every settlement shows in both people's conversations and either person can |
| + overturn it. |
| +- **Deadlock** (no agreement after two exchanges, or confirmed preferences |
| + that conflict) goes to both people with each side's position summarised. |
| +- Always a person: merging; spending beyond a project's budget; anything inside |
| + a project the other person owns. |
| + |
| +Attribution follows doctrine ruling 9 ("a write names its real actor; no |
| +sibling ever acts as a person"): a settlement is recorded as made **by the |
| +coordinator, citing the preference it relied on**, never as the person. |
| + |
| +## 6. Doing the work |
| + |
| +### 6.1 Engine: Paseo |
| + |
| +**Paseo runs the agents** (Paul). Each step of a plan becomes a Paseo agent run |
| +on one of the team's machines (docs-t1 or tito-studio to start), in an |
| +isolated worktree of the project's repository, with the provider, model and |
| +settings the step was assigned. Paseo already supports Claude Code and Codex, |
| +worktrees, cross-host agents and completion notifications. |
| + |
| +**Call**: the Equipo instance runs on CARLOS; it does not reach Paseo |
| +directly. A small **runner** on each enrolled machine dials out to the |
| +instance, claims steps (the prototype's fenced claim), drives the local Paseo |
| +daemon, and reports events, usage and artefacts back. Paseo's control socket |
| +is never exposed. The runner protocol is the team service design's (claim, |
| +renew, stop, status, fence on every request). |
| + |
| +Specialists that only read (Product ranking, Review) still run through Paseo |
| +so every model call is accounted the same way. |
| + |
| +### 6.2 Results land on Amadan |
| + |
| +Engineering publishes to a review branch on the project's Amadan repository |
| +through a disclosed agent account (`<name>~<operator keymail>`, badged), never |
| +a person's credential. Equipo never merges and never pushes the default |
| +branch. The person merges through Amadan's gate. |
| + |
| +### 6.3 Evidence |
| + |
| +Carried unchanged from the team service design (its "Records and invariants" |
| +section): success requires a reproduction that fails on the base and passes |
| +on the candidate, the repository's own checks on the exact candidate, and an |
| +independent review on that candidate. A changed candidate invalidates checks |
| +and review. A model's narrative or a successful exit code never counts. |
| + |
| +**Evidence by kind of task** (**call**; the prototype has only `software_fix` |
| +and a business reconciliation predicate, and these extend it): |
| + |
| +| Kind | Success requires | |
| +|---|---| |
| +| Bug | As above: frozen reproduction fails on base, passes on candidate; checks; independent review | |
| +| 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 | |
| +| Copy or design only | Checks; independent review; the owning person's approval of the rendered change. No reproduction | |
| +| 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 | |
| + |
| +### 6.4 Checks are not an agent run |
| + |
| +Reproductions and checks run in the **runner's check executor**, not in a |
| +Paseo agent: trusted code that runs the pinned check definitions from the |
| +base revision against the exact candidate and records exit status, test |
| +counts and bounded logs (**call**, from the team service design's |
| +verification rules). The frozen reproduction or acceptance test is stored in |
| +the Equipo instance's artefact store, outside every worktree, and handed to |
| +the executor by hash. |
| + |
| +### 6.5 Publishing |
| + |
| +The **runner holds the Amadan agent credential**; agents never do (**call**). |
| +When Engineering finishes, the runner checks the candidate hash, the target |
| +repository and that the ref is the task's review branch, then pushes. Agents' |
| +worktrees have no push credential and git hooks and credential helpers are |
| +disabled in them. This is the team service design's broker, reduced to the |
| +runner. |
| + |
| +### 6.6 Where coordinators run |
| + |
| +Each person's coordinator is a **long-lived Paseo agent on a machine that |
| +person enrolled**, one per person per team, using that person's own |
| +connection (Paul ruled connections per person; the placement is a **call**; the instance holds no model credentials, so every |
| +model call goes through Paseo and is accounted the same way). Conversation |
| +turns travel instance → runner → Paseo and back. Coordinator-to-coordinator |
| +settlement (section 5.3) is a **structured exchange of proposals** relayed by |
| +the instance, each side stating its position and the preference it relies |
| +on, not a free dialogue (**call**). |
| + |
| +### 6.7 Records, budgets and authority |
| + |
| +Astra's prototype (`carlos/platform` `internal/team` at `ceee7a67`, with |
| +`internal/teamcontract`) moves into this repository and becomes Equipo's |
| +record of jobs, steps, attempts, actions, budgets, evidence and recovery. |
| +**Call**: copy it in with its tests and history noted in the commit, then |
| +remove it from platform in a separate platform branch; nothing in platform |
| +imports it (verified 2026-11-01). Equipo is its own Go module, |
| +`amadan.net/oficina/equipo`. It does not import `oficina/suite` in the first |
| +milestone (that module does not resolve yet; doctrine revision 8) and runs |
| +as a lone instance. |
| + |
| +Mapping onto the prototype (**calls**): |
| + |
| +- **Authority**: the instance's own roster and project ownership implement |
| + the prototype's Authority interface; there is no console. |
| +- **Budgets**: the prototype's account ceiling becomes the **team** ceiling; |
| + each **project** has its own limits (calls, tokens, time per period) under |
| + it; a task is a job, its plan's steps are steps. The account roll-up in the |
| + Projects view is the sum of its projects. |
| +- **Plan edits**: a plan is a layer above the store. Steps not yet started |
| + can be added, removed or reordered; each edit is a new plan revision |
| + recorded as an event; started and finished steps are immutable. The store |
| + gains append-step and cancel-unstarted-step operations under the existing |
| + revision guard. |
| +- **Recovery quarantine**: the first milestone adds an owner-only, audited |
| + **release** after reconciliation, because a single-team, owner-run instance |
| + has someone to make that call. Uncertain external actions stay unknown and |
| + charged. A hosted restore protocol remains later work. |
| +- **Hibernation**: CARLOS wakes an instance on request, and the runner's |
| + renewals and reports are requests, so a running step keeps it awake. The |
| + runner buffers results while the instance wakes. |
| + |
| +### 6.8 Connections live on machines |
| + |
| +A subscription connection is **an account signed in on a specific machine's |
| +Paseo** (**call**). Each person enrolls the machine(s) their own accounts are |
| +signed in on, with a runner. The scheduler sends a step only to a machine that |
| +holds the connection it was assigned, which is always a connection of the |
| +person whose task it is. |
| + |
| +**Subscriptions are first-class connections** (Paul): a Claude or ChatGPT |
| +subscription is used through the provider's own unmodified CLI (Claude Code, |
| +Codex), signed in by the person on their own machine, driven by Paseo. |
| +Equipo never sees, stores or relays the login; it only knows the connection |
| +exists on that machine. Metered API keys are an alternative connection type, |
| +not a requirement. A subscription harness cannot enforce a token or currency |
| +ceiling, so its usage is recorded and shown, and Equipo's own limits (calls, |
| +time, attempts) still apply. If Paseo cannot run two Claude accounts on |
| +one machine, each Claude account lives on a different machine (docs-t1, |
| +tito-studio) and pinning still works; the probe in section 7 decides which. |
| + |
| +### 6.9 How the runner drives Paseo |
| + |
| +Each enrolled machine runs **`equipo-runner`** (**call**: a small Go binary, |
| +a user service under systemd or launchd, no root, no inbound ports). |
| + |
| +1. **Enrol.** The person runs `equipo-runner enrol`, approves it in the |
| + browser (a device-code sign-in to their Equipo instance) and gets a runner |
| + credential bound to them and that machine. The runner asks the local Paseo |
| + which providers and profiles are signed in and reports them as that |
| + person's connections on that machine. |
| +2. **Wait for work.** The runner holds an outbound HTTPS connection to the |
| + instance and long-polls for steps assigned to a connection on this |
| + machine. It sees only its own person's steps. |
| +3. **Claim and brief.** It claims a step (fenced, as in the prototype) and |
| + receives the brief: repository, base commit, review branch, the step's |
| + instructions, the specialist's standing instructions, the person's |
| + relevant confirmed preferences, provider, model, settings and limits. |
| +4. **Workspace.** It keeps one clone per project, fetched from Amadan with |
| + its agent credential, registers it as a Paseo project, and creates a |
| + Paseo worktree workspace on the review branch from the base commit. |
| +5. **Run.** It starts a Paseo agent in that workspace (`paseo run --json` |
| + with the provider, model and mode, the brief as the prompt) and follows |
| + its timeline (`paseo logs`, `inspect`, `wait`), turning it into Equipo |
| + events: progress, usage, questions. |
| +6. **Questions.** When the agent asks something or needs a permission, the |
| + runner relays it to the instance (to the coordinator, then to a person if |
| + needed) and sends the answer back with `paseo send`. |
| +7. **Finish.** It records the resulting commit, hands reproductions and |
| + checks to the check executor (section 6.4), uploads artefacts and, for a |
| + publish step, pushes the review branch (section 6.5). Then it archives |
| + the agent and workspace. |
| +8. **Cancel.** `paseo stop`, then archive, then report the stop as |
| + acknowledged. |
| + |
| +Coordinators (section 6.6) are long-lived Paseo agents driven the same way |
| +through `paseo send`. They act through a small **Equipo tool server** that the |
| +runner provides to the agent (propose a plan, ask a person, read a project, |
| +settle a proposal), so their decisions arrive as structured calls, not parsed |
| +prose. |
| + |
| +**Probe before building** (**call**): verify on docs-t1 that Paseo's CLI or |
| +daemon API gives the runner (a) machine-readable timeline and usage per |
| +agent, (b) agent questions and permission requests as events it can answer, |
| +(c) MCP or tool-server configuration per agent, and (d) two Claude accounts |
| +side by side (Paseo already keeps separate provider homes per daemon home, |
| +which suggests yes). Gaps are requests to Paseo. An alternative worth |
| +weighing in the probe is shipping the runner as a Paseo plugin rather than |
| +a separate process. |
| + |
| +## 7. Models and accounts |
| + |
| +Paul: assign a particular Claude account to a particular project, and also |
| +let the coordinator choose the most appropriate account, service and model per |
| +task and step. |
| + |
| +- **Connections belong to people, not the team** (Paul: "each account should |
| + connect to their own provider"). Each person connects their own model |
| + accounts. A person's coordinator, and the steps of tasks they start, use |
| + that person's connections; nobody's work draws on someone else's |
| + subscription. Each connection shows what is left. Subscriptions (Claude on paul@tito.io, Claude on keymail, Codex) show |
| + their allowance; metered API keys show spend against a hard cap. |
| +- **Per project**: a team owner sets which providers and model families the |
| + project allows. Each person ticks which of their own connections they use |
| + for it and may pin one ("comercio uses paul@tito.io for Claude work"). |
| +- **How the coordinator picks**, per project: best fit for each step |
| + (default), always the pinned account, or ask each time. |
| +- **Shown everywhere**: the plan shows each step's pick and the reason ("Long |
| + code task; Codex has the most headroom this week"); every finished step |
| + records what actually ran. |
| + |
| +Rules regardless of setting: never outside the project's ticked connections; |
| +never switch account mid-step without telling the person; Review always a |
| +different family from the builder. |
| + |
| +**Dependencies to verify, not work around:** |
| + |
| +- Can Paseo run two Claude accounts side by side on one machine? If not, that |
| + is a request to Paseo. |
| +- Is there a supported way to read a subscription's remaining weekly |
| + allowance? If not, the bars show usage Equipo counted itself, labelled as |
| + such. |
| + |
| +## 8. CARLOS as a supplier |
| + |
| +A team connects CARLOS accounts. Equipo needs, per connected account: |
| + |
| +1. **Sign-in or connection consent** by a person who is a member of that |
| + CARLOS account. |
| +2. **A read-only, scoped credential** for app errors, analytics and app |
| + metadata. The team service design found that today's `instance` and |
| + `operate` roles also allow mutations; a read-only role is a platform |
| + feature to request (carlos/platform), not something to approximate. |
| +3. **App-to-repository link**: which repository an app is built from. If |
| + CARLOS does not record it, Equipo stores the binding per project (set by a |
| + person) and the platform request is optional. |
| + |
| +Before (1) and (2) exist, "connecting a CARLOS account" in the first |
| +milestone means naming it and binding its apps to repositories by hand; it |
| +grants Equipo nothing. Until (2) exists, the product view runs without |
| +CARLOS signals: Now, Next and |
| +Later still work, ranked from open issues and people's requests, and the |
| +signal line says it is not connected. **Call**: no CLI-credential shortcut. |
| + |
| +## 9. Gates for the first milestone |
| + |
| +The team service design gated live use on metered API keys with hard caps and |
| +on bubblewrap-confined workers. For Paul's own repos on his own machines, the |
| +first milestone relaxes both (drafter's proposal in the conversation; Paul |
| +chose Paseo, which implies it, but did not rule on the gates explicitly): |
| + |
| +- Subscription logins through Paseo are allowed. Usage is recorded and shown; |
| + it is not enforced as a currency cap. |
| +- Workers run in Paseo's worktrees under the harnesses' own sandboxes, not |
| + bubblewrap. |
| + |
| +Both gates return before anyone outside Paul's team uses it. |
| + |
| +Kept in the first milestone: no merge or deploy; agent accounts on Amadan; |
| +evidence before success; budgets and limits per project (calls, tokens, time) |
| +enforced by Equipo even when cost is not; cancel stops the Paseo agent and |
| +records it. |
| + |
| +**Doctrine egress (section 8 of the doctrine).** Sending conversation and code |
| +to model providers is egress, and **Equipo needs it** (Paul: "Equipo |
| +obviously needs to send stuff out to providers"). The doctrine admits egress |
| +only per-team opt-in to one named recipient chosen by the app. Equipo's |
| +amendment, to record in `oficina/suite` Appendix A: |
| + |
| +- Egress to model providers is the product's purpose, so Equipo has no |
| + egress-off floor; a team without connections can still track work by hand. |
| +- The app names the providers it supports (Anthropic and OpenAI in the first |
| + milestone). A **person** chooses among them by connecting their own |
| + accounts; a team owner can restrict which a project allows. |
| +- Disclosure: the README's first paragraph names the providers, and every |
| + step records the provider, model and account that ran it. |
| + |
| +## 10. First milestone: Paul tries it |
| + |
| +Equipo deploys under the **`oficina` CARLOS account** on the flagship |
| +console (Paul: `https://console.carloku.com/a/oficina`). |
| + |
| +Done when Paul, and one teammate, can: |
| + |
| +1. Sign in to the team's Equipo instance on CARLOS. |
| +2. Connect a CARLOS account and add two projects (say oficina and comercio). |
| +3. Each connect at least one of their own model accounts (Paul a Claude and |
| + a Codex account) and set per-project picks. |
| +4. Ask "fix this bug" and watch it travel Engineering → Review → him, ending |
| + in an Amadan branch with evidence attached; merge it himself. |
| +5. Ask "what's next?" for a project and get a ranked answer with reasons. |
| +6. See the rail, a specialist page, Journey and the product view live. |
| +7. Route a question to the teammate and see coordinators settle a wording |
| + question from confirmed preferences, or escalate on deadlock. |
| +8. Cancel a running task and see it stop. |
| + |
| +Copy for every user-facing string goes through copy review before it ships. |
| + |
| +## 11. Open, for Paul |
| + |
| +None at revision 2. Resolved by Paul on 2026-11-01: egress is needed |
| +(section 9); each person connects their own providers (section 7); the |
| +phone's landing screen and plan approval are configurable (sections 4.1 and |
| +3.4). The doctrine amendment in section 9 still has to be written into |
| +`oficina/suite`. |
| + |
| +## 12. Left to the builder |
| + |
| +Visual detail within Fiesta and estilo; data schemas beyond the prototype's; |
| +the runner's packaging; the shape of the product ranking prompt; exact |
| +deadlock thresholds; how settled preferences are learned and surfaced, within |
| +section 3.1's rules. |
diff --git a/docs/superpowers/specs/2026-11-01-paseo-probe.md b/docs/superpowers/specs/2026-11-01-paseo-probe.md| new file mode 100644 |
| index 00000000..f78d6e42 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/2026-11-01-paseo-probe.md |
| @@ -0,0 +1,378 @@ |
| +# Paseo probe for Equipo plan 0 |
| + |
| +Tested on docs-t1 on 2026-11-01 against CLI and daemon 0.14.0. Read section 6.9 of the Equipo design first. Build the runner around the structured client API; the CLI alone does not supply a JSON event stream. Cancellation needs more than `stop`. |
| + |
| +Evidence below distinguishes live tests from documentation and source inspection. JSON excerpts omit unrelated fields. Two Haiku 4.5 agents ran five prompted turns altogether: file write, question, rejected sleep command, background/foreground cancellation, and an MCP call. No helper agents or reviewers ran. No daemon configuration, sign-ins, or host registrations were changed. No commits or pushes were made in equipo-design; the disposable repository received one empty seed commit so the worktree could start from a real hash. |
| + |
| +Commands use these abbreviations for the exact paths and IDs tested: |
| + |
| +```sh |
| +P=/home/paulca/.cache/tmp/equipo-paseo-probe-vnpbwsk1 |
| +W=/home/paulca/.paseo/worktrees/3ts4lj9g/equipo-probe-vnpbwsk1 |
| +WS=wks_ed152d6e0762a1fb |
| +A=920363b1-2c8a-471e-819f-5be735981e5b |
| +B=93d551b6-37a0-48c3-b503-b3987d3dc021 |
| +CLI=/home/paulca/.local/lib/node_modules/@getpaseo/cli |
| +Z=/home/paulca/.paseo/plugins/zerosub/62e3ee9e-87c0-4453-9a09-3e59cd91b60a/node_modules/@kapybara/zerosub |
| +``` |
| + |
| +```text |
| +$ paseo --version |
| +0.14.0 |
| +$ paseo daemon status --json |
| +{"home":"/home/paulca/.paseo","listen":"127.0.0.1:6767", |
| + "serverId":"srv_ZwrHnYLkipmz","hostname":"DOCS-T1", |
| + "daemonVersion":"0.14.0","desktopManaged":false,"connectedDaemon":"reachable"} |
| +$ paseo provider models claude --json |
| +... {"model":"Haiku 4.5","id":"claude-haiku-4-5","thinkingOptions":"none"} ... |
| +``` |
| + |
| +## 1. Create and follow an agent |
| + |
| +**Verdict: yes.** A program can create a workspace from an exact commit, start an agent there, and retain its ID. Keep the workspace ID from creation: `run` and `inspect` omit it in their CLI output, although the client snapshot contains it. The CLI inherited this session's parent-agent identity; a standalone runner must choose its own parentage deliberately. |
| + |
| +```sh |
| +# In the disposable repository under $TMPDIR: |
| +git init -b main |
| +git -c user.name=Probe -c user.email=probe@localhost commit --allow-empty -m 'Probe base' |
| +git rev-parse HEAD |
| +# 3704b320b9ec292458d41ce9cdb2c56a40f49fb3 |
| +paseo workspace create --isolation worktree --path "$P/repo" \ |
| + --mode branch-off --new-branch equipo-probe \ |
| + --base 3704b320b9ec292458d41ce9cdb2c56a40f49fb3 \ |
| + --worktree-slug equipo-probe-vnpbwsk1 --title 'Equipo disposable probe' --json |
| +``` |
| + |
| +```json |
| +{"workspaceId":"wks_ed152d6e0762a1fb","project":"repo", |
| + "name":"Equipo disposable probe","isolation":"worktree", |
| + "cwd":"/home/paulca/.paseo/worktrees/3ts4lj9g/equipo-probe-vnpbwsk1","background":false} |
| +``` |
| + |
| +```text |
| +$ git -C "$W" rev-parse HEAD |
| +3704b320b9ec292458d41ce9cdb2c56a40f49fb3 |
| +$ git -C "$W" branch --show-current |
| +equipo-probe |
| +$ paseo run --workspace "$WS" --provider claude/claude-haiku-4-5 \ |
| + --mode default --title 'Equipo probe approval' --no-wait --json \ |
| + 'Create hello.txt containing hi using Write. Do not read any other files or use other tools.' |
| +Using workspace wks_ed152d6e0762a1fb |
| +{"agentId":"920363b1-2c8a-471e-819f-5be735981e5b","status":"running", |
| + "provider":"claude","cwd":"/home/paulca/.paseo/worktrees/3ts4lj9g/equipo-probe-vnpbwsk1", |
| + "title":"Equipo probe approval"} |
| +``` |
| + |
| +Capture stdout and stderr separately; the tool transcript above merges them. Do not parse the combined transcript as JSON. After approving the write, `paseo wait "$A" --timeout 30s --json` returned `status: "idle"` and the agent reported creating `hello.txt` with `hi`. Without `--no-wait`, `run` waits by default; its help also supplies `--wait-timeout`. |
| + |
| +Paseo placed the managed worktree under its own home, while the source repository and probe scripts were under `$TMPDIR`. Both were removed at cleanup. For an already-existing branch, help exposes `workspace create --mode checkout-branch --branch NAME`; that path was not separately exercised. |
| + |
| +## 2. Timeline and usage |
| + |
| +**Verdict: partly.** `inspect` and `ls` return JSON, including provider/model, and `inspect` exposes last usage. `logs`, `logs --follow`, and `attach` accept `--json` but still print human-readable text. The installed client supplies structured live events, including completed-turn usage. That API is usable by a long-lived program. |
| + |
| +```text |
| +$ paseo inspect "$A" --json |
| +{"Id":"920363b1-2c8a-471e-819f-5be735981e5b","Provider":"claude", |
| + "Model":"claude-haiku-4-5","Status":"idle","Mode":"default", |
| + "LastUsage":{"InputTokens":18,"OutputTokens":404,"CachedTokens":29591,"CostUsd":0.0673131}, |
| + "PendingPermissions":[],"Worktree":null} |
| +$ paseo logs "$A" --json |
| +[Write] /home/paulca/.paseo/worktrees/3ts4lj9g/equipo-probe-vnpbwsk1/hello.txt |
| +Done. Created hello.txt with content "hi". |
| +$ timeout -s INT 2 paseo logs "$A" --follow --json |
| +... human-readable history ... |
| +--- Following logs (last 10 entries; Ctrl+C to stop) --- |
| +$ timeout -s INT 2 paseo attach "$A" --json |
| +Fetching history for agent 920363b... |
| +(Press Ctrl+C to detach) |
| +[Tool: Write] completed |
| +Done. Created hello.txt with content "hi". |
| +Attached to agent 920363b. |
| +``` |
| + |
| +The two `timeout` commands exited 124 as intended. `paseo ls --global --json`, filtered to our two IDs, returned JSON rows with `id`, `provider: "claude/claude-haiku-4-5"`, `status`, and `cwd`, but no usage. Reading `$CLI/dist/commands/agent/logs.js` and `attach.js` confirmed that these commands format transcripts instead of selecting a JSON renderer. |
| + |
| +For the live test, `observe.mjs` contained the following code. It uses the CLI's installed connection helper to obtain the same authenticated local connection, without printing credentials. This internal import is a probe convenience, not a supported production dependency. |
| + |
| +```js |
| +import {connectToDaemon} from '/home/paulca/.local/lib/node_modules/@getpaseo/cli/dist/utils/client.js'; |
| +const client = await connectToDaemon({target:{kind:'instance',home:'/home/paulca/.paseo'}}); |
| +const id = process.argv[2]; |
| +console.log(JSON.stringify({snapshot:(await client.fetchAgent({agentId:id})).agent})); |
| +const off = client.subscribeAgentTimeline(id, m => console.log(JSON.stringify(m))); |
| +await off.ready; |
| +console.log(JSON.stringify({ready:true})); |
| +await new Promise(r => setTimeout(r,50000)); |
| +off(); |
| +await client.close(); |
| +``` |
| + |
| +```text |
| +$ node "$P/observe.mjs" "$A" > "$P/events.jsonl" |
| +$ rg 'usage|turn_completed' "$P/events.jsonl" |
| +{"type":"agent_stream","payload":{"agentId":"920363b1-2c8a-471e-819f-5be735981e5b", |
| + "event":{"type":"turn_completed","provider":"claude","turnId":"foreground-turn-1", |
| + "usage":{"inputTokens":18,"cachedInputTokens":29591,"outputTokens":404, |
| + "totalCostUsd":0.0673131,"contextWindowMaxTokens":200000,"contextWindowUsedTokens":31239}}, |
| + "timestamp":"2026-11-01T21:10:14.667Z"}} |
| +``` |
| + |
| +Timeline item events also carried `seq`, `epoch`, and `subscriptionId`. Control events did not all carry sequence numbers. The next question turn reported `totalCostUsd: 0.07589280000000001`; do not assume every usage field is a per-turn increment. `LastUsage` was zero during a later turn and after cancellation. Capture completion events durably instead of treating a later snapshot as a lifetime ledger. Billing accuracy and provider-independent usage semantics were not established. |
| + |
| +The current SDK documents `agent.timeline.refetch()` with cursors and `agent.timeline.subscribe()`. Subscriptions are live-only; reconnect requires explicitly fetching missed history, and replacement invalidates the previous epoch. We observed live delivery, not reconnect/restart recovery. Source: [https://paseo.sh/docs/sdk/reference.md](https://paseo.sh/docs/sdk/reference.md). |
| + |
| +**Request to Paseo:** Make `logs --json --follow` emit newline-delimited structured events and make one-shot `logs --json` return structured history. Preserve IDs, cursor/epoch information, permission events, cancellation, and usage. Document which usage counters are cumulative, which are per-turn, and how to recover missed completion events after reconnection, so runners can account for work without parsing prose or double-counting cost. |
| + |
| +## 3. Questions and permissions |
| + |
| +**Verdict: yes for the tested Claude tools.** In `default` (Always Ask) mode, the write remained pending until a program approved its request ID. `AskUserQuestion` arrived as a structured `permission_requested` event with `kind: "question"`. Answer it through the permission response, not an ordinary chat message. |
| + |
| +```text |
| +$ paseo inspect "$A" --json |
| +... "Status":"running", "Mode":"default", |
| +"PendingPermissions":[{"id":"permission-023626f4-428c-4f24-b777-e8187cce0b94","tool":"Write"}] |
| +$ paseo permit ls --json |
| +... {"id":"permission-023626f4-428c-4f24-b777-e8187cce0b94", |
| + "agentId":"920363b1-2c8a-471e-819f-5be735981e5b","name":"Write","description":"-"} ... |
| +$ paseo permit allow "$A" permission-023626f4-428c-4f24-b777-e8187cce0b94 --json |
| +[{"requestId":"permission-023626f4-428c-4f24-b777-e8187cce0b94", "result":"allowed", ...}] |
| +``` |
| + |
| +The raw client snapshot included the proposed file path and content under `pendingPermissions[].input`; CLI `inspect` reduced this to an ID and tool name. A runner should fetch the full request before deciding. The observer received `permission_resolved` with `resolution.behavior: "allow"`, then tool completion and turn completion. |
| + |
| +```sh |
| +paseo send "$A" --no-wait --json \ |
| + 'Use AskUserQuestion to ask which word to write next, with choices hi and bye. Do nothing else.' |
| +``` |
| + |
| +```json |
| +{"agentId":"920363b1-2c8a-471e-819f-5be735981e5b","status":"queued", |
| + "message":"Message queued for delivery after two quiet seconds"} |
| +``` |
| + |
| +Trimmed observer event: |
| + |
| +```json |
| +{"type":"permission_requested","provider":"claude","request":{ |
| + "id":"permission-6d5670a3-5c2c-47d3-9b5c-629b1cf8b5eb","name":"AskUserQuestion", |
| + "kind":"question","title":"Which word should we write next?","description":"hi / bye", |
| + "input":{"questions":[{"question":"Which word should we write next?","header":"Next word", |
| + "options":[{"label":"hi","description":"Write hi"},{"label":"bye","description":"Write bye"}], |
| + "multiSelect":false,"allowOther":true}]}}} |
| +``` |
| + |
| +```text |
| +$ paseo permit allow "$A" permission-6d5670a3-5c2c-47d3-9b5c-629b1cf8b5eb \ |
| + --input '{"answers":{"Which word should we write next?":"hi"}}' --json |
| +[{..., "name":"AskUserQuestion","result":"allowed"}] |
| +$ paseo wait "$A" --timeout 20s --json |
| +{"agentId":"920363b1-2c8a-471e-819f-5be735981e5b","status":"idle", |
| + "message":"... User selected \"hi\"."} |
| +``` |
| + |
| +`send` was tested for follow-up prompts. Its queued receipt was not proof of turn completion. Plain conversational questions can be answered by `send`, but their classification as questions was not tested. Codex permission/question formats were not tested. |
| + |
| +## 4. Stop and clean up |
| + |
| +**Verdict: partly.** Stop is observable and interrupts the active foreground command. It did not kill a previously launched background child. Archiving the agent did remove that child in this test. Do not equate a stop receipt with proof that all effects have ceased. |
| + |
| +The first command (`sleep 180 & echo $! > child.pid; wait`) was rejected by the provider harness, so it supplied no process-cleanup evidence. The successful retry used the supported background mode: |
| + |
| +```sh |
| +paseo agent mode "$A" bypassPermissions --json |
| +paseo send "$A" --no-wait --json 'Use Bash with run_in_background:true to execute: python3 -c '\''import os,time; open("child.pid","w").write(str(os.getpid())); time.sleep(180)'\''. Then immediately run another Bash command with timeout 200000: python3 -c '\''import time; time.sleep(180)'\''. Do nothing else.' |
| +node "$P/observe.mjs" "$A" > "$P/stop-events.jsonl" |
| +``` |
| + |
| +The observer was running before cancellation. `child.pid` contained namespace PID `3`; host `ps` identified the processes by their exact commands. Do not send signals to a namespace PID on the host. |
| + |
| +```text |
| +$ ps -eo pid,ppid,args | rg 'python3 -c import (os,time|time; time.sleep)' |
| +777780 777779 python3 -c import os,time; open("child.pid","w").write(str(os.getpid())); time.sleep(180) |
| +777828 777827 python3 -c import time; time.sleep(180) |
| +$ paseo stop "$A" --json |
| +{"stoppedCount":1,"agentIds":["920363b1-2c8a-471e-819f-5be735981e5b"]} |
| +$ ps -eo pid,ppid,args | rg 'python3 -c import (os,time|time; time.sleep)' |
| +777780 777779 python3 -c import os,time; open("child.pid","w").write(str(os.getpid())); time.sleep(180) |
| +$ paseo inspect "$A" --json |
| +... "Status":"idle" ... |
| +$ tail -3 "$P/stop-events.jsonl" |
| +... {"type":"turn_canceled","provider":"claude","turnId":"foreground-turn-4","reason":"Interrupted"} ... |
| +``` |
| + |
| +Cleanup was then executed in order: |
| + |
| +```text |
| +$ paseo archive "$A" --json |
| +{"agentId":"920363b1-2c8a-471e-819f-5be735981e5b","status":"archived",...} |
| +$ ps -p 777780 -o pid,ppid,args |
| +PID PPID COMMAND |
| +$ paseo delete "$A" --json |
| +{"deletedCount":1,"agentIds":["920363b1-2c8a-471e-819f-5be735981e5b"]} |
| +$ paseo delete "$B" --json |
| +{"deletedCount":1,"agentIds":["93d551b6-37a0-48c3-b503-b3987d3dc021"]} |
| +$ paseo workspace archive "$WS" --json |
| +{"workspaceId":"wks_ed152d6e0762a1fb","status":"archived",...} |
| +$ paseo project delete prj_f0721b61d3557b28 --json |
| +{"projectId":"prj_f0721b61d3557b28","removedWorkspaceIds":[]} |
| +$ test -e "$W" && echo worktree-present || echo worktree-removed |
| +worktree-removed |
| +$ ps -p 777780,777828 -o pid,ppid,args |
| +PID PPID COMMAND |
| +``` |
| + |
| +The project ID belonged to the throwaway repository, automatically registered during workspace creation. Only that project, workspace, and the two probe agents were mutated. Observers exited after 50 seconds; bounded CLI followers detached. The custom MCP process also disappeared after agent deletion. The scratch directory was removed after preserving this evidence. Workspace archive was tested after agent deletion; its handling of an independently running terminal was not tested. |
| + |
| +**Request to Paseo:** Offer a cancellation operation with a documented process-tree guarantee across providers, including background tool jobs and workspace-owned processes. Return an acknowledgement only after termination is complete, or report remaining jobs explicitly. Preserve the cancellation event and cleanup result for reconnecting clients. `stop` currently leaves the runner unable to claim that all agent work has stopped. |
| + |
| +## 5. Tools per agent |
| + |
| +**Verdict: yes through the client API.** No direct MCP configuration flag appears in `paseo run --help`, but `createAgent` accepted a session-scoped `mcpServers` map. The agent called that server successfully without a configuration-file edit or plugin installation. |
| + |
| +The scratch `mcp.py` was a line-oriented JSON-RPC server. It answered `initialize` with protocol `2024-11-05` and tool capability, advertised one no-argument tool `probe_ping` via `tools/list`, and returned text `equipo-mcp-ok` from `tools/call`. It ignored notifications. Its full implementation was: |
| + |
| +```python |
| +import sys,json,os |
| +for line in sys.stdin: |
| + m=json.loads(line); method=m.get('method'); result={} |
| + if 'id' not in m: continue |
| + if method=='initialize': |
| + result={'protocolVersion':'2024-11-05','capabilities':{'tools':{}}, |
| + 'serverInfo':{'name':'equipo-probe','version':'1'}} |
| + elif method=='tools/list': |
| + result={'tools':[{'name':'probe_ping','description':'Return probe marker', |
| + 'inputSchema':{'type':'object','properties':{}}}]} |
| + elif method=='tools/call': |
| + result={'content':[{'type':'text','text':'equipo-mcp-ok'}]} |
| + print(json.dumps({'jsonrpc':'2.0','id':m['id'],'result':result}),flush=True) |
| +``` |
| + |
| +The working `mcp-run.mjs` used the same `connectToDaemon` import as the observer: |
| + |
| +```js |
| +const c = await connectToDaemon({target:{kind:'instance',home:'/home/paulca/.paseo'}}); |
| +try { |
| + const a = await c.createAgent({ |
| + workspaceId:'wks_ed152d6e0762a1fb', |
| + cwd:'/home/paulca/.paseo/worktrees/3ts4lj9g/equipo-probe-vnpbwsk1', |
| + title:'Equipo MCP probe', provider:'claude', model:'claude-haiku-4-5', |
| + modeId:'bypassPermissions', |
| + mcpServers:{equipo_probe:{type:'stdio',command:'python3', |
| + args:['/home/paulca/.cache/tmp/equipo-paseo-probe-vnpbwsk1/mcp.py']}}, |
| + initialPrompt:'Call equipo_probe probe_ping once and report its result. Do nothing else.' |
| + }); |
| + console.log(JSON.stringify({agentId:a.id,workspaceId:a.workspaceId})); |
| +} finally { await c.close(); } |
| +``` |
| + |
| +```text |
| +$ node "$P/mcp-run.mjs" |
| +{"agentId":"93d551b6-37a0-48c3-b503-b3987d3dc021","workspaceId":"wks_ed152d6e0762a1fb"} |
| +$ paseo logs "$B" --tail 4 |
| +[User] Call equipo_probe probe_ping once and report its result. Do nothing else. |
| +[Toolsearch] |
| +[mcp__equipo_probe__probe_ping] {} |
| +Result: `equipo-mcp-ok` |
| +``` |
| + |
| +Two setup attempts failed before creating any agent: the low-level connection object has no `workspaces.ref`, and its `createAgent` requires `cwd` even with `workspaceId`. The corrected call above is the one tested. The public SDK has a different, higher-level interface; pin and test the chosen client version. |
| + |
| +The current public SDK documents `config.mcpServers`, `config.toolPolicy`, provider-native `options`, and runtime settings. Local plugin instructions and the installed ZeroSub plugin use `before("agent.session_open")` for launch-time tools/environment/MCP configuration and `agent.create` for saved configuration. Current online documentation instead names `server.addHook("agent.open.before", ...)` and `agent.create.before`. This is a concrete documentation/runtime compatibility concern, not evidence that the installed hook failed. Sources: [https://paseo.sh/docs/sdk/reference.md](https://paseo.sh/docs/sdk/reference.md) and [https://paseo.sh/docs/plugins/hooks.md](https://paseo.sh/docs/plugins/hooks.md). |
| + |
| +## 6. Accounts |
| + |
| +**Verdict: yes by configuration and installed-plugin inspection; no new login or two-account execution test.** Multiple Claude credential homes already exist on this machine. ZeroSub selects a home per agent at session open. Separate daemon homes are therefore not required for this setup. `--home` selects a daemon; it does not, by itself, prove that Claude credentials are isolated. |
| + |
| +```text |
| +$ rg -n 'CLAUDE_CONFIG_DIR|session_open|homes' "$Z/README.md" "$Z/index.server.ts" |
| +README.md:91:Each added account gets its own credential home under `$PASEO_HOME/zerosub/homes/`: |
| +README.md:93:- Claude uses it as `CLAUDE_CONFIG_DIR`; Codex uses it as `CODEX_HOME`. |
| +index.server.ts:35: server.before("agent.session_open", async ({ request }, context) => { |
| +``` |
| + |
| +Only non-secret counts were extracted from the registry: |
| + |
| +```sh |
| +python3 - <<'PY' |
| +import json,os |
| +s=json.load(open(os.path.expanduser('~/.paseo/zerosub/state.json'))) |
| +a=[x for x in s['accounts'] if x['family']=='claude'] |
| +print(json.dumps({'claudeAccounts':len(a), |
| + 'signedIn':sum(x.get('signedIn',True) for x in a), |
| + 'separateManagedHomes':len({x['home'] for x in a if x.get('home')})})) |
| +PY |
| +``` |
| + |
| +```json |
| +{"claudeAccounts":6,"signedIn":6,"separateManagedHomes":5} |
| +``` |
| + |
| +These are saved registry flags, not a fresh authentication or quota check. Inspection of `server/state.ts` found per-agent `bindings` and live `sessions` keyed to `accountId`; `server/claude.ts` sets `CLAUDE_CONFIG_DIR` and `CLAUDE_SECURESTORAGE_CONFIG_DIR` for a managed home. The README says Linux credentials stay in each home's `.credentials.json`, while non-account settings and project history are shared by symlinks. |
| + |
| +For Equipo, select an existing account through the supported account-routing interface and record which account actually opened the session. Verify whether automatic failover may move it before treating a connection as person-bound. A new account would require a separate official CLI sign-in in its own credential home; no credentials should be copied between accounts. None was added here. |
| + |
| +Core provider profiles also support different credentials via `agents.providers` entries extending `claude`; the online example uses distinct API keys. That example alone does not establish two subscription logins. The installed Claude provider source resolves `env.CLAUDE_CONFIG_DIR ?? join(homedir(), ".claude")`, so separate Paseo homes need explicit provider-home routing to guarantee account separation. Sources: installed ZeroSub README and [https://paseo.sh/docs/custom-providers.md](https://paseo.sh/docs/custom-providers.md), fetched with `curl -fsSL`. |
| + |
| +## 7. Remote and hosts |
| + |
| +**Verdict: partly.** Cross-host routing is documented, but no destination is registered on this daemon and execution on tito-studio was not established. No remote agents were started. |
| + |
| +```text |
| +$ paseo host ls --json |
| +[] |
| +$ paseo host add --help |
| +Usage: paseo host add [options] <connection> |
| +Options: --label <name>, --meta <key=value>, --json, --host <host>, --home <path> |
| +$ timeout 12 ssh -o BatchMode=yes -o ConnectTimeout=8 100.76.110.54 \ |
| + 'command -v paseo; paseo daemon status --json' |
| +Host key verification failed. |
| +``` |
| + |
| +The SSH command exited 255. Host verification was not disabled and `known_hosts` was not changed. This proves only that this particular Tailscale-IP SSH route was not ready for unattended use, not that tito-studio lacks Paseo or that another existing connection cannot work. |
| + |
| +The local Paseo skill supports `serverId` on remote workspace creation, agent creation, sending, status/activity, and listing. The public SDK documents `client.hosts.client(serverId)` for one-hop routing through the selected daemon. Both ends need connected-host support, a running destination daemon, authenticated transport, and access to the repository and providers on the destination. Paths and workspace IDs belong to that host. A runner must retain `{serverId, agentId}`, not an agent ID alone. Source: [https://paseo.sh/docs/sdk/reference.md](https://paseo.sh/docs/sdk/reference.md), fetched with `curl -fsSL` and inspected at its connected-host section. |
| + |
| +For this machine's rules, use Tailscale directly or SSH over Tailscale with verified host keys. Registration would use `paseo host add CONNECTION --label tito-studio`; this is a future setup instruction, not a command run during the probe. A runner on each host avoids needing this route for ordinary local execution. |
| + |
| +**Request to Paseo:** Provide a read-only runner preflight that reports remote transport authentication, expected server identity, supported routing operations, and provider availability together. Include an example that creates a workspace, streams events, answers permissions, cancels, and archives through a remote scope. We could verify discovery here but could not establish the tito-studio route without separate host setup. |
| + |
| +## 8. Runner as a Paseo plugin |
| + |
| +**Verdict: yes by documentation and installed-plugin evidence; a runner plugin was not installed or executed.** Server plugins run trusted Node code in a daemon subprocess. They can make outbound HTTP requests, maintain timers and subscriptions, register RPC handlers, and call Paseo APIs. Lifecycle hooks can alter creation and session-open requests. That is enough machinery for a runner, provided it persists work and resumes after plugin or daemon restarts. |
| + |
| +Commands used to retrieve and inspect current documentation: |
| + |
| +```sh |
| +curl -fsSL https://paseo.sh/llms.txt |
| +curl -fsSL https://paseo.sh/docs/plugins/reference.md -o "$P/plugin.md" |
| +curl -fsSL https://paseo.sh/docs/plugins/hooks.md -o "$P/hooks.md" |
| +sed -n '608,638p' "$P/plugin.md" |
| +rg -n 'agent.create|agent.open|permission' "$P/hooks.md" |
| +``` |
| + |
| +Trimmed evidence: |
| + |
| +```text |
| +reference: Cleanup can be async. Release timers, watchers, sockets, and other resources created by the plugin. |
| +reference: Backend code can use Node APIs and dependencies installed in the plugin directory. |
| +hooks: agent.create.before | yes | ... | Saved config except cwd; env |
| +hooks: agent.open.before | yes | ... | Launch-only env, tools, mcpServers |
| +hooks: agent.permission.before | no | { agent, request } |
| +hooks: agent.permission.after | no | { agent, requestId, resolution } |
| +``` |
| + |
| +The local skill documents `server.handle(contract, handler)` for validated RPCs and a handler context containing `paseo`. Installed ZeroSub demonstrates session-open hooks in this daemon. The public reference says reload, disable, and removal dispose the installation and stop the server subprocess. Outbound HTTP is an inference from the documented unrestricted Node/network access; no external HTTP request was made from a newly installed plugin. Sources: [https://paseo.sh/docs/plugins/reference.md](https://paseo.sh/docs/plugins/reference.md) and [https://paseo.sh/docs/plugins/hooks.md](https://paseo.sh/docs/plugins/hooks.md). |
| + |
| +Recommend a **separate runner process**, preserving section 6.9's service ownership and outbound connection. It can keep leases, credentials, accounting, and recovery state across a Paseo plugin reload or daemon outage. MCP injection already works through agent creation, so it does not force a plugin. A small Node adapter using the supported TypeScript client is a practical option for a Go runner; a native Go wire client needs an explicit versioned protocol contract. Do not build production code around the probe's absolute CLI-internal imports. A plugin can later add account selection or UI integration if needed. The hook-name difference between installed instructions and current docs is another reason to pin and integration-test that boundary. |
| + |
| +## What the runner should rely on |
| + |
| +- Explicit workspace creation from a commit hash; retain host, workspace, agent, and provider-session identities separately. |
| +- A version-pinned structured client connection for timeline events, full permissions, and usage; CLI JSON for bounded commands only after checking their actual output. |
| +- Subscription readiness before dispatch, durable event storage, cursor-based recovery, and explicit handling of timeline replacement. Validate recovery and usage semantics before claiming reliable billing. |
| +- Permission-ID responses for structured questions and approvals; `send` for conversational follow-ups. A queued receipt is not completion. |
| +- Per-agent MCP configuration at creation. Give each coordinator its own scoped Equipo tool capability. |
| +- Explicit account routing through the existing credential-home mechanism, with observed account identity and failover rules. |
| +- Stop, archive, and workspace cleanup as separate steps. Verify remaining processes before acknowledging cancellation; `stop` alone is insufficient. |
| +- A local runner on each enrolled machine. Treat remote routing and plugin hooks as optional, version-tested integrations. |