@staix/agent-hub 0.46.1 → 0.47.0

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 (130) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +8 -4
  3. package/docs/adding-an-ai-tool.md +20 -4
  4. package/docs/agent-notes/adapters.md +3 -3
  5. package/docs/agent-notes/benchmarks.md +7 -1
  6. package/docs/agent-notes/daemon.md +5 -4
  7. package/docs/agent-notes/tasks.md +4 -2
  8. package/docs/agent-notes/tests.md +3 -0
  9. package/docs/contracts/companion-cli-v1.json +3 -0
  10. package/docs/data-policy.md +9 -0
  11. package/docs/design/adapters.md +14 -0
  12. package/docs/design/cli-output-inventory.md +362 -0
  13. package/docs/design/cli-output.md +42 -1
  14. package/docs/design/execution-reference.md +5 -2
  15. package/docs/design/guidance-probes.md +2 -2
  16. package/docs/design/refusal-inventory.md +26 -0
  17. package/docs/design/roadmap.md +4 -0
  18. package/docs/design/task-board.md +17 -1
  19. package/docs/dogfood.md +26 -10
  20. package/docs/events.md +9 -0
  21. package/docs/friction.md +46 -0
  22. package/docs/memory.md +35 -3
  23. package/docs/operations.md +63 -15
  24. package/docs/profiles.md +1 -0
  25. package/docs/quickstart.md +8 -2
  26. package/docs/roles.md +6 -0
  27. package/docs/sdlc.md +44 -1
  28. package/docs/security.md +16 -7
  29. package/docs/specs/2026-09-19-agent-hub-design.md +17 -0
  30. package/docs/specs/2026-09-19-multi-project-design.md +7 -1
  31. package/docs/verification/2026-11-25-agy-1.5.16.md +31 -0
  32. package/docs/verification/2026-11-25-claude-implementer-2.1.332.md +47 -0
  33. package/docs/verification/2026-11-25-codex-0172-reviewer-isolation.md +47 -0
  34. package/docs/verification/2026-11-25-kimi-272-reviewer-compat.md +38 -0
  35. package/docs/verification/2026-11-25-kimi-tui-272.md +14 -0
  36. package/docs/verification/2026-11-25-pi-160-compat.md +40 -0
  37. package/docs/verification/2026-11-26-0.47.0.md +43 -0
  38. package/docs/verification/2026-11-26-codex-0172-reviewer-tool-call.md +29 -0
  39. package/docs/verification/dogfood/2026-11-24.md +2829 -0
  40. package/docs/verification/pi-160-model-free.ts +57 -0
  41. package/docs/verification/pi-160-native.mjs +21 -0
  42. package/docs/verified.json +43 -31
  43. package/package.json +2 -2
  44. package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
  45. package/plugins/agent-hub/kimi-hook.js +579 -126
  46. package/plugins/agent-hub/server.js +668 -138
  47. package/src/adapters/acp.ts +5 -0
  48. package/src/adapters/channel-peer.ts +7 -0
  49. package/src/adapters/claude-print-child.ts +27 -5
  50. package/src/adapters/codex-appserver.ts +9 -0
  51. package/src/adapters/compat.ts +12 -11
  52. package/src/adapters/configured-acp.ts +45 -2
  53. package/src/adapters/configured-print.ts +163 -0
  54. package/src/adapters/conformance/index.ts +1 -0
  55. package/src/adapters/conformance/print.ts +57 -0
  56. package/src/adapters/definitions/native-activity.ts +57 -0
  57. package/src/adapters/definitions/native-factories.ts +4 -2
  58. package/src/adapters/jcode.ts +10 -2
  59. package/src/adapters/local-worker.ts +2 -0
  60. package/src/adapters/registry-types.ts +5 -3
  61. package/src/adapters/role-eligibility.ts +5 -0
  62. package/src/cli/bench.ts +2 -1
  63. package/src/cli/broker.ts +2 -1
  64. package/src/cli/capabilities-output.ts +10 -14
  65. package/src/cli/configured-acp-entry.ts +10 -2
  66. package/src/cli/console-state.ts +25 -5
  67. package/src/cli/error-format.ts +2 -0
  68. package/src/cli/guidance.ts +1 -1
  69. package/src/cli/handoff-output.ts +20 -17
  70. package/src/cli/help.ts +78 -40
  71. package/src/cli/init-settings.ts +15 -0
  72. package/src/cli/intake-output.ts +13 -13
  73. package/src/cli/launch.ts +3 -2
  74. package/src/cli/learn-output.ts +40 -21
  75. package/src/cli/main.ts +148 -77
  76. package/src/cli/memory.ts +47 -2
  77. package/src/cli/output.ts +54 -31
  78. package/src/cli/roadmap.ts +2 -2
  79. package/src/cli/room-output.ts +71 -0
  80. package/src/cli/room.ts +19 -33
  81. package/src/cli/schedule-output.ts +20 -19
  82. package/src/cli/sdlc-output.ts +188 -170
  83. package/src/cli/source-output.ts +17 -14
  84. package/src/cli/specs.ts +13 -13
  85. package/src/cli/study-output.ts +66 -69
  86. package/src/cli/task-output.ts +106 -158
  87. package/src/cli/terminal-recovery.ts +2 -1
  88. package/src/cli/upgrade-runtime.ts +2 -1
  89. package/src/cli/warn-line.ts +18 -0
  90. package/src/cli/worktrees-output.ts +25 -23
  91. package/src/hub/audit-source.ts +45 -0
  92. package/src/hub/board.ts +141 -5
  93. package/src/hub/bus.ts +13 -2
  94. package/src/hub/config-apply.ts +14 -1
  95. package/src/hub/config-trust.ts +1 -0
  96. package/src/hub/control-client.ts +1 -1
  97. package/src/hub/daemon.ts +371 -45
  98. package/src/hub/handoff.ts +5 -1
  99. package/src/hub/hub-tools.ts +23 -5
  100. package/src/hub/instance-config.ts +3 -3
  101. package/src/hub/learn-followup.ts +103 -0
  102. package/src/hub/learning.ts +63 -1
  103. package/src/hub/manager.ts +15 -1
  104. package/src/hub/memory-policy.ts +2 -1
  105. package/src/hub/memory-review.ts +217 -0
  106. package/src/hub/peer-activity.ts +37 -0
  107. package/src/hub/peers.ts +3 -0
  108. package/src/hub/project-move.ts +258 -0
  109. package/src/hub/registry.ts +16 -5
  110. package/src/hub/restart.ts +7 -0
  111. package/src/hub/review-brief.ts +8 -4
  112. package/src/hub/review-checkout.ts +26 -0
  113. package/src/hub/review-findings.ts +6 -3
  114. package/src/hub/risk-tier.ts +129 -0
  115. package/src/hub/roadmap-check.ts +1 -0
  116. package/src/hub/routing.ts +3 -1
  117. package/src/hub/sdlc-merge.ts +9 -0
  118. package/src/hub/sdlc-metrics.ts +24 -1
  119. package/src/hub/sdlc-queue.ts +1 -1
  120. package/src/hub/sdlc.ts +15 -6
  121. package/src/hub/settings.ts +2 -0
  122. package/src/hub/spec-readback.ts +136 -0
  123. package/src/hub/specs.ts +1 -1
  124. package/src/hub/task-list-page.ts +1 -1
  125. package/src/hub/tasks.ts +558 -65
  126. package/src/hub/ui.ts +4 -2
  127. package/src/ui/index.html +26 -2
  128. package/src/ui/overview-model.ts +138 -0
  129. package/src/ui/plugin.ts +30 -4
  130. package/templates/roles/ops/project-manager.md +1 -1
