instar 1.3.1976 → 1.3.1978

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 (57) hide show
  1. package/dashboard/console/accounts-model.js +18 -3
  2. package/dashboard/console/allowed-model.js +15 -4
  3. package/dashboard/console/allowed.js +3 -1
  4. package/dashboard/console/chats.js +7 -4
  5. package/dashboard/console/console.css +5 -2
  6. package/dashboard/console/costs.js +8 -3
  7. package/dashboard/console/display-identity.js +2 -0
  8. package/dashboard/console/documents.js +13 -7
  9. package/dashboard/console/needs-model.js +11 -0
  10. package/dashboard/console/notifications.js +11 -2
  11. package/dashboard/console/plans-model.js +9 -1
  12. package/dashboard/console/plans.js +2 -2
  13. package/dashboard/console/usage-model.js +11 -8
  14. package/dashboard/console/usage.js +1 -1
  15. package/dashboard/console/work-model.js +19 -3
  16. package/dashboard/console/work.js +2 -2
  17. package/dist/core/workBoardViews.d.ts +2 -0
  18. package/dist/core/workBoardViews.d.ts.map +1 -1
  19. package/dist/core/workBoardViews.js +1 -1
  20. package/dist/core/workBoardViews.js.map +1 -1
  21. package/dist/data/standards-guard-index.json +1 -1
  22. package/dist/data/standards-guard-index.meta.json +2 -2
  23. package/dist/data/standards-registry.meta.json +1 -1
  24. package/dist/messaging/TelegramAdapter.d.ts +7 -0
  25. package/dist/messaging/TelegramAdapter.d.ts.map +1 -1
  26. package/dist/messaging/TelegramAdapter.js +23 -0
  27. package/dist/messaging/TelegramAdapter.js.map +1 -1
  28. package/dist/native/InstarWedgeCanary.app/Contents/MacOS/InstarWedgeCanary +0 -0
  29. package/dist/native/instar-desktop-host +0 -0
  30. package/dist/server/mobileCapacityRoutes.d.ts +27 -4
  31. package/dist/server/mobileCapacityRoutes.d.ts.map +1 -1
  32. package/dist/server/mobileCapacityRoutes.js +43 -13
  33. package/dist/server/mobileCapacityRoutes.js.map +1 -1
  34. package/dist/server/mobilePlansPeopleRoutes.d.ts.map +1 -1
  35. package/dist/server/mobilePlansPeopleRoutes.js +5 -1
  36. package/dist/server/mobilePlansPeopleRoutes.js.map +1 -1
  37. package/dist/server/routes.d.ts.map +1 -1
  38. package/dist/server/routes.js +5 -1
  39. package/dist/server/routes.js.map +1 -1
  40. package/dist/users/ReachablePeople.d.ts +3 -0
  41. package/dist/users/ReachablePeople.d.ts.map +1 -1
  42. package/dist/users/ReachablePeople.js +6 -2
  43. package/dist/users/ReachablePeople.js.map +1 -1
  44. package/package.json +1 -1
  45. package/src/data/builtin-manifest.json +46 -46
  46. package/src/data/design/usage-tone-vectors.json +14 -0
  47. package/src/data/standards-guard-index.json +1 -1
  48. package/src/data/standards-guard-index.meta.json +2 -2
  49. package/src/data/standards-registry.meta.json +1 -1
  50. package/upgrades/1.3.1977.md +32 -0
  51. package/upgrades/1.3.1978.md +64 -0
  52. package/upgrades/side-effects/allowed-checks-plain.md +101 -0
  53. package/upgrades/side-effects/console-names-not-ids-audit-2026-11-20.md +111 -0
  54. package/upgrades/side-effects/conversations-cos-card-and-link-buttons.md +102 -0
  55. package/upgrades/side-effects/df-0001-accounts-usage.md +109 -0
  56. package/upgrades/side-effects/plans-ok-names-round.md +102 -0
  57. package/upgrades/side-effects/reach-owner-keys-plain.md +99 -0
