@nanocollective/roster 0.1.0-alpha.9 → 0.1.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/README.md +6 -0
  2. package/dist/cli.js +4189 -1971
  3. package/dist/worker/assets/assets/css/base.css +327 -0
  4. package/dist/worker/assets/assets/css/brain.css +116 -0
  5. package/dist/worker/assets/assets/css/diff.css +33 -0
  6. package/dist/worker/assets/assets/css/graph.css +39 -0
  7. package/dist/worker/assets/assets/css/health.css +75 -0
  8. package/dist/worker/assets/assets/css/home.css +114 -0
  9. package/dist/worker/assets/assets/css/inbox.css +199 -0
  10. package/dist/worker/assets/assets/css/layout.css +181 -0
  11. package/dist/worker/assets/assets/css/markdown.css +96 -0
  12. package/dist/worker/assets/assets/css/runs.css +13 -0
  13. package/dist/worker/assets/assets/css/search.css +48 -0
  14. package/dist/worker/assets/assets/css/setup.css +194 -0
  15. package/dist/worker/assets/assets/js/api.js +191 -0
  16. package/dist/worker/assets/assets/js/app.js +500 -0
  17. package/dist/worker/assets/assets/js/dialog.js +196 -0
  18. package/dist/worker/assets/assets/js/dom.js +131 -0
  19. package/dist/worker/assets/assets/js/homesort.js +174 -0
  20. package/dist/worker/assets/assets/js/icons.js +142 -0
  21. package/dist/worker/assets/assets/js/inflight.js +18 -0
  22. package/dist/worker/assets/assets/js/lightbox.js +273 -0
  23. package/dist/worker/assets/assets/js/md.js +406 -0
  24. package/dist/worker/assets/assets/js/mdedit.js +84 -0
  25. package/dist/worker/assets/assets/js/mention.js +264 -0
  26. package/dist/worker/assets/assets/js/readiness.js +70 -0
  27. package/dist/worker/assets/assets/js/refresh.js +197 -0
  28. package/dist/worker/assets/assets/js/router.js +20 -0
  29. package/dist/worker/assets/assets/js/search.js +366 -0
  30. package/dist/worker/assets/assets/js/state.js +213 -0
  31. package/dist/worker/assets/assets/js/textdiff.js +96 -0
  32. package/dist/worker/assets/assets/js/views/app.js +145 -0
  33. package/dist/worker/assets/assets/js/views/brain.js +260 -0
  34. package/dist/worker/assets/assets/js/views/changed.js +157 -0
  35. package/dist/worker/assets/assets/js/views/checklist.js +115 -0
  36. package/dist/worker/assets/assets/js/views/credential.js +84 -0
  37. package/dist/worker/assets/assets/js/views/docs.js +174 -0
  38. package/dist/worker/assets/assets/js/views/files.js +139 -0
  39. package/dist/worker/assets/assets/js/views/graph.js +436 -0
  40. package/dist/worker/assets/assets/js/views/health.js +304 -0
  41. package/dist/worker/assets/assets/js/views/hire.js +593 -0
  42. package/dist/worker/assets/assets/js/views/home.js +621 -0
  43. package/dist/worker/assets/assets/js/views/inbox.js +1558 -0
  44. package/dist/worker/assets/assets/js/views/memory.js +150 -0
  45. package/dist/worker/assets/assets/js/views/org.js +195 -0
  46. package/dist/worker/assets/assets/js/views/orgedit.js +240 -0
  47. package/dist/worker/assets/assets/js/views/paste.js +216 -0
  48. package/dist/worker/assets/assets/js/views/prompt.js +457 -0
  49. package/dist/worker/assets/assets/js/views/repos.js +97 -0
  50. package/dist/worker/assets/assets/js/views/runonce.js +94 -0
  51. package/dist/worker/assets/assets/js/views/runs.js +182 -0
  52. package/dist/worker/assets/assets/js/views/setup.js +557 -0
  53. package/dist/worker/assets/assets/js/views/staff.js +291 -0
  54. package/dist/worker/assets/assets/js/views/todo.js +62 -0
  55. package/dist/worker/assets/assets/js/yaml.js +134 -0
  56. package/dist/worker/assets/docs-images/brain.jpg +0 -0
  57. package/dist/worker/assets/docs-images/home.jpg +0 -0
  58. package/dist/worker/assets/docs-images/org.jpg +0 -0
  59. package/dist/worker/assets/docs-images/prompt.jpg +0 -0
  60. package/dist/worker/assets/docs-images/setup-org.jpg +0 -0
  61. package/dist/worker/assets/docs-images/setup-plan.jpg +0 -0
  62. package/dist/worker/assets/docs-images/staff.jpg +0 -0
  63. package/dist/worker/assets/index.html +82 -0
  64. package/dist/worker/index.js +5143 -0
  65. package/docs/README.md +2 -2
  66. package/docs/architecture.md +23 -4
  67. package/docs/charters/analyst.md +65 -0
  68. package/docs/charters/community.md +63 -0
  69. package/docs/charters/designer.md +65 -0
  70. package/docs/charters/devops.md +65 -0
  71. package/docs/charters/pm.md +70 -0
  72. package/docs/charters/qa.md +65 -0
  73. package/docs/charters/writer.md +63 -0
  74. package/docs/commands.md +36 -9
  75. package/docs/concepts.md +34 -21
  76. package/docs/cost.md +3 -3
  77. package/docs/developing.md +28 -10
  78. package/docs/doctor-codes.md +3 -1
  79. package/docs/export.md +2 -0
  80. package/docs/getting-started.md +49 -29
  81. package/docs/hosting.md +114 -43
  82. package/docs/images/brain.jpg +0 -0
  83. package/docs/images/home.jpg +0 -0
  84. package/docs/images/org.jpg +0 -0
  85. package/docs/images/prompt.jpg +0 -0
  86. package/docs/images/staff.jpg +0 -0
  87. package/docs/manual-steps.md +3 -2
  88. package/docs/memory.md +2 -1
  89. package/docs/org-yaml.md +3 -0
  90. package/docs/portal.md +144 -45
  91. package/docs/prompts.md +6 -0
  92. package/docs/security.md +70 -11
  93. package/docs/session-workflow.md +24 -6
  94. package/docs/staff-yaml.md +21 -2
  95. package/docs/upgrading.md +3 -3
  96. package/docs/writing-a-charter.md +19 -6
  97. package/package.json +4 -3
  98. package/templates/brain/.github/workflows/%%STAFF%%-daily.yaml +20 -1
  99. package/templates/brain/.github/workflows/%%STAFF%%-mention.yaml +53 -13
  100. package/templates/brain/CHARTER.md +2 -2
  101. package/templates/brain/STATE.md +16 -0
  102. package/templates/brain/memory/INDEX.md +1 -1
  103. package/templates/brain/staff.yaml +4 -1
  104. package/templates/briefs/amend.md +4 -3
  105. package/templates/briefs/priorities.md +46 -0
  106. package/templates/ops/.github/workflows/session.yaml +150 -3
  107. package/templates/ops/compose.mjs +35 -8
  108. package/templates/ops/org/operating.md +29 -10
  109. package/templates/ops/org/voice.md +2 -1
  110. package/templates/ops/prompts/daily.md +51 -14
  111. package/templates/ops/prompts/mention.md +24 -2
  112. package/templates/ops/run-record.mjs +5 -3
  113. package/templates/ops/status-week.mjs +169 -0
  114. package/templates/portal/css/base.css +49 -0
  115. package/templates/portal/css/health.css +14 -1
  116. package/templates/portal/css/home.css +114 -0
  117. package/templates/portal/css/inbox.css +21 -4
  118. package/templates/portal/css/layout.css +35 -3
  119. package/templates/portal/css/markdown.css +19 -0
  120. package/templates/portal/css/search.css +48 -0
  121. package/templates/portal/css/setup.css +79 -4
  122. package/templates/portal/index.html +15 -9
  123. package/templates/portal/js/api.js +60 -4
  124. package/templates/portal/js/app.js +125 -7
  125. package/templates/portal/js/dialog.js +36 -0
  126. package/templates/portal/js/homesort.js +174 -0
  127. package/templates/portal/js/icons.js +41 -0
  128. package/templates/portal/js/inflight.js +18 -0
  129. package/templates/portal/js/md.js +5 -2
  130. package/templates/portal/js/mdedit.js +84 -0
  131. package/templates/portal/js/readiness.js +70 -0
  132. package/templates/portal/js/refresh.js +10 -2
  133. package/templates/portal/js/search.js +366 -0
  134. package/templates/portal/js/state.js +11 -5
  135. package/templates/portal/js/views/app.js +1 -2
  136. package/templates/portal/js/views/brain.js +1 -1
  137. package/templates/portal/js/views/checklist.js +19 -4
  138. package/templates/portal/js/views/credential.js +42 -51
  139. package/templates/portal/js/views/health.js +11 -6
  140. package/templates/portal/js/views/hire.js +593 -0
  141. package/templates/portal/js/views/home.js +621 -0
  142. package/templates/portal/js/views/inbox.js +237 -68
  143. package/templates/portal/js/views/org.js +31 -111
  144. package/templates/portal/js/views/orgedit.js +240 -0
  145. package/templates/portal/js/views/paste.js +111 -66
  146. package/templates/portal/js/views/prompt.js +94 -40
  147. package/templates/portal/js/views/repos.js +10 -10
  148. package/templates/portal/js/views/runs.js +21 -4
  149. package/templates/portal/js/views/setup.js +130 -163
  150. package/templates/portal/js/views/staff.js +181 -301
  151. package/templates/portal/js/views/todo.js +62 -0
