oficina / equipo Public

Build Roster bylines and flat task reports with stage tracks

Paul Campbell pushed by paul@keymail.dev 6ae5faab92148a9006cdb0d5a07d4255fe3c4427 parent f770148
7 files changed, +187 −22
  • docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md +28 −0
  • internal/equipo/chat_page.go +3 −0
  • internal/equipo/chat_roster.go +21 −0
  • internal/equipo/copy.go +43 −16
  • internal/equipo/static/equipo.css +49 −0
  • internal/equipo/templates/chat.html +14 −6
  • internal/thintest/roster_browser_test.go +29 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
index 8b3265d5..fdb9178a 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
@@ -6580,6 +6580,34 @@ records remain unchanged.
| `copy.continue` | Continue without Copy | Copy specialist | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13) |
| `copy.round_budget` | Copy repairs are paused or have used today’s automatic allowance. | Copy specialist | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13) |
+| `roster.set_aside` | Set aside | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.aside` | Set aside, still in Needs you | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.undo` | Undo | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.reports` | reports | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.asks` | asks | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.holds` | is holding | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.busy` | Working… | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.setting_aside` | Setting aside… | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.restoring` | Restoring… | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.building` | Building… | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.sending` | Sending… | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.failed` | Couldn’t confirm that change. Try again. | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.stale` | This item has changed. Check it before trying again. | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.retry` | Try again | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.sent` | Sent | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.reply` | Reply | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.change` | What should change? | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.waiting` | %s is reading | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.checks` | Checks | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.review` | Review | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.branch` | Branch | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.open_task` | Open the task | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.copy_coverage` | Review coverage is not available yet. | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.copy_since` | Held since %s | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.research` | Research findings | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.research_log` | Open the request log | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.needs` | %d waiting for you | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+
## Task 21
Status: DONE_WITH_CONCERNS. Offline 3b acceptance, the complete person API contract
diff --git a/internal/equipo/chat_page.go b/internal/equipo/chat_page.go
index ab3d177e..7816979d 100644
--- a/internal/equipo/chat_page.go
+++ b/internal/equipo/chat_page.go
@@ -83,6 +83,7 @@ type chatLine struct {
type chatCard struct {
wire.Card
Line, Change, Agent, Namespace, Note string
+ Author, AuthorIcon, Verb string
// GrantHow introduces an access card's grant command.
GrantHow string
Open, Remove, Receipt bool
@@ -232,9 +233,11 @@ func cardView(c wire.Card, choices []string, tasks map[string]wire.Task) chatCar
pt, dropped := pageTask(t)
line := taskLineOf(pt, t.Creator)
line.MergeDropped = dropped
+ line.richOf(pt, t.Creator, nil, t.UpdatedAt)
v.Task, v.Line, v.Open = &line, t.Title, line.Retry || line.Cancel || line.Merge || line.Recover
}
}
+ v.rosterAuthor(tasks)
return v
}
diff --git a/internal/equipo/chat_roster.go b/internal/equipo/chat_roster.go
new file mode 100644
index 00000000..137ea4d8
--- /dev/null
+++ b/internal/equipo/chat_roster.go
@@ -0,0 +1,21 @@
+package equipo
+
+import "amadan.net/oficina/equipo/internal/wire"
+
+func (v *chatCard) rosterAuthor(tasks map[string]wire.Task) {
+ v.Author, v.AuthorIcon, v.Verb = copyText("conversation.coordinator"), "sparkles", copyText("roster.reports")
+ if v.Open && !receiptKind(v.Card) {
+ v.Verb = copyText("roster.asks")
+ }
+ if t, ok := tasks[v.TaskID]; ok {
+ who := wire.SpecialistEngineering
+ if v.Kind == wire.CardResearchSources {
+ who = wire.SpecialistResearch
+ }
+ if t.CopyHold {
+ who, v.Verb = wire.SpecialistCopy, copyText("roster.holds")
+ }
+ v.Author = specialistName(who)
+ v.AuthorIcon = map[string]string{wire.SpecialistEngineering: "wrench", wire.SpecialistResearch: "search", wire.SpecialistCopy: "type"}[who]
+ }
+}
diff --git a/internal/equipo/copy.go b/internal/equipo/copy.go
index 3542cb60..6f4f3359 100644
--- a/internal/equipo/copy.go
+++ b/internal/equipo/copy.go
@@ -59,22 +59,49 @@ const BootLog = "Equipo could not start."
// COPY APPROVED BY DELEGATION (Luna pass, 2026-11-01, house rules).
var pageCopy = map[string]string{
- "id.door": "Sign in with Oficina ID", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "id.title": "Oficina ID", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "id.unlinked": "No Equipo account is linked to this Oficina ID.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "id.help": "Sign in by email, then link your Oficina ID in Settings.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "id.link": "Link Oficina ID", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "id.reauth": "Sign in by email again before linking or unlinking your Oficina ID.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "id.confirm": "Link this Oficina ID to your Equipo account?", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "id.confirm_button": "Confirm link", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "id.unlink": "Unlink Oficina ID", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "id.unlink_confirm": "Unlink your Oficina ID? You can still sign in by email. Your work will stay in Equipo.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "id.linked_at": "Linked on %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "id.not_linked": "You have not linked an Oficina ID.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "id.failed": "This sign-in could not be completed. Try again or sign in by email.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "id.email": "Sign in by email", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "id.signed_out": "You are signed out of Equipo.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
- "id.home_signout": "Sign out of Oficina ID too", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "roster.set_aside": "Set aside", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.aside": "Set aside, still in Needs you", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.undo": "Undo", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.reports": "reports", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.asks": "asks", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.holds": "is holding", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.busy": "Working…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.setting_aside": "Setting aside…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.restoring": "Restoring…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.building": "Building…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.sending": "Sending…", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.failed": "Couldn’t confirm that change. Try again.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.stale": "This item has changed. Check it before trying again.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.retry": "Try again", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.sent": "Sent", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.reply": "Reply", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.change": "What should change?", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.waiting": "%s is reading", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.checks": "Checks", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.review": "Review", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.branch": "Branch", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.open_task": "Open the task", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.copy_coverage": "Review coverage is not available yet.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.copy_since": "Held since %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.research": "Research findings", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.research_log": "Open the request log", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "roster.needs": "%d waiting for you", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)
+ "id.door": "Sign in with Oficina ID", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "id.title": "Oficina ID", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "id.unlinked": "No Equipo account is linked to this Oficina ID.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "id.help": "Sign in by email, then link your Oficina ID in Settings.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "id.link": "Link Oficina ID", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "id.reauth": "Sign in by email again before linking or unlinking your Oficina ID.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "id.confirm": "Link this Oficina ID to your Equipo account?", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "id.confirm_button": "Confirm link", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "id.unlink": "Unlink Oficina ID", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "id.unlink_confirm": "Unlink your Oficina ID? You can still sign in by email. Your work will stay in Equipo.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "id.linked_at": "Linked on %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "id.not_linked": "You have not linked an Oficina ID.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "id.failed": "This sign-in could not be completed. Try again or sign in by email.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "id.email": "Sign in by email", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "id.signed_out": "You are signed out of Equipo.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
+ "id.home_signout": "Sign out of Oficina ID too", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
"work.reason.copy_budget": "Copy cannot review all these strings within this task’s token allowance. Continue without Copy or ask the coordinator.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
"work.reason.copy_budget_unknown": "Copy’s token use is unknown. Check the last attempt before continuing.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)
diff --git a/internal/equipo/static/equipo.css b/internal/equipo/static/equipo.css
index 5ef5b5d8..936f9f88 100644
--- a/internal/equipo/static/equipo.css
+++ b/internal/equipo/static/equipo.css
@@ -1766,3 +1766,52 @@ label[equipo-sp-label] { cursor: pointer; }
[equipo-copy-form] textarea { min-block-size: 6rem; }
[equipo-copy-flag] { padding: var(--rst-sp-4); }
[equipo-t-head] > [data-copy-flag] { grid-column: 1 / -1; }
+
+/* Roster: bylines sit on the page; only decisions are raised. */
+[equipo-conversation] { -webkit-text-size-adjust: 100%; }
+[equipo-conversation] [equipo-feed] { gap: 1.25rem; font-size: 1rem; }
+[equipo-conversation] [equipo-card] { display: block; position: relative; inline-size: 100%; max-inline-size: 48rem; align-self: center; margin: 0; padding: 0 0 0 3rem; border: 0; border-radius: 0; background: transparent; font-size: 1rem; }
+[equipo-roster-byline] { display: flex; align-items: center; gap: .375rem; min-block-size: 2.25rem; margin-block-end: .375rem; color: var(--rst-text-muted); font-size: var(--rst-fs-sm); }
+[equipo-roster-byline] b { font-size: 1rem; font-weight: 700; color: var(--rst-text); }
+[equipo-roster-byline] time { color: var(--rst-text-faint); font-size: var(--rst-fs-xs); }
+[equipo-roster-avatar] { display: grid; place-items: center; position: absolute; inset-inline-start: 0; inset-block-start: 0; inline-size: 2.25rem; block-size: 2.25rem; border: 1px solid var(--rst-line); border-radius: calc(var(--rst-radius) * 11 / 6); background: var(--rst-surface); box-shadow: var(--rst-shadow-lift); }
+[equipo-coordinator-mark] { display: inline-grid; place-items: center; background: transparent; border-color: transparent; box-shadow: none; color: var(--rst-text-muted); }
+[equipo-coordinator-mark] svg { inline-size: 1.375rem; block-size: 1.375rem; }
+[equipo-roster-card] { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; padding: .875rem 1rem; border: 1px solid var(--rst-line); border-radius: calc(var(--rst-radius) * 8 / 3); background: var(--rst-surface-2); }
+[equipo-roster-card][data-ask] { background: var(--rst-surface); border-color: var(--rst-light-rim); box-shadow: var(--rst-shadow-pop); }
+[equipo-roster-report] { display: grid; gap: .75rem; min-inline-size: 0; }
+[equipo-roster-report-head] { display: flex; align-items: start; justify-content: space-between; gap: .625rem; }
+[equipo-roster-report-head] h3 { margin: .125rem 0 0; font-size: 1.125rem; font-weight: 650; line-height: 1.3; letter-spacing: -.015em; }
+[equipo-roster-report-head] a { color: inherit; text-decoration: none; }
+[equipo-roster-stage] { color: var(--rst-text-muted); font-size: var(--rst-fs-xs); font-weight: 650; }
+[equipo-roster-stage]:not([data-needs=""]) { color: var(--rst-tone-negative-fg); }
+[equipo-roster-facts] { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; border-block-start: 1px solid var(--rst-line); padding-block-start: .625rem; }
+[equipo-roster-facts] > div { min-inline-size: 0; padding-inline: .875rem; border-inline-start: 1px solid var(--rst-line); }
+[equipo-roster-facts] > div:first-child { padding-inline-start: 0; border: 0; }
+[equipo-roster-facts] dt { color: var(--rst-text-faint); font-size: var(--rst-fs-xs); }
+[equipo-roster-facts] dd { margin: 0; font-weight: 600; font-size: var(--rst-fs-sm); overflow-wrap: anywhere; }
+[equipo-roster-facts] small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--rst-text-muted); }
+[equipo-roster-facts] code { padding: 0; background: none; border-radius: 0; font-size: var(--rst-fs-xs); }
+[equipo-roster-links] { display: flex; flex-wrap: wrap; gap: .375rem .875rem; font-size: var(--rst-fs-sm); color: var(--rst-text-muted); }
+[equipo-roster-report] [equipo-track-full] { margin: .125rem 0 0; }
+[equipo-conversation] [equipo-message="incoming"] { box-sizing: border-box; inline-size: 100%; max-inline-size: 48rem; align-self: center; padding-inline-start: 3rem; }
+[equipo-conversation] [equipo-message-meta] strong { display: flex; align-items: center; gap: .75rem; font-weight: 700; color: var(--rst-text); }
+[equipo-conversation] [equipo-message-meta] [equipo-coordinator-mark] { position: absolute; inset-inline-start: 0; inline-size: 2.25rem; }
+[equipo-conversation] [equipo-message-meta] time { margin-inline-start: 0; }
+[equipo-conversation] [equipo-message="incoming"] [equipo-bubble] { font-size: 1rem; line-height: 1.55; }
+@media (max-width: 500px) {
+ [equipo-conversation] [equipo-card] { padding-inline-start: 0; }
+ [equipo-roster-byline] { padding-inline-start: 2.5rem; min-block-size: 1.875rem; }
+ [equipo-roster-avatar] { inline-size: 1.875rem; block-size: 1.875rem; }
+ [equipo-roster-card] { border-radius: calc(3 * var(--rst-radius)); padding: .875rem; }
+ [equipo-roster-facts] { grid-template-columns: 1fr; gap: .5rem; }
+ [equipo-roster-facts] > div { display: grid; grid-template-columns: 4.5rem minmax(0,1fr); padding: 0; border: 0; align-items: baseline; }
+ [equipo-roster-facts] small { grid-column: 2; }
+ [equipo-roster-report] [equipo-track-full] li:not([aria-current]) > span:last-of-type { visibility: hidden; }
+ [equipo-roster-report] [equipo-track-full] small { display: none; }
+ [equipo-conversation] [equipo-message="incoming"] { padding-inline-start: 0; }
+ [equipo-conversation] [equipo-message="incoming"] [equipo-message-meta] { padding-inline-start: 2.5rem; min-block-size: 1.875rem; }
+ [equipo-roster-card] [equipo-actions] { display: grid; grid-template-columns: 1fr 1fr; }
+ [equipo-roster-card] button { min-block-size: 2.75rem; }
+ [equipo-roster-card] [rst-btn="primary"] { grid-column: 1 / -1; }
+}
diff --git a/internal/equipo/templates/chat.html b/internal/equipo/templates/chat.html
index 9ed15926..abcff7cf 100644
--- a/internal/equipo/templates/chat.html
+++ b/internal/equipo/templates/chat.html
@@ -2,6 +2,7 @@
{{define "title"}}{{if .Chat.Job}}{{copy "jobs.title"}}{{else}}{{copy "conversation.title"}}{{end}}{{end}}
{{define "card-job"}}{{with .Job}}<input type="hidden" name="from" value="job"><input type="hidden" name="job" value="{{.}}">{{end}}{{end}}
{{define "chat-card"}}<li equipo-card="{{.Kind}}"{{if .Receipt}} equipo-receipt{{end}} data-card="{{.ID}}" data-state="{{.State}}" data-turn-id="{{.TurnID}}">
+{{template "roster-byline" .}}<section equipo-roster-card{{if and .Open (not .Receipt)}} data-ask{{end}}{{if .Receipt}} data-flat{{end}}>
{{if and .Receipt (eq .Kind "task")}}{{template "work-task-receipt" .}}
{{else if eq .Kind "advice"}}{{if ne .State "resolved"}}<p equipo-card-line data-advice-card>{{icon "lightbulb"}}<span>{{.Line}}</span></p>{{if .Open}}<form method="post" action="/conversation/cards/{{.ID}}/answer" data-card-form equipo-actions><input type="hidden" name="revision" value="{{.Revision}}">{{template "card-job" .}}<button rst-btn="primary" name="choice" value="act" type="submit" data-advice-choice="act">{{.ActLabel}}</button><button rst-btn name="choice" value="dismiss" type="submit" data-advice-choice="dismiss">{{.DismissLabel}}</button></form>{{else}}{{with .Note}}<p equipo-card-note>{{.}}</p>{{end}}{{end}}{{end}}
{{else if eq .Kind "housekeeping"}}<p equipo-card-line data-digest>{{icon "list-checks"}}<span>{{.Line}} <a href="/housekeeping" data-digest-link>{{copy "chat.housekeeping.link"}}</a></span></p>
@@ -16,14 +17,21 @@
{{else if eq .Kind "merge"}}<p equipo-card-line>{{.Line}}</p>{{with .PreviewURL}}<p equipo-card-note><a href="{{.}}" rel="noopener" target="_blank" data-preview-link>{{copy "chat.card.preview_link"}}</a></p>{{end}}{{if .Open}}<form method="post" action="/conversation/cards/{{.ID}}/answer" data-card-form equipo-actions><input type="hidden" name="revision" value="{{.Revision}}">{{template "card-job" .}}{{range .Options}}<button rst-btn="{{if eq . "merge"}}primary{{end}}" name="choice" value="{{.}}" type="submit" data-merge-choice="{{.}}">{{copy (printf "chat.card.%s" .)}}</button>{{end}}</form>{{else}}{{with .Note}}<p equipo-card-note>{{.}}</p>{{end}}{{end}}
{{else if or (eq .Kind "merge_ships") (eq .Kind "merge_policy") (eq .Kind "merge_receipt")}}{{if eq .Kind "merge_receipt"}}<div equipo-card-line equipo-markdown data-merge-receipt>{{chatMarkdown .Line}}</div>{{else}}<p equipo-card-line>{{.Line}}</p>{{end}}{{if .Open}}<form method="post" action="/conversation/cards/{{.ID}}/answer" data-card-form equipo-actions><input type="hidden" name="revision" value="{{.Revision}}">{{template "card-job" .}}{{range .Options}}<button rst-btn="{{if or (eq . "save") (eq . "not_ships")}}primary{{end}}" name="choice" value="{{.}}" type="submit" data-merge-choice="{{.}}">{{copy (printf "chat.card.%s" .)}}</button>{{end}}</form>{{else}}{{with .Note}}<p equipo-card-note>{{.}}</p>{{end}}{{end}}
{{else if eq .Kind "access"}}<p equipo-card-line>{{.Line}}</p>{{if .Open}}<details equipo-grant><summary rst-btn>{{copy "chat.card.grant"}}</summary><p>{{.GrantHow}}</p><code>amadan agent grant {{.Agent}} {{.Namespace}}</code><form method="post" action="/conversation/cards/{{.ID}}/answer" data-card-form><input type="hidden" name="revision" value="{{.Revision}}">{{template "card-job" .}}<button rst-btn name="choice" value="check" type="submit" data-grant-check>{{copy "chat.card.grant_check"}}</button></form></details>{{end}}
-{{end}}</li>{{end}}
-{{define "work-task-receipt"}}{{with .Task}}<p equipo-card-line>{{icon "check-circle"}}<span><a href="/tasks/{{.ID}}">{{.Title}}</a></span><span equipo-stage data-stage="{{.Stage}}" data-needs="{{.NeedsYou}}">{{.StageLine}}</span></p>{{if and .Pushed (not .MergedLine)}}<p equipo-card-note data-pushed><span>{{.Pushed}}</span><a href="{{.URL}}" rel="noopener" target="_blank" data-open-amadan>{{copy "work.open"}}</a></p>{{end}}{{if or .ChecksLine .ReviewLine}}<p equipo-card-note data-judged>{{with .ChecksLine}}<span data-checks>{{.}}</span>{{end}}{{with .ReviewLine}}<span data-verdict>{{.}}</span>{{end}}</p>{{end}}{{if .MergedLine}}<p equipo-card-note data-merged><span>{{.MergedLine}}</span><a href="{{.RepoURL}}" rel="noopener" target="_blank" data-open-amadan>{{copy "work.open"}}</a></p>{{end}}{{if .PreviewURL}}<p equipo-card-note data-preview><a href="{{.PreviewURL}}" rel="noopener" target="_blank">{{.PreviewLine}}</a></p>{{end}}{{end}}{{if .Open}}<button type="button" equipo-receipt-more aria-expanded="false" aria-controls="acts-{{.ID}}" aria-label="{{copy "chat.card.more"}}">⋯</button><span equipo-receipt-actions id="acts-{{.ID}}">{{template "work-task-actions" .Task}}</span>{{end}}{{end}}
+{{end}}</section></li>{{end}}
+{{define "roster-byline"}}<div equipo-roster-byline><span equipo-roster-avatar{{if eq .AuthorIcon "sparkles"}} equipo-coordinator-mark{{end}}>{{if eq .AuthorIcon "sparkles"}}{{template "roster-mark" .}}{{else}}{{icon .AuthorIcon}}{{end}}</span><b>{{.Author}}</b><span>{{.Verb}}</span><time datetime="{{.CreatedAt.Format "2006-01-02T15:04:05Z07:00"}}">{{.CreatedAt.Format "15:04"}}</time></div>{{end}}
+{{define "roster-mark"}}<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3c1.1 5.8 3.2 7.9 9 9-5.8 1.1-7.9 3.2-9 9-1.1-5.8-3.2-7.9-9-9 5.8-1.1 7.9-3.2 9-9Z"/></svg>{{end}}
+{{define "work-task-receipt"}}{{with .Task}}<div equipo-roster-report>
+<div equipo-roster-report-head><div><span equipo-roster-stage data-needs="{{.NeedsYou}}">{{.StageLine}}</span><h3><a href="/tasks/{{.ID}}">{{.Title}}</a></h3></div>{{if .NeedsYou}}<span rst-badge="warning">{{copy "nav.needs-you"}}</span>{{end}}</div>
+{{if ne .Stage "cancelled"}}{{template "track-full" .}}{{end}}
+<dl equipo-roster-facts>{{if .ChecksLine}}<div><dt>{{copy "roster.checks"}}</dt><dd data-checks>{{.ChecksLine}}</dd></div>{{end}}{{if .ReviewLine}}<div><dt>{{copy "roster.review"}}</dt><dd data-verdict>{{.ReviewLine}}</dd></div>{{end}}{{if .Branch}}<div><dt>{{copy "roster.branch"}}</dt><dd><code>{{.Branch}}</code></dd><small>{{.CandidateSHA}}</small></div>{{end}}</dl>
+<div equipo-roster-links><a href="/tasks/{{.ID}}">{{copy "roster.open_task"}}</a>{{if and .Pushed (not .MergedLine)}}<span data-pushed>{{.Pushed}}</span><a href="{{.URL}}" rel="noopener" target="_blank" data-open-amadan>{{copy "work.open"}}</a>{{end}}{{if .MergedLine}}<span data-merged>{{.MergedLine}}</span><a href="{{.RepoURL}}" rel="noopener" target="_blank" data-open-amadan>{{copy "work.open"}}</a>{{end}}{{if .PreviewURL}}<a href="{{.PreviewURL}}" rel="noopener" target="_blank" data-preview>{{copy "chat.card.preview_link"}}</a>{{end}}</div>
+</div>{{end}}{{if .Open}}<button type="button" equipo-receipt-more aria-expanded="false" aria-controls="acts-{{.ID}}" aria-label="{{copy "chat.card.more"}}">⋯</button><span equipo-receipt-actions id="acts-{{.ID}}">{{template "work-task-actions" .Task}}</span>{{end}}{{end}}
{{define "message-files"}}{{with .}}<div equipo-message-files>{{range .}}{{if eq .Kind "image"}}<a equipo-file-thumb href="/conversation/attachments/{{.ID}}" target="_blank" rel="noopener" data-attachment="{{.ID}}"><img src="/conversation/attachments/{{.ID}}/preview" alt="{{.Name}}"{{if .Width}} width="{{.Width}}" height="{{.Height}}"{{end}} loading="lazy" decoding="async"></a>{{else}}<a equipo-file-chip href="/conversation/attachments/{{.ID}}" target="_blank" rel="noopener" data-attachment="{{.ID}}">{{icon "file-text"}}<span equipo-file-name>{{.Name}}</span><span equipo-file-size>{{fileSize .Size}}</span></a>{{end}}{{end}}</div>{{end}}{{end}}
{{define "chat-lines"}}{{$address := .Address}}{{range .Lines}}
{{if .CardOnly}}{{range .Cards}}{{template "chat-card" .}}{{end}}{{else}}
{{range .Receipts}}{{template "chat-card" .}}{{end}}
<li equipo-message="{{if .Own}}own{{else}}incoming{{end}}" data-message="{{.ID}}" data-turn-id="{{.TurnID}}">
-<div equipo-message-meta><strong{{if .Own}} equipo-visually-hidden{{end}}>{{if .Own}}{{$address}}{{else}}{{icon "message-circle"}}{{copy "conversation.coordinator"}}{{end}}</strong><time datetime="{{.CreatedAt.Format "2006-01-02T15:04:05Z07:00"}}">{{.CreatedAt.Format "15:04"}}</time></div>
+<div equipo-message-meta><strong{{if .Own}} equipo-visually-hidden{{end}}>{{if .Own}}{{$address}}{{else}}<span equipo-coordinator-mark>{{template "roster-mark" .}}</span>{{copy "conversation.coordinator"}}{{end}}</strong><time datetime="{{.CreatedAt.Format "2006-01-02T15:04:05Z07:00"}}">{{.CreatedAt.Format "15:04"}}</time></div>
{{if .Own}}{{template "message-files" .Files}}{{end}}<div equipo-bubble>{{if .Own}}<p equipo-message-body>{{.Text}}</p>{{else}}<div equipo-message-body equipo-markdown>{{chatMarkdown .Text}}</div>{{end}}</div>
{{with .Waiting}}<p equipo-card-note data-waiting-connection>{{.}}</p>{{end}}
{{with .Queued}}<p equipo-card-note data-queued>{{.}}</p>{{end}}
@@ -45,11 +53,11 @@
<p equipo-offline role="status"{{if not .Chat.Offline}} hidden{{end}}>{{copy "chat.offline"}}</p>
<div equipo-scroll tabindex="0" role="region" aria-label="{{copy "conversation.title"}}">
<section id="conversation-feed">
-<template equipo-message-template><li equipo-message="incoming" data-message=""><div equipo-message-meta><strong>{{icon "message-circle"}}{{copy "conversation.coordinator"}}</strong><time></time></div><div equipo-bubble><div equipo-message-body equipo-chat-text></div></div></li></template>
+<template equipo-message-template><li equipo-message="incoming" data-message=""><div equipo-message-meta><strong><span equipo-coordinator-mark>{{template "roster-mark" .}}</span>{{copy "conversation.coordinator"}}</strong><time></time></div><div equipo-bubble><div equipo-message-body equipo-chat-text></div></div></li></template>
<template equipo-own-template><li equipo-message="own" data-message=""><div equipo-message-meta><strong equipo-visually-hidden>{{.Address}}</strong><time></time></div><div equipo-message-files hidden></div><div equipo-bubble><p equipo-message-body></p></div></li></template>
<template equipo-file-template><a equipo-file-chip href="" target="_blank" rel="noopener" data-attachment="">{{icon "file-text"}}<span equipo-file-name></span><span equipo-file-size></span></a></template>
<template equipo-chip-template><li equipo-chip data-state="uploading"><span equipo-chip-thumb>{{icon "file-text"}}</span><span equipo-chip-text><span equipo-chip-name></span><span equipo-chip-note></span></span><span equipo-chip-progress role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><i></i></span><button type="button" equipo-chip-remove>{{icon "x"}}</button></li></template>
-<template equipo-thinking-template><li equipo-message="incoming" equipo-thinking data-turn="" data-started="" aria-busy="true"><div equipo-message-meta><strong>{{icon "message-circle"}}{{copy "conversation.coordinator"}}</strong><time></time></div><div equipo-bubble><div equipo-message-body equipo-markdown data-stream-text></div><p equipo-activity-line><span equipo-activity>{{copy "chat.activity.thinking"}}</span><span equipo-activity-sep aria-hidden="true">·</span><span equipo-elapsed></span></p></div></li></template>
+<template equipo-thinking-template><li equipo-message="incoming" equipo-thinking data-turn="" data-started="" aria-busy="true"><div equipo-message-meta><strong><span equipo-coordinator-mark>{{template "roster-mark" .}}</span>{{copy "conversation.coordinator"}}</strong><time></time></div><div equipo-bubble><div equipo-message-body equipo-markdown data-stream-text></div><p equipo-activity-line><span equipo-activity>{{copy "chat.activity.thinking"}}</span><span equipo-activity-sep aria-hidden="true">·</span><span equipo-elapsed></span></p></div></li></template>
<template equipo-ended-template><li equipo-system-note data-ended=""><p></p></li></template>
<ol equipo-feed>
{{range .Chat.Days}}{{template "chat-day" .}}{{end}}
@@ -58,7 +66,7 @@
{{template "chat-lines" (.Chat.Earlier .Address)}}
{{template "chat-lines" (.Chat.Today .Address)}}
{{if not (or .Chat.Days .Chat.Open .Chat.Messages)}}<li data-empty-state="conversation.empty">{{copy "conversation.empty"}}</li>{{end}}
-{{range .Chat.Waiting}}<li equipo-message="incoming" equipo-thinking data-turn="{{.ID}}"{{with .Kind}} data-kind="{{.}}"{{end}} data-started="{{.CreatedAt.UnixMilli}}" aria-busy="true"><div equipo-message-meta><strong>{{icon "message-circle"}}{{copy "conversation.coordinator"}}</strong><time></time></div><div equipo-bubble><div equipo-message-body equipo-markdown data-stream-text></div><p equipo-activity-line><span equipo-activity>{{if eq .Kind "move_in"}}{{copy "chat.moving_in"}}{{else if eq .Kind "explore"}}{{copy "chat.exploring"}}{{else}}{{copy "chat.activity.thinking"}}{{end}}</span><span equipo-activity-sep aria-hidden="true">·</span><span equipo-elapsed></span></p></div></li>{{end}}
+{{range .Chat.Waiting}}<li equipo-message="incoming" equipo-thinking data-turn="{{.ID}}"{{with .Kind}} data-kind="{{.}}"{{end}} data-started="{{.CreatedAt.UnixMilli}}" aria-busy="true"><div equipo-message-meta><strong><span equipo-coordinator-mark>{{template "roster-mark" .}}</span>{{copy "conversation.coordinator"}}</strong><time></time></div><div equipo-bubble><div equipo-message-body equipo-markdown data-stream-text></div><p equipo-activity-line><span equipo-activity>{{if eq .Kind "move_in"}}{{copy "chat.moving_in"}}{{else if eq .Kind "explore"}}{{copy "chat.exploring"}}{{else}}{{copy "chat.activity.thinking"}}{{end}}</span><span equipo-activity-sep aria-hidden="true">·</span><span equipo-elapsed></span></p></div></li>{{end}}
{{with .Chat.NoConnection}}<li equipo-card="no_connection" data-no-connection="{{.TurnID}}"><p equipo-card-line>{{.Line}}</p><p equipo-actions><a rst-btn="primary" href="/conversation/settings/connections/add" data-add-connection>{{copy "chat.no_connection.add"}}</a></p></li>{{end}}
{{with .Chat.Ended}}<li equipo-system-note data-ended="{{.ID}}"><p>{{copy .Key}}</p></li>{{end}}
</ol>
diff --git a/internal/thintest/roster_browser_test.go b/internal/thintest/roster_browser_test.go
new file mode 100644
index 00000000..7feedc11
--- /dev/null
+++ b/internal/thintest/roster_browser_test.go
@@ -0,0 +1,29 @@
+//go:build browser
+
+package thintest
+
+import (
+ "fmt"
+ "testing"
+)
+
+func TestBrowserRosterVisual(t *testing.T) {
+ r := newRollupRig(t)
+ for _, width := range []int64{1280, 390} {
+ for _, scheme := range []string{"light", "dark"} {
+ t.Run(fmt.Sprintf("%d-%s", width, scheme), func(t *testing.T) {
+ p := openInner(t, r.inst.URL, r.inst.Cookie(), width, 844, width == 390, scheme, "reduce")
+ defer p.stop()
+ p.open("/conversation")
+ p.wait(`document.querySelector('[equipo-offline]').hidden`, "connected")
+ p.check(`!!document.querySelector('[equipo-roster-byline]')`, "roster bylines missing")
+ p.check(`!!document.querySelector('[equipo-roster-report] [data-track]')`, "report stage track missing")
+ p.check(`!!document.querySelector('[equipo-roster-facts]')`, "report facts missing")
+ p.check(`(()=>{const s=getComputedStyle(document.querySelector('[equipo-coordinator-mark]'));return s.backgroundColor==='rgba(0, 0, 0, 0)' && s.boxShadow==='none'})()`, "coordinator has a tile")
+ p.fits("Roster")
+ p.check(`(()=>{document.querySelector('[equipo-scroll]').scrollTop=0;return true})()`, "top")
+ p.shot(fmt.Sprintf("roster-%d-%s", width, scheme))
+ })
+ }
+ }
+}