@@ -0,0 +1,362 @@
1
+ # CLI output inventory
2
+
3
+ Snapshot recorded 2026-11-25 for #1654 T1.
4
+
5
+ Generated from the built-in dispatch table, adapter entries and HELP. Width is measured in terminal cells on color-off help at 80 columns.
6
+ Overview summaries are recorded verbatim for the T2 grammar pass. Help-only entries include global forms.
7
+
8
+ Overview width: 79 cells. Dispatch entries: 90. Help command words: 92.
9
+
10
+ | Command | Dispatch | Help width | Overview summary (cells) | Example | Flags | Observed help deviations |
11
+ | --- | --- | ---: | --- | --- | --- | --- |
12
+ | --live-test | Help only | 76 | Projects / user-authorized console delegation (person only) (48) | Yes | --project | Repeated forms |
13
+ | --project | Help only | 44 | Projects / run a command against another project (37) | Yes | - | Repeated forms |
14
+ | --version | main.ts | 40 | Projects / print the installed version (27) | Yes | --version | Repeated forms |
15
+ | agents | main.ts | 79 | Daemon and runtime / show each agent CLI's version and verdict (41) | Yes | --json --revoke | Repeated forms |
16
+ | agy | adapter | 80 | Agents / start optional Antigravity CLI in this terminal (47) | Yes | --print-command --dry-run | Repeated forms |
17
+ | answer | main.ts | 80 | Messages and approvals / list and answer open hub_ask questions (38) | Yes | --other --instructed --json --color | Repeated forms |
18
+ | ask | main.ts | 79 | Tasks and review / answer from the board, memory and the log (41) | Yes | --remember | Repeated forms |
19
+ | autonomy | main.ts | 80 | Messages and approvals / apply the autonomy preset (25) | Yes | --all-projects --yes --json | Repeated forms |
20
+ | backlog | main.ts | 80 | Daemon and runtime / return accepted untouched work to the backlog (45) | Yes | --reserved --unreserve --json --color --full | Repeated forms |
21
+ | bench | main.ts | 80 | History and reports / run a benchmark suite against attached peers (44) | Yes | --arm --repeat --tasks --addon --memory --json --suite --mixed --format | Repeated forms |
22
+ | board | main.ts | 80 | Tasks and review / show the task board, import open issues (39) | Yes | --label --milestone --repo --ready --columns --release --release-id --handoffs --json --full --color | Repeated forms |
23
+ | broker | main.ts | 80 | Tasks and review / run the ciphertext relay for rooms (34) | Yes | --hostname --port --public-url --owner --state-dir --yes | Repeated forms |
24
+ | budget | main.ts | 80 | Budget / quota windows per peer and why one is paused (44) | Yes | --json --full --color --resets-in --window --reason | Repeated forms |
25
+ | capabilities | main.ts | 80 | Tasks and review / list the skills each attached peer offers (41) | Yes | --json --color | Repeated forms |
26
+ | check-path | main.ts | 76 | History and reports / other owners' open tasks that claim a file (42) | Yes | --peer --hook | Repeated forms |
27
+ | claude | adapter | 73 | Agents / launch Claude Code with the hub channel (39) | Yes | --print-command --unattended --as | Repeated forms |
28
+ | codex | adapter | 73 | Agents / start the Codex adapter and attach the TUI (42) | Yes | --print-command --unattended --as | Repeated forms |
29
+ | completion | main.ts | 78 | Projects / print a shell completion script (31) | Yes | - | Repeated forms |
30
+ | console | main.ts | 79 | Daemon and runtime / open the human console (22) | Yes | --panels --color --no-pet | Repeated forms |
31
+ | daemon | main.ts | 74 | Daemon and runtime / internal: the detached hub process (34) | No | --unattended | Internal, Repeated forms |
32
+ | deliverables | main.ts | 80 | Tasks and review / what each task delivered and a reviewer approved (48) | Yes | --task --approved --check --json --color | Repeated forms |
33
+ | doctor | main.ts | 80 | Daemon and runtime / check tools, daemon, plugin, models and memory (46) | Yes | --json --full --ascii --color --stale-anchors --orphans --kill | Repeated forms |
34
+ | down | main.ts | 73 | Daemon and runtime / stop this project's hub (same as kill) (38) | Yes | - | Repeated forms |
35
+ | export | main.ts | 75 | History and reports / events as JSON lines (20) | Yes | --since | Repeated forms |
36
+ | facts | main.ts | 79 | Hooks / Claude hook for turn-free facts (31) | No | --hook | Internal, Repeated forms |
37
+ | goal | main.ts | 80 | History and reports / long-term tasks and who holds them (34) | Yes | --all --json --milestone --depends --shared --force | Repeated forms |
38
+ | guidance | main.ts | 80 | History and reports / guidance declarations and the probe lifecycle (45) | Yes | --file --json --id --revision --variant --task --task-created --cursor | Repeated forms |
39
+ | help | main.ts | 57 | Projects / this overview, or one command's usage (37) | Yes | --ascii | Repeated forms |
40
+ | init | main.ts | 80 | Projects / write .agenthub/config.json and the AGENTS.md block (51) | Yes | --profile --agents --sdlc --required-checks --coordination --memory --no-memory --research --no-research --snapshots --no-snapshots --pi --no-pi --specs --no-specs --spec-review --conductor --planner --reviewer --track-config --no-track-config --no-jcode-home --autonomy --shadow --release-guard --yes --dry-run --json | Repeated forms |
41
+ | instructed | main.ts | 78 | Projects / run a confirmed exact or intent instruction (43) | Yes | - | Repeated forms |
42
+ | instruction-hook | main.ts | 76 | Projects / internal Claude prompt and Stop hook (36) | No | - | Repeated forms |
43
+ | intake | main.ts | 80 | Tasks and review / turn a plain request into a draft backlog card (46) | Yes | --source --json --color | Repeated forms |
44
+ | jcode | adapter | 80 | Agents / start optional Jcode, in its TUI or headless (44) | Yes | --mode --model --provider-profile --session-id --print-command --as | Repeated forms |
45
+ | kill | main.ts | 25 | Daemon and runtime / stop this project's hub (23) | Yes | - | Repeated forms |
46
+ | kimi | adapter | 77 | Agents / start Kimi in its own TUI, or headless over ACP (47) | Yes | --print-command --mode --model --as | Repeated forms |
47
+ | learn | main.ts | 79 | Tasks and review / review recurring-criterion candidates (37) | Yes | --all --accepted --json --color | Repeated forms |
48
+ | lineage | main.ts | 78 | History and reports / execution metadata and evidence strengths (41) | Yes | --task --attempt --root --task-scope --task-created --cursor --nodes --edges --bytes --json --revision --ref --from | Repeated forms, Bracket wraps |
49
+ | local | adapter | 73 | Agents / start the hub-native worker on self-hosted models (49) | Yes | --route --model --as | Repeated forms |
50
+ | logs | main.ts | 77 | Daemon and runtime / show the hub log (16) | Yes | -f | Repeated forms |
51
+ | manager | main.ts | 67 | Dashboard / internal: the dashboard manager process (39) | No | - | Internal, Repeated forms |
52
+ | memory | main.ts | 80 | History and reports / the hub's own project memory (28) | Yes | --tier --kind --peer --machine --since --limit --json --ungrouped --hops --history --as-of --remote --label --db --restart --apply --days | Repeated forms |
53
+ | model | main.ts | 80 | Messages and approvals / select or inspect runtime models (32) | Yes | --json | Repeated forms |
54
+ | models | main.ts | 76 | Agents / inspect local model state (25) | Yes | --json --color | Repeated forms |
55
+ | pause | main.ts | 54 | Messages and approvals / hold or release a peer's deliveries (35) | Yes | - | Repeated forms |
56
+ | peer | main.ts | 77 | Agents / hand the attached session to a standby (38) | Yes | --json --color | Repeated forms |
57
+ | permission | main.ts | 75 | Messages and approvals / inspect or set a peer's permission mode (39) | Yes | --yes | Repeated forms |
58
+ | permit | main.ts | 60 | Messages and approvals / answer a permission request (27) | Yes | - | Repeated forms |
59
+ | pet | main.ts | 78 | Daemon and runtime / read attention without connecting (33) | Yes | --short --window --close --palette | Repeated forms |
60
+ | pi | adapter | 80 | Agents / start Pi in a terminal, or headless (35) | Yes | --print-command --mode --headless --backend --model --session-id --session-file --replace-session --as | Repeated forms |
61
+ | projects | main.ts | 74 | Projects / list registered projects and live status (40) | Yes | --json --full --color --state --confirm | Repeated forms |
62
+ | queue | main.ts | 80 | Messages and approvals / inspect and resolve durable deliveries (38) | Yes | --peer --all --json --full --color --action --reason --revision --state --yes | Repeated forms |
63
+ | qwen | adapter | 80 | Agents / start optional Qwen Code, headless or in its TUI (48) | Yes | --mode --model --session-id --print-command --as | Repeated forms |
64
+ | recovery | main.ts | 80 | Daemon and runtime / inspect, resume or abort a held operation (41) | Yes | --json --color --fresh-session --reason --stop-and-archive | Repeated forms |
65
+ | recovery-run | main.ts | 71 | Daemon and runtime / internal: a detached recovery runner (36) | No | - | Internal, Repeated forms |
66
+ | release | main.ts | 80 | Tasks and review / plan and ship releases (22) | Yes | --json --color | Repeated forms |
67
+ | remember | main.ts | 44 | Tasks and review / save a note to shared memory (28) | Yes | - | Repeated forms |
68
+ | report | main.ts | 79 | History and reports / turns, tokens, messages and task events (39) | Yes | --since --by --json --color --dogfood | Repeated forms |
69
+ | research | main.ts | 80 | History and reports / success and rework rates per approved task (42) | Yes | --since --all --json --format --dataset | Repeated forms |
70
+ | reset | main.ts | 78 | Daemon and runtime / discard queued deliveries and clear holds (41) | Yes | --all --yes | Repeated forms |
71
+ | restart | main.ts | 80 | Daemon and runtime / recover this project's runtime (30) | Yes | --dry-run --yes --json --verbose --color | Repeated forms |
72
+ | results | main.ts | 80 | Messages and approvals / list what your runs left behind (31) | Yes | --unread --read --read-all --unread-last --json --color | Repeated forms |
73
+ | resume | main.ts | 54 | Messages and approvals / hold or release a peer's deliveries (35) | Yes | - | Repeated forms |
74
+ | review | main.ts | 78 | Tasks and review / give a review verdict on a task (31) | Yes | --unmet --head --findings --security-pass | Repeated forms |
75
+ | roadmap | main.ts | 80 | Tasks and review / milestones and their computed progress (38) | Yes | --json --title --outcome --horizon --order --target --parent --revision --repo --list --accept --publish --apply --confirm --write --issue | Repeated forms |
76
+ | role | main.ts | 78 | Agents / read catalog guidance for a role (32) | Yes | --group | Repeated forms |
77
+ | roles | main.ts | 78 | Messages and approvals / each peer's flow roles, planner and reviewers (45) | Yes | --json --color | Repeated forms |
78
+ | room | main.ts | 80 | Tasks and review / encrypted rooms between hubs (person only) (42) | Yes | --broker --label --accept --name --roster --confirm --frame --action --json | Repeated forms |
79
+ | roster | main.ts | 80 | Messages and approvals / every known peer and its participation (38) | Yes | --json --color --yes --now | Repeated forms |
80
+ | route | main.ts | 74 | Tasks and review / why a task went where it did (28) | Yes | --class | Repeated forms |
81
+ | say | main.ts | 79 | Messages and approvals / send a message as the console user (34) | Yes | - | Repeated forms |
82
+ | schedule | main.ts | 80 | Tasks and review / list and run machine-local schedules (36) | Yes | --json --color | Repeated forms |
83
+ | sdlc | main.ts | 80 | Daemon and runtime / read lifecycle gates and the next action (40) | Yes | --json --color --focus --profile --since --pr --dry-run --mode --required-checks --issue --repo --review --reviewers --ci | Repeated forms |
84
+ | settings | main.ts | 80 | Messages and approvals / list, read and change settings (30) | Yes | --json --yes --preview --now --reason | Repeated forms |
85
+ | setup | main.ts | 80 | Projects / install the plugin and hooks, choose default agents (51) | Yes | --yes --agents --research --no-research --undo | Repeated forms |
86
+ | smoke | main.ts | 80 | Tasks and review / live smoke test in a temporary project (38) | Yes | --project-id --receipt --timeout-ms --json | Repeated forms |
87
+ | source | main.ts | 79 | Tasks and review / register inputs as content-hashed sources (41) | Yes | --json --color | Repeated forms |
88
+ | specs | main.ts | 80 | Projects / read design specs and check their freshness (43) | Yes | --json --require-fresh --base --yes | Repeated forms |
89
+ | status | main.ts | 80 | Daemon and runtime / is the hub OK, and what to do next (34) | Yes | --json --full --verbose --ascii --color --all | Repeated forms |
90
+ | stop | main.ts | 80 | Agents / stop a hub-owned headless peer (30) | Yes | - | Repeated forms |
91
+ | study | main.ts | 80 | Tasks and review / research campaign contracts (27) | Yes | --reason --json --color --revision --task --after --campaign --attempt --events-after --plan --baseline --variant | Repeated forms |
92
+ | tail | main.ts | 57 | Messages and approvals / live stream of messages and states (34) | Yes | - | Repeated forms |
93
+ | task | main.ts | 80 | Tasks and review / put tasks on the board and move them along (42) | Yes | --class --owner --path --after --urgent --needs-network --needs-worktree --backlog --detail --list --sync --project --issue --task --duplicate-ok --key --json --color --full --role --revision --model --model-said --manifest --disposition --reason --superseded-by --created | Repeated forms |
94
+ | title | main.ts | 77 | Messages and approvals / rename a Pi or local-worker session (35) | Yes | - | Repeated forms |
95
+ | turns | main.ts | 74 | History and reports / recent turns and the files each changed (39) | Yes | --limit --json --color | Repeated forms |
96
+ | ui | main.ts | 78 | Dashboard / open the local dashboard (24) | Yes | --no-open --settings --all --stop | Repeated forms |
97
+ | undo | main.ts | 79 | History and reports / put back the files a turn changed (33) | Yes | --yes --context | Repeated forms |
98
+ | up | main.ts | 79 | Daemon and runtime / start the daemon and this project's default agents (50) | Yes | --unattended --no-console --no-agents | Repeated forms |
99
+ | upgrade | main.ts | 79 | Daemon and runtime / review and upgrade this project (31) | Yes | --project --all-stopped --to --dry-run --yes --json --verbose --color | Repeated forms |
100
+ | usage | main.ts | 79 | History and reports / tokens per group from the roll-up (33) | Yes | --since --by --json --color --peer --limit | Repeated forms |
101
+ | version | main.ts | 40 | Projects / print the installed version (27) | Yes | --version | Repeated forms |
102
+ | watch | main.ts | 77 | Messages and approvals / watch a headless ACP peer's activity (36) | Yes | --no-thoughts --color | Repeated forms |
103
+ | worktrees | main.ts | 78 | Projects / list worktrees, preview and confirm cleanup (43) | Yes | --json --confirm | Repeated forms |
104
+
105
+ ## Direct output call sites
106
+
107
+ Counts come from each handler body in src/cli/main.ts. The adapter entries share one handler. These counts include machine and diagnostic branches.
108
+ A delegated call needs its own renderer or a fixture before the human-view width can be measured.
109
+
110
+ | Command | Direct output calls |
111
+ | --- | --- |
112
+ | upgrade | Delegated / no direct output call |
113
+ | restart | Delegated / no direct output call |
114
+ | recovery | fail (12), console.error (3), console.log (15), renderOperation (1), renderBlocked (1), renderRecoveryStatus (1), renderSummary (1) |
115
+ | recovery-run | fail (1) |
116
+ | help | renderHelp (1), fail (1), console.log (1) |
117
+ | completion | fail (1), process.stdout.write (1) |
118
+ | --version | console.log (1) |
119
+ | version | console.log (1) |
120
+ | projects | fail (4), console.log (2) |
121
+ | ui | fail (6), console.log (4) |
122
+ | manager | Delegated / no direct output call |
123
+ | setup | fail (7), console.log (9) |
124
+ | init | fail (5), console.log (11), console.error (1) |
125
+ | daemon | console.error (2) |
126
+ | console | fail (2) |
127
+ | up | console.error (2), console.log (2) |
128
+ | claude | Delegated / no direct output call |
129
+ | codex | Delegated / no direct output call |
130
+ | kimi | Delegated / no direct output call |
131
+ | pi | Delegated / no direct output call |
132
+ | local | Delegated / no direct output call |
133
+ | qwen | Delegated / no direct output call |
134
+ | jcode | Delegated / no direct output call |
135
+ | agy | Delegated / no direct output call |
136
+ | guidance | fail (21), console.log (10), renderGuidanceReceipt (1), renderGuidance (1) |
137
+ | lineage | fail (6), console.log (4), renderExecutionLineage (1) |
138
+ | model | fail (6), console.log (1), printOutput (1), renderRuntimeModels (1) |
139
+ | models | console.log (3), printOutput (1), renderModelsStatus (1), fail (4) |
140
+ | say | fail (2), console.log (4) |
141
+ | queue | fail (12), console.log (6), printOutput (3), renderQueue (1), renderQueueShow (2) |
142
+ | watch | fail (3), console.log (1) |
143
+ | tail | console.log (4), renderTailEvent (1) |
144
+ | budget | fail (8), console.log (3), printOutput (3), renderBudgetResult (1), renderExecutionBudgetStatus (1), renderBudget (1) |
145
+ | backlog | showToolText (1), console.log (5), printOutput (1), renderBacklog (1), fail (7), renderBacklogResult (5) |
146
+ | roadmap | fail (2), console.log (3), renderRoadmap (1) |
147
+ | release | showToolText (1), fail (3) |
148
+ | smoke | fail (6), console.log (2) |
149
+ | room | fail (2) |
150
+ | broker | fail (1) |
151
+ | source | console.log (2), printOutput (2), renderSourceList (1), fail (4), renderSourceAdd (1) |
152
+ | schedule | showToolText (3), renderScheduleList (1), fail (1), renderScheduleRun (1), renderScheduleChange (1) |
153
+ | study | fail (2), showToolText (6), renderStudyEvidence (2), renderSynthesisReadiness (1), renderExperiments (1), renderStudyShow (1), renderStudyList (1), renderStudyReceipt (1) |
154
+ | capabilities | fail (1), showToolText (1), renderCapabilities (1) |
155
+ | learn | fail (2), showToolText (2), renderLearnList (1), renderLearnChange (1) |
156
+ | intake | fail (3), showToolText (2), renderIntakeChange (1), renderIntake (1) |
157
+ | deliverables | fail (2), console.log (5) |
158
+ | board | fail (8), console.log (3), showToolText (1), renderHandoffs (1), printOutput (2), renderBoardColumns (1), renderBoard (1) |
159
+ | sdlc | printOutput (2), fail (51), console.log (35), process.stdout.write (2), showToolText (2), renderSdlcCosts (1), renderSdlcMetrics (1), renderSdlcMerge (1) |
160
+ | task | showToolText (3), fail (15), console.log (7), renderHandoffs (1), renderHandoffReceipt (1) |
161
+ | review | fail (5), console.log (2) |
162
+ | remember | console.log (1) |
163
+ | ask | fail (2), console.log (5) |
164
+ | route | fail (1), console.log (1) |
165
+ | pause | Delegated / no direct output call |
166
+ | resume | Delegated / no direct output call |
167
+ | stop | fail (2), console.log (1) |
168
+ | peer | fail (7), console.log (2) |
169
+ | title | fail (3), console.log (2) |
170
+ | permission | fail (3), console.log (3) |
171
+ | roster | fail (5), console.log (3), printOutput (4), renderRoster (1) |
172
+ | autonomy | console.log (4), fail (1) |
173
+ | settings | fail (18), console.log (23) |
174
+ | permit | fail (1) |
175
+ | answer | fail (3), console.log (8) |
176
+ | results | fail (4), console.log (8) |
177
+ | pet | fail (4), console.log (2), renderPet (1), process.stdout.write (1) |
178
+ | roles | fail (1), console.log (1), printOutput (1), renderRoles (1) |
179
+ | status | console.log (3), printOutput (1), renderStatus (1), renderStatusDefault (1), renderPet (1) |
180
+ | logs | console.log (3), fail (1) |
181
+ | export | fail (1), console.log (2) |
182
+ | bench | console.log (7), formatBenchReport (2), formatRuns (2), fail (6), formatCompare (1), process.stdout.write (1) |
183
+ | memory | fail (3), console.log (2), formatMemoryProfileCheck (1) |
184
+ | goal | fail (2), console.log (1) |
185
+ | research | console.log (4), fail (4), process.stdout.write (1), formatAddons (1), formatResearch (1) |
186
+ | report | fail (2), console.log (2), formatDogfood (1), printOutput (1), renderReport (1) |
187
+ | specs | Delegated / no direct output call |
188
+ | worktrees | fail (3), console.log (3), printOutput (3), renderWorktrees (1), renderTidyPreview (1), renderTidyResult (1) |
189
+ | usage | fail (6), process.stderr.write (1), console.log (1), printOutput (1), renderLimits (1), renderTotal (1), renderUsage (1) |
190
+ | instructed | fail (3), process.stdout.write (1) |
191
+ | instruction-hook | Delegated / no direct output call |
192
+ | facts | fail (1), console.log (1) |
193
+ | check-path | fail (1), console.log (2) |
194
+ | turns | console.log (1), printOutput (1), renderTurns (1) |
195
+ | undo | fail (12), console.log (8) |
196
+ | kill | console.log (2), fail (1) |
197
+ | down | Delegated / no direct output call |
198
+ | reset | fail (7), console.log (19) |
199
+ | role | fail (7), console.log (3) |
200
+ | agents | Delegated / no direct output call |
201
+ | doctor | fail (2), console.log (3), formatMemoryStaleAnchors (1), printOutput (2), renderOrphanCleanup (1), renderDoctor (1) |
202
+
203
+ ## Inline literal output
204
+
205
+ Widths for single literal strings emitted directly from CLI handlers. No wrapping is applied by these call sites.
206
+ Interpolated and daemon-supplied strings require runtime fixtures. They are counted above but have no width here.
207
+
208
+ | Command | Text source | Stream | Literal width |
209
+ | --- | --- | --- | ---: |
210
+ | recovery | src/cli/main.ts:1038 | stdout | 29 |
211
+ | recovery | src/cli/main.ts:1071 | stdout | 60 |
212
+ | projects | src/cli/main.ts:1165 | stdout | 45 |
213
+ | ui | src/cli/main.ts:1181 | stdout | 57 |
214
+ | ui | src/cli/main.ts:1201 | stdout | 76 |
215
+ | models | src/cli/main.ts:1589 | stdout | 11 |
216
+ | say | src/cli/main.ts:1613 | stdout | 46 |
217
+ | roadmap | src/cli/main.ts:1817 | stdout | 46 |
218
+ | deliverables | src/cli/main.ts:2054 | stdout | 70 |
219
+ | sdlc | src/cli/main.ts:2159 | stdout | 29 |
220
+ | ask | src/cli/main.ts:2504 | stdout | 9 |
221
+ | ask | src/cli/main.ts:2507 | stdout | 54 |
222
+ | roster | src/cli/main.ts:2624 | stdout | 19 |
223
+ | roster | src/cli/main.ts:2631 | stdout | 19 |
224
+ | autonomy | src/cli/main.ts:2682 | stdout | 75 |
225
+ | settings | src/cli/main.ts:2775 | stdout | 39 |
226
+ | settings | src/cli/main.ts:2788 | stdout | 33 |
227
+ | settings | src/cli/main.ts:2819 | stdout | 33 |
228
+ | answer | src/cli/main.ts:2864 | stdout | 17 |
229
+ | bench | src/cli/main.ts:3005 | stdout | 107 |
230
+ | usage | src/cli/main.ts:3189 | stderr | 121 |
231
+ | undo | src/cli/main.ts:3325 | stdout | 103 |
232
+ | undo | src/cli/main.ts:3330 | stdout | 53 |
233
+ | kill | src/cli/main.ts:3347 | stdout | 18 |
234
+ | kill | src/cli/main.ts:3351 | stdout | 11 |
235
+ | reset | src/cli/main.ts:3365 | stdout | 36 |
236
+ | reset | src/cli/main.ts:3389 | stdout | 56 |
237
+ | reset | src/cli/main.ts:3395 | stdout | 39 |
238
+ | reset | src/cli/main.ts:3398 | stdout | 11 |
239
+ | reset | src/cli/main.ts:3433 | stdout | 96 |
240
+
241
+ ## Renderer candidates
242
+
243
+ Source scan for top-level render and format functions. The file shows where the text originates. Layout references are direct, and indirect composition needs manual review.
244
+ Fixture widths are color-off at 80 columns. Unmeasured entries need fixtures before T3 or T4 makes a conformance claim.
245
+ The separate report-by-task fixture measures 79 cells.
246
+
247
+ | File and renderer | Text source | Report | Direct layout references | Fixture width or scope |
248
+ | --- | --- | --- | --- | --- |
249
+ | src/cli/autonomy.ts:renderAutonomyStatus | CLI | - | Inline / indirect | 77 |
250
+ | src/cli/capabilities-output.ts:renderCapabilities | CLI | Direct | Report, grid | 77 |
251
+ | src/cli/console-state.ts:renderConsole | CLI | - | paint | Full-screen console |
252
+ | src/cli/console-state.ts:renderConsoleLines | CLI | - | table, wrap | Full-screen console |
253
+ | src/cli/handoff-output.ts:renderHandoffReceipt | CLI | Direct | Report | 77 |
254
+ | src/cli/handoff-output.ts:renderHandoffs | CLI | Direct | Report, grid | 110 |
255
+ | src/cli/help.ts:renderCommandHelp | CLI | Direct | LayoutReport, wrap | 80 |
256
+ | src/cli/help.ts:renderHelp | CLI | - | paint | 79 |
257
+ | src/cli/help.ts:renderOverview | CLI | Direct | LayoutReport, blank, paint, wrap | 79 |
258
+ | src/cli/intake-output.ts:renderIntake | CLI | Direct | Report, grid | 76 |
259
+ | src/cli/intake-output.ts:renderIntakeChange | CLI | Direct | Report, grid | 54 |
260
+ | src/cli/learn-output.ts:renderLearnList | CLI | Direct | Report, grid | 55 |
261
+ | src/cli/learn-output.ts:renderLearnAccepted | CLI | Direct | Report, grid | Unmeasured |
262
+ | src/cli/learn-output.ts:renderLearnChange | CLI | Direct | Report | 70 |
263
+ | src/cli/output.ts:renderRuntimeModels | CLI | - | Inline / indirect | 0 |
264
+ | src/cli/output.ts:renderRoster | CLI | - | Inline / indirect | 0 |
265
+ | src/cli/output.ts:renderRoles | CLI | - | Inline / indirect | 75 |
266
+ | src/cli/output.ts:renderStatus | CLI | Direct | LayoutReport | 60 |
267
+ | src/cli/output.ts:renderStatusDefault | CLI | Direct | LayoutReport, heading | 65 |
268
+ | src/cli/output.ts:renderBacklog | CLI | - | table | 52 |
269
+ | src/cli/output.ts:renderBoard | CLI | - | Inline / indirect | 80 |
270
+ | src/cli/output.ts:renderBudget | CLI | - | Inline / indirect | 74 |
271
+ | src/cli/output.ts:renderBoardColumns | CLI | - | Inline / indirect | 80 |
272
+ | src/cli/output.ts:renderDoctor | CLI | Direct | LayoutReport | 15 |
273
+ | src/cli/output.ts:renderProjects | CLI | - | Inline / indirect | 37 |
274
+ | src/cli/output.ts:renderQueue | CLI | - | table | 22 |
275
+ | src/cli/output.ts:renderTurns | CLI | - | moment | 67 |
276
+ | src/cli/output.ts:renderOrphans | CLI | - | Inline / indirect | 68 |
277
+ | src/cli/output.ts:renderOrphanCleanup | CLI | - | Inline / indirect | 30 |
278
+ | src/cli/output.ts:renderQueueShow | CLI | - | Inline / indirect | 17 |
279
+ | src/cli/output.ts:renderModelsStatus | CLI | - | Inline / indirect | 12 |
280
+ | src/cli/output.ts:renderExecutionBudgetStatus | CLI | - | Inline / indirect | 16 |
281
+ | src/cli/output.ts:renderReport | CLI | Direct | LayoutReport, Report, moment | 79 |
282
+ | src/cli/output.ts:renderUsage | CLI | - | Inline / indirect | 61 |
283
+ | src/cli/output.ts:renderLimits | CLI | - | Inline / indirect | 38 |
284
+ | src/cli/output.ts:renderTotal | CLI | - | table | 78 |
285
+ | src/cli/pet.ts:renderPet | CLI | - | Inline / indirect | 21 |
286
+ | src/cli/roadmap.ts:renderRoadmap | CLI | - | wrap | 23 |
287
+ | src/cli/room-output.ts:renderRooms | CLI | Direct | Report | Unmeasured |
288
+ | src/cli/room-output.ts:renderRoomInbox | CLI | Direct | Report, moment | Unmeasured |
289
+ | src/cli/room-output.ts:renderRoomInboxResult | CLI | Direct | Report | Unmeasured |
290
+ | src/cli/room-output.ts:renderRoomPreview | CLI | Direct | Report | Unmeasured |
291
+ | src/cli/room-output.ts:renderRoomResult | CLI | Direct | Report | Unmeasured |
292
+ | src/cli/schedule-output.ts:renderScheduleList | CLI | Direct | Report, grid, moment | 82 |
293
+ | src/cli/schedule-output.ts:renderScheduleRun | CLI | Direct | Report | 33 |
294
+ | src/cli/schedule-output.ts:renderScheduleChange | CLI | Direct | Report | 23 |
295
+ | src/cli/sdlc-output.ts:renderSdlcConfiguration | CLI | Direct | LayoutReport | 70 |
296
+ | src/cli/sdlc-output.ts:renderSdlcSurvey | CLI | Direct | LayoutReport | 29 |
297
+ | src/cli/sdlc-output.ts:renderSdlcQueue | CLI | Direct | LayoutReport, grid | 36 |
298
+ | src/cli/sdlc-output.ts:renderSdlcAudit | CLI | Direct | LayoutReport | 50 |
299
+ | src/cli/sdlc-output.ts:renderSdlcRelease | CLI | Direct | LayoutReport, grid, moment | 74 |
300
+ | src/cli/sdlc-output.ts:renderSdlcMetrics | CLI | Direct | LayoutReport, grid, moment | 80 |
301
+ | src/cli/sdlc-output.ts:renderSdlcCosts | CLI | Direct | LayoutReport, grid | 39 |
302
+ | src/cli/sdlc-output.ts:renderAuthorization | CLI | Direct | LayoutReport, moment | 46 |
303
+ | src/cli/sdlc-output.ts:renderSdlcMerge | CLI | Direct | LayoutReport | 36 |
304
+ | src/cli/settings-edit.ts:renderEditPreview | CLI | - | Inline / indirect | 29 |
305
+ | src/cli/source-output.ts:renderSourceAdd | CLI | Direct | Report | 51 |
306
+ | src/cli/source-output.ts:renderSourceList | CLI | Direct | Report, grid, moment | 62 |
307
+ | src/cli/study-output.ts:renderStudyList | CLI | Direct | Report, grid | 114 |
308
+ | src/cli/study-output.ts:renderStudyShow | CLI | Direct | Report, grid | 37 |
309
+ | src/cli/study-output.ts:renderStudyReceipt | CLI | Direct | Report, grid | 73 |
310
+ | src/cli/study-output.ts:renderExperiments | CLI | Direct | Report, grid, pair, wrap | 76 |
311
+ | src/cli/study-output.ts:renderStudyEvidence | CLI | Direct | Report | 73 |
312
+ | src/cli/study-output.ts:renderSynthesisReadiness | CLI | Direct | Report | 78 |
313
+ | src/cli/tail-render.ts:renderTailEvent | CLI | - | Inline / indirect | 17 |
314
+ | src/cli/task-output.ts:renderTaskShow | CLI | Direct | Report | 60 |
315
+ | src/cli/task-output.ts:renderTaskCancel | CLI | Direct | Report | 60 |
316
+ | src/cli/task-output.ts:renderBacklogResult | CLI | Direct | Report, grid | 60 |
317
+ | src/cli/task-output.ts:renderGroom | CLI | Direct | Report, grid | 50 |
318
+ | src/cli/task-output.ts:renderReleaseList | CLI | Direct | Report | 41 |
319
+ | src/cli/task-output.ts:renderReleaseShow | CLI | Direct | Report | 41 |
320
+ | src/cli/upgrade-output.ts:renderUpgradePlan | CLI | - | Inline / indirect | 55 |
321
+ | src/cli/upgrade-output.ts:renderStoppedPlan | CLI | - | Inline / indirect | 56 |
322
+ | src/cli/upgrade-output.ts:renderStoppedResults | CLI | - | Inline / indirect | 60 |
323
+ | src/cli/upgrade-output.ts:renderRecoveryStatus | CLI | - | Inline / indirect | 46 |
324
+ | src/cli/upgrade-output.ts:renderBudgetResult | CLI | - | Inline / indirect | 27 |
325
+ | src/cli/upgrade-presentation.ts:renderStep | CLI | - | Inline / indirect | 50 |
326
+ | src/cli/upgrade-presentation.ts:renderPlan | CLI | - | Inline / indirect | 26 |
327
+ | src/cli/upgrade-presentation.ts:renderOperation | CLI | - | Inline / indirect | 46 |
328
+ | src/cli/upgrade-presentation.ts:renderBlocked | CLI | - | Inline / indirect | 76 |
329
+ | src/cli/upgrade-presentation.ts:renderMenu | CLI | - | Inline / indirect | 17 |
330
+ | src/cli/upgrade-presentation.ts:renderWait | CLI | - | Inline / indirect | 80 |
331
+ | src/cli/upgrade-presentation.ts:renderSummary | CLI | - | Inline / indirect | 75 |
332
+ | src/cli/upgrade-restore-state.ts:renderRestoreTransitionTable | CLI | - | table | 320 |
333
+ | src/cli/watch.ts:renderActivity | CLI | - | paint, wrap | 31 |
334
+ | src/cli/worktrees-output.ts:renderWorktrees | CLI | Direct | Report, grid, moment | 34 |
335
+ | src/cli/worktrees-output.ts:renderTidyPreview | CLI | Direct | Report, grid | 47 |
336
+ | src/cli/worktrees-output.ts:renderTidyResult | CLI | Direct | Report, grid | 30 |
337
+ | src/hub/bench.ts:formatRuns | Hub | - | Inline / indirect | 77 |
338
+ | src/hub/bench.ts:formatReport | Hub | - | Inline / indirect | 99 |
339
+ | src/hub/bench.ts:formatCompare | Hub | - | Inline / indirect | 99 |
340
+ | src/hub/checkpoint-fields.ts:renderCheckpoint | Hub | - | Inline / indirect | 19 |
341
+ | src/hub/claude-failure-stage.ts:formatClaudeFailure | Hub | - | Inline / indirect | 51 |
342
+ | src/hub/delivery-hints.ts:renderHeldHint | Hub | - | Inline / indirect | 43 |
343
+ | src/hub/delivery-public.ts:renderHeldInbox | Hub | - | Inline / indirect | 0 |
344
+ | src/hub/dogfood.ts:formatDogfood | Hub | - | Inline / indirect | 43 |
345
+ | src/hub/envelope.ts:renderDigest | Hub | - | Inline / indirect | 1483 |
346
+ | src/hub/guidance-variants.ts:renderGuidanceVariantV1 | Hub | - | Inline / indirect | Guidance payload for agents |
347
+ | src/hub/invocations.ts:renderInvocationResult | Hub | - | Inline / indirect | 109 |
348
+ | src/hub/memory-profile-check.ts:formatMemoryProfileCheck | Hub | - | Inline / indirect | 27 |
349
+ | src/hub/memory-stale-anchors.ts:formatMemoryStaleAnchors | Hub | - | Inline / indirect | 59 |
350
+ | src/hub/report.ts:formatUsage | Hub | - | Inline / indirect | Internal report section, no separate view |
351
+ | src/hub/report.ts:formatReport | Hub | - | Inline / indirect | 81 |
352
+ | src/hub/report.ts:formatPerson | Hub | - | Inline / indirect | 14 |
353
+ | src/hub/report.ts:formatTaskReport | Hub | - | Inline / indirect | 116 |
354
+ | src/hub/research.ts:formatResearch | Hub | - | Inline / indirect | 106 |
355
+ | src/hub/research.ts:formatAddons | Hub | - | Inline / indirect | 108 |
356
+ | src/hub/review-brief.ts:renderFindingAnchor | Hub | - | Inline / indirect | 32 |
357
+ | src/hub/review-brief.ts:renderSpecTaskReport | Hub | - | Inline / indirect | 57 |
358
+ | src/hub/review-brief.ts:renderCodeSymbols | Hub | - | Inline / indirect | Measured within review brief |
359
+ | src/hub/review-brief.ts:renderReviewBrief | Hub | - | Inline / indirect | 160 |
360
+ | src/hub/review-comments.ts:renderReviewComment | Hub | - | Inline / indirect | Owner-facing hub delivery |
361
+ | src/hub/schedules.ts:formatInZone | Hub | - | Inline / indirect | 16 |
362
+ | src/hub/ui.ts:renderDashboard | Hub | - | Inline / indirect | Web dashboard |
@@ -108,7 +108,13 @@ Glyphs are semantic; each pairs with one role. Code uses named constants, never
108
108
 