@@ -9,11 +9,16 @@ question instead of doing work has wasted its slot.
9
9
  - **A question is an issue, never a stopped run.** When you hit something genuinely load-bearing,
10
10
  open a `decision` issue on your own tracker, assign `{{human.github}}`, @-mention them, **then move
11
11
  to the next item.** The body: the ask as the first line, your recommendation, the argument stripped
12
- to what they need to rule, and **the default if they say nothing**. They are ruling from a phone.
12
+ to what they need to rule, and the default with a date, as its own last line: **"If I hear nothing
13
+ by <YYYY-MM-DD>, I'll <do X>."** At least two working days out. They are ruling from a phone.
13
14
  - **Filing an issue does not stop the run.** "This needs a human" means open the issue and carry on,
14
15
  not stand still.
15
16
  - **Never end a run blocked.** If everything on the list is genuinely blocked, do the most useful
16
17
  unblocked thing you can find and say so in the report.
18
+ - **Finish inside the run.** Once you stop, the run is over: nothing will wake you, and anything
19
+ left running dies with it. Never end a turn to wait for a command; wait for it in the same call.
20
+ **Push your branch before a slow check** such as a full test suite, so the work survives if the
21
+ run is cut short, and push again once it passes.
17
22
 
18
23
  ## Choosing work
19
24
 
@@ -25,12 +30,21 @@ question instead of doing work has wasted its slot.
25
30
 
26
31
  ## Keeping your tracker clean
27
32
 
28
- {{human.name}} should never have to ask whether an issue can be closed.
29
-
30
- - **Close your own issues** when the work is done or superseded, with one line naming what closed
31
- it: the PR, the commit, or the issue that replaced it. Do not leave one open "in case".
32
- - **Sweep them on every daily run.** Read every open issue you opened; close what is finished or
33
- stale, and fold duplicates into one.
33
+ {{human.name}} should never have to ask whether an issue can be closed, or close one themselves.
34
+
35
+ - **Close any issue on your tracker once nothing is left to do on it**, whoever opened it, including
36
+ {{human.name}}'s requests. One line naming what closed it: the PR, the commit, the answer, or the
37
+ issue that replaced it. If a request needs nothing, say why in that line and close it. Do not leave
38
+ one open "in case".
39
+ - **Sweep your tracker on every daily run.** Every open issue on it, not only the ones you opened:
40
+ close it, do it, or put it in your plan. Fold duplicates into one.
41
+ - **Never close an issue labelled `keep-open`, or your pinned status issue.** Those are standing
42
+ threads.
43
+ - **Every ask on {{human.name}} carries the `{{human.marker}}` label and exactly one kind**, and is
44
+ assigned to `{{human.github}}`:
45
+ - `decision`: they rule on something. Carries the default and date above.
46
+ - `review`: they read or approve something you made.
47
+ - `chore`: something only they can do, such as a setting, an account or a key.
34
48
  - **Ideas live in your brain, not on the tracker.** Park a speculative idea as one line in
35
49
  `strategy/ideas.md`. Open an `IDEA:` issue only when it needs a ruling, and never more than one
36
50
  at a time.
@@ -41,7 +55,9 @@ question instead of doing work has wasted its slot.
41
55
  mechanical rather than a promise: protected branches mean you open a PR and their merge is the