@@ -0,0 +1,64 @@
1
+ # Upgrade Guide — vNEXT
2
+
3
+ <!-- assembled-by: assemble-next-md -->
4
+ <!-- bump: patch -->
5
+
6
+ ## What Changed
7
+
8
+ "What I'm allowed to do": the need-a-look list counts only checks (unanswered machines move to "Machines I couldn't check", named from the pool), setting names read as words with acronyms kept ("Green PR auto merge"), and row titles drop dated incident tags (the full text stays in the check's detail). Overview: `docs/specs/allowed-checks-plain.eli16.md`.
9
+
10
+ Dashboard makeover fixes from a live check of every console page at laptop and phone size (spec overview `docs/specs/console-names-not-ids-audit-2026-11-20.eli16.md`).
11
+
12
+ - Needs-you: work-board rows keep whole words (cut at 140 characters with "…" instead of a raw 80-character cut that produced "needs y"). The incomplete badge reads "12+" instead of "12+?".
13
+ - Work board: the "may not have the newest changes" and "may have changed on" notes name the machine by its nickname (`behind.machineName`, `mayHaveChangedOnName`), or "another of your machines", never by its id.
14
+ - Documents: a document's conversation shows by name (pool topic names), or "A Telegram conversation", never "Telegram topic N".
15
+ - Notifications: notice text shows conversation and machine names and drops ids and hex references (shared `plainReferenceText`); the original text stays on hover.
16
+ - Costs: the machine comparison and the "Where the tokens went" breakdown use machine nicknames and conversation names; a conversation with no known name no longer shows as "Conversation <id>".
17
+ - Telegram: a topic with no known name learns it from Telegram's answer to the agent's own next message there (the topic-creation message the answer replies to). A known name is never replaced. This restores names lost when a machine is rebuilt, with no extra request.
18
+
19
+ - Conversations page: with the Needs-you list on screen, the Chief of Staff card shows only the check-in reminder (paused or pausing soon) instead of repeating every project wait the list already shows (`chiefOfStaffCardRows`).
20
+ - Console buttons: a link styled as the primary button centres its label, and primary buttons grow to fit a two-line label (`min-height`).
21
+
22
+ Overview: `docs/specs/conversations-cos-card-and-link-buttons.eli16.md`.
23
+
24
+ A plan's "Waiting for your OK on round N" ask now names the round when it has a name ("Waiting for your OK on round 1: Tier 1 - stop silent loss of local fixes"), in the dashboard Needs-you list, the Plans page and the phone app. A round without a name reads as before. Overview: `docs/specs/plans-ok-names-round.eli16.md`.
25
+
26
+ On "Who can reach me", the owner's "Treated as you" note shows an Instar profile as "your Instar profile" instead of its internal key ("Profile telegram-…"). Overview: `docs/specs/reach-owner-keys-plain.eli16.md`.
27
+
28
+ ## What to Tell Your User
29
+
30
+ The safety checks page now adds up (the number at the top matches the list) and its names read as plain words.
31
+
32
+ The dashboard now shows names where it used to show codes: machines by their names, conversations by their titles. "Needs you" items no longer get cut off mid-word. If some conversations showed "Conversation name unavailable" after a computer was rebuilt, they get their names back the next time I write in them. Nothing to do.
33
+
34
+ On your phone, the Conversations page no longer shows the same waiting projects twice, so the page itself starts on the first screen. Buttons with longer labels read properly.
35
+
36
+ When a plan waits for your OK, the dashboard and the app now say which round and what it is about, so you can tell what you are approving without opening the plan.
37
+
38
+ The "Who can reach me" page no longer shows an internal code among the accounts that count as you.
39
+
40
+ ## Summary of New Capabilities
41
+
42
+ - None (wording and grouping only).
43
+
44
+ - Topic names are learned from the agent's own sends when unknown (no new route or setting).
45
+ - Work-board `behind` answer carries `machineName`; card answers carry `mayHaveChangedOnName`.
46
+
47
+ - None (layout only).
48
+
49
+ - None beyond clearer wording (no new routes or settings).
50
+
51
+ - None (wording only).
52
+
53
+ ## Evidence
54
+
55
+ - Unit: `tests/unit/console-allowed.test.ts`. Live page verified through a proxy serving this branch.
56
+
57
+ - Unit: `tests/unit/console-work-model.test.ts`, `tests/unit/console-documents.test.ts`, `tests/unit/console-live-check-fixes.test.ts`, `tests/unit/console-usage.test.ts`, `tests/unit/console-front-doors.test.ts`, `tests/unit/topic-names-through-lifeline.test.ts`. Console suite 78 files / 1558 tests green; typecheck clean.
58
+ - Live: audit of all 32 console pages at 1280x728 and 390x844 on the Studio (1.3.1942) found each fixed string; a re-audit after release is recorded in topic 127504.
59
+
60
+ - Unit: `tests/unit/console-chief-of-staff-needs.test.ts`; console suite green. Phone screenshots before and after (390x844).
61
+
62
+ - Unit: `tests/unit/console-plans.test.ts`, `tests/unit/mobile-native-plans-people.test.ts`. E2E: `tests/e2e/console-home-lifecycle.test.ts`. Integration: `tests/integration/mobile-native-plans-people.test.ts`.
63
+
64
+ - Unit: `tests/unit/reachable-people.test.ts`.
@@ -0,0 +1,101 @@
1
+ # Side-Effects Review — safety checks add up and read plainly
2
+
3
+ **Version / slug:** `allowed-checks-plain`
4
+ **Date:** `2026-11-20`
5
+ **Author:** `echo`
6
+ **Second-pass reviewer:** `not required`
7
+
8
+ ## Summary of the change
9
+
10
+ Tier 1, 3 files (~40 lines). `dashboard/console/allowed-model.js`: `humanKey` (now exported) lower-cases split words and keeps acronyms (PR, CI, LLM, API…); a new `guardTitle` drops a trailing dated incident parenthetical from the row title (the detail sheet keeps the full `criticalPath`); an unanswered machine is named from the `/pool` rows when its own failure entry has no nickname. `dashboard/console/allowed.js`: the "need a look" section holds only checks, and unanswered machines move to a separate "Machines I couldn't check" section, so the chip count (40) and the section count agree (was 42, because 2 machine rows were mixed in). Found by the 2026-11-20 live dashboard audit (topic 127504), verified on the live page through a proxy serving this branch. One build pass, first commit attempt.
11
+
12
+ ## Decision-point inventory
13
+
14
+ No decision-point surface. `needsLook` and guard actions are unchanged.
15
+
16
+ ---
17
+
18
+ ## 1. Over-block
19
+
20
+ No block/allow surface — over-block not applicable.
21
+
22
+ ---
23
+
24
+ ## 2. Under-block
25
+
26
+ No block/allow surface — under-block not applicable.
27
+
28
+ ---
29
+
30
+ ## 3. Level-of-abstraction fit
31
+
32
+ Right layer: the page's own model and renderer.
33
+
34
+ ---
35
+
36
+ ## 4. Signal vs authority compliance
37
+
38
+ **Required reference:** [docs/signal-vs-authority.md](../../docs/signal-vs-authority.md)
39
+
40
+ No authority involved.
41
+
42
+ ---
43
+
44
+ ## 4b. Judgment-point check (Judgment Within Floors standard)
45
+
46
+ No decision point.
47
+
48
+ ---
49
+
50
+ ## 5. Interactions
51
+
52
+ The empty-state text now says "Every safety check that answered…" when some machines did not answer, so an empty need-a-look list never implies every machine was checked.
53
+
54
+ ---
55
+
56
+ ## 6. External surfaces
57
+
58
+ Dashboard wording and grouping only.
59
+
60
+ ---
61
+
62
+ ## 6b. Operator-surface quality (Operator-Surface Quality standard)
63
+
64
+ 1. **Leads with the primary action?** Yes. Checks needing a look stay first, and the count matches the chip.
65
+ 2. **Zero raw internals as primary content?** Yes. Code-name splits become words, and dated incident tags leave row titles.
66
+ 3. **Destructive actions de-emphasized?** Not touched.
67
+ 4. **Plain language + phone width?** Yes. Titles are shorter than before.
68
+
69
+ ---
70
+
71
+ ## 7. Multi-machine posture (Cross-Machine Coherence)
72
+
73
+ Pass-through: reads the existing pool-scope guard answer and `/pool`. Unanswered machines are now listed by name, separately.
74
+
75
+ **Status surfaces:** none.
76
+
77
+ ---
78
+
79
+ ## 8. Rollback cost
80
+
81
+ Revert the commit.
82
+
83
+ ---
84
+
85
+ ## Conclusion
86
+
87
+ A safe wording and grouping fix.
88
+
89
+ ## Second-pass review (if required)
90
+
91
+ Not required.
92
+
93
+ ## Evidence pointers
94
+
95
+ - `tests/unit/console-allowed.test.ts`: humanKey words and acronyms, guardTitle, a pool-named unanswered machine, the section wiring.
96
+ - Live page through the branch proxy: "SAFETY CHECKS · NEED A LOOK 40" (was 42), with a separate "Machines I couldn't check 2".
97
+ - Console unit suite green.
98
+
99
+ ## Class-Closure Declaration (display-only mirror)
100
+
101
+ No agent-authored-artifact defect — not applicable.
@@ -0,0 +1,111 @@
1
+ # Side-Effects Review — dashboard names, not IDs (2026-11-20 live audit)
2
+
3
+ **Version / slug:** `console-names-not-ids-audit-2026-11-20`
4
+ **Date:** `2026-11-20`
5
+ **Author:** `echo`
6
+ **Second-pass reviewer:** `not required`
7
+
8
+ ## Summary of the change
9
+
10
+ Tier 1 (small, reversible), 18 files (~150 changed lines incl. tests). These fixes come from a live audit of every console page at 1280x728 and 390x844 (topic 127504, the dashboard-makeover project). Console: `work-model.js` (Needs-you work rows cut at a word boundary up to 140 chars instead of a raw `.slice(0, 80)`; `machineWords` for behind/changed-on notes), `work.js`, `documents.js` (topic name instead of "Telegram topic N"), `notifications.js` (notice text through the existing `plainReferenceText` with pool topic and machine names; full text kept on hover), `display-identity.js` (drop the doubled "(name unresolved)"), `costs.js` + `usage-model.js` + `usage.js` (machine nicknames in the machine comparison AND the "Where the tokens went" breakdown rows and breadcrumbs, conversation names there too; no "Conversation <id>" fallback — the breakdown was caught by a pre-merge re-audit of all five branches combined), `needs-strip.js` (badge "12+" instead of "12+?"). Server: `routes.ts` adds `machineName` (pool nickname) to the work-board `behind` answer; `workBoardViews.ts` carries `mayHaveChangedOnName`. Telegram: `TelegramAdapter.learnTopicNameFromSent` reads `reply_to_message.forum_topic_created.name` from each successful `sendMessage` answer and calls the existing `captureTopicName(id, name, false)` only when no name is known. Effort: one build pass, no spec review rounds (Tier 1), first commit attempt.
11
+
12
+ ## Decision-point inventory
13
+
14
+ No decision-point surface. Nothing is gated, blocked, filtered or routed differently. The adapter change only fills a display-name cache through the existing capture rule, which never replaces a known name except on a rename event.
15
+
16
+ ---
17
+
18
+ ## 1. Over-block
19
+
20
+ No block/allow surface — over-block not applicable.
21
+
22
+ ---
23
+
24
+ ## 2. Under-block
25
+
26
+ No block/allow surface — under-block not applicable. Coverage limits: a topic whose name is unknown stays unnamed until the agent sends into it, or the operator posts or renames it. A name learned from a send is the creation name; if the topic was renamed earlier and the rename event was lost, the creation name shows until the next rename. That is the same limit the inbound path (`msg.reply_to_message.forum_topic_created.name`) already has, and it is better than "Conversation name unavailable".
27
+
28
+ ---
29
+
30
+ ## 3. Level-of-abstraction fit
31
+
32
+ Right layer. Display wording lives in the console models that already own it, and they reuse the existing `verifiedDisplayName` and `plainReferenceText` helpers instead of adding new ID filters. The machine nickname is attached server-side, where the pool registry lives (`ctx.machinePoolRegistry.getCapacity(id).nickname`, the same lookup the placement route uses). Name learning is called from `apiCall`, the one funnel every Telegram API answer returns through. The method itself sits beside `captureTopicName`, which it delegates to.
33
+
34
+ ---
35
+
36
+ ## 4. Signal vs authority compliance
37
+
38
+ **Required reference:** [docs/signal-vs-authority.md](../../docs/signal-vs-authority.md)
39
+
40
+ No blocking authority is added or changed. This is display text plus a name cache.
41
+
42
+ ---
43
+
44
+ ## 4b. Judgment-point check (Judgment Within Floors standard)
45
+
46
+ No competing-signals decision point. The 140-character cut is a display bound, not a judgment.
47
+
48
+ ---
49
+
50
+ ## 5. Interactions
51
+
52
+ - `captureTopicName` saves the topic registry (`saveRegistry`) once per newly learned name. Repeated sends to a named topic return early (`getTopicName` is non-null) and write nothing, so there is no write storm.
53
+ - `learnTopicNameFromSent` runs after the egress door and the quiet-receipt check, only on a real Telegram result. It is wrapped in try/catch, so a malformed answer can never fail a send that already succeeded.
54
+ - The rename handler (`topicRenamedHandler`) fires only on true renames; the learn call passes `isEditEvent=false`, so it never fires it.
55
+ - The work-board `behind` object gains an optional field. Older consoles ignore it, and newer consoles talking to older servers fall back to "another of your machines".
56
+ - Documents, Notifications and Costs each add one pool read (`/telegram/topics?scope=pool`, `/pool`) that the console already makes elsewhere. A failure there only means the plain fallback words.
57
+
58
+ ---
59
+
60
+ ## 6. External surfaces
61
+
62
+ User-visible wording on five console pages and the Needs-you badge. There's no new route, config key or outbound message. The Telegram change sends nothing new.
63
+
64
+ ---
65
+
66
+ ## 6b. Operator-surface quality (Operator-Surface Quality standard)
67
+
68
+ 1. **Leads with the primary action?** Yes, unchanged. The Needs-you rows now keep the action words ("needs your OK") that the cut used to drop.
69
+ 2. **Zero raw internals as primary content?** This change is that fix: machine IDs (Work board notes, Costs), topic IDs (Documents, Notifications), hex refs and `(name unresolved)` (Notifications) are replaced by names or plain words. Raw notice text stays available only on hover.
70
+ 3. **Destructive actions de-emphasized?** No destructive action touched.
71
+ 4. **Plain language + phone width?** Yes. The audit ran at 390x844 and 1280x728 with no horizontal scroll on any page. The re-audit after release is part of the same run.
72
+
73
+ ---
74
+
75
+ ## 7. Multi-machine posture (Cross-Machine Coherence)
76
+
77
+ - Topic names: the learned name is written to this machine's topic registry, the same machine-local store as every other capture path. Other machines read it through the existing pool-merged `/telegram/topics?scope=pool`, which every changed console page uses. Proxied-on-read, no new replication.
78
+ - Machine nicknames: read from the pool registry, which is already replicated. The console pages read `/pool`.
79
+ - Work-board `behind`: machine-local by design (it describes this machine's lag behind a peer).
80
+
81
+ **Status surfaces:** none added or changed.
82
+
83
+ ---
84
+
85
+ ## 8. Rollback cost
86
+
87
+ Revert the commit. Names learned meanwhile stay in the registry and are correct; nothing needs cleaning up.
88
+
89
+ ---
90
+
91
+ ## Conclusion
92
+
93
+ A safe, reversible wording fix that meets the makeover's names-not-IDs goal on the pages the audit flagged, plus a free self-heal for lost conversation names. No gate is touched.
94
+
95
+ ## Second-pass review (if required)
96
+
97
+ Not required: no outbound or inbound block/allow, no session lifecycle, no gate, sentinel or watchdog.
98
+
99
+ ## Evidence pointers
100
+
101
+ - `tests/unit/console-work-model.test.ts`: needRowTitle whole-word cut; behind/changed-on notes use the nickname and never print `m_…`.
102
+ - `tests/unit/console-documents.test.ts`: topic name or "A Telegram conversation", never the topic id.
103
+ - `tests/unit/console-live-check-fixes.test.ts`: notice text drops topic/machine ids and the doubled "(name unresolved)".
104
+ - `tests/unit/console-usage.test.ts`: machine row without a name never shows its id.
105
+ - `tests/unit/console-front-doors.test.ts`: "2+"/"0+" badge.
106
+ - `tests/unit/topic-names-through-lifeline.test.ts`: name learned from a sent message; a known name is never replaced; malformed answers learn nothing; wiring pinned in `apiCall`.
107
+ - Full console suite: 78 files / 1558 tests green; `tsc --noEmit` clean.
108
+
109
+ ## Class-Closure Declaration (display-only mirror)
110
+
111
+ No agent-authored-artifact defect — not applicable.
@@ -0,0 +1,102 @@
1
+ # Side-Effects Review — Conversations Chief of Staff card dedupe, link-button layout
2
+
3
+ **Version / slug:** `conversations-cos-card-and-link-buttons`
4
+ **Date:** `2026-11-20`
5
+ **Author:** `echo`
6
+ **Second-pass reviewer:** `not required`
7
+
8
+ ## Summary of the change
9
+
10
+ Tier 1, 5 files (~40 lines). `dashboard/console/needs-model.js` adds `chiefOfStaffCardRows(rows, { stripShown })`. `dashboard/console/chats.js` uses it so that, when the Needs-you strip (`#needsStrip`) is on screen, the Conversations page's Chief of Staff card keeps only the lease rows (`need:cos:paused`, `need:cos:expiring`, whose Check in action the strip cannot perform there) instead of repeating every project wait. `dashboard/console/console.css`: `.btn-primary` uses `min-height` + `line-height` so two-line labels fit, and `a.btn-primary` centres its label with inline-flex. Found by the 2026-11-20 live dashboard audit (topic 127504); verified by screenshots at 390x844 through a proxy serving this branch's console against the live server. One build pass, first commit attempt.
11
+
12
+ ## Decision-point inventory
13
+
14
+ No decision-point surface. Which needs exist is unchanged; one surface stops repeating rows another surface on the same screen already shows.
15
+
16
+ ---
17
+
18
+ ## 1. Over-block
19
+
20
+ No block/allow surface — over-block not applicable. Display check: when the strip exists but fails to load, it still shows (with "Could not check"), so the card's project rows are hidden while the strip says it could not check. Every project wait is also a Needs-you row and a work-board card, so nothing becomes unreachable.
21
+
22
+ ---
23
+
24
+ ## 2. Under-block
25
+
26
+ No block/allow surface — under-block not applicable.
27
+
28
+ ---
29
+
30
+ ## 3. Level-of-abstraction fit
31
+
32
+ Right layer: the selection is a pure helper beside `chiefOfStaffNeedRows`, and the page reads the DOM fact (strip present) the shell already decided (`console.js` mounts the strip only above the two front doors).
33
+
34
+ ---
35
+
36
+ ## 4. Signal vs authority compliance
37
+
38
+ **Required reference:** [docs/signal-vs-authority.md](../../docs/signal-vs-authority.md)
39
+
40
+ No authority involved.
41
+
42
+ ---
43
+
44
+ ## 4b. Judgment-point check (Judgment Within Floors standard)
45
+
46
+ No decision point.
47
+
48
+ ---
49
+
50
+ ## 5. Interactions
51
+
52
+ - `console-needs-first-screen` renders the chats page without a strip and still finds the `data-operator-need="chief-of-staff"` card with its action: passes.
53
+ - The CSS change affects every `.btn-primary`. A `<button>` already centres; `min-height` keeps the 48px floor. Rules that set the width or margin of `.btn-primary` inline buttons (`.btn-inline`) are unaffected; `a.btn-primary` padding applies only to links.
54
+
55
+ ---
56
+
57
+ ## 6. External surfaces
58
+
59
+ Dashboard layout only.
60
+
61
+ ---
62
+
63
+ ## 6b. Operator-surface quality (Operator-Surface Quality standard)
64
+
65
+ 1. **Leads with the primary action?** Yes. On a phone the Conversations page's own content is back on the first screen, and the check-in action stays when it is needed.
66
+ 2. **Zero raw internals as primary content?** Unchanged; no internals added.
67
+ 3. **Destructive actions de-emphasized?** Not touched.
68
+ 4. **Plain language + phone width?** Verified at 390x844: link buttons centre their label, and a two-line label stays inside the button.
69
+
70
+ ---
71
+
72
+ ## 7. Multi-machine posture (Cross-Machine Coherence)
73
+
74
+ Pass-through: client-side display only.
75
+
76
+ **Status surfaces:** none.
77
+
78
+ ---
79
+
80
+ ## 8. Rollback cost
81
+
82
+ Revert the commit.
83
+
84
+ ---
85
+
86
+ ## Conclusion
87
+
88
+ Two safe clutter and layout fixes.
89
+
90
+ ## Second-pass review (if required)
91
+
92
+ Not required.
93
+
94
+ ## Evidence pointers
95
+
96
+ - `tests/unit/console-chief-of-staff-needs.test.ts`: `chiefOfStaffCardRows` with and without the strip, plus the chats.js wiring.
97
+ - Console unit suite 78 files / 1556 green.
98
+ - Screenshots (390x844) before: Conversations title below the fold, link button text top-left; after: title on the first screen, label centred.
99
+
100
+ ## Class-Closure Declaration (display-only mirror)
101
+
102
+ No agent-authored-artifact defect — not applicable.
@@ -0,0 +1,109 @@
1
+ # Side-Effects Review — DF-0001 stage 1: fixed usage-limit order, display name, rounded tone and reset flag
2
+
3
+ **Version / slug:** `df-0001-accounts-usage`
4
+ **Date:** `2026-11-22`
5
+ **Author:** `echo (design-standards session, Mama PC)`
6
+ **Second-pass reviewer:** `not required`
7
+
8
+ ## Summary of the change
9
+
10
+ This is stage 1 of `docs/specs/design-standard-enforcement.md` §4. The owner approved the spec on 2026-11-22 (topic 146789, message 147024).
11
+
12
+ On the server (`src/server/mobileCapacityRoutes.ts`):
13
+ - `usageWindows(q, now)` returns limits in a fixed rank order instead of by percentage, and adds `name`, `tone` and `rolledOver` to each limit.
14
+ - New `topWindow()` returns the highest limit that has not rolled over. It replaces `windows[0]` in the notices (twice) and in the account summary.
15
+ - New `usageTone()` colours a limit or account from the rounded figure.
16
+ - Constants: `USAGE_TONE_ATTN_PCT` is new and `NEAR_OUT_PCT` moved up beside it.
17
+ - `roomReturnsAt` ignores rolled-over limits.
18
+
19
+ On the web (`dashboard/console/accounts-model.js`):
20
+ - New `usageTone()` and `USAGE_TONE_ATTN_PCT`, used for both the limit tone and the account tone.
21
+ - The account sort gains a name tie-break.
22
+
23
+ New file `src/data/design/usage-tone-vectors.json`, with a parity test that pins both sides to it.
24
+
25
+ Tier 1 by size: 2 source files, about 60 changed lines plus tests. Declared Tier 2 because it rides the approved Tier-2 spec. One spec round was applied, and this is the first commit attempt.
26
+
27
+ **Deviation from spec item 5, stated:** the spec says the literals 75 and 90 "move to one shared constant file". The web console is a plain browser module outside the TypeScript `rootDir`, and no server module imports from `dashboard/`. The house pattern is two copies pinned by a test, as with `phoneWorkCards.ts` and `make-card.js`. So each side keeps one named constant pair, and `usage-tone-vectors.json` carries the bands. The parity test fails if either side's numbers differ from the file. The intent is met: a drift on one side fails a test.
28
+
29
+ ## Decision-point inventory
30
+
31
+ - Which colour a usage limit shows: display only. It gates no action and blocks nothing.
32
+ - Which limit decides an account's line, colour and sort position: display only.
33
+ - Whether the pool-wide "nearly out" notice shows: an informational notice. It blocks nothing, and it now ignores limits that already reset.
34
+
35
+ None of these gate information flow or constrain agent behaviour.
36
+
37
+ ---
38
+
39
+ ## 1. Over-block
40
+
41
+ No issue identified. Nothing is rejected. The notice now fires less often, only when every account's live limit is at 90% or over. Before, a limit that had reset could trigger it falsely.
42
+
43
+ ## 2. Under-block
44
+
45
+ There is one stale window. `rolledOver` is computed against the server's clock at request time, so an app caching the payload keeps the old flag until it refreshes. This already happens today with `resetsAt`, which is cleared the same way.
46
+
47
+ The server still sorts accounts that need sign-in first, and the web does not. The spec deliberately leaves that difference open as DSE-T7 (CMT-2171).
48
+
49
+ ## 3. Level-of-abstraction fit
50
+
51
+ This is the right layer. Order, tone and reset are decided once on the server, so the apps paint what is sent, as the note to the app sessions asks. The web is the second renderer and uses the same rule.
52
+
53
+ ## 4. Signal vs authority compliance
54
+
55
+ Not a decision point with authority. These are display values, so `docs/signal-vs-authority.md` does not apply. No brittle check gains blocking power.
56
+
57
+ ## 4b. Judgment-point check (Judgment Within Floors standard)
58
+
59
+ No new static heuristic at a competing-signals decision point. The 75 and 90 bands are existing enumerable display thresholds, recorded in the spec's decision table as "Tone bands 75/90 — enumerable-domain". They only moved into named constants.
60
+
61
+ ---
62
+
63
+ ## 5. Interactions
64
+
65
+ - **Installed apps.** Per the spec's ground truth, iPhone and Mac draw `windows` in the order received and sort their own headline. Windows sorts its own headline. Android reads only `usageLine`, and Linux has no reader. Removing the server sort changes only the order iPhone and Mac draw rows in, which is the intended fix. Every installed app ignores the three new fields, because apps decode JSON leniently. `usageLine` now names the top live limit instead of `windows[0]`. Before, those two were the same limit except when the top limit had reset; now the reset limit is skipped.
66
+ - **Pool notices.** They now read `topWindow()`, so a pool whose only "full" limits have reset no longer reports "all accounts nearly out".
67
+ - **Web tests.** `console-accounts.test.ts` (35 tests) passes unchanged. Its existing "reset limit no longer counts as full" test already matched the new server behaviour.
68
+
69
+ ## 6. External surfaces
70
+
71
+ `GET /mobile/accounts` changes in an additive way: three new fields per limit and a new order. `label` and `schemaVersion` are unchanged, so older apps keep working. No timing dependency beyond request-time `now`, which the route already passes as `opts.now`.
72
+
73
+ ## 6b. Operator-surface quality (Operator-Surface Quality standard)
74
+
75
+ This touches an operator surface (`dashboard/console/accounts-model.js`, the accounts screen's model).
76
+
77
+ 1. **Leads with the primary action?** Yes, unchanged. Only colours and the order of equal accounts change, and the screen's layout and actions are untouched.
78
+ 2. **Zero raw internals as primary content?** Yes. No new text is shown, only colour decisions.
79
+ 3. **Destructive actions de-emphasized?** Not affected; none are added or moved.
80
+ 4. **Plain language + phone width?** Unchanged markup. The fix makes the colour match the number displayed (89.6% shown as "90%" is red), which is DF-0001 problem 3's plain-reading fix. No layout change, so phone width is as before. The console DOM tests in `console-accounts.test.ts` pass.
81
+
82
+ ## 7. Multi-machine posture (Cross-Machine Coherence)
83
+
84
+ Proxied-on-read, unchanged. `/mobile/accounts` already merges `/subscription-pool?scope=pool` across machines and computes the summary on the answering machine. The new fields are pure functions of each merged reading and the answering machine's clock. No new state is stored, replicated or stranded. No user-facing notice is added (one-voice is unchanged).
85
+
86
+ ## 8. Rollback cost
87
+
88
+ Revert the commit. The change is pure code with no stored data, migration or config. Apps that start using `name`, `tone` or `rolledOver` must fall back when they are absent, as the note to the app sessions specifies.
89
+
90
+ ---
91
+
92
+ ## Conclusion
93
+
94
+ Safe to ship. It is a display-only, additive change that fixes DF-0001's server and web problems: limit order, the colour of a reset limit, a reset limit deciding the account, rounding drift, and sort stability. The notice behaviour changes only by dropping false "nearly out" readings.
95
+
96
+ ## Second-pass review (if required)
97
+
98
+ Not required: no messaging block or allow, no session lifecycle, no gate, sentinel or watchdog.
99
+
100
+ ## Evidence pointers
101
+
102
+ - `tests/unit/usage-tone-parity.test.ts`: 16 tests across 7 boundary cases, run on both sides.
103
+ - `tests/unit/mobile-native-capacity-screens.test.ts`: 43 tests, including the two new DF-0001 cases.
104
+ - `tests/integration/mobile-native-capacity-screens.test.ts`: 18 tests.
105
+ - Neighbour unit suites: 160 tests. Integration: 23. E2E (console-home-lifecycle and the capacity-screens alive test): 22. All green on 2026-11-22.
106
+
107
+ ## Class-Closure Declaration (display-only mirror)
108
+
109
+ No agent-authored-artifact defect — not applicable. This fixes product display code, not a prompt, hook, config, skill or standards text, and it adds no self-triggered controller.
@@ -0,0 +1,102 @@
1
+ # Side-Effects Review — plan approvals say what the OK is for
2
+
3
+ **Version / slug:** `plans-ok-names-round`
4
+ **Date:** `2026-11-20`
5
+ **Author:** `echo`
6
+ **Second-pass reviewer:** `not required`
7
+
8
+ ## Summary of the change
9
+
10
+ Tier 1, 7 files (~30 changed lines incl. tests). The "Waiting for your OK on round N" ask now appends the round's name (`: <name>`, word-cut at 80) when the round has one. Files: `dashboard/console/plans-model.js` (`roundNameSuffix`, used by `needsYouWords`), `dashboard/console/plans.js` (detail card title), `src/server/mobilePlansPeopleRoutes.ts` (`needsWords`, same words for the phone app, cleaned with the existing `cleanText`), and tests. Found by the 2026-11-20 live dashboard audit (topic 127504). One build pass; first commit attempt.
11
+
12
+ ## Decision-point inventory
13
+
14
+ No decision-point surface. `projectNeedsOk` (when an OK is needed) is unchanged; only the words of the ask change.
15
+
16
+ ---
17
+
18
+ ## 1. Over-block
19
+
20
+ No block/allow surface — over-block not applicable.
21
+
22
+ ---
23
+
24
+ ## 2. Under-block
25
+
26
+ No block/allow surface — under-block not applicable. A round with no name keeps the old words.
27
+
28
+ ---
29
+
30
+ ## 3. Level-of-abstraction fit
31
+
32
+ Right layer: the two existing wording functions (console and server mirror) that already produce this sentence.
33
+
34
+ ---
35
+
36
+ ## 4. Signal vs authority compliance
37
+
38
+ **Required reference:** [docs/signal-vs-authority.md](../../docs/signal-vs-authority.md)
39
+
40
+ No authority added or changed.
41
+
42
+ ---
43
+
44
+ ## 4b. Judgment-point check (Judgment Within Floors standard)
45
+
46
+ No decision point.
47
+
48
+ ---
49
+
50
+ ## 5. Interactions
51
+
52
+ The Needs-you list de-duplicates by item id, not by the words, so a longer sentence does not change which rows show. The phone app reads `needs` as display text only.
53
+
54
+ ---
55
+
56
+ ## 6. External surfaces
57
+
58
+ The wording of an existing ask on the dashboard and in the phone app. There's no new route or field.
59
+
60
+ ---
61
+
62
+ ## 6b. Operator-surface quality (Operator-Surface Quality standard)
63
+
64
+ 1. **Leads with the primary action?** Yes. The ask now says what the OK is for, and the OK button is unchanged.
65
+ 2. **Zero raw internals as primary content?** Yes. A plan-author round name is human text, cleaned and capped.
66
+ 3. **Destructive actions de-emphasized?** Not touched.
67
+ 4. **Plain language + phone width?** Yes. It's capped at about 80 characters of name, and the row wraps (checked at 390x844 in the audit).
68
+
69
+ ---
70
+
71
+ ## 7. Multi-machine posture (Cross-Machine Coherence)
72
+
73
+ Pass-through: the words are computed from the plan record each machine already reads; no state is added.
74
+
75
+ **Status surfaces:** none.
76
+
77
+ ---
78
+
79
+ ## 8. Rollback cost
80
+
81
+ Revert the commit. No data is touched.
82
+
83
+ ---
84
+
85
+ ## Conclusion
86
+
87
+ A safe wording clarification of an existing ask.
88
+
89
+ ## Second-pass review (if required)
90
+
91
+ Not required.
92
+
93
+ ## Evidence pointers
94
+
95
+ - `tests/unit/console-plans.test.ts`: named round, unnamed round, long-name cut, blank name.
96
+ - `tests/unit/mobile-native-plans-people.test.ts`: the server's words match.
97
+ - `tests/e2e/console-home-lifecycle.test.ts`: Needs-you row "Waiting for your OK on round 1: Home".
98
+ - `tests/integration/mobile-native-plans-people.test.ts`: unnamed-round words unchanged.
99
+
100
+ ## Class-Closure Declaration (display-only mirror)
101
+
102
+ No agent-authored-artifact defect — not applicable.