@event4u/agent-config 14.8.0 → 14.10.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 (170) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/CHANGELOG.md +214 -237
  3. package/README.md +1 -1
  4. package/agents/templates/.ai-council.yml.example +34 -4
  5. package/dist/agent-src/commands/pr/merge.md +9 -5
  6. package/dist/agent-src/commands/review/changes.md +95 -14
  7. package/dist/agent-src/commands/roadmap/process-full.md +2 -2
  8. package/dist/agent-src/contexts/execution/host-capability-manifest.md +77 -0
  9. package/dist/agent-src/contexts/execution/roadmap-execution-contract.md +36 -0
  10. package/dist/agent-src/contexts/execution/subagent-response-contract.md +80 -0
  11. package/dist/agent-src/rules/untrusted-input-defense.md +9 -3
  12. package/dist/agent-src/skills/async-python-patterns/SKILL.md +1 -1
  13. package/dist/agent-src/skills/code-refactoring/SKILL.md +1 -1
  14. package/dist/agent-src/skills/code-review/evals/evals.json +87 -46
  15. package/dist/agent-src/skills/condense-memory/SKILL.md +1 -1
  16. package/dist/agent-src/skills/conventional-commits-writing/SKILL.md +1 -1
  17. package/dist/agent-src/skills/design-review/SKILL.md +1 -1
  18. package/dist/agent-src/skills/discovery-interview/SKILL.md +1 -1
  19. package/dist/agent-src/skills/doc-coauthoring/SKILL.md +1 -1
  20. package/dist/agent-src/skills/docx-authoring/SKILL.md +1 -1
  21. package/dist/agent-src/skills/editorial-calendar/SKILL.md +1 -1
  22. package/dist/agent-src/skills/github-ci/SKILL.md +1 -1
  23. package/dist/agent-src/skills/humanizer/SKILL.md +39 -0
  24. package/dist/agent-src/skills/humanizer/evals/strip_fixtures.json +57 -0
  25. package/dist/agent-src/skills/humanizer/references/fixtures.md +54 -0
  26. package/dist/agent-src/skills/judge-artifact-completeness/SKILL.md +1 -1
  27. package/dist/agent-src/skills/judge-injection-defense/SKILL.md +1 -1
  28. package/dist/agent-src/skills/judge-spec-compliance/SKILL.md +154 -0
  29. package/dist/agent-src/skills/judge-synthesis/SKILL.md +45 -0
  30. package/dist/agent-src/skills/laravel-validation/SKILL.md +1 -1
  31. package/dist/agent-src/skills/legal-intake-triage/SKILL.md +1 -1
  32. package/dist/agent-src/skills/legal-practice-profile/SKILL.md +1 -1
  33. package/dist/agent-src/skills/messaging-architecture/SKILL.md +1 -1
  34. package/dist/agent-src/skills/migration-architect/SKILL.md +1 -1
  35. package/dist/agent-src/skills/module-detect-on-the-fly/SKILL.md +1 -1
  36. package/dist/agent-src/skills/module-management/SKILL.md +1 -1
  37. package/dist/agent-src/skills/motion-choreographer/SKILL.md +1 -1
  38. package/dist/agent-src/skills/onboarding-program/SKILL.md +1 -1
  39. package/dist/agent-src/skills/perf-feedback-craft/SKILL.md +1 -1
  40. package/dist/agent-src/skills/prompt-optimizer/SKILL.md +1 -1
  41. package/dist/agent-src/skills/receiving-code-review/SKILL.md +1 -1
  42. package/dist/agent-src/skills/roadmap-writing/SKILL.md +18 -18
  43. package/dist/agent-src/skills/scene-expander/SKILL.md +1 -1
  44. package/dist/agent-src/skills/secrets-management/SKILL.md +1 -1
  45. package/dist/agent-src/skills/using-git-worktrees/SKILL.md +1 -1
  46. package/dist/agent-src/templates/agents/agent-project-settings.example.yml +1 -1
  47. package/dist/agent-src/templates/roadmaps.md +8 -0
  48. package/dist/cli/registry.js +2 -0
  49. package/dist/cli/registry.js.map +1 -1
  50. package/dist/cli-delegate/{chunk-MMSGVZKV.js → chunk-77GR3VD4.js} +65 -40
  51. package/dist/cli-delegate/{chunk-Q26HT4QT.js → chunk-E46KPN6K.js} +251 -150
  52. package/dist/cli-delegate/{chunk-EEJUMCDZ.js → chunk-PLSG6UL5.js} +1 -1
  53. package/dist/cli-delegate/cmd_conformance.js +89 -13
  54. package/dist/cli-delegate/cmd_doctor.js +3 -3
  55. package/dist/cli-delegate/cmd_handoff.js +2 -2
  56. package/dist/cli-delegate/cmd_memory_get.js +1 -1
  57. package/dist/cli-delegate/cmd_route_audit.js +1 -1
  58. package/dist/cli-delegate/cmd_settings_get.js +1 -1
  59. package/dist/cli-delegate/cmd_settings_set.js +1 -1
  60. package/dist/discovery/deprecation-report.md +1 -1
  61. package/dist/discovery/discovery-manifest.json +64 -42
  62. package/dist/discovery/discovery-manifest.json.sha256 +1 -1
  63. package/dist/discovery/discovery-manifest.summary.md +3 -3
  64. package/dist/discovery/dormancy-report.md +1 -1
  65. package/dist/discovery/orphan-report.md +1 -1
  66. package/dist/discovery/packs.json +6 -5
  67. package/dist/discovery/trust-report.md +2 -2
  68. package/dist/discovery/workspaces.json +5 -4
  69. package/dist/hooks/dispatch.js +562 -204
  70. package/dist/mcp/registry-manifest.json +3 -3
  71. package/dist/mcp/server.json +2 -2
  72. package/dist/mcp/server.mjs +808 -331
  73. package/dist/scripts/_lib/claude_plugin.js +162 -0
  74. package/dist/scripts/_lib/claude_plugin.js.map +1 -0
  75. package/dist/scripts/_lib/environment_detector.js +397 -0
  76. package/dist/scripts/_lib/environment_detector.js.map +1 -0
  77. package/dist/scripts/_lib/spawn_env.js +129 -0
  78. package/dist/scripts/_lib/spawn_env.js.map +1 -0
  79. package/dist/scripts/ai_council/modes.js +199 -0
  80. package/dist/scripts/ai_council/modes.js.map +1 -0
  81. package/dist/scripts/ai_council/transport_resolver.js +418 -0
  82. package/dist/scripts/ai_council/transport_resolver.js.map +1 -0
  83. package/dist/server/routes/wizard.js +3 -2
  84. package/dist/server/routes/wizard.js.map +1 -1
  85. package/dist/ui/assets/index-Cxgy63kz.js +26 -0
  86. package/dist/ui/assets/index-Cxgy63kz.js.map +1 -0
  87. package/dist/ui/index.html +1 -1
  88. package/docs/guidelines/agent-infra/traceability-field-mechanics.md +50 -0
  89. package/docs/guidelines/agent-infra/untrusted-input-spotlighting.md +17 -0
  90. package/package.json +7 -3
  91. package/src/config/estate-count-budget.json +13 -744
  92. package/src/config/evaluator-budgets.json +4 -4
  93. package/src/config/gate-coverage.yml +267 -9
  94. package/src/config/gate-violation-baselines.json +72 -72
  95. package/src/config/preamble-payload-budget.json +71 -67
  96. package/src/config/publish-surface.json +60 -0
  97. package/src/config/requirements-trace-budget.json +32 -0
  98. package/src/config/rule-stub-ceilings.json +8 -1
  99. package/src/scripts/_dispatch.bash +7 -0
  100. package/src/scripts/_lib/base_tree.ts +175 -0
  101. package/src/scripts/_lib/billing_grant.ts +165 -0
  102. package/src/scripts/_lib/billing_grant_cli.ts +123 -0
  103. package/src/scripts/_lib/council_fallback_posture.ts +53 -6
  104. package/src/scripts/_lib/council_fallback_wiring.ts +61 -1
  105. package/src/scripts/_lib/host_capability.ts +59 -5
  106. package/src/scripts/_lib/quota_parked.ts +133 -0
  107. package/src/scripts/_lib/retrieval_sanitize.ts +62 -0
  108. package/src/scripts/_lib/review_telemetry.ts +196 -0
  109. package/src/scripts/_lib/subagent_response.ts +92 -0
  110. package/src/scripts/adr/regenerate_index.ts +14 -7
  111. package/src/scripts/ai_council/clients.ts +12 -1
  112. package/src/scripts/ai_council/config.ts +72 -115
  113. package/src/scripts/ai_council/fallback_config.ts +19 -7
  114. package/src/scripts/ai_council/mid_flight_fallback.ts +88 -7
  115. package/src/scripts/ai_council/orchestrator.ts +2 -2
  116. package/src/scripts/ai_council/py_format.ts +124 -0
  117. package/src/scripts/ai_council/seating.ts +211 -0
  118. package/src/scripts/ai_council/transport_resolver.ts +65 -2
  119. package/src/scripts/audit_adr_coverage.ts +33 -6
  120. package/src/scripts/check_council_pin_staleness.ts +300 -0
  121. package/src/scripts/check_estate_count.ts +420 -293
  122. package/src/scripts/check_gate_coverage.ts +91 -0
  123. package/src/scripts/check_no_stub_inventory_table.ts +292 -0
  124. package/src/scripts/check_pack_passport_reconciliation.ts +274 -0
  125. package/src/scripts/check_pack_size.ts +234 -1
  126. package/src/scripts/check_publish_surface.ts +297 -0
  127. package/src/scripts/check_requirements_trace.ts +378 -0
  128. package/src/scripts/check_secret_leak.ts +166 -12
  129. package/src/scripts/code_graph/cli.ts +44 -5
  130. package/src/scripts/code_graph/extract.ts +87 -0
  131. package/src/scripts/council_cli.ts +12 -16
  132. package/src/scripts/detect_ai_tells.ts +87 -0
  133. package/src/scripts/dispatch_r2_reviewer.ts +42 -0
  134. package/src/scripts/generate_capabilities_index.ts +41 -0
  135. package/src/scripts/generate_pack_manifests.ts +78 -0
  136. package/src/scripts/git_authorization_hook.ts +54 -4
  137. package/src/scripts/hooks/block_unauthorized_git.ts +19 -1
  138. package/src/scripts/hooks/run_continuation_hook.ts +3 -1
  139. package/src/scripts/hooks/subagent_ledger_hook.ts +76 -11
  140. package/src/scripts/injection_scan_hook.ts +120 -10
  141. package/src/scripts/lint_adr_sweep_routing.ts +365 -0
  142. package/src/scripts/lint_workflow_security.ts +53 -10
  143. package/src/scripts/lint_workflow_security_allowlist.json +2 -18
  144. package/src/scripts/report_envelope_rate.ts +166 -0
  145. package/src/scripts/review_axis_report.ts +218 -0
  146. package/src/scripts/run_supervise.ts +46 -1
  147. package/src/scripts/schemas/evals.schema.json +5 -0
  148. package/src/scripts/schemas/pack.schema.json +62 -4
  149. package/src/scripts/schemas/skill.schema.json +2 -2
  150. package/src/scripts/sync_pr_branch.ts +14 -7
  151. package/src/scripts/tighten_skill_descriptions.ts +264 -0
  152. package/dist/cli/commands/commands.candidates.test.js +0 -257
  153. package/dist/cli/commands/commands.candidates.test.js.map +0 -1
  154. package/dist/cli/commands/profiles.test.js +0 -88
  155. package/dist/cli/commands/profiles.test.js.map +0 -1
  156. package/dist/cli/commands/recordTriggerEval.test.js +0 -113
  157. package/dist/cli/commands/recordTriggerEval.test.js.map +0 -1
  158. package/dist/cli/configRoot.test.js +0 -97
  159. package/dist/cli/configRoot.test.js.map +0 -1
  160. package/dist/cli/mcp/content.test.js +0 -54
  161. package/dist/cli/mcp/content.test.js.map +0 -1
  162. package/dist/cli/mcp/dispatch.test.js +0 -108
  163. package/dist/cli/mcp/dispatch.test.js.map +0 -1
  164. package/dist/server/writeRoot.test.js +0 -91
  165. package/dist/server/writeRoot.test.js.map +0 -1
  166. package/dist/shared/capabilities.test.js +0 -39
  167. package/dist/shared/capabilities.test.js.map +0 -1
  168. package/dist/ui/assets/index-C1pBRm1f.js +0 -26
  169. package/dist/ui/assets/index-C1pBRm1f.js.map +0 -1
  170. /package/dist/cli-delegate/{chunk-N7CDDGI3.js → chunk-CYH5SP6M.js} +0 -0