42
56
  approval. **Do not look for a way around it.** Being unable to ship unreviewed is what earns the
43
57
  autonomy.
44
- - **Never close a `decision` issue**, even in a sweep. Those are {{human.name}}'s rulings to close.
58
+ - **Close a `decision` only once it is settled.** Either {{human.name}} answered: act on it, then
59
+ close it quoting the ruling. Or the date passed with no answer: act on the default, then close it
60
+ saying you did. Never before one of those.
45
61
  - **Never `git add -A` in another staff member's repo, or in a repo where a human may have work in
46
62
  flight.** Stage explicit paths. Doing otherwise has swept someone else's uncommitted work into an
47
63
  unrelated commit.
@@ -65,6 +81,8 @@ overhead.**
65
81
  `log/decisions.md`. A memory that only grows is a memory nobody reads.
66
82
  - Mark every fact with where it came from: `[{{human.marker}}]` for a ruling, `[measured]` for
67
83
  something with an `n` and a date, `[derived]` for your own inference.
84
+ - **Another run of yours may be working at the same time**: a mention, or a peer's ask. If a push
85
+ is rejected, `git pull --rebase` and push again. Never force-push.
68
86
 
69
87
  `log/decisions.md` is **not** boot context. It is the audit trail: read it when you need to know why
70
88
  something was decided, or before reversing a call somebody already made.
@@ -76,9 +94,10 @@ Other staff members are peers, not subordinates and not tools. **Write to them f
76
94
  team updated is always fine, and over-communicating is the right default.
77
95
 
78
96
  **Comms are issues, not file drops:** open an issue on their tracker labelled `from-{{staff.handle}}`.
79
- A file in their inbox works for them and is invisible to {{human.name}}, and he needs to be able to
97
+ A file in their inbox works for them and is invisible to {{human.name}}, who needs to be able to
80
98
  read the whole conversation in one place. Genuinely long-form output can still be a file, with the
81
- issue linking to it.
99
+ issue linking to it. **Filing one wakes them within a minute**, so file what they can act on now
100
+ and put everything else in one issue rather than several.
82
101
 
83
102
  **An ask of a peer stays an ask.** They own their own priorities. Anything that needs
84
103
  {{human.name}}'s money or public sign-off still goes through them.
@@ -16,7 +16,8 @@ bodies, run reports, briefs to other staff, and how you talk to them in a sessio
16
16
 
17
17
  - **A comment or reply: 100 words.** Most need three lines.
18
18
  - **An issue or PR body: 200 words.**
19
- - **The pinned status issue: 300 words**, readable on one phone screen.
19
+ - **The status issue's body: 200 words**, readable on one phone screen.
20
+ - **A run report: three lines.**
20
21
 
21
22
  Past the ceiling, the detail goes in a file in your brain and the comment links to it in one
22
23
  line. A status {{human.name}} has to rewrite before they can use it has cost more than it saved.
@@ -8,15 +8,27 @@ your brain. Reconstitute yourself, do a day's work, hand off.
8
8
 
9
9
  {{>? staff:prompts/boot.md}}
10
10
 