109
109
  ## Layout grammar
110
110
 
111
+ - **List views** (#1654 T3): `projects`, `queue`, `turns` and the orphan views build a `LayoutReport` with `listReport`: header, one counted section holding the table, a bare one-line empty state (no header or section, as `ahub board`) and `next` steps. `--json` is unchanged.
112
+ - **SDLC reports** (#1654 T3): `sdlc authorize-release`, `sdlc merge`, `sdlc status`, `sdlc explain`, `sdlc queue`, `sdlc audit show`, `sdlc release`, `sdlc metrics` and `sdlc costs` build a `LayoutReport` (header, one section per topic, `kv` rows, a marker bullet per refused gate, blocker or unit, and tables placed with `append`). `--ascii` reaches them through the same `asciiMarkers` call as `status` and `doctor`. A long repository name that does not fit the header moves to a wrapped line under it, and `kv` stacks a value under its key when fewer than 10 cells would remain beside the label. `sdlc status` and `explain` (`lifecycleView`, `taskBlock`) are on it too, with one section per task.
113
+ - **Status and report** (#1654 T3): `status --verbose`, `status --full` and `report` use the shared header and section marks (`Hub`, `Peers`, `Models`, `Tasks`; the report's own sections), and every detail line keeps its text. A header whose context does not fit the terminal moves the context to a wrapped line under it. #1654 T4 runs the layout grammar (header first, one blank line before each section, no trailing blank, no line wider than the terminal at 24, 40 and 80 cells, and `--ascii` swaps every glyph) over the real output of each converted view in `test/cli-output-conformance.test.ts`.
111
114
  - **Header**: one line, ` <tool> <Report>` in `header`, followed on the same line or the next by one line of context in `hint` (version, pid, endpoint, project path). One per report. Never in `--json`.
115
+ - **Header fit** (#1654 AC3): the header line does not wrap, and one `Report.titled(tool, name, context?, inline?)` decides where the context goes. A context that fits stays on the header line (two spaces after the name, or one space with `inline`, as in `ahub Merge queue owner/repo`). One that does not moves to a wrapped note under a short header, and a name too wide for any header keeps its first word there and repeats in full on the wrapped line. Without a wrap width nothing moves. `fitHeader`, `titled` and the lifecycle header no longer exist as copies.
116
+ - **Task, backlog, release, configuration and survey views** (#1654 AC3): `task show`, `task cancel`, the backlog results, `backlog groom`, `release list|show|new|plan|...`, `sdlc configure` and `sdlc survey show` build a `Report` (header, one `▸` section per group, `kv` rows, `warn` bullets, tables from the one `grid`). `sdlc-output.ts` and `task-output.ts` no longer define their own wrap, pair, bullet or heading helpers; `grid` in `sdlc-output.ts` is the one table helper every Report-based view calls.
117
+ - **The last eight output files** (#1654 AC3 close-out): `source add|list`, `schedule list|run|pause|resume`, the `study` views (list, show, receipts, experiments, evidence, readiness), `task handoff` and `board --handoffs`, `learn`, `intake`, `capabilities` and `worktrees` (list, tidy, tidy --confirm) build a `Report` with a header (`titled`), one `▸` section per group, `kv` rows, `warn` bullets and `grid` tables, and take a trailing `ascii`. An empty list stays one bare line, as `ahub board` prints it. `sdlc-output.ts` no longer exports `heading`, `pair` or `blank`; `pair` and `blank` survive only as the private narrow-table block layout of `grid`. A long command to copy is a wrapped note, not a `next` line, so no view passes the width at 24 cells.
112
118
  - **Section**: one blank line, then `▸ <Name>` (ASCII `> <Name>`) in `section`, optionally followed by a count in `hint`: `▸ Peers (4 of 10 online)`. No blank line after it.
113
119
  - **Key/value row**: two-space indent, `Key:` padded to the widest key in that section, two spaces, value. A key wider than 28 cells wraps its value to the next line at a four-space indent. An empty value is `(unset)` in `hint`. Keys are words, never repeated entity names: under a peer heading write `form`, not `claude form`.
114
120
  - **Bullet row**: two-space indent, the 2-cell marker, one space, text: ` ⚠ codex-review 0.169.0 refused`. Nested detail uses four spaces; a next step is ` → ahub agents trust codex-review 0.169.0`.
@@ -122,6 +128,7 @@ Glyphs are semantic; each pairs with one role. Code uses named constants, never
122
128
  - Error line (stderr): `<tool>: <what failed>: <why>`. When stderr is a TTY it is prefixed with the `fail` marker (`✗ ahub: ...`); piped stderr keeps the plain form, so scripts and agents that match `<tool>: ` keep working.
123
129
  - Next step: when the CLI knows the fix, a second line ` → <command or setting>` (ASCII ` -> `), complete and copyable (`cd` prefix and every value filled in), in `accent`. An error raised by a server or daemon that carries no fix prints no `→` line; the CLI never invents one.
124
130
  - Warning (stderr): `<tool>: warning: <what>: <why>`, `warn` marker on a TTY, optional `→` line.
131
+ In ahub, `warn()` in `main.ts` is `warnLine()` from `src/cli/warn-line.ts`, which prints `warningLines`, the one formatter (re-exported by `src/cli/error-format.ts`). A raw `console.log` or `console.error` in `src/cli` that bypasses Report, `printOutput`, `errorLines` or the warning printers is allowed only while `scripts/cli-raw-output.baseline.json` lists it with its reason; that list can only shrink, and `test/cli-output-conformance.test.ts` fails on a new call and on a stale entry.
125
132
  - Success confirmation (stdout): `✓ <what was done>`; omit it when the output already shows the result.
126
133
  - Usage error: the message, then `Usage: <tool> <command> <args>` and `Run '<tool> help <command>' for details.`, exit `2`.
127
134
  - Plain English sentences, no emoji, no exclamation marks. Relative times in human output (`47d ago`, `in 5d15h`).
@@ -133,7 +140,7 @@ Glyphs are semantic; each pairs with one role. Code uses named constants, never
133
140
  - `ahub` lays it out as `▸ Usage` (every form), `▸ Description` (the overview summary), `▸ Flags (N)` (one line per flag: the flag with its value shape as the usage writes it, then what it is for), `▸ Examples` (one or two complete commands, only for a command that takes arguments) and `▸ Details`, which is the long text, every form with its whole description, unchanged, so nothing a form or flag says is lost. A section with nothing to show is omitted.
134
141
  - A flag's line says what the flag is for, in one short line (at most 46 cells beside its label, so it fits 80 columns; `--json` and `--color` keep the longer text this standard defines). The words sit in `FLAG_DESCRIPTIONS` in `src/cli/help.ts`, next to the usage text, keyed by the flag or by `<command> <flag>` where one command uses a flag for something else (`--all`); a flag a definition outside that file adds falls back to the forms that take it. `test/help.test.ts` fails a flag of any command with no description, a line over the width, or a table entry that names no flag. A flag's meaning that only the long text states stays in `Details`. Every example is checked against the dispatch table and the command's own usage by `test/help.test.ts`, so it cannot name a command, subcommand or flag that does not exist.
135
142
  - A native agent's overview summary is the third element of its `cli.usage` entry in its adapter definition, never a table in the help module.
136
- - Usage lines use `<required>`, `[optional]`, `a|b` and `...`.
143
+ - Usage lines use `<required>`, `[optional]`, `a|b` and `...`. A placeholder is `<lowercase>`, never a bare uppercase word (`<n>`, `<hash>`, `<ms>`, `<json>`, `<token>`). A line breaks only between bracket groups, and a group that fits on a line stays whole; a group wider than the line is the one case broken inside it. Details names each form by its leading words and says what it does; it does not repeat the usage that the Usage section already prints whole.
137
144
 
138
145
  ## Progress (guidance)
139
146
 
@@ -162,6 +169,40 @@ Glyphs are semantic; each pairs with one role. Code uses named constants, never
162
169
 
163
170
  This issue holds the canonical v1 text. The first `ahub` PR commits it as `docs/design/cli-output.md` (design spec frontmatter, `type: contract`); later changes amend that file with a version bump. Each other repository gets its own issue that links here and lists its gaps; it is done when the five conformance checks pass. dot's style is the reference for the look, and dot gets its own conformance issue like every other CLI.
164
171
 
172
+ ## Command and renderer inventory
173
+
174
+ The [2026-11-25 inventory snapshot](cli-output-inventory.md) joins the built-in
175
+ dispatch keys, native adapter commands and rendered help. Refresh the snapshot with
176
+ `bun scripts/cli-output-inventory.ts --write` and compare it with the current checkout using
177
+ `bun scripts/cli-output-inventory.ts --check`. The comparison runs once per gate as
178
+ `scripts/check.sh`'s `cli output inventory` step, so a help or renderer change that ages the
179
+ snapshot fails the gate instead of waiting for review. A newer checkout may differ from
180
+ the dated snapshot as help and renderers change.
181
+
182
+ - Help at 80 columns spans 90 dispatch entries and 92 documented command words.
183
+ The overview lists `backlog` and `check-path` once each. The global
184
+ `--project` and `--live-test` forms account for the two help-only words.
185
+ Detailed help includes examples for `version`, `kill`, `down` and `tail`.
186
+ Details no longer repeats the usage, operands are lowercase `<placeholders>`
187
+ and a usage line breaks only between bracket groups (hub task 1114).
188
+ - The roadmap usage error for `ahub roadmap new ... --json` names all four
189
+ read operations that accept JSON (`list`, `show`, `check` and `export`).
190
+ JSON support and exit status are unchanged.
191
+ - Human report layout is mixed. Doctor uses the shared report primitives but
192
+ starts at its first section. Detailed status and project-list output still
193
+ use their earlier layout. The CLI renders structured task tool results,
194
+ while a non-JSON reply falls through as daemon text via `showToolText`.
195
+ T3 should keep raw export, stream events, and completion payloads separate
196
+ from human report formatting. Inspect daemon text case by case before
197
+ changing any transport response.
198
+ - The direct-call table includes JSON and stderr sites. The renderer source
199
+ scan records whether the CLI or hub authors each named renderer and
200
+ measures representative host-free output. It labels helper-only, console
201
+ and dashboard rows separately. The inline table measures direct literal
202
+ output by source location and stream. Interpolated output and daemon
203
+ pass-through branches still need end-to-end fixtures before T4 can claim
204
+ conformance.
205
+
165
206
  ## Acceptance criteria (this repository)
166
207
 
167
208
  - AC1: `docs/design/cli-output.md` holds this standard. `src/cli/console-state.ts` exposes the nine roles and the marker table; `Tone` stays as the TUI's vocabulary through a mapping onto roles. A test fails on raw SGR literals in `src/cli/` and `src/hub/` human-output code outside `console-state.ts`, with an allowlist for the identity palettes (`src/ui/peer-palette.ts`, `src/adapters/definitions/native-display.ts`) and the full-screen console (`src/cli/console.ts`).
@@ -266,8 +266,11 @@ in-stack from the same `Tasks` projection the CLI and MCP read. This lineage rea
266
266
  adds no protocol message, panel id or action id, and leaves `DASHBOARD_VIEWS` and
267
267
  the advertised actions unchanged. Independent features, such as the read-only
268
268
  Guidance panel, may append their own panels to `manifest.panels` under their own
269
- contracts. An older console that never asks for lineage keeps working. Equivalent
270
- admitted views are therefore a property of one read path, not a comparison of two.
269
+ contracts. The provider advertises `capabilities.reads: ["lineage"]` for consoles
270
+ that support non-navigation reads (#1632). Agent-console 0.2.0 loads the manifest
271
+ and refuses the lineage route with HTTP 400. Its shell renders a one-line refresh
272
+ error for the refused request. End-to-end route admission awaits a published
273
+ agent-console 0.3.x. Equivalent admitted views share the same read path.
271
274
 
272
275
  `src/ui/plugin.ts` answers `snapshot({panel: "lineage", ...})` with
273
276
  `{ok: true, panel: "lineage", lineage, lines}`. The lines come from
@@ -571,7 +571,7 @@ Every role observation must report the exact full served model and a generic `in
571
571
 
572
572
  A visible observation-hash mismatch unconditionally latches conflict/unknown before bookkeeping. Provider hashes are never passed through as ledger correlation identities, even if they happen to equal the host correlation hash; ledger identities are always host-computed.
573
573
 
574
- The proposed control operations are `guidance_probe_register`, `guidance_probe_start`, `guidance_probe_show` and `guidance_probe_cancel`, each always replying to rid, including errors. CLI forms are `ahub guidance probe register --file JSON`, `start --id HASH --revision R [--variant G1_CONTENT_ID]`, `show --id HASH` and `cancel --id HASH --revision R`, with optional JSON output. R is the probe CAS revision, not the frozen Task flow revision. There are no MCP probe tools, console mutations or new daemon authority flags. Unknown operation responses give upgrade/restart guidance. An uncertain write response directs an explicit keyed show, never an automatic replay.
574
+ The proposed control operations are `guidance_probe_register`, `guidance_probe_start`, `guidance_probe_show` and `guidance_probe_cancel`, each always replying to rid, including errors. CLI forms are `ahub guidance probe register --file <json>`, `start --id <hash> --revision <n> [--variant <variant-id>]`, `show --id <hash>` and `cancel --id <hash> --revision <n>`, with optional JSON output. `<n>` is the probe CAS revision, not the frozen Task flow revision. There are no MCP probe tools, console mutations or new daemon authority flags. Unknown operation responses give upgrade/restart guidance. An uncertain write response directs an explicit keyed show, never an automatic replay.
575
575
 
576
576
  The additive conditional recovery feature declares private probe state only when present. Control-client/restart snapshots carry its integrity binding through all existing recovery verification sites; absent legacy state is unchanged. Reads never invoke models, resolve opaque addresses or launch effects.
577
577
 
@@ -1107,7 +1107,7 @@ stays open**: nothing here shows actual isolation or effective guidance delivery
1107
1107
 
1108
1108
  ### What a producer or a receipt consumer reads
1109
1109
 
1110
- One read, `Tasks.guidanceProbeReceipts(by, id)`, answered over the control op `guidance_probe_receipts`, the CLI `ahub guidance probe receipts --id HASH [--json]`
1110
+ One read, `Tasks.guidanceProbeReceipts(by, id)`, answered over the control op `guidance_probe_receipts`, the CLI `ahub guidance probe receipts --id <hash> [--json]`
1111
1111
  and the guidance panel's `probe` read. It carries the same person-or-current-conductor, session, task-state and privacy fences as `show`, and it is read-only:
1112
1112
  it launches, reserves, writes and prunes nothing, and a read-only Store serves its inputs. The reply is a `ProbeReceiptExport`:
1113
1113
 
@@ -0,0 +1,26 @@
1
+ # Refusal continuations
2
+
3
+ Run `bun scripts/refusal-inventory.ts` to count the source sites checked by
4
+ `scripts/check.sh`. Use `--check` to enforce the baseline and `--json`
5
+ to see the source locations and static fragments.
6
+
7
+ The collector parses `new PreEffectToolRefusal`,
8
+ `new HandoffRefusal` and the CLI's `fail(message, ..., next)` with the
9
+ TypeScript AST. It checks literal command and tool names against CLI dispatch
10
+ and tool declarations. It also checks the flags attached to a command against
11
+ its documented flags. Variables and template substitutions are opaque.
12
+
13
+ Give each new static refusal a valid continuation. If no command can apply,
14
+ put an adjacent comment above the refusal with one of these forms:
15
+
16
+ - `// refusal:by-design operator-knowledge: <reason>`
17
+ - `// refusal:by-design world-action: <reason>`
18
+ - `// refusal:by-design human-authority: <reason>`
19
+
20
+ Existing static messages without a continuation are tracked by file and static
21
+ text. Remove the old key when the message is fixed or removed. The ceiling for
22
+ fully dynamic messages also goes down when the count falls. An invalid command,
23
+ flag or tool fails even on a baselined site.
24
+
25
+ This check cannot tell whether a real command helps in the caller's situation.
26
+ The friction journey benchmark runs those continuations and checks the outcome.
@@ -296,6 +296,10 @@ triaged again and an import mark only prevents a duplicate, so neither changes t
296
296
 
297
297
  `hub_roadmap_check` and `ahub roadmap check` report the eight rules in #1482. Issue state is fresh bounded GitHub metadata, never inferred from a task verdict. At most 100 issue reads share a 20-second deadline; unreadable or unvisited evidence remains unknown. A merged issue is reported open only after 24 hours, so GitHub's closing lag does not become a false finding. A public `feat:` or `feat(...)` task with no recorded spec issue is a feature finding. Missing issue identity is a separate finding. The result has at most 100 findings and says `truncated` when more exist.
298
298
 
299
+ Rule 5 reports covering specs left unchanged without a recorded owner
300
+ acknowledgement in the complete report for the merged head. Missing or
301
+ unusable report evidence keeps the rule unknown for that task.
302
+
299
303
  `roadmap.github_mirror` defaults to false and `roadmap.github_write` to `off`; both are machine-local. The only other write value is `conductor`. `ahub roadmap sync` reads complete bounded all-state GitHub milestone and issue metadata, without issue bodies, and previews fixed `gh api` argument arrays. `--apply --confirm <fingerprint>` re-reads and rechecks the exact plan. The person may apply; the current rostered unique conductor may apply only with `github_write: "conductor"`. The operational audit and current caller, task, configuration, privacy and recovery fences remain in force. Incomplete pages, conflicting identity or withheld milestone membership refuse a plan. GitHub writes never delete a milestone, and a write whose effect cannot be confirmed is reported as uncertain rather than a safe retry.
300
304
 
301
305
  The current full issue inventory has a ceiling of 1000 rows including pull requests. At or above that ceiling it fails closed, so mirror sync is unavailable and drift rule 7 stays unknown. A future scoped read of each bound milestone's members and desired issues removes this ceiling.
@@ -158,14 +158,30 @@ For a profile that supports `plan.sources`, `Tasks` validates every retained sou
158
158
 
159
159
  Natural-language intake from the CLI or dashboard enters the same `Tasks.intake` path and creates held draft Backlog cards, not offers. Dashboard task replies use the public view, and a ticket-bound live-test session cannot create these person-attributed drafts. A roadmap decomposition part accepted through `Tasks.roadmapDecomposePart` enters that same hold: a backlog draft attributed to the configured planner or the unique conductor that accepted it and linked to its milestone, offered to nobody until the person's `ahub intake approve` releases it ([#1480](https://github.com/STAIxBWLB/agent-hub/issues/1480)). Approval and discard retain their existing authority. Read-only source snapshots carry only ID, kind, byte size, hash prefix and registration time, with no content or origin paths ([#1144](https://github.com/STAIxBWLB/agent-hub/issues/1144)).
160
160
 
161
+ ## Task split reasons (#1647)
162
+
163
+ A task may carry one `reason` for why a planner split or handed it off, from the closed set `explore`, `parallel`, `context`, `verify`, `capability` and `person`. It is optional (a task without one is `unset`), stored in the `task_reason` column, and shown wherever the task is: `hub_task_show`, `hub_task_list`, `ahub task show` and the board. `Tasks.propose` validates it before any effect and refuses an unknown value naming the allowed ones. For `parallel`, siblings proposed by one planner for the same dependencies and repository must have disjoint `refs.paths` (prefix overlap); an overlap is a pre-effect refusal naming both tasks and the paths. Size, file count and token budget are never reasons and never gates. `sdlcMetrics` groups task count, review rounds and tokens by reason, with `unset` as its own group; tokens are the hub's own increments and stay unknown, never 0.
164
+
161
165
  ## Completion, review and evidence
162
166
 
163
- Completion binds the submitted full head and any verified deliverable records. It may run a configured check before requesting review. A review records a verdict against that evidence; it does not itself merge a PR. An unmerged approved task can receive a new owner submission, superseding the earlier review binding rather than treating old approval as authority for changed code ([#1047](https://github.com/STAIxBWLB/agent-hub/issues/1047)). A re-file cannot silently inherit an old head after the linked PR moves, and an approval with no supplied head refuses known-stale evidence. Refusals name the recorded and supplied or read heads and direct the owner to re-file `hub_task_done` with the new full SHA in `refs.commit`; summary text is not head evidence. This prevents stale approval from being presented as review of changed code ([#1121](https://github.com/STAIxBWLB/agent-hub/issues/1121)).
167
+ Completion binds the submitted full head and any verified deliverable records. It may run a configured check before requesting review. A review records a verdict against that evidence; it does not itself merge a PR. An approval records what the checkout the reviewer read held for the files its review brief lists, as that checkout's head plus the reviewed paths that differ from the reviewed commit or are untracked, with which checkout it was: the reviewing session's own when the hub knows it, and otherwise the project checkout, said as such. A known checkout that cannot be read records no evidence rather than a clean one, so the stored verdict never claims a checkout nobody read, and a later count can tell a reviewer that read other bytes from a hub that looked at the root ([#1646](https://github.com/STAIxBWLB/agent-hub/issues/1646)). An unmerged approved task can receive a new owner submission, superseding the earlier review binding rather than treating old approval as authority for changed code ([#1047](https://github.com/STAIxBWLB/agent-hub/issues/1047)). A re-file cannot silently inherit an old head after the linked PR moves, and an approval with no supplied head refuses known-stale evidence. Refusals name the recorded and supplied or read heads and direct the owner to re-file `hub_task_done` with the new full SHA in `refs.commit`; summary text is not head evidence. This prevents stale approval from being presented as review of changed code ([#1121](https://github.com/STAIxBWLB/agent-hub/issues/1121)).
168
+
169
+ With the lifecycle enabled, a reviewer may reopen a finding last marked
170
+ `false_positive` or person-`accepted` with a screened `reopen_reason` in the
171
+ new verdict. Advise reports missing reasons and saves the verdict. Enforce
172
+ requires a reason before a verdict can save. A reasoned reopening after
173
+ person acceptance produces a person notice (#1657).
174
+
175
+ A verdict also enforces the review minimum the change's risk tier owes, beside the security-pass gate and before any board write. The tier is the one recorded at filing, for that one head and no other: a `high` change owes a reviewer plus a verifier card, a `test`-class card on the same repository and branch whose `refs.commit` is the filed head and whose approved owner is a peer other than the implementer, matched by repository and head when the filing recorded no branch, so the card is identified from fields the board already holds and no card shape, column or verifier field is added. In `enforce` an approving verdict without it is refused with the card to propose, `advise` records the same line and allows the approval, and a plan whose own `review` scope asks for fewer reviewers than the floor is reported at plan review and refused at the merge gate, where a tier exists. A card for an older head does not count and a tier recorded for another head is never read, so a moved head makes no tier claim, and a project with no `[risk]` table keeps today's verdicts, plan reviews and merge gates ([#1645](https://github.com/STAIxBWLB/agent-hub/issues/1645)).
164
176
 
165
177
  Review independence and declared scope are different controls. Selection excludes conflicts using current implementation history; a `code` reviewer supplies code findings, while full test/CI proof belongs to the merger's gate. Evidence-only inability to run tests is not a code defect. This keeps valuable sandboxed review without inventing CI evidence or accepting self-review ([#744](https://github.com/STAIxBWLB/agent-hub/issues/744), [#852](https://github.com/STAIxBWLB/agent-hub/issues/852)).
166
178
 
167
179
  Task text and private-turn words can reach owners, reviewers, overlap notices and memory. Public views use the host's current privacy projection; PII tasks remain stubs for unauthorized observers, and private turns cannot write ordinary shared task text. The projection belongs at the shared boundary because filtering individual callers would leave another observer exposed ([#198](https://github.com/STAIxBWLB/agent-hub/issues/198), [#230](https://github.com/STAIxBWLB/agent-hub/issues/230)).
168
180
 
181
+ ## Startup memory settlement (#1445)
182
+
183
+ The host pages agent-mem's outstanding task keys for the bound project. Each candidate must match a current approved task's full key, pass the current privacy policy, and still have an entry and no visible settlement. Legacy settlements count. The host checks that the memory profile is current before each page and each repair. A discovery refusal falls back to the approved-task point checks for that startup. Writes behind the page cursor are eligible at the next startup.
184
+
169
185
  ## Spec acceptance carry-over (#1328 T4)
170
186
 
171
187
  `Tasks` may reuse an original person's stored acceptance at existing build-entry gates, using one host `readSpecEdit` observation for carry and the ordinary verdict. Gates return only a virtual receipt and an opaque host proof without a write. `Tasks.acceptSpec` remains USER-only; tools and lifecycle receipt fields cannot create acceptance. `assign()` remains pure and its offer/gate order is unchanged.