@@ -0,0 +1,264 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Tighten skill descriptions toward a cap WITHOUT touching trigger vocabulary.
4
+ *
5
+ * The description is the routing surface. `lint_skill_descriptions` gates its
6
+ * shape, `audit_skill_descriptions` ranks it and `optimize_skill_description`
7
+ * tunes ONE skill against its own `evals/triggers.json`. None of them shortens
8
+ * a corpus, which is why this exists — and why it is deliberately timid.
9
+ *
10
+ * THE FAILURE IT IS BUILT AGAINST. A rewriter asked to cut N chars strips
11
+ * trigger vocabulary before it strips filler, because filler is the harder of
12
+ * the two to identify. A description that loses its trigger phrase costs more
13
+ * in missed routing than it ever saves in tokens, so this tool never rewrites:
14
+ * it applies a closed list of audited, meaning-preserving transformations and
15
+ * then REFUSES to write unless the informative-token set came out identical.
16
+ *
17
+ * "Informative token" is mechanical: lowercased, ≥4 chars, not in STOPWORDS.
18
+ * The set — not the count — must match, so a transformation that swapped one
19
+ * informative word for another of the same length is rejected too.
20
+ *
21
+ * A skill the transformations cannot bring under the cap is reported as a MISS
22
+ * with the residual filler budget beside it, and left alone. That number is
23
+ * what separates "a hand rewrite could still find filler here" from "the only
24
+ * chars left to cut are informative ones" — the second is a genuine
25
+ * trigger-loss wall and the honest reason to stop, and reporting it is the
26
+ * point rather than a consolation for having stopped.
27
+ *
28
+ * Usage:
29
+ * tighten_skill_descriptions --cap 189 # report only (default)
30
+ * tighten_skill_descriptions --cap 189 --apply # write the wins
31
+ * tighten_skill_descriptions --self-test
32
+ *
33
+ * Exit 0 on report and on apply; 1 only on a self-test failure or a usage
34
+ * error. This is an authoring tool, not a gate.
35
+ */
36
+ import * as fs from 'node:fs';
37
+ import * as path from 'node:path';
38
+
39
+ import { SRC_SKILLS } from './_lib/agent_src.js';
40
+
41
+ /** Words too short or too common to carry routing signal. */
42
+ const STOPWORDS = new Set([
43
+ 'when', 'with', 'from', 'that', 'this', 'they', 'them', 'then', 'than', 'into', 'over',
44
+ 'your', 'each', 'both', 'only', 'also', 'such', 'been', 'were', 'will', 'would', 'have',
45
+ 'here', 'what', 'which', 'while', 'their', 'there', 'these', 'those', 'about', 'after',
46
+ 'before', 'every', 'other', 'under', 'until', 'using', 'uses', 'used', 'more', 'most',
47
+ 'less', 'least', 'same', 'does', 'doing', 'done', 'make', 'makes', 'made',
48
+ ]);
49
+
50
+ export function informativeTokens(s: string): Set<string> {
51
+ const out = new Set<string>();
52
+ for (const raw of s.toLowerCase().split(/[^a-z0-9'’\-]+/)) {
53
+ const t = raw.replace(/^[-']+|[-']+$/g, '');
54
+ if (t.length < 4) continue;
55
+ if (STOPWORDS.has(t)) continue;
56
+ out.add(t);
57
+ }
58
+ return out;
59
+ }
60
+
61
+ /**
62
+ * The closed transformation list. Each is meaning-preserving in English and
63
+ * removes only connective or punctuation characters — never a content word.
64
+ * `why` is printed in the report so a reviewer can audit the list itself.
65
+ */
66
+ export const TRANSFORMS: readonly { why: string; apply: (s: string) => string }[] = [
67
+ { why: '"Use when X" → "When X" (the imperative adds nothing a reader needs)', apply: (s) => s.replace(/^Use when /, 'When ') },
68
+ { why: '"in order to" → "to"', apply: (s) => s.replace(/\bin order to\b/g, 'to') },
69
+ { why: 'Oxford comma removed (house style)', apply: (s) => s.replace(/,(\s+)and\b/g, '$1and') },
70
+ { why: 'collapsed runs of whitespace', apply: (s) => s.replace(/ +/g, ' ') },
71
+ ];
72
+
73
+ /**
74
+ * Filler still available AFTER the transforms — the chars a hand rewrite could
75
+ * remove without touching an informative token. Deliberately generous: it
76
+ * counts every stopword occurrence and every separator run, so a MISS reported
77
+ * with a small budget is a strong claim and one with a large budget is an
78
+ * invitation to rewrite by hand, not a wall.
79
+ */
80
+ export function fillerBudget(s: string): number {
81
+ let n = 0;
82
+ for (const raw of s.toLowerCase().split(/([^a-z0-9'’\-]+)/)) {
83
+ const t = raw.replace(/^[-']+|[-']+$/g, '');
84
+ if (t.length === 0) continue;
85
+ if (/^[^a-z0-9]+$/.test(raw) && raw.length > 1) n += raw.length - 1;
86
+ else if (t.length < 4 || STOPWORDS.has(t)) n += t.length + 1;
87
+ }
88
+ return n;
89
+ }
90
+
91
+ export type Outcome = 'already_under' | 'tightened' | 'miss';
92
+
93
+ export interface Result {
94
+ skill: string;
95
+ before: number;
96
+ after: number;
97
+ outcome: Outcome;
98
+ /** Chars of filler still removable by hand at `after`. Only set on a miss. */
99
+ filler_left: number;
100
+ applied: string[];
101
+ text: string | null;
102
+ }
103
+
104
+ export function tighten(skill: string, desc: string, cap: number): Result {
105
+ const before = desc.length;
106
+ if (before <= cap) {
107
+ return { skill, before, after: before, outcome: 'already_under', filler_left: 0, applied: [], text: null };
108
+ }
109
+ const want = informativeTokens(desc);
110
+ let cur = desc;
111
+ const applied: string[] = [];
112
+ for (const t of TRANSFORMS) {
113
+ const next = t.apply(cur).trim();
114
+ if (next === cur) continue;
115
+ // Reject any transformation that moved the informative set, even if it
116
+ // shortened the string. A same-length swap is still a routing change.
117
+ const got = informativeTokens(next);
118
+ if (got.size !== want.size || [...want].some((w) => !got.has(w))) continue;
119
+ cur = next;
120
+ applied.push(t.why);
121
+ }
122
+ if (cur.length <= cap) {
123
+ return { skill, before, after: cur.length, outcome: 'tightened', filler_left: 0, applied, text: cur };
124
+ }
125
+ return {
126
+ skill,
127
+ before,
128
+ after: cur.length,
129
+ outcome: 'miss',
130
+ filler_left: fillerBudget(cur),
131
+ applied,
132
+ text: null,
133
+ };
134
+ }
135
+
136
+ const DESC_RE = /^(description:[ \t]*)(.*?)[ \t]*$/m;
137
+
138
+ function unquote(v: string): { text: string; quote: string } {
139
+ const q = v.length > 1 && (v[0] === '"' || v[0] === "'") && v[v.length - 1] === v[0] ? String(v[0]) : '';
140
+ return { text: q ? v.slice(1, -1) : v, quote: q };
141
+ }
142
+
143
+ interface Skill {
144
+ name: string;
145
+ file: string;
146
+ raw: string;
147
+ desc: string;
148
+ quote: string;
149
+ }
150
+
151
+ function collect(root: string): Skill[] {
152
+ const out: Skill[] = [];
153
+ if (!fs.existsSync(root)) return out;
154
+ for (const d of fs.readdirSync(root, { withFileTypes: true })) {
155
+ if (!d.isDirectory()) continue;
156
+ const file = path.join(root, d.name, 'SKILL.md');
157
+ if (!fs.existsSync(file)) continue;
158
+ const raw = fs.readFileSync(file, 'utf-8');
159
+ const m = DESC_RE.exec(raw);
160
+ if (m === null) continue;
161
+ const { text, quote } = unquote(String(m[2]));
162
+ out.push({ name: d.name, file, raw, desc: text, quote });
163
+ }
164
+ return out;
165
+ }
166
+
167
+ function selfTest(): number {
168
+ const cases: { name: string; desc: string; cap: number; outcome: Outcome; after?: number }[] = [
169
+ { name: 'under cap is untouched', desc: 'Short one.', cap: 189, outcome: 'already_under' },
170
+ {
171
+ name: 'the Use-when prefix is the cheapest real win',
172
+ desc: 'Use when ' + 'x'.repeat(184),
173
+ cap: 189,
174
+ outcome: 'tightened',
175
+ after: 189,
176
+ },
177
+ {
178
+ name: 'nothing to remove is a miss, not a silent truncation',
179
+ desc: 'sqlinjection '.repeat(16),
180
+ cap: 100,
181
+ outcome: 'miss',
182
+ },
183
+ ];
184
+ let pass = 0;
185
+ let fail = 0;
186
+ for (const c of cases) {
187
+ const r = tighten(c.name, c.desc, c.cap);
188
+ const ok = r.outcome === c.outcome && (c.after === undefined || r.after === c.after);
189
+ if (ok) pass += 1;
190
+ else {
191
+ fail += 1;
192
+ console.error(`❌ ${c.name}: outcome=${r.outcome} after=${r.after}`);
193
+ }
194
+ }
195
+ // The load-bearing guard: a transformation that changed the informative
196
+ // set must be refused even though it shortens.
197
+ const before = informativeTokens('deploy kubernetes manifests');
198
+ const after = informativeTokens('deploy kubernetes manifest');
199
+ if (before.size === after.size && [...before].every((t) => after.has(t))) {
200
+ fail += 1;
201
+ console.error('❌ informativeTokens: singular/plural must NOT compare equal — the guard would let a word change through');
202
+ } else {
203
+ pass += 1;
204
+ }
205
+ process.stdout.write(`tighten_skill_descriptions --self-test: ${pass} pass, ${fail} fail\n`);
206
+ return fail === 0 ? 0 : 1;
207
+ }
208
+
209
+ function main(argv: string[]): number {
210
+ if (argv.includes('--self-test')) return selfTest();
211
+ const capIdx = argv.indexOf('--cap');
212
+ const cap = capIdx >= 0 && argv[capIdx + 1] !== undefined ? Number(argv[capIdx + 1]) : 189;
213
+ if (!Number.isInteger(cap) || cap < 40) {
214
+ process.stderr.write('--cap must be an integer ≥ 40\n');
215
+ return 1;
216
+ }
217
+ const apply = argv.includes('--apply');
218
+ const skills = collect(SRC_SKILLS());
219
+ if (skills.length === 0) {
220
+ process.stderr.write(`no skills found under ${SRC_SKILLS()} — refusing to report a zero\n`);
221
+ return 1;
222
+ }
223
+ const results = skills.map((s) => tighten(s.name, s.desc, cap));
224
+ const wins = results.filter((r) => r.outcome === 'tightened');
225
+ const misses = results.filter((r) => r.outcome === 'miss');
226
+
227
+ if (apply) {
228
+ for (const r of wins) {
229
+ const s = skills.find((x) => x.name === r.skill);
230
+ if (s === undefined || r.text === null) continue;
231
+ const replaced = s.raw.replace(DESC_RE, (_m, k: string) => `${k}${s.quote}${String(r.text)}${s.quote}`);
232
+ fs.writeFileSync(s.file, replaced);
233
+ }
234
+ }
235
+
236
+ const savedChars = wins.reduce((a, r) => a + (r.before - r.after), 0);
237
+ process.stdout.write(`cap ${cap} · ${skills.length} skill(s)\n`);
238
+ process.stdout.write(`tightened: ${wins.length} (${savedChars} chars, ≈${Math.round(savedChars / 4)} tok)${apply ? ' — WRITTEN' : ' — dry run'}\n`);
239
+ process.stdout.write(
240
+ `misses: ${misses.length} (left alone — the closed transformation list did not reach the cap)\n`,
241
+ );
242
+ if (misses.length > 0) {
243
+ const need = Math.max(...misses.map((m) => m.after - cap));
244
+ const minFiller = Math.min(...misses.map((m) => m.filler_left));
245
+ process.stdout.write(
246
+ minFiller > need
247
+ ? ` read the table: every miss still holds ≥ ${minFiller} chars of filler against a need of ≤ ${need}, ` +
248
+ 'so these are limits of THIS tool, not trigger-loss walls. A hand rewrite is available.\n'
249
+ : ' at least one miss is close to its filler floor — there a cut would start taking informative tokens.\n',
250
+ );
251
+ }
252
+ if (misses.length > 0) {
253
+ process.stdout.write('\n| skill | len | over | filler left |\n|---|---|---|---|\n');
254
+ for (const m of misses.sort((a, b) => b.after - a.after)) {
255
+ process.stdout.write(`| \`${m.skill}\` | ${m.after} | +${m.after - cap} | ${m.filler_left} |\n`);
256
+ }
257
+ }
258
+ process.stdout.write(`scanned: ${skills.length}\n`);
259
+ return 0;
260
+ }
261
+
262
+ if (process.argv[1] !== undefined && process.argv[1].includes('tighten_skill_descriptions')) {
263
+ process.exit(main(process.argv.slice(2)));
264
+ }
@@ -1,257 +0,0 @@
1
- /**
2
- * `commands ls --candidates` — the surface-reduction report of roadmap step 3.4
3
- * (`road-to-inbox-harvest-2026-08-b-release-integrity`).
4
- *
5
- * Every assertion derives its expectation from the synthetic input rather than
6
- * pinning a literal the implementation happens to emit, so the suite cannot go
7
- * green for the wrong reason. The report is deliberately built from the
8
- * discovery manifest ALONE — no census file, no `utilization_report` import —
9
- * and the tests pin exactly that: the honesty band must survive, and the
10
- * ownership pointers must not be dropped by a later edit.
11
- */
12
- import { describe, expect, it } from 'vitest';
13
- import { buildCandidatesReport, renderCandidates, runCommandsLs, CANDIDATES_INCOMPATIBLE, REDUCTION_OWNERS, REPORT_ONLY_NOTICE, TEXT_LIST_CAP, } from './commands.js';
14
- function cmd(slug, pack, extra = {}) {
15
- return {
16
- path: `src/domains/${pack}/${slug}/command.md`,
17
- category: 'command',
18
- name: slug,
19
- slug,
20
- pack,
21
- visibility: 'internal',
22
- workspaces: [],
23
- packs: [pack],
24
- lifecycle: 'stable',
25
- trust: { level: 'core', confidence: 'high', human_review_required: false },
26
- install: { default: true, removable: false },
27
- intent: `do ${slug}`,
28
- ...extra,
29
- };
30
- }
31
- /** An artefact with NO `intent` key at all — distinct from `intent: ''`, and the
32
- * shape `exactOptionalPropertyTypes` forces us to build by omission. */
33
- function cmdWithoutIntent(slug, pack, visibility) {
34
- const { intent: _omitted, ...rest } = cmd(slug, pack, { visibility });
35
- return rest;
36
- }
37
- /** Mixed fixture: two absorbed-name commands, two undocumented, three packs of
38
- * unequal weight. */
39
- const FIXTURE = [
40
- cmd('alpha', 'engineering-base', { visibility: 'visible' }),
41
- cmd('bravo', 'engineering-base', { visibility: 'advanced' }),
42
- cmd('charlie', 'engineering-base', { visibility: 'internal', intent: '' }),
43
- cmd('delta', 'frontend-design', { visibility: 'visible', replaces: ['old-delta'] }),
44
- cmd('echo', 'frontend-design', { visibility: 'internal', replaces: ['old-echo', 'older-echo'] }),
45
- cmdWithoutIntent('foxtrot', 'finance-basic', 'advanced'),
46
- ];
47
- describe('buildCandidatesReport', () => {
48
- const report = buildCandidatesReport(FIXTURE);
49
- it('counts the whole estate it was given', () => {
50
- expect(report.total).toBe(FIXTURE.length);
51
- });
52
- it('partitions visibility exhaustively — the buckets sum to the total', () => {
53
- const summed = Object.values(report.byVisibility).reduce((a, b) => a + b, 0);
54
- expect(summed).toBe(FIXTURE.length);
55
- });
56
- it('collects the commands that ABSORBED prior names, named explicitly', () => {
57
- // Named rather than recomputed from the implementation predicate: the
58
- // first version of this bucket inverted the field's meaning, and a test
59
- // that re-derives `(replaces ?? []).length > 0` certifies whatever the
60
- // code does — including the inversion.
61
- expect(report.absorbedNames.map((r) => r.slug)).toEqual(['delta', 'echo']);
62
- expect(report.absorbedNames.map((r) => r.slug)).not.toContain('alpha');
63
- });
64
- it('carries each absorbed-name list through unchanged', () => {
65
- for (const row of report.absorbedNames) {
66
- const source = FIXTURE.find((c) => c.slug === row.slug);
67
- expect(row.replaces).toEqual(source?.replaces ?? []);
68
- }
69
- });
70
- it('treats an empty-string intent as undocumented, not as documented', () => {
71
- const expected = FIXTURE
72
- .filter((c) => (c.intent ?? '').trim() === '')
73
- .map((c) => c.slug)
74
- .sort();
75
- expect(report.noIntent.map((r) => r.slug)).toEqual(expected);
76
- // Guard the boundary the implementation could get wrong in either
77
- // direction: '' and undefined both count, a real string never does.
78
- expect(expected).toContain('charlie');
79
- expect(expected).toContain('foxtrot');
80
- expect(expected).not.toContain('alpha');
81
- });
82
- it('orders packs by weight descending', () => {
83
- const counts = report.byPack.map(([, n]) => n);
84
- expect([...counts]).toEqual([...counts].sort((a, b) => b - a));
85
- const summed = counts.reduce((a, b) => a + b, 0);
86
- expect(summed).toBe(FIXTURE.length);
87
- });
88
- it('breaks a pack tie by name — exercised on an actual tie', () => {
89
- // The mixed fixture has counts 3/2/1 and never hits the tie-break, so
90
- // the previous version of this test asserted a branch it never reached.
91
- const tied = buildCandidatesReport([
92
- cmd('one', 'zulu'),
93
- cmd('two', 'alpha'),
94
- ]);
95
- expect(tied.byPack.map(([p]) => p)).toEqual(['alpha', 'zulu']);
96
- });
97
- it('is byte-stable across input permutations — the report is a set view', () => {
98
- const shuffled = [...FIXTURE].reverse();
99
- expect(renderCandidates(buildCandidatesReport(shuffled)))
100
- .toBe(renderCandidates(buildCandidatesReport(FIXTURE)));
101
- });
102
- });
103
- describe('buildCandidatesReport — empty estate', () => {
104
- it('reports a measured zero rather than throwing or omitting sections', () => {
105
- const empty = buildCandidatesReport([]);
106
- expect(empty.total).toBe(0);
107
- expect(empty.absorbedNames).toEqual([]);
108
- expect(empty.noIntent).toEqual([]);
109
- expect(empty.byPack).toEqual([]);
110
- const text = renderCandidates(empty);
111
- // An absent section would let a real zero read as a missing check.
112
- expect(text).toContain('measured zero');
113
- });
114
- });
115
- describe('renderCandidates — the honesty band', () => {
116
- const text = renderCandidates(buildCandidatesReport(FIXTURE));
117
- it('states up front that it decides nothing', () => {
118
- expect(text.split('\n')[0]).toMatch(/report-only/i);
119
- });
120
- it('names the usage-evidence owner it deliberately does not import', () => {
121
- expect(text).toContain('utilization_report');
122
- });
123
- it('warns that both census snapshots are dated, not current', () => {
124
- expect(text).toContain('docs/SKILL_CENSUS.md');
125
- expect(text).toContain('docs/artefact-census.md');
126
- expect(text).toMatch(/point-in-time|do not\s+read their numbers as current/i);
127
- });
128
- it('hands the reduction targets to their owning roadmaps, all of them', () => {
129
- for (const owner of REDUCTION_OWNERS)
130
- expect(text).toContain(owner);
131
- expect(REDUCTION_OWNERS.length).toBeGreaterThan(0);
132
- });
133
- it('never presents itself as a prune instruction', () => {
134
- // Assert the exported contract, not a hand-copied sentence — a reworded
135
- // disclaimer stays covered, a DELETED one fails.
136
- expect(text).toContain(REPORT_ONLY_NOTICE);
137
- });
138
- it('states that the absorbed-name bucket is NOT a retirement class', () => {
139
- // The defect this pins: the bucket was first labelled "deprecation
140
- // shims", i.e. the exact inverse of what `replaces` means.
141
- expect(text).not.toMatch(/deprecation shims +\d/);
142
- expect(text).toMatch(/NOT a retirement class/);
143
- expect(text).toContain('absorbed prior names');
144
- });
145
- it('reports the real shim class as not computable, with its canonical figure', () => {
146
- expect(text).toMatch(/deprecation shims\s+not computable/);
147
- expect(text).toContain('superseded_by');
148
- expect(text).toContain('0 shims of 196');
149
- });
150
- it('renders every absorbed-name row it counted, with its absorbed ids', () => {
151
- const report = buildCandidatesReport(FIXTURE);
152
- for (const row of report.absorbedNames) {
153
- expect(text).toContain(row.slug);
154
- for (const prior of row.replaces)
155
- expect(text).toContain(prior);
156
- }
157
- });
158
- });
159
- describe('runCommandsLs — --candidates refuses the narrowing flags', () => {
160
- // Regression: each of these silently produced a whole-estate report, and a
161
- // typo'd --profile exited 0 where plain `ls` exits 1.
162
- for (const flag of CANDIDATES_INCOMPATIBLE) {
163
- it(`exits 1 when combined with ${flag}`, () => {
164
- const opts = { candidates: true };
165
- if (flag === '--pack')
166
- opts['pack'] = 'git';
167
- if (flag === '--visible')
168
- opts['visible'] = true;
169
- if (flag === '--profile')
170
- opts['profile'] = 'bogus';
171
- if (flag === '--expanded')
172
- opts['expanded'] = true;
173
- expect(runCommandsLs(opts)).toBe(1);
174
- });
175
- }
176
- });
177
- describe('renderCandidates — an unrecognised visibility value cannot vanish', () => {
178
- // `visibility` is a free string in the manifest (ADR-092 named the field,
179
- // nothing pins its domain). Rendering only the three known labels made the
180
- // printed breakdown silently disagree with the total — the exact false-green
181
- // shape a report must not have.
182
- const withUnknown = [
183
- cmd('known', 'engineering-base', { visibility: 'visible' }),
184
- cmd('odd-one', 'engineering-base', { visibility: 'experimental' }),
185
- cmd('odd-two', 'engineering-base', { visibility: 'experimental' }),
186
- ];
187
- const report = buildCandidatesReport(withUnknown);
188
- const text = renderCandidates(report);
189
- it('counts the unrecognised value rather than dropping it', () => {
190
- expect(report.byVisibility['experimental']).toBe(2);
191
- const summed = Object.values(report.byVisibility).reduce((a, b) => a + b, 0);
192
- expect(summed).toBe(withUnknown.length);
193
- });
194
- it('renders it, so the printed breakdown sums to the printed total', () => {
195
- expect(text).toContain('experimental');
196
- // Sum only the visibility block: the run of bucket lines directly
197
- // following the `surface` line. (A wider filter also matched the
198
- // owning-packs block, which is why the earlier version of this test
199
- // carried a variable that did not hold what its name claimed.)
200
- const rows = text.split('\n');
201
- const start = rows.findIndex((l) => l.startsWith('surface '));
202
- const block = [];
203
- for (const line of rows.slice(start + 1)) {
204
- const m = line.match(/^ {2}(\S+) +(\d+)$/);
205
- if (!m)
206
- break;
207
- block.push(Number(m[2]));
208
- }
209
- expect(block).toHaveLength(4);
210
- expect(block.reduce((a, b) => a + b, 0)).toBe(report.total);
211
- });
212
- it('keeps the JSON record key order deterministic too, not just the render', () => {
213
- // The fix first sorted unknowns in the renderer only, leaving the record
214
- // a --json consumer reads in first-seen order.
215
- const forward = buildCandidatesReport([
216
- cmd('a', 'p', { visibility: 'zeta' }),
217
- cmd('b', 'p', { visibility: 'alpha' }),
218
- ]);
219
- const reversed = buildCandidatesReport([
220
- cmd('b', 'p', { visibility: 'alpha' }),
221
- cmd('a', 'p', { visibility: 'zeta' }),
222
- ]);
223
- expect(Object.keys(forward.byVisibility)).toEqual(Object.keys(reversed.byVisibility));
224
- expect(Object.keys(forward.byVisibility).slice(-2)).toEqual(['alpha', 'zeta']);
225
- });
226
- it('keeps the known labels ahead of the unrecognised one, for byte stability', () => {
227
- const order = [...text.matchAll(/^ {2}(visible|advanced|internal|experimental) +\d+$/gm)]
228
- .map((m) => m[1]);
229
- expect(order[order.length - 1]).toBe('experimental');
230
- });
231
- });
232
- describe('renderCandidates — the text-mode cap is named, never silent', () => {
233
- /** One more undocumented command than the cap allows, so truncation bites. */
234
- const over = Array.from({ length: TEXT_LIST_CAP + 3 }, (_unused, i) => cmd(`undoc-${String(i).padStart(3, '0')}`, 'engineering-base', { intent: '' }));
235
- const report = buildCandidatesReport(over);
236
- const text = renderCandidates(report);
237
- it('keeps the COUNT honest even though the list is truncated', () => {
238
- expect(report.noIntent.length).toBe(over.length);
239
- expect(text).toContain(`no stated intent ${over.length}`);
240
- });
241
- it('states how many rows it withheld, derived from the input', () => {
242
- expect(text).toContain(`… and ${over.length - TEXT_LIST_CAP} more`);
243
- });
244
- it('caps the enumeration at exactly TEXT_LIST_CAP rows', () => {
245
- const listed = over.filter((c) => text.includes(` ${c.slug} (`)).length;
246
- expect(listed).toBe(TEXT_LIST_CAP);
247
- });
248
- it('never caps the structured payload', () => {
249
- // --json consumers get the whole set; the cap is a text-mode concern.
250
- expect(report.noIntent).toHaveLength(over.length);
251
- });
252
- it('adds no truncation notice when the set fits', () => {
253
- const fits = renderCandidates(buildCandidatesReport(over.slice(0, TEXT_LIST_CAP)));
254
- expect(fits).not.toContain('more — the full set is in --json');
255
- });
256
- });
257
- //# sourceMappingURL=commands.candidates.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commands.candidates.test.js","sourceRoot":"","sources":["../../../src/cli/commands/commands.candidates.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EACH,q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;IACxE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0DAA0D,EAAE,GAAG,EAAE;QAChE,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,SAAS,IAAI,CAAC,MAAM,GAAG,aAAa,OAAO,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oDAAoD,EAAE,GAAG,EAAE;QAC1D,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QAC1E,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mCAAmC,EAAE,GAAG,EAAE;QACzC,sEAAsE;QACtE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACnD,MAAM,IAAI,GAAG,gBAAgB,CAAC,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACnF,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,kCAAkC,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,88 +0,0 @@
1
- /**
2
- * Routing evals for profiles-as-views (6.0.0-D Step 14/15).
3
- *
4
- * Proves the roadmap acceptance criterion: `commands ls --profile developer`
5
- * renders exactly {work, review-changes, fix-ci, git-commit, git-pr-create}
6
- * in view order, and `--expanded` adds the active packs' full set on top.
7
- */
8
- import { describe, expect, it } from 'vitest';
9
- import { loadProfile, resolveProfileView } from './profiles.js';
10
- function cmd(slug, pack, visibility = 'internal') {
11
- return {
12
- path: `src/domains/${pack}/${slug}/command.md`,
13
- category: 'command',
14
- name: slug,
15
- slug,
16
- pack,
17
- visibility,
18
- workspaces: [],
19
- packs: [pack],
20
- lifecycle: 'stable',
21
- trust: { level: 'core', confidence: 'high', human_review_required: false },
22
- install: { default: true, removable: false },
23
- };
24
- }
25
- const MANIFEST = [
26
- cmd('work', 'engineering-base', 'visible'),
27
- cmd('review-changes', 'engineering-base', 'advanced'),
28
- cmd('fix-ci', 'engineering-base'),
29
- cmd('git-commit', 'git', 'visible'),
30
- cmd('git-pr-create', 'git', 'advanced'),
31
- cmd('git-sync', 'git'),
32
- cmd('research', 'product-discovery', 'visible'), // not in developer's packs
33
- ];
34
- describe('profiles-as-views', () => {
35
- it('developer built-in declares the curated five', () => {
36
- const p = loadProfile('developer');
37
- expect(p).not.toBeNull();
38
- expect(p?.immutable).toBe(true);
39
- expect(p?.view).toEqual(['work', 'review-changes', 'fix-ci', 'git-commit', 'git-pr-create']);
40
- });
41
- it('curated view renders exactly the five, in declared order', () => {
42
- const p = loadProfile('developer');
43
- const view = resolveProfileView(p, MANIFEST);
44
- expect(view.map((c) => c.slug)).toEqual([
45
- 'work',
46
- 'review-changes',
47
- 'fix-ci',
48
- 'git-commit',
49
- 'git-pr-create',
50
- ]);
51
- });
52
- it('--expanded adds the active packs full set after the curated view', () => {
53
- const p = loadProfile('developer');
54
- const view = resolveProfileView(p, MANIFEST, { expanded: true });
55
- const slugs = view.map((c) => c.slug);
56
- // curated five first, in order
57
- expect(slugs.slice(0, 5)).toEqual([
58
- 'work',
59
- 'review-changes',
60
- 'fix-ci',
61
- 'git-commit',
62
- 'git-pr-create',
63
- ]);
64
- // git-sync (git pack, not in the curated view) is added by --expanded
65
- expect(slugs).toContain('git-sync');
66
- // research (product-discovery, not a developer pack) is NOT surfaced
67
- expect(slugs).not.toContain('research');
68
- });
69
- it('a view entry with no live command is silently dropped', () => {
70
- const p = loadProfile('developer');
71
- const partial = MANIFEST.filter((c) => c.slug !== 'fix-ci');
72
- const view = resolveProfileView(p, partial);
73
- expect(view.map((c) => c.slug)).toEqual(['work', 'review-changes', 'git-commit', 'git-pr-create']);
74
- });
75
- it('unknown profile id resolves to null', () => {
76
- expect(loadProfile('nope')).toBeNull();
77
- expect(loadProfile('../etc/passwd')).toBeNull();
78
- });
79
- it('every built-in profile loads and is immutable', () => {
80
- for (const id of ['developer', 'founder', 'content_creator', 'agency', 'finance', 'ops']) {
81
- const p = loadProfile(id);
82
- expect(p, id).not.toBeNull();
83
- expect(p?.immutable, id).toBe(true);
84
- expect(p?.view.length, id).toBeGreaterThan(0);
85
- }
86
- });
87
- });
88
- //# sourceMappingURL=profiles.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"profiles.test.js","sourceRoot":"","sources":["../../../src/cli/commands/profiles.test.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGhE,SAAS,GAAG,CAAC,IAAY,EAAE,IAAY,EAAE,UAAU,GAAG,UAAU;IAC5D,OAAO;QACH,IAAI,EAAE,eAAe,IAAI,IAAI,IAAI,aAAa;QAC9C,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,IAAI;QACV,IAAI;QACJ,IAAI;QACJ,UAAU;QACV,UAAU,EAAE,EAAE;QACd,KAAK,EAAE,CAAC,IAAI,CAAC;QACb,SAAS,EAAE,QAAQ;QACnB,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,qBAAqB,EAAE,KAAK,EAAE;QAC1E,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE;KAC/C,CAAC;AACN,CAAC;AAED,MAAM,QAAQ,GAAwB;IAClC,GAAG,CAAC,MAAM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