11
+ {{#if event.follow_on}}
12
+ **This is a follow-on run.** The last run ended with the next step ready and started this one.
13
+ Boot as usual; `{{staff.dir}}/STATE.md` says what it is.
14
+ {{/if}}
15
+
16
+ {{#if event.previous_status_issue}}
17
+ **A new week.** #{{staff.status_issue}} is this week's status issue, opened for you with last
18
+ week's body. Before you work, close last week's ({{event.previous_status_issue}}) with one comment:
19
+ the week in at most five lines. What moved on each priority, with the numbers; what shipped; what
20
+ is still on {{human.name}}. Then close it. No @-mention: the new issue is what they read.
21
+ {{/if}}
22
+
11
23
  ## Do this now, in order
12
24
 
13
25
  1. **Check the real date:** `date +%F`. Do not infer it from a file. A run's output was once dated
14
26
  two days wrong that way.
15
27
 
16
- 2. **Read your tracker - it is where the live state lives.**
28
+ 2. **Read your handover and your tracker.**
29
+ - **`{{staff.dir}}/STATE.md`**: what the last run did and what this one picks up, in order. If
30
+ it is missing or still the template, start it from the body of #{{staff.status_issue}}.
17
31
  - `gh issue list --repo {{staff.brain}} --limit 40`
18
- - Pinned **#{{staff.status_issue}} "Where we are"**: the situation, what the last run did, what
19
- this one picks up.
20
32
  - Then read comments on anything recent. A ruling {{human.name}} answered from a phone arrives
21
33
  there and nowhere else, and folding it in comes before planned work because it changes what is
22
34
  worth doing.
@@ -38,7 +50,7 @@ your brain. Reconstitute yourself, do a day's work, hand off.
38
50
 
39
51
  ## Then work. Autonomously.
40
52
 
41
- Take the top item off #{{staff.status_issue}}'s ordered list that serves the org's priorities
53
+ Take the top item off `STATE.md`'s ordered list that serves the org's priorities
42
54
  (`org/priorities.md`, where there is one), unless something above changed the priority, in which
43
55
  case say so in your report and do the more urgent thing. **Then actually do it.** You are not
44
56
  writing a plan for {{human.name}} to approve.
@@ -56,13 +68,18 @@ writing a plan for {{human.name}} to approve.
56
68
  Nothing else** - no design essay, no narration of how you built it. It is reviewed on a phone
57
69
  and the diff is right there.
58
70
  {{/if}}
59
- 2. **Rewrite pinned issue #{{staff.status_issue}} "Where we are"**: the situation in a line, what
60
- this run did, what the next run picks up in priority order. **It is a handover for the next run,
61
- not a diary.** Rewrite it, do not append, and cut anything the next run can find for itself.
62
- 3. **Reconcile the tracker.** Open issues for anything new needing {{human.name}}, labelled by owner
63
- plus kind, assigned to `{{human.github}}`. Sweep every open issue you opened: close what is done
64
- or superseded, citing what closed it. **Comments and replies get the same concision as everything
65
- else:** what changed and what it means for them. A comment that only says an issue is still open
71
+ 2. **Rewrite `{{staff.dir}}/STATE.md`**, your handover to the next run: the situation in a line,
72
+ what the next run picks up in priority order, and anything parked. Commands and notes to
73
+ yourself go here. Rewrite it, do not append, and cut anything the next run can find for itself.
74
+ **Then rewrite the body of #{{staff.status_issue}}**, which is for {{human.name}}, not for you:
75
+ where each priority stands, with the numbers; what is on them, oldest first, by issue number;
76
+ what you do next. Nothing they need to scroll past, and no notes to yourself.
77
+ 3. **Reconcile the tracker.** Open issues for anything new needing {{human.name}}: the
78
+ `{{human.marker}}` label plus one of `decision`, `review` or `chore`, assigned to
79
+ `{{human.github}}`. Sweep **every** open issue on your tracker, whoever opened it: close what is
80
+ done, superseded or needs nothing, citing what closed it. A `decision` whose date has passed with
81
+ no answer: act on the default and close it. **Comments and replies get the same concision as
82
+ everything else:** what changed and what it means for them. A comment that only says an issue is still open
66
83
  is not worth the notification.
67
84
  4. **Update `{{staff.dir}}/memory/` only if a fact or watch-out changed.** A new fact is **one line**
68
85
  in `INDEX.md` saying what it changes; a corrected fact is **edited in place**, never appended to
@@ -82,9 +99,29 @@ writing a plan for {{human.name}} to approve.
82
99
  7. **Commit and push** `{{staff.dir}}/`. Stage explicit paths in anyone else's repo - never
83
100
  `git add -A` there.
84
101
  8. **Post the run report** as a comment on #{{staff.status_issue}}, @-mentioning
85
- `@{{human.github}}`. **Three lines: what you did, what is now on them (issue numbers and the ask,
86
- nothing more), what you would do next.** No preamble, no closing line, no headers. This is the
87
- only thing they read, and a long one does not get read.
102
+ `@{{human.github}}`. **At most three lines:**
103
+ - **The result**, not the activity: what changed for the priority, with the number or link that
104
+ shows it. "Opened a PR" is not a result; what the PR changes for people is.
105
+ - **What is new on them since your last report**: issue numbers and the ask. Not the standing
106
+ list, which is in the body, and not another staff member's asks, which are theirs to report.
107
+ Leave the line out when nothing is new.
108
+ - **What you do next.**
109
+
110
+ No preamble, no closing line, no headers. **When the run moved nothing and nothing new is on
111
+ them, post nothing**: the body is enough, and a report that repeats yesterday's teaches them to
112
+ skip them all.
113
+ 9. **Start the next run now, if the next step is ready.** When it serves the priorities and waits on
114
+ nobody (not on {{human.name}}, not on a review, not on a peer), write one line saying what it is:
115
+ `mkdir -p "$GITHUB_WORKSPACE/.roster-run" && echo "<the step>" > "$GITHUB_WORKSPACE/.roster-run/continue"`.
116
+ Another run starts when this one ends, up to {{staff.max_runs_per_day}} a day that nobody asked
117
+ for. Leave it out when there is nothing that cannot wait until tomorrow.
118
+ {{#if staff.drafts_priorities}}
119
+ 10. **In the last three days of a month, draft next month's priorities.** If there is no open pull
120
+ request on `{{ops.dir}}` changing `org/priorities.md` already, open one from a branch: at
121
+ most three ranked priorities and what is out of scope, built from this month's, what shipped,
122
+ and the other staff's status issues. The body says what changed from this month and why, in a
123
+ few lines. {{human.name}} edits and merges it; until then this month's stand.
124
+ {{/if}}
88
125
 
89
126
  {{> org/guardrails.md}}
90
127
 
@@ -1,8 +1,19 @@
1
+ {{#if event.from_human}}
1
2
  You are **{{staff.name}}** at {{org.name}}. {{human.name}} has asked you something directly, on
2
3
  your tracker. **Your reply in that thread is the only thing they will see.**
4
+ {{/if}}
5
+ {{#if event.from_peer}}
6
+ You are **{{staff.name}}** at {{org.name}}. Another staff member has filed something on your
7
+ tracker, and it woke you. **Reply in that thread**; they read it on their next run, and
8
+ {{human.name}} can see the chain.
9
+
10
+ **Do not file anything on another staff member's tracker in this run.** A peer's ask wakes them,
11
+ so two staff could keep waking each other. Anything you need from someone else goes in your reply
12
+ or in your status issue for your next daily run.
13
+ {{/if}}
3
14
 
4
- **This is not a session.** No boot ritual, no handoff, no rewriting #{{staff.status_issue}}. Answer
5
- the question or do the small thing asked, reply, stop.
15
+ **This is not a session.** No boot ritual, no handoff, no rewriting `STATE.md` or
16
+ #{{staff.status_issue}}. Answer the question or do the small thing asked, reply, stop.
6
17
 
7
18
  {{> prompts/_paths.md}}
8
19
 
@@ -44,6 +55,9 @@ An issue opened this way often carries a pull request somewhere else, and says w
44
55
  - **Do only what was asked.** Fixing something else you noticed on the way makes the change
45
56
  unreviewable and costs a second review. If you spot something real and separate, say so in your
46
57
  reply and leave it alone.
58
+ - **Asked for a report?** Read `{{staff.dir}}/STATE.md`, the body of #{{staff.status_issue}} and
59
+ your open issues, then reply in at most three lines: where your priorities stand, with the
60
+ numbers; what is on {{human.name}}, by issue number; what you do next. Change nothing.
47
61
  - **Only touch `memory/INDEX.md` if a durable fact or watch-out changed**, and then it is one line
48
62
  saying what it changes. Commit and push it.
49
63
 
@@ -59,6 +73,14 @@ Answer where the request came from, so the conversation stays readable. **Do not
59
73
  for the answer** - they are already reading this one. **Do not @-mention them**; they are subscribed
60
74
  to a thread they are in.
61
75
 
76
+ **Then close the issue if nothing is left to do on it:** the ask is done, or it needed nothing and
77
+ your reply says why. Leave it open when your reply asks them something, when it is labelled
78
+ `keep-open`, or when it is your pinned status issue #{{staff.status_issue}}.
79
+
80
+ ```
81
+ gh issue close {{event.issue_number}} --repo {{event.repo}}
82
+ ```
83
+
62
84
  {{> org/guardrails.md}}
63
85
 
64
86
  {{> org/voice.md}}
@@ -64,9 +64,11 @@ export function readResult(text) {
64
64
  * What happened, in one word.
65
65
  *
66
66
  * The agent step's own outcome when it ran. When it never ran, the job's status says whether
67
- * that was a cancel (a timeout is one) or a failure somewhere in the setup before it.
67
+ * that was a cancel (a timeout is one) or a failure somewhere in the setup before it. A mention
68
+ * the agent exited from cleanly without answering is not a success, whatever the agent says.
68
69
  */
69
- export function outcomeOf(agentOutcome, jobStatus) {
70
+ export function outcomeOf(agentOutcome, jobStatus, unanswered = false) {
71
+ if (agentOutcome === "success" && unanswered) return "unanswered";
70
72
  if (["success", "failure", "cancelled"].includes(agentOutcome)) return agentOutcome;
71
73
  if (jobStatus === "cancelled") return "cancelled";
72
74
  return "setup-failure";
@@ -79,7 +81,7 @@ export function buildRecord(env, resultText, now = Date.now()) {
79
81
  v: 1,
80
82
  staff: env.STAFF ?? "",
81
83
  kind: env.KIND ?? "",
82
- outcome: outcomeOf(env.AGENT_OUTCOME, env.JOB_STATUS),
84
+ outcome: outcomeOf(env.AGENT_OUTCOME, env.JOB_STATUS, env.UNANSWERED === "true"),
83
85
  started: started ? new Date(started * 1000).toISOString() : null,
84
86
  duration_s: started ? Math.max(0, Math.round(now / 1000 - started)) : null,
85
87
  agent: env.AGENT_ID || null,
@@ -0,0 +1,169 @@
1
+ #!/usr/bin/env node
2
+ // Opens this week's status issue, before the prompt is composed, when the one in staff.yaml is
3
+ // from an earlier week.
4
+ //
5
+ // Written because one status issue that lasts forever turns into a diary. Pip's ran from August
6
+ // to October as forty-odd run reports in one thread, and the human stopped reading it. A week
7
+ // per issue keeps a thread short, and the closed ones read back as the history, a week at a time.
8
+ //
9
+ // The housekeeping is here rather than in the prompt because it has to happen every week, the
10
+ // same way, whatever the agent does: open the issue, pin it, carry last week's body across, and
11
+ // move staff.yaml on, so every reader of `status_issue` (the prompts, the portal, doctor, the
12
+ // failure notice) follows without knowing weeks exist. What only the agent can write, the week's
13
+ // summary on the old issue, is left to it: the old issue loses `keep-open` and its pin, and the
14
+ // prompt is told its number.
15
+ //
16
+ // Vendored alongside compose.mjs for the same reason: it runs on the runner and must not depend
17
+ // on npm. It asks GitHub through `gh`. It never fails a run: if anything here goes wrong, the run
18
+ // carries on with last week's issue, which is how every run went before this existed.
19
+ //
20
+ // Usage: node roster-ops/status-week.mjs --staff cto --ops roster-ops --brains .
21
+ // Prints `previous=#15` for $GITHUB_OUTPUT when a week's issue is waiting for its summary.
22
+
23
+ import { execFileSync } from "node:child_process";
24
+ import { existsSync, readFileSync, writeFileSync } from "node:fs";
25
+ import { join, resolve } from "node:path";
26
+ import { fileURLToPath } from "node:url";
27
+ import { parseYaml } from "./compose.mjs";
28
+
29
+ export const STATUS_LABEL = "status";
30
+ const MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
31
+
32
+ /** Monday 00:00 UTC of the week `now` falls in. */
33
+ export function weekStart(now) {
34
+ const d = new Date(now);
35
+ const back = (d.getUTCDay() + 6) % 7;
36
+ return new Date(Date.UTC(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate() - back));
37
+ }
38
+
39
+ export function weekTitle(now) {
40
+ const m = weekStart(now);
41
+ return `📍 Where we are: week of ${m.getUTCDate()} ${MONTHS[m.getUTCMonth()]}`;
42
+ }
43
+
44
+ /** Whether `issue` is this week's, and still the one to write to. */
45
+ export function isCurrent(issue, now) {
46
+ return Boolean(issue) && issue.state === "open" && new Date(issue.created_at) >= weekStart(now);
47
+ }
48
+
49
+ /** staff.yaml with `status_issue:` moved to `n`, keeping everything else byte for byte. */
50
+ export function withStatusIssue(yaml, n) {
51
+ if (/^status_issue:.*$/m.test(yaml)) return yaml.replace(/^status_issue:.*$/m, `status_issue: ${n}`);
52
+ return yaml.replace(/^(brain:.*\n)/m, `$1status_issue: ${n}\n`);
53
+ }
54
+
55
+ const FIRST_BODY = "Nothing yet. The first run of the week rewrites this.";
56
+
57
+ /**
58
+ * Works out the week and does the GitHub half of it. Returns the issue to write to and the
59
+ * earlier ones still waiting for a summary. `gh` takes argv and returns stdout, so a test
60
+ * drives it without the network.
61
+ */
62
+ export function rollWeek({ repo, current, gh, now = Date.now() }) {
63
+ const issue = current ? JSON.parse(gh(["api", `repos/${repo}/issues/${current}`])) : null;
64
+
65
+ // Created on every run because it costs one call and an org that upgraded never had it.
66
+ try {
67
+ gh(["label", "create", STATUS_LABEL, "--repo", repo, "--color", "0e8a16",
68
+ "--description", "A week's status issue"]);
69
+ } catch {
70
+ // Already there, which is the usual answer.
71
+ }
72
+
73
+ let next = current;
74
+ let rolled = false;
75
+ if (!isCurrent(issue, now)) {
76
+ const opened = JSON.parse(
77
+ gh([
78
+ "api", `repos/${repo}/issues`, "-X", "POST",
79
+ "-f", `title=${weekTitle(now)}`,
80
+ "-f", `body=${issue?.state === "open" && issue.body?.trim() ? issue.body : FIRST_BODY}`,
81
+ "-f", `labels[]=${STATUS_LABEL}`,
82
+ "-f", "labels[]=keep-open",
83
+ ]),
84
+ );
85
+ next = opened.number;
86
+ rolled = true;
87
+
88
+ // Three issues can be pinned, so the old one comes off first.
89
+ if (issue?.state === "open") {
90
+ quietly(() => gh(["api", "graphql", "-f", "query=mutation($id:ID!){unpinIssue(input:{issueId:$id}){issue{number}}}", "-f", `id=${issue.node_id}`]));
91
+ // Without keep-open the agent may close it, which is what the summary ends with. The
92
+ // label marks it as a week's issue for the sweep below, should that run not finish.
93
+ quietly(() => gh(["api", `repos/${repo}/issues/${current}/labels/keep-open`, "-X", "DELETE"]));
94
+ quietly(() => gh(["api", `repos/${repo}/issues/${current}/labels`, "-X", "POST", "-f", `labels[]=${STATUS_LABEL}`]));
95
+ }
96
+ quietly(() => gh(["api", "graphql", "-f", "query=mutation($id:ID!){pinIssue(input:{issueId:$id}){issue{number}}}", "-f", `id=${opened.node_id}`]));
97
+ }
98
+
99
+ // Every earlier week still open: last week's, and any week whose summary run did not finish.
100
+ // Last week's is added by hand when it was just rolled: the label filter lags a label added a
101
+ // moment ago, and on Pip's first roll the listing came back without it, so no summary was asked for.
102
+ const open = JSON.parse(
103
+ gh(["api", `repos/${repo}/issues?state=open&labels=${STATUS_LABEL}&per_page=20`]) || "[]",
104
+ );
105
+ const numbers = new Set(open.filter((i) => !i.pull_request).map((i) => i.number));
106
+ if (rolled && issue?.state === "open") numbers.add(current);
107
+ numbers.delete(next);
108
+ const previous = [...numbers].sort((a, b) => a - b);
109
+ return { current: next, rolled, previous };
110
+ }
111
+
112
+ function quietly(fn) {
113
+ try {
114
+ fn();
115
+ } catch (err) {
116
+ console.error(`::warning::status-week: ${String(err.message).split("\n")[0]}`);
117
+ }
118
+ }
119
+
120
+ /** Commits staff.yaml's new number, retrying the push over anything another run pushed. */
121
+ function commit(brainDir, n) {
122
+ const git = (...a) => execFileSync("git", ["-C", brainDir, ...a], { stdio: ["ignore", "pipe", "pipe"] });
123
+ git("add", "staff.yaml");
124
+ git("commit", "-m", `roster: this week's status issue is #${n}`);
125
+ for (let i = 0; ; i++) {
126
+ try {
127
+ git("push");
128
+ return;
129
+ } catch (err) {
130
+ if (i === 2) throw err;
131
+ git("pull", "--rebase");
132
+ }
133
+ }
134
+ }
135
+
136
+ function main(argv) {
137
+ const args = {};
138
+ for (let i = 0; i < argv.length; i += 2) args[argv[i].replace(/^--/, "")] = argv[i + 1];
139
+ if (!args.staff) throw new Error("--staff is required");
140
+ const opsDir = resolve(args.ops ?? ".");
141
+ const org = parseYaml(readFileSync(join(opsDir, "org.yaml"), "utf8"), "org.yaml");
142
+ const entry = (org.staff ?? []).find((s) => s.handle === args.staff);
143
+ if (!entry) throw new Error(`org.yaml has no staff member "${args.staff}"`);
144
+ const brainDir = join(resolve(args.brains ?? ".."), entry.dir ?? entry.handle);
145
+ const file = join(brainDir, "staff.yaml");
146
+ if (!existsSync(file)) throw new Error(`no staff.yaml at ${file}`);
147
+ const yaml = readFileSync(file, "utf8");
148
+ const manifest = parseYaml(yaml, "staff.yaml");
149
+ const repo = String(manifest.brain ?? `${org.org}/${entry.dir ?? entry.handle}`);
150
+
151
+ const gh = (a) => execFileSync("gh", a, { encoding: "utf8", maxBuffer: 16 * 1024 * 1024 });
152
+ const week = rollWeek({ repo, current: Number(manifest.status_issue) || 0, gh });
153
+ if (week.rolled) {
154
+ writeFileSync(file, withStatusIssue(yaml, week.current));
155
+ commit(brainDir, week.current);
156
+ console.error(`opened #${week.current} for this week`);
157
+ }
158
+ if (week.previous.length) {
159
+ process.stdout.write(`previous=${week.previous.map((n) => `#${n}`).join(", ")}\n`);
160
+ }
161
+ }
162
+
163
+ if (process.argv[1] && resolve(process.argv[1]) === resolve(fileURLToPath(import.meta.url))) {
164
+ try {
165
+ main(process.argv.slice(2));
166
+ } catch (err) {
167
+ console.error(`::warning::status-week: ${err.message}`);
168
+ }
169
+ }
@@ -155,6 +155,7 @@ svg.ic{width:var(--ic,15px);height:var(--ic,15px);display:block;flex:none}
155
155
  .chip.hot{color:var(--err);background:color-mix(in srgb,var(--err) 12%,transparent)}
156
156
  .chip.warm{color:var(--warn);background:color-mix(in srgb,var(--warn) 13%,transparent)}
157
157
  .chip.cool{color:var(--ruled);background:color-mix(in srgb,var(--ruled) 12%,transparent)}
158
+ .chip.ok{color:var(--accent);background:var(--accent-soft)}
158
159
  .pill{font:11px var(--mono);color:var(--ink-dim);border:1px solid transparent;
159
160
  background:color-mix(in srgb,var(--ink) 4%,transparent);
160
161
  border-radius:999px;padding:2px 9px;font-variant-numeric:tabular-nums}
@@ -276,3 +277,51 @@ body[data-lightbox] {overflow:hidden}
276
277
 
277
278
  /* And the affordance on the document side: an image you can open should say so. */
278
279
  .md img,img.zoomable{cursor:zoom-in}
280
+
281
+ /* ---------- a dialog for a whole task (sheet() in dialog.js) ---------- */
282
+ dialog.sheet{border:1px solid var(--border-strong);border-radius:var(--r-lg);background:var(--bg);
283
+ color:var(--ink);padding:0;width:min(860px,calc(100vw - 32px));max-height:calc(100vh - 48px);
284
+ box-shadow:var(--shadow-lg)}
285
+ dialog.sheet[open]{animation:dlgin .18s var(--ease)}
286
+ /* Pinned to the window. The graph's own `.sheet` panel is position:absolute, and that rule
287
+ reached this dialog too, so one opened on a scrolled page sat at the top of the document,
288
+ half off the screen. */
289
+ dialog.sheet{position:fixed}
290
+ dialog.sheet::backdrop{background:rgba(0,0,0,.35);backdrop-filter:blur(8px)}
291
+ .sheetbody{padding:22px 24px 26px;overflow:auto;max-height:calc(100vh - 50px)}
292
+
293
+ /* The side sheet: a thread opened from Home, full height on the right. */
294
+ dialog.sheet.side{margin:0 0 0 auto;height:100vh;max-height:100vh;width:min(780px,100vw);
295
+ border-radius:0;border-width:0 0 0 1px}
296
+ dialog.sheet.side[open]{animation:sidein .22s var(--ease)}
297
+ dialog.sheet.side .sheetbody{max-height:100vh;height:100%;box-sizing:border-box;padding:18px 22px 40px}
298
+ @keyframes sidein{from{transform:translateX(24px);opacity:0}}
299
+ @media (prefers-reduced-motion:reduce){dialog.sheet.side[open]{animation:none}}
300
+ .sidebar-x{position:sticky;top:0;display:flex;justify-content:flex-end;margin:-6px -6px 4px;z-index:1}
301
+ dialog.sheet.side .viewer{border:0;box-shadow:none;padding:0;min-height:0;background:none}
302
+ /* The title and its actions stay in view while a long thread scrolls under them. The close
303
+ button floats over the header's top right, so the lines beside it leave room for it; the
304
+ actions below it run to the edge, so Open in GitHub lines up with the close button. */
305
+ dialog.sheet.side .thead{position:sticky;top:-18px;z-index:1;background:var(--bg);
306
+ padding-top:18px;margin-top:-18px}
307
+ dialog.sheet.side .thead > :not(.tacts){padding-right:44px}
308
+ dialog.sheet.side .sidebar-x{position:sticky;top:0;height:0;margin:0;z-index:2;overflow:visible}
309
+ dialog.sheet.side .sidebar-x .iconbtn{margin-top:-4px}
310
+ .sheettitle{margin:0 0 14px;font:600 18px var(--sans);letter-spacing:-.02em}
311
+ .sheetloading{display:grid;place-items:center;min-height:260px}
312
+ .spinner{width:22px;height:22px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--accent);
313
+ animation:spin .7s linear infinite}
314
+ @keyframes spin{to{transform:rotate(360deg)}}
315
+
316
+ /* The first load, while the org is read from GitHub: a row per repository. */
317
+ .loadlist{display:flex;flex-direction:column;gap:2px;max-width:520px}
318
+ .loadrow{display:grid;grid-template-columns:18px 140px 1fr;align-items:center;gap:10px;padding:7px 0;
319
+ font-size:13.5px;border-bottom:1px solid var(--line)}
320
+ .loadrow b{font-weight:500}
321
+ .loadrow .meta{color:var(--ink-dim)}
322
+ .loadmark{width:10px;height:10px;border-radius:50%;border:2px solid var(--accent-dim);
323
+ border-top-color:var(--accent);animation:loadspin .8s linear infinite}
324
+ .loadrow.done .loadmark{animation:none;border-color:var(--accent);background:var(--accent)}
325
+ .loadrow.done .meta{color:var(--ink-faint)}
326
+ @keyframes loadspin{to{transform:rotate(360deg)}}
327
+ @media (prefers-reduced-motion:reduce){.loadmark{animation:none}}
@@ -23,6 +23,11 @@
23
23
  .hsect i{margin-left:auto;font:11.5px var(--mono);font-style:normal;letter-spacing:0;
24
24
  text-transform:none;color:var(--ink-faint)}
25
25
  .hbody{padding-top:2px}
26
+ /* Findings sit in a card, as Home's lists do: the marker carries the colour, the words stay
27
+ readable. The row's warn or fail class used to colour the whole sentence amber. */
28
+ .hlist{padding:2px 16px;margin:12px 0 0}
29
+ .hlist .check{color:var(--ink)}
30
+ .hlist .check b{color:var(--ink)}
26
31
  /* What the section is, in one line, before any of its findings. */
27
32
  .hnote{margin:10px 0 0;font:12.5px/1.55 var(--sans);color:var(--ink-faint)}
28
33
  .hacts{margin-top:12px}
@@ -54,9 +59,17 @@
54
59
  .planline.todo .ic{color:var(--warn)}
55
60
  .planline.warn{color:var(--ink-faint)}
56
61
  .planline.warn .ic{color:var(--warn)}
57
- .planout{margin-top:14px;max-height:320px;overflow:auto;font-size:11.5px}
62
+ .planout{margin-top:14px;font-size:11.5px}
58
63
 
59
64
  .ffield{margin-bottom:10px}
60
65
  .ffield label{display:block;font:600 11px var(--sans);letter-spacing:.05em;
61
66
  text-transform:uppercase;color:var(--ink-faint);margin-bottom:4px}
62
67
  .ffield small{display:block;margin-top:3px;font:11px var(--sans);color:var(--ink-faint)}
68
+
69
+ /* ---------- fixing a prompt with your own AI (amendSheet in prompt.js) ---------- */
70
+ .amend .sheettitle{padding-right:44px}
71
+ .amendlabel{display:block;font:600 13px var(--sans);color:var(--ink);margin:20px 0 8px}
72
+ .amend .pastebox{width:100%;box-sizing:border-box}
73
+ .amendtoday{margin-top:14px;font-size:12.5px;color:var(--ink-dim)}
74
+ .amendtoday summary{cursor:pointer}
75
+ .amendtoday pre{max-height:45vh;overflow:auto;margin-top:8px}
@@ -0,0 +1,114 @@
1
+ /* Home: what needs you, who is working, your requests, closed today. */
2
+
3
+ .home{max-width:820px;margin-top:22px}
4
+ /* The placeholder lines up with the title, as the cards that replace it do. */
5
+ .home > .sk-row{padding-left:0;padding-right:0}
6
+ /* Secondary text on Home is read, not scanned for numbers: the readable face and colour, not
7
+ the faint monospace the rest of the portal uses for metadata. */
8
+ .home .meta{font:12.5px/1.5 var(--sans);color:var(--ink-dim)}
9
+ .home h2{font:600 13px var(--sans);color:var(--ink-dim);text-transform:none;letter-spacing:0;
10
+ margin:26px 0 10px;display:flex;align-items:center;gap:8px}
11
+ .home h2 .pill{font-size:10.5px}
12
+ .homeempty{color:var(--ink-faint);font-size:13px;margin:0 0 8px}
13
+
14
+ .homeaskcard{display:flex;flex-direction:column;gap:10px}
15
+ .homeask,.homeanswer{width:100%;box-sizing:border-box;resize:vertical;min-height:44px;
16
+ font:13px/1.45 var(--sans);color:var(--ink);background:var(--surface-2);
17
+ border:1px solid transparent;border-radius:8px;padding:8px 10px}
18
+ .homeask:focus,.homeanswer:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
19
+ .homeanswer{margin-top:10px}
20
+ .homewho{font:500 12.5px var(--sans);color:var(--ink);background:var(--surface-2);border:0;
21
+ border-radius:8px;padding:5px 8px}
22
+
23
+ /* Needs you: one list, a row per thing. A dot column for unread, the thing itself, and its
24
+ action; titles all start in the same place, and buttons are small enough not to shout. */
25
+ .homelist{padding:0 16px}
26
+ .homeneed{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;
27
+ gap:4px 14px;padding:14px 0;cursor:pointer}
28
+ .homeneed + .homeneed{border-top:1px solid var(--line)}
29
+ .homeneed:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
30
+ .homeneed:hover .homeopen{text-decoration:underline}
31
+ .homedot{align-self:start;width:7px;height:7px;margin-top:7px;border-radius:50%}
32
+ .homeneed.unread .homedot{background:var(--blue)}
33
+ .homeabout{min-width:0}
34
+ .homeopen{all:unset;cursor:pointer;font:600 14px/1.4 var(--sans);color:var(--ink);letter-spacing:-.01em}
35
+ .homeopen:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
36
+ .homeabout > .meta{margin-top:3px}
37
+ .homekind{font-weight:600;color:var(--ink-dim)}
38
+ .homekind.hot{color:var(--err)}
39
+ .homekind.warm{color:var(--warn)}
40
+ .homekind.cool{color:var(--ruled)}
41
+ .homekind.ok{color:var(--accent)}
42
+ .homedue{margin:5px 0 0;font-size:12.5px;color:var(--ink-dim)}
43
+ .homedue.late,.homedue .bad{color:var(--warn)}
44
+ .homeacts{justify-content:flex-end;flex-wrap:nowrap;gap:8px}
45
+ .homeacts .ghbtn{min-height:28px;padding:3px 12px;font-size:12.5px}
46
+ .homeacts .meta{white-space:normal;text-align:right;max-width:220px}
47
+ @media (max-width:640px){
48
+ .homeneed{grid-template-columns:8px minmax(0,1fr)}
49
+ .homeacts{grid-column:2;justify-content:flex-start;flex-wrap:wrap}
50
+ .homeacts .meta{text-align:left}
51
+ }
52
+
53
+ .homeworking{display:flex;flex-direction:column;padding:4px 16px}
54
+ .homerun{display:grid;grid-template-columns:minmax(150px,220px) auto 1fr auto;align-items:center;
55
+ gap:12px;padding:12px 0;font-size:13.5px}
56
+ .homerun + .homerun{border-top:1px solid var(--line)}
57
+ .homewho2{display:inline-flex;align-items:center;gap:8px;min-width:0}
58
+ .homewho2 b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
59
+ .homewho2 .ic{--ic:15px;color:var(--ink-dim);flex:none}
60
+ .homestate{justify-self:start}
61
+ .homestate.ok::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;
62
+ margin-right:6px;animation:homepulse 1.6s var(--ease) infinite}
63
+ @keyframes homepulse{50%{opacity:.3}}
64
+ @media (prefers-reduced-motion:reduce){.homestate.ok::before{animation:none}}
65
+ .homerunwhat{color:var(--ink);line-height:1.45;min-width:0}
66
+ .homerunsub{color:var(--ink-dim);font-size:12.5px;margin-top:2px}
67
+ .homerunlog .ghbtn{min-height:28px;padding:3px 12px}
68
+ @media (max-width:640px){
69
+ .homerun{grid-template-columns:1fr auto;grid-template-areas:"who state" "what what" "log log"}
70
+ .homerun .homewho2{grid-area:who}.homerun .homestate{grid-area:state;justify-self:end}
71
+ .homerun .homerunwhat{grid-area:what}.homerun .homerunlog{grid-area:log}
72
+ }
73
+
74
+ .homerest{margin-top:26px}
75
+ .homeneed.gone,.homeline.gone{opacity:0;transform:translateX(12px);
76
+ transition:opacity .2s var(--ease),transform .2s var(--ease)}
77
+
78
+ /* Activity you have not seen: a blue dot and a bold title. In Needs you the dot has a column of
79
+ its own; in the other lists it sits before the title. Opening the thread marks it read, here
80
+ and on GitHub. */
81
+ .unread .homeopen,.unread .homerowtitle{font-weight:700}
82
+
83
+
84
+ .homereports{display:flex;flex-direction:column;gap:14px;padding:14px 16px}
85
+ .homereport{display:grid;grid-template-columns:190px 1fr;gap:12px;font-size:13px;line-height:1.5;
86
+ cursor:pointer;border-radius:8px;padding:6px 8px;margin:-6px -8px}
87
+ .homereport:hover{background:var(--hover)}
88
+ .homereport:focus-visible{outline:2px solid var(--accent);outline-offset:0}
89
+ .homereportwho{display:flex;flex-direction:column;gap:2px;min-width:0}
90
+ .homereportwho .meta{padding-left:21px}
91
+ .homereportask{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding-left:21px;margin-top:6px}
92
+ .homereportask .meta{padding-left:0}
93
+ .homereportbody p{margin:0 0 4px;color:var(--ink-dim);font-size:13px;line-height:1.5}
94
+ .homereportbody p:first-child{color:var(--ink)}
95
+ .homereportbody a{color:var(--accent)}
96
+ @media (max-width:640px){.homereport{grid-template-columns:1fr;gap:4px}}
97
+
98
+
99
+ /* Rows in a list card (Unread, Your requests, Closed today) that open a thread. */
100
+ .homeline{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:4px 14px;
101
+ padding:12px 0;font-size:13.5px;cursor:pointer}
102
+ .homeline.unread .homedot{background:var(--blue)}
103
+ .homeline + .homeline{border-top:1px solid var(--line)}
104
+ .homeline:hover .homerowtitle{text-decoration:underline}
105
+ .homeline:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
106
+ .homerowtitle{font-weight:600;color:var(--ink)}
107
+
108
+ /* On a phone the lists use the width: last in the file, so it wins over each list's own padding. */
109
+ @media (max-width:640px){
110
+ .homelist,.homeworking,.homereports{padding-left:14px;padding-right:14px}
111
+ .homeline{grid-template-columns:8px minmax(0,1fr)}
112
+ .homeline .homerunlog{grid-column:2}
113
+ .homeline .homerunlog:empty{display:none}
114
+ }