oficina / equipo Public

Merge branch 'copy-flags-1111' into main

Copy: resolve the delegated pass's nine flags against the code

Stars read "2 tasks are waiting on you" and "You started 3 tasks
here this week", singular handled. The Mac card says no Mac is set up
and that checks run on the next change; Ask about this drafts by title;
the drawer says Command. Hosted CI passed on a826e1c.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 7fa113c6039cd0d8dc515d7b40e886c47bdcba93 parent f5ad8e3parent a826e1c
8 files changed, +114 −70
  • docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md +38 −18
  • internal/equipo/chat_page.go +2 −1
  • internal/equipo/copy.go +41 −39
  • internal/equipo/project_order.go +8 −3
  • internal/equipo/project_order_test.go +16 −2
  • internal/equipo/team_activity_test.go +2 −0
  • internal/thintest/projects_pages_test.go +5 −5
  • internal/thintest/team_panel_test.go +2 −2

CI passed — run details

diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
index dfcc1671..08e87653 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
@@ -5939,18 +5939,20 @@ records remain unchanged.
| `work.star.by_you` | Starred by you | Projects: stars (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `work.star.by_coordinator` | Starred by your coordinator at your request | Projects: stars (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `work.star.by_auto` | Starred by Equipo: %s | Projects: stars (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
-| `work.star.why.waiting` | tasks waiting on you: %d | Projects: stars (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
-| `work.star.why.busy` | you noted %d tasks in it this week | Projects: stars (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
+| `work.star.why.waiting` | %d tasks are waiting on you | Projects: stars (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
+| `work.star.why.waiting_one` | %d task is waiting on you | Projects: stars (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
+| `work.star.why.busy` | You started %d tasks here this week | Projects: stars (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
+| `work.star.why.busy_one` | You started %d task here this week | Projects: stars (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `work.star.receipt` | Starred %s: %s | Projects: stars (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `work.chip.waiting_mac` | Waiting for a Mac to run checks | Tasks and Needs you (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `work.summary.waiting_mac` | Approved. Waiting for a Mac to run checks. You can merge now without checks. | Tasks and Needs you (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
-| `work.decide.mac_why` | Review approved. Checks need a Mac, and none is connected yet. | Tasks and Needs you (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
-| `work.decide.mac_hint` | Merge now adds the changes without checks. Wait for a Mac keeps them ready. Once a Mac is available, Equipo runs checks and merges the changes if they pass. | Tasks and Needs you (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
+| `work.decide.mac_why` | Review approved. Checks need a Mac, and no Mac is set up to run them. | Tasks and Needs you (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
+| `work.decide.mac_hint` | Merge now merges it without checks. Wait for a Mac leaves it as it is. Once a Mac is set up, checks run on its next change, and if they pass, Equipo merges it by itself. | Tasks and Needs you (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `work.decide.mac.merge` | Merge now | Tasks and Needs you (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `work.decide.mac.wait` | Wait for a Mac | Tasks and Needs you (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `work.decide.mac_set_up` | Set up a Mac | Tasks and Needs you (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `work.ask_about` | Ask about this | Tasks and Needs you (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
-| `work.ask_about.draft` | About “%s” (task %s): | Tasks and Needs you (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
+| `work.ask_about.draft` | About “%s”: | Tasks and Needs you (projects-ux) | COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `team.activity.read_files` | Reading files | Team panel: sidebar rows and drawer (activity line) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `team.activity.edit_files` | Editing files | Team panel: sidebar rows and drawer (activity line) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `team.activity.search_code` | Searching the code | Team panel: sidebar rows and drawer (activity line) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
@@ -5971,7 +5973,7 @@ records remain unchanged.
| `team.close` | Close | Team panel: specialist drawer | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `team.working_on` | Working on | Team panel: specialist drawer | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `team.activity` | Activity | Team panel: specialist drawer | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
-| `team.command` | Current action | Team panel: specialist drawer | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
+| `team.command` | Command | Team panel: specialist drawer | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `team.files` | Files involved | Team panel: specialist drawer | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `team.edited` | edited | Team panel: specialist drawer | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `team.runs_on` | Runs on | Team panel: specialist drawer | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
@@ -5981,7 +5983,7 @@ records remain unchanged.
| `team.ask` | Ask %s | Team panel: specialist drawer | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `team.ask_send` | Ask | Team panel: specialist drawer | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `team.ask_about` | About %s | Team panel: specialist drawer | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
-| `team.ask_waits` | %s answers after this step ends, using its last completed work. | Team panel: specialist drawer | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
+| `team.ask_waits` | %s answers once this step ends, from its last finished round. | Team panel: specialist drawer | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `team.ask_failed` | That question did not go through. Try again. | Team panel: specialist drawer | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `team.recent` | Recent work | Team panel: specialist drawer | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
| `team.recent_empty` | Nothing yet. | Team panel: specialist drawer | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11) |
@@ -6668,14 +6670,32 @@ team-panel added as COPY REVIEW REQUIRED (conn-row-polish's keys were
already accepted in Paul's dictated format). It changed 24 and kept 69; every row above is now marked
COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11), and copy.go matches.
-Astra's flags, for Paul or a later pass:
-
-- `teams.lede`: Confirm the privacy promise covers these saved links everywhere they appear.
-- `work.star.why.busy`: What does “noted” mean here: created tasks, added notes, or mentioned tasks? Name the actual action. If the count can be one, this also needs singular handling.
-- `work.summary.waiting_mac`: Confirm “without checks” means all checks are skipped, rather than only the checks that need a Mac.
-- `work.decide.mac_why`: Confirm this state means no Mac is connected. A connected but busy or unsuitable Mac would make this inaccurate.
-- `work.decide.mac_hint`: Confirm passing checks triggers automatic merging without another decision. The proposed text makes that condition explicit.
-- `work.ask_about.draft`: If the second `%s` is an internal ID, the no-ID rule conflicts with preserving both placeholders. Keep pending a code change that carries task context outside the visible draft.
-- `team.activity.script`: Confirm `%s` is a readable activity name, not a shell command or internal script name.
-- `team.command`: “Current action” needs a readable value. Relabelling a raw shell command does not satisfy the no-jargon rule.
-- `team.ask_waits`: Confirm which completed work informs the answer: the step currently running or an earlier saved state. The timing and available context need to be accurate.
+Astra's nine flags were fact checks, resolved against the code by the
+coordinator's ruling (2026-11-11), still accepted by delegation:
+
+- `work.star.why.waiting`, `work.star.why.busy`: the reasons are plain
+ counts (two or more waiting on you; three or more tasks the person
+ started from their conversation in seven days). Now "2 tasks are
+ waiting on you" and "You started 3 tasks here this week", with
+ singular keys `_one`; no double colon in "Starred Woodstar: ...".
+- `teams.lede`: kept. Team links are stored per person in this
+ instance's database (`team_links.person`) and read only for the
+ signed-in person (page and person API).
+- `work.summary.waiting_mac`: kept. On `needs_macos` the runner runs
+ none of the gate ("Not run: ... needs macOS"), so "checks" is exact.
+- `work.decide.mac_why`: `needs_macos` lands only when no enrolled Mac
+ can take the checks (none with the tags, all refused or being
+ removed, or a primary too old to relay); a busy Mac queues and an
+ offline one waits, so neither reaches this card. Now "no Mac is set
+ up to run them".
+- `work.decide.mac_hint`: checks that pass on a Mac (seatbelt) merge
+ under slice 4c with no tap. Wait only closes the card: nothing runs
+ this change's checks again when a Mac is enrolled later, so the hint
+ says checks run on its next change. Gap for a follow-up: re-place a
+ Ready task's `needs_macos` checks when a fitting runner enrols.
+- `work.ask_about.draft`: the draft names the task by its title only.
+- `team.activity.script`: the subject is `activity.Name`, a base name
+ with no arguments or path (test: `./scripts/release.sh --tag v1
+ /etc/hosts` reads "Running release.sh").
+- `team.command`: "Command".
+- `team.ask_waits`: "from its last finished round" is accurate; kept.
diff --git a/internal/equipo/chat_page.go b/internal/equipo/chat_page.go
index be703167..cd60d43c 100644
--- a/internal/equipo/chat_page.go
+++ b/internal/equipo/chat_page.go
@@ -178,7 +178,8 @@ func (a *application) chatPage(w http.ResponseWriter, r *http.Request) {
if id := r.URL.Query().Get("about"); taskIDPattern.MatchString(id) {
// A task the person cannot see, or none, leaves the composer empty.
if t, err := a.store.Chat().Task(ctx, address, id); err == nil {
- view.Draft = fmt.Sprintf(copyText("work.ask_about.draft"), t.Title, t.ID)
+ // Named by its title, never its id (house rule: no ids in UI text).
+ view.Draft = fmt.Sprintf(copyText("work.ask_about.draft"), t.Title)
}
}
last := map[string]int{}
diff --git a/internal/equipo/copy.go b/internal/equipo/copy.go
index 9c59dd3d..b9291fcd 100644
--- a/internal/equipo/copy.go
+++ b/internal/equipo/copy.go
@@ -1121,18 +1121,20 @@ var pageCopy = map[string]string{
"work.star.by_you": "Starred by you", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
"work.star.by_coordinator": "Starred by your coordinator at your request", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
"work.star.by_auto": "Starred by Equipo: %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.star.why.waiting": "tasks waiting on you: %d", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.star.why.busy": "you noted %d tasks in it this week", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.star.why.waiting": "%d tasks are waiting on you", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.star.why.waiting_one": "%d task is waiting on you", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.star.why.busy": "You started %d tasks here this week", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.star.why.busy_one": "You started %d task here this week", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
"work.star.receipt": "Starred %s: %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
"work.chip.waiting_mac": "Waiting for a Mac to run checks", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
"work.summary.waiting_mac": "Approved. Waiting for a Mac to run checks. You can merge now without checks.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.decide.mac_why": "Review approved. Checks need a Mac, and none is connected yet.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.decide.mac_hint": "Merge now adds the changes without checks. Wait for a Mac keeps them ready. Once a Mac is available, Equipo runs checks and merges the changes if they pass.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.decide.mac_why": "Review approved. Checks need a Mac, and no Mac is set up to run them.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.decide.mac_hint": "Merge now merges it without checks. Wait for a Mac leaves it as it is. Once a Mac is set up, checks run on its next change, and if they pass, Equipo merges it by itself.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
"work.decide.mac.merge": "Merge now", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
"work.decide.mac.wait": "Wait for a Mac", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
"work.decide.mac_set_up": "Set up a Mac", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
"work.ask_about": "Ask about this", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
- "work.ask_about.draft": "About “%s” (task %s): ", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.ask_about.draft": "About “%s”: ", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
"work.recent.noted": "noted", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
"work.recent.pushed": "pushed a change for", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
"work.recent.approved": "approved", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
@@ -1508,40 +1510,40 @@ var pageCopy = map[string]string{
"specialist.concurrent": "Runs at once",
"specialist.instructions": "Instructions",
// The team panel (the sidebar's specialists and each one's drawer).
- "team.activity.read_files": "Reading files", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
- "team.activity.edit_files": "Editing files", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
- "team.activity.search_code": "Searching the code", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
- "team.activity.list": "Looking through %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
- "team.activity.list_files": "Looking through the files", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
- "team.activity.format": "Formatting the code", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
- "team.activity.test": "Running the tests", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
- "team.activity.build": "Building the project", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
- "team.activity.checks": "Running the checks", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
- "team.activity.install": "Setting up the project", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
- "team.activity.diff": "Looking over the changes", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
- "team.activity.history": "Reading the project history", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
- "team.activity.status": "Checking what changed", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
- "team.activity.commit": "Saving the changes", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
- "team.activity.git": "Working on the project", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
- "team.activity.script": "Running %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
- "team.activity.command": "Working on the project", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
- "team.close": "Close", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
- "team.working_on": "Working on", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
- "team.activity": "Activity", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
- "team.command": "Current action", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
- "team.files": "Files involved", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
- "team.edited": "edited", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
- "team.runs_on": "Runs on", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
- "team.connection": "Connection", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
- "team.model": "Model", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
- "team.model_pending": "Shown when this step ends", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
- "team.ask": "Ask %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
- "team.ask_send": "Ask", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
- "team.ask_about": "About %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
- "team.ask_waits": "%s answers after this step ends, using its last completed work.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
- "team.ask_failed": "That question did not go through. Try again.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
- "team.recent": "Recent work", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
- "team.recent_empty": "Nothing yet.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
+ "team.activity.read_files": "Reading files", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
+ "team.activity.edit_files": "Editing files", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
+ "team.activity.search_code": "Searching the code", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
+ "team.activity.list": "Looking through %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
+ "team.activity.list_files": "Looking through the files", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
+ "team.activity.format": "Formatting the code", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
+ "team.activity.test": "Running the tests", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
+ "team.activity.build": "Building the project", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
+ "team.activity.checks": "Running the checks", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
+ "team.activity.install": "Setting up the project", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
+ "team.activity.diff": "Looking over the changes", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
+ "team.activity.history": "Reading the project history", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
+ "team.activity.status": "Checking what changed", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
+ "team.activity.commit": "Saving the changes", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
+ "team.activity.git": "Working on the project", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
+ "team.activity.script": "Running %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
+ "team.activity.command": "Working on the project", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel activity line
+ "team.close": "Close", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
+ "team.working_on": "Working on", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
+ "team.activity": "Activity", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
+ "team.command": "Command", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
+ "team.files": "Files involved", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
+ "team.edited": "edited", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
+ "team.runs_on": "Runs on", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
+ "team.connection": "Connection", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
+ "team.model": "Model", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
+ "team.model_pending": "Shown when this step ends", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
+ "team.ask": "Ask %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
+ "team.ask_send": "Ask", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
+ "team.ask_about": "About %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
+ "team.ask_waits": "%s answers once this step ends, from its last finished round.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
+ "team.ask_failed": "That question did not go through. Try again.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
+ "team.recent": "Recent work", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
+ "team.recent_empty": "Nothing yet.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11): team panel drawer
}
func copyText(key string) string {
diff --git a/internal/equipo/project_order.go b/internal/equipo/project_order.go
index 3e45953d..96914816 100644
--- a/internal/equipo/project_order.go
+++ b/internal/equipo/project_order.go
@@ -84,9 +84,14 @@ func starSignals(tasks []taskLine, viewer string, now time.Time) map[string]chat
return out
}
-// starWhy is an auto star's reason in words: "tasks waiting on you: 2".
+// starWhy is an auto star's reason in words: "2 tasks are waiting on
+// you", "You started 3 tasks here this week"; one is singular.
func starWhy(s chat.Star) string {
- return fmt.Sprintf(copyText("work.star.why."+s.Reason), s.N)
+ key := "work.star.why." + s.Reason
+ if s.N == 1 {
+ key += "_one"
+ }
+ return fmt.Sprintf(copyText(key), s.N)
}
// starLine is a row's star: on or off, and who set it, for the hover.
@@ -115,7 +120,7 @@ func starLineOf(p projectLine, s chat.Star, ok bool, now time.Time) starLine {
return l
}
-// starReceipt is "Starred Woodstar: tasks waiting on you: 2" with Undo,
+// starReceipt is "Starred Woodstar: 2 tasks are waiting on you" with Undo,
// for a day after the person is first shown it.
type starReceipt struct {
ProjectID, Text string
diff --git a/internal/equipo/project_order_test.go b/internal/equipo/project_order_test.go
index cc662270..55c59aae 100644
--- a/internal/equipo/project_order_test.go
+++ b/internal/equipo/project_order_test.go
@@ -152,9 +152,23 @@ func TestStarLine(t *testing.T) {
told := now.Add(-time.Hour)
auto := chat.Star{Starred: true, By: chat.StarByAuto, Reason: starWaiting, N: 2, ToldAt: &told}
l := starLineOf(p, auto, true, now)
- if !l.On || !l.Auto || !l.Fresh || l.Who != "Starred by Equipo: tasks waiting on you: 2" || l.Label != "Unstar Woodstar" {
+ if !l.On || !l.Auto || !l.Fresh || l.Who != "Starred by Equipo: 2 tasks are waiting on you" || l.Label != "Unstar Woodstar" {
t.Fatalf("auto: %+v", l)
}
+ // Each reason in words, one in the singular (Equipo stars at two
+ // waiting or three started, but the words never say "1 tasks").
+ for _, c := range []struct {
+ s chat.Star
+ want string
+ }{
+ {chat.Star{Reason: starWaiting, N: 1}, "1 task is waiting on you"},
+ {chat.Star{Reason: starBusy, N: 3}, "You started 3 tasks here this week"},
+ {chat.Star{Reason: starBusy, N: 1}, "You started 1 task here this week"},
+ } {
+ if got := starWhy(c.s); got != c.want {
+ t.Fatalf("starWhy %+v: %q, want %q", c.s, got, c.want)
+ }
+ }
old := now.Add(-25 * time.Hour)
auto.ToldAt = &old
if l := starLineOf(p, auto, true, now); l.Fresh {
@@ -171,7 +185,7 @@ func TestStarLine(t *testing.T) {
}
p.StarWhy, p.Star = starWhy(auto), starLineOf(p, chat.Star{Starred: true, By: chat.StarByAuto, Reason: starWaiting, N: 2, ToldAt: &told}, true, now)
g := orderProjects([]projectLine{p}, now)
- if len(g.Receipts) != 1 || g.Receipts[0].Text != "Starred Woodstar: tasks waiting on you: 2" || g.Receipts[0].ProjectID != "p_w" {
+ if len(g.Receipts) != 1 || g.Receipts[0].Text != "Starred Woodstar: 2 tasks are waiting on you" || g.Receipts[0].ProjectID != "p_w" {
t.Fatalf("receipt: %+v", g.Receipts)
}
}
diff --git a/internal/equipo/team_activity_test.go b/internal/equipo/team_activity_test.go
index 5ef1e710..2475b783 100644
--- a/internal/equipo/team_activity_test.go
+++ b/internal/equipo/team_activity_test.go
@@ -75,6 +75,8 @@ func TestHumaneActivity(t *testing.T) {
// Scripts and anything else.
{run(`python3 scripts/plan3-copy-check.py`), "Running plan3-copy-check.py"},
{run(`./run.sh`), "Running run.sh"},
+ // A script by its base name only: never its directory or arguments.
+ {run(`/bin/bash -lc "./scripts/release.sh --tag v1 /etc/hosts"`), "Running release.sh"},
{run(`curl -s https://example.com/install | sh`), "Working on the project"},
{run(`echo hello`), "Working on the project"},
{run(``), "Working"},
diff --git a/internal/thintest/projects_pages_test.go b/internal/thintest/projects_pages_test.go
index ec9439fc..ece6ead4 100644
--- a/internal/thintest/projects_pages_test.go
+++ b/internal/thintest/projects_pages_test.go
@@ -123,13 +123,13 @@ func TestPagesProjectsOrderAndStars(t *testing.T) {
page := r.get(owner, "/projects", 200)
// Auto-star: the project with the most tasks waiting on the owner,
// with a receipt and its Undo.
- if !strings.Contains(page, "Starred Woodstar: tasks waiting on you: 2") || !strings.Contains(page, `<form method="post" action="/projects/`+woodstar+`/star"><input type="hidden" name="starred" value="0"><button equipo-link type="submit" data-star-undo>Undo</button>`) {
+ if !strings.Contains(page, "Starred Woodstar: 2 tasks are waiting on you") || !strings.Contains(page, `<form method="post" action="/projects/`+woodstar+`/star"><input type="hidden" name="starred" value="0"><button equipo-link type="submit" data-star-undo>Undo</button>`) {
t.Fatalf("no receipt with Undo:\n%s", page)
}
if g := groupOf(t, page, woodstar); g != "starred" {
t.Fatalf("Woodstar in %q", g)
}
- if row := rowOf(t, page, woodstar); !strings.Contains(row, `aria-pressed="true" data-auto aria-label="Unstar Woodstar" title="Starred by Equipo: tasks waiting on you: 2"`) {
+ if row := rowOf(t, page, woodstar); !strings.Contains(row, `aria-pressed="true" data-auto aria-label="Unstar Woodstar" title="Starred by Equipo: 2 tasks are waiting on you"`) {
t.Fatalf("auto star's hover: %s", row)
}
if g := groupOf(t, page, p1); g != "active" {
@@ -250,9 +250,9 @@ func TestPagesTaskDecisionsSayWhy(t *testing.T) {
}
needs := a.get(owner, "/tasks?needs=you", 200)
card := regexp.MustCompile(`(?s)<div equipo-decision[^>]*data-decision="` + g.unchecked + `">.*?</div>\n</div>`).FindString(needs)
- for _, want := range []string{"Review approved. Checks need a Mac, and none is connected yet.", "Merge without checks?",
+ for _, want := range []string{"Review approved. Checks need a Mac, and no Mac is set up to run them.", "Merge without checks?",
`data-merge-choice="merge">Merge now</button>`, `data-merge-choice="wait">Wait for a Mac</button>`,
- "Merge now adds the changes without checks. Wait for a Mac keeps them ready. Once a Mac is available, Equipo runs checks and merges the changes if they pass.",
+ "Merge now merges it without checks. Wait for a Mac leaves it as it is. Once a Mac is set up, checks run on its next change, and if they pass, Equipo merges it by itself.",
`<a equipo-link href="/runners/enrol" data-set-up-mac>Set up a Mac</a>`, `href="/conversation?about=` + g.unchecked + `" data-ask-about>Ask about this</a>`} {
if !strings.Contains(card, want) {
t.Fatalf("Mac decision lacks %q:\n%s", want, card)
@@ -264,7 +264,7 @@ func TestPagesTaskDecisionsSayWhy(t *testing.T) {
}
// Ask about this: the composer opens with the task named.
conv := a.get(owner, "/conversation?about="+g.unchecked, 200)
- if !strings.Contains(conv, `autofocus>About “Swipe back from the edge doesn&#39;t work” (task `+g.unchecked+`): </textarea>`) {
+ if !strings.Contains(conv, `autofocus>About “Swipe back from the edge doesn&#39;t work”: </textarea>`) {
t.Fatalf("composer draft:\n%s", regexp.MustCompile(`(?s)<textarea.*?</textarea>`).FindString(conv))
}
for _, about := range []string{"tknothere", "p_x", "<script>"} {
diff --git a/internal/thintest/team_panel_test.go b/internal/thintest/team_panel_test.go
index 1cf15279..be8165ad 100644
--- a/internal/thintest/team_panel_test.go
+++ b/internal/thintest/team_panel_test.go
@@ -85,7 +85,7 @@ func TestPagesTeamPanel(t *testing.T) {
review := a.get(owner, "/team/review", 200)
for _, want := range []string{`<section equipo-team data-team="review" data-state="working"`, `<h1 id="team-title">Review</h1>`, `<a equipo-team-task href="/tasks/` + g.review + `">Swipe from the edge to go back on the Account pane</a>`,
"Looking over the changes", "Searching for interactivePopGestureRecognizer", "Reading AccountNavigationHost.swift", "Reading NavigationStack.swift",
- `Current action</summary><code>/bin/bash -lc &#34;cat ios/Woodstar/NavigationStack.swift&#34;</code></details>`,
+ `Command</summary><code>/bin/bash -lc &#34;cat ios/Woodstar/NavigationStack.swift&#34;</code></details>`,
`<li title="ios/Woodstar/NavigationStack.swift">`, "<span>AccountNavigationHost.swift</span>", "Runs on", "<dd>Claude<span>" + Owner + "</span></dd>", "Shown when this step ends", "Recent work", `data-team-close hidden`} {
if !strings.Contains(review, want) {
t.Fatalf("Review's page lacks %q:\n%s", want, review)
@@ -139,7 +139,7 @@ func TestPagesTeamPanelAskWaits(t *testing.T) {
rv2 := r.dispatched(wire.SpecialistReview, base, cand2, 1)
r.step("w-r2-run", wire.StepReport{TaskID: id, StepID: rv2.StepID, Attempt: 1, State: wire.StepRunning, BaseSHA: base, CandidateSHA: cand2})
page := r.get(r.inst.Cookie(), "/team/review", 200)
- for _, want := range []string{`data-state="working"`, "<h2>Ask Review</h2>", `action="/tasks/` + id + `/ask"`, `name="specialist" value="review"`, "Review answers after this step ends, using its last completed work."} {
+ for _, want := range []string{`data-state="working"`, "<h2>Ask Review</h2>", `action="/tasks/` + id + `/ask"`, `name="specialist" value="review"`, "Review answers once this step ends, from its last finished round."} {
if !strings.Contains(page, want) {
t.Fatalf("Review's page lacks %q:\n%s", want, page)
}