@azure-id/orc 0.56.1 → 1.1.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 (162) hide show
  1. package/CHANGELOG.md +219 -0
  2. package/README-id.md +49 -107
  3. package/README.md +694 -719
  4. package/bin/build-agents.js +18 -11
  5. package/bin/cli.js +33699 -29855
  6. package/bin/onboarding-content.js +0 -3
  7. package/bin/test-run.js +491 -0
  8. package/bin/verify-contracts.js +4330 -3277
  9. package/bin/verify-package.js +76 -6
  10. package/bin/webui/api.js +1201 -1163
  11. package/bin/webui/app.html +210 -198
  12. package/bin/webui/css/06-responsive.css +120 -108
  13. package/bin/webui/css/panels/extra.css +29 -0
  14. package/bin/webui/css/panels/lanes.css +134 -0
  15. package/bin/webui/css/panels/settings.css +79 -3
  16. package/bin/webui/css/panels/wait.css +123 -0
  17. package/bin/webui/fixtures/extra.js +2036 -1934
  18. package/bin/webui/fixtures/flow.js +2 -2
  19. package/bin/webui/fixtures/index.js +510 -486
  20. package/bin/webui/fixtures/lanes.js +218 -0
  21. package/bin/webui/fixtures/settings.js +261 -34
  22. package/bin/webui/fixtures/stats.js +3 -3
  23. package/bin/webui/fixtures/wait.js +97 -0
  24. package/bin/webui/i18n/TERMS.md +135 -134
  25. package/bin/webui/i18n/en/extra.json +345 -313
  26. package/bin/webui/i18n/en/lanes.json +29 -0
  27. package/bin/webui/i18n/en/nav.json +21 -19
  28. package/bin/webui/i18n/en/overview.json +2 -0
  29. package/bin/webui/i18n/en/settings.json +16 -5
  30. package/bin/webui/i18n/en/wait.json +41 -0
  31. package/bin/webui/i18n/id/extra.json +345 -313
  32. package/bin/webui/i18n/id/lanes.json +29 -0
  33. package/bin/webui/i18n/id/nav.json +21 -19
  34. package/bin/webui/i18n/id/overview.json +2 -0
  35. package/bin/webui/i18n/id/settings.json +15 -4
  36. package/bin/webui/i18n/id/wait.json +41 -0
  37. package/bin/webui/js/01-i18n.js +151 -149
  38. package/bin/webui/js/panels/extra.js +3199 -3011
  39. package/bin/webui/js/panels/lanes.js +259 -0
  40. package/bin/webui/js/panels/overview.js +10 -0
  41. package/bin/webui/js/panels/settings.js +149 -3
  42. package/bin/webui/js/panels/wait.js +253 -0
  43. package/package.json +39 -39
  44. package/templates/agents/MODEL-MAPPING.md +23 -35
  45. package/templates/agents/orc-executor-opus-4-7-high.md +1 -1
  46. package/templates/agents/orc-executor-opus-4-7-med.md +1 -1
  47. package/templates/agents/orc-executor-opus-4-8-high.md +1 -1
  48. package/templates/agents/orc-executor-opus-5-high.md +1 -1
  49. package/templates/agents/orc-executor-opus-5-low.md +1 -1
  50. package/templates/agents/orc-executor-opus-5-med.md +1 -1
  51. package/templates/agents/orc-retro-opus-5-med.md +73 -73
  52. package/templates/agents/orc-retro-sonnet-5-high.md +72 -72
  53. package/templates/agents/orc-trace-writer-haiku-4-5.md +107 -107
  54. package/templates/commands/orc-route.md +1 -1
  55. package/templates/commands/orc-wait.md +19 -0
  56. package/templates/commands/orc.md +1 -1
  57. package/templates/hooks/orc-statusline.js +39 -0
  58. package/templates/skills/_shared/README.md +7 -3
  59. package/templates/skills/_shared/config-precedence.md +198 -0
  60. package/templates/skills/_shared/drift-recovery.md +1 -1
  61. package/templates/skills/_shared/extra-dispatch.md +159 -7
  62. package/templates/skills/_shared/interview.md +1 -1
  63. package/templates/skills/_shared/opus5-only.md +9 -7
  64. package/templates/skills/_shared/phases/README.md +82 -0
  65. package/templates/skills/{orc/references → _shared/phases}/analyst-gates.md +15 -3
  66. package/templates/skills/_shared/phases/execution.md +143 -0
  67. package/templates/skills/{orc/references → _shared/phases}/house-rules.md +13 -1
  68. package/templates/skills/{orc/references → _shared/phases}/intake.md +15 -2
  69. package/templates/skills/_shared/phases/mock-example.md +56 -0
  70. package/templates/skills/{orc/references → _shared/phases}/plan-handoff.md +16 -3
  71. package/templates/skills/_shared/phases/planning.md +135 -0
  72. package/templates/skills/_shared/phases/preflight.md +98 -0
  73. package/templates/skills/_shared/phases/review.md +53 -0
  74. package/templates/skills/_shared/phases/scoring.md +65 -0
  75. package/templates/skills/{orc/references → _shared/phases}/security-checklist.md +12 -1
  76. package/templates/skills/_shared/phases/security.md +55 -0
  77. package/templates/skills/_shared/phases/ship.md +88 -0
  78. package/templates/skills/{orc/references/stop-and-resume.md → _shared/phases/stop-resume.md} +169 -160
  79. package/templates/skills/_shared/phases/summary.md +48 -0
  80. package/templates/skills/_shared/phases/testgen.md +51 -0
  81. package/templates/skills/{orc/references/trace-protocol.md → _shared/phases/trace.md} +49 -6
  82. package/templates/skills/_shared/phases/verify.md +70 -0
  83. package/templates/skills/{orc/references → _shared/phases}/wave-grouping.md +14 -2
  84. package/templates/skills/{orc/references → _shared/phases}/wiki-consult.md +13 -1
  85. package/templates/skills/_shared/read-ladder.md +48 -0
  86. package/templates/skills/_shared/wait.md +240 -0
  87. package/templates/skills/context-combiner/SKILL.md +214 -187
  88. package/templates/skills/orc/README.md +148 -150
  89. package/templates/skills/orc/SKILL.md +75 -358
  90. package/templates/skills/orc/config.md +137 -389
  91. package/templates/skills/orc/examples/full-run-mock.md +1 -1
  92. package/templates/skills/orc/references/effort-and-mode.md +16 -18
  93. package/templates/skills/orc/references/phases/intake.md +47 -0
  94. package/templates/skills/orc/references/phases/integration.md +19 -0
  95. package/templates/skills/orc/references/preflight-report.md +4 -4
  96. package/templates/skills/orc/references/ultra-mode.md +117 -123
  97. package/templates/skills/orc/schemas/planning-output.md +279 -279
  98. package/templates/skills/orc/subskills/orc-planner/SKILL.md +260 -264
  99. package/templates/skills/orc/subskills/orc-pr/stack-gate.md +4 -1
  100. package/templates/skills/orc-aftermath/SKILL.md +158 -136
  101. package/templates/skills/orc-analyze/SKILL.md +252 -220
  102. package/templates/skills/orc-analyze/references/branching.md +51 -51
  103. package/templates/skills/orc-analyze/references/thin-input.md +1 -1
  104. package/templates/skills/orc-analyze-mini/SKILL.md +128 -112
  105. package/templates/skills/orc-boundary/SKILL.md +249 -208
  106. package/templates/skills/orc-brainstorm/SKILL.md +377 -339
  107. package/templates/skills/orc-budget/SKILL.md +248 -225
  108. package/templates/skills/orc-challenge/README.md +1 -1
  109. package/templates/skills/orc-challenge/SKILL.md +298 -255
  110. package/templates/skills/orc-challenge/examples/council-full-roster.md +1 -1
  111. package/templates/skills/orc-claude/SKILL.md +221 -199
  112. package/templates/skills/orc-diy/README.md +2 -1
  113. package/templates/skills/orc-diy/SKILL.md +132 -68
  114. package/templates/skills/orc-diy/references/blocks/analyze.md +1 -1
  115. package/templates/skills/orc-diy/references/compile.md +21 -7
  116. package/templates/skills/orc-diy/references/flow-schema.md +2 -2
  117. package/templates/skills/orc-doc/SKILL.md +49 -7
  118. package/templates/skills/orc-explain/SKILL.md +24 -0
  119. package/templates/skills/orc-export/SKILL.md +31 -5
  120. package/templates/skills/orc-fast/SKILL.md +218 -185
  121. package/templates/skills/orc-grill/SKILL.md +238 -207
  122. package/templates/skills/orc-handoff/SKILL.md +223 -204
  123. package/templates/skills/orc-learn/SKILL.md +181 -156
  124. package/templates/skills/orc-mini/SKILL.md +47 -24
  125. package/templates/skills/orc-pact/SKILL.md +255 -218
  126. package/templates/skills/orc-pattern/SKILL.md +154 -124
  127. package/templates/skills/orc-poly/SKILL.md +242 -216
  128. package/templates/skills/orc-poly/references/gather.md +1 -1
  129. package/templates/skills/orc-pr-driver/SKILL.md +196 -167
  130. package/templates/skills/orc-pr-driver/references/orc-run-split.md +1 -1
  131. package/templates/skills/orc-pr-setup/SKILL.md +212 -184
  132. package/templates/skills/orc-quick/README.md +2 -2
  133. package/templates/skills/orc-quick/SKILL.md +51 -13
  134. package/templates/skills/orc-quick/references/dispatch-gate.md +2 -3
  135. package/templates/skills/orc-retro/SKILL.md +249 -222
  136. package/templates/skills/orc-retro/examples/retro-mock.md +171 -171
  137. package/templates/skills/orc-route/SKILL.md +188 -165
  138. package/templates/skills/orc-verify/SKILL.md +103 -84
  139. package/templates/skills/orc-wait/SKILL.md +163 -0
  140. package/templates/skills/orc-wiki/SKILL.md +60 -206
  141. package/templates/skills/orc-wiki/references/phases/phase-0.md +71 -0
  142. package/templates/skills/orc-wiki/references/phases/phase-1.md +35 -0
  143. package/templates/skills/orc-wiki/references/phases/phase-2.md +52 -0
  144. package/templates/skills/orc-wiki/references/phases/phase-3.md +57 -0
  145. package/templates/skills/orc-wiki/references/phases/phase-3c.md +36 -0
  146. package/templates/agents/orc-advisor-fable-5.md +0 -50
  147. package/templates/agents/orc-analyst-fable-5.md +0 -115
  148. package/templates/agents/orc-judge-fable-5.md +0 -79
  149. package/templates/agents/orc-planner-fable-5.md +0 -152
  150. package/templates/agents/orc-reviewer-fable-5.md +0 -57
  151. package/templates/skills/_shared/fable5-override.md +0 -56
  152. package/templates/skills/orc-diy/references/blocks/execution.md +0 -42
  153. package/templates/skills/orc-diy/references/blocks/mock-example.md +0 -22
  154. package/templates/skills/orc-diy/references/blocks/planning.md +0 -34
  155. package/templates/skills/orc-diy/references/blocks/review.md +0 -18
  156. package/templates/skills/orc-diy/references/blocks/scoring.md +0 -16
  157. package/templates/skills/orc-diy/references/blocks/security.md +0 -25
  158. package/templates/skills/orc-diy/references/blocks/ship.md +0 -25
  159. package/templates/skills/orc-diy/references/blocks/summary.md +0 -18
  160. package/templates/skills/orc-diy/references/blocks/testgen.md +0 -17
  161. package/templates/skills/orc-diy/references/blocks/trace.md +0 -28
  162. package/templates/skills/orc-diy/references/blocks/verify.md +0 -25
@@ -32,6 +32,7 @@ const required = [
32
32
  "bin/webui/css/06-responsive.css",
33
33
  "bin/webui/css/panels/overview.css",
34
34
  "bin/webui/css/panels/settings.css",
35
+ "bin/webui/css/panels/lanes.css",
35
36
  "bin/webui/css/panels/runs.css",
36
37
  "bin/webui/css/panels/knowledge.css",
37
38
  // No knowledge.css: that panel is composed entirely from shared primitives
@@ -45,6 +46,7 @@ const required = [
45
46
  "bin/webui/css/panels/maintenance.css",
46
47
  "bin/webui/css/panels/pact.css",
47
48
  "bin/webui/css/panels/boundary.css",
49
+ "bin/webui/css/panels/wait.css",
48
50
  "bin/webui/css/panels/handoff.css",
49
51
  "bin/webui/css/panels/challenge.css",
50
52
  "bin/webui/css/panels/docs.css",
@@ -61,6 +63,7 @@ const required = [
61
63
  "bin/webui/js/06-edit.js",
62
64
  "bin/webui/js/panels/overview.js",
63
65
  "bin/webui/js/panels/settings.js",
66
+ "bin/webui/js/panels/lanes.js",
64
67
  "bin/webui/js/panels/runs.js",
65
68
  "bin/webui/js/panels/knowledge.js",
66
69
  "bin/webui/js/panels/stats.js",
@@ -72,6 +75,7 @@ const required = [
72
75
  "bin/webui/js/panels/maintenance.js",
73
76
  "bin/webui/js/panels/pact.js",
74
77
  "bin/webui/js/panels/boundary.js",
78
+ "bin/webui/js/panels/wait.js",
75
79
  "bin/webui/js/panels/handoff.js",
76
80
  "bin/webui/js/panels/challenge.js",
77
81
  "bin/webui/js/panels/docs.js",
@@ -84,11 +88,13 @@ const required = [
84
88
  "bin/webui/fixtures/index.js",
85
89
  "bin/webui/fixtures/shell.js",
86
90
  "bin/webui/fixtures/settings.js",
91
+ "bin/webui/fixtures/lanes.js",
87
92
  "bin/webui/fixtures/knowledge.js",
88
93
  "bin/webui/fixtures/runs.js",
89
94
  "bin/webui/fixtures/stats.js",
90
95
  "bin/webui/fixtures/pact.js",
91
96
  "bin/webui/fixtures/boundary.js",
97
+ "bin/webui/fixtures/wait.js",
92
98
  "bin/webui/fixtures/handoff.js",
93
99
  "bin/webui/fixtures/maintenance.js",
94
100
  "bin/webui/fixtures/challenge.js",
@@ -109,6 +115,7 @@ const required = [
109
115
  "bin/webui/i18n/en/banner.json",
110
116
  "bin/webui/i18n/en/overview.json",
111
117
  "bin/webui/i18n/en/settings.json",
118
+ "bin/webui/i18n/en/lanes.json",
112
119
  "bin/webui/i18n/en/runs.json",
113
120
  "bin/webui/i18n/en/knowledge.json",
114
121
  "bin/webui/i18n/en/stats.json",
@@ -119,6 +126,7 @@ const required = [
119
126
  "bin/webui/i18n/en/maintenance.json",
120
127
  "bin/webui/i18n/en/pact.json",
121
128
  "bin/webui/i18n/en/boundary.json",
129
+ "bin/webui/i18n/en/wait.json",
122
130
  "bin/webui/i18n/en/handoff.json",
123
131
  "bin/webui/i18n/en/challenge.json",
124
132
  "bin/webui/i18n/en/docs.json",
@@ -130,6 +138,7 @@ const required = [
130
138
  "bin/webui/i18n/id/banner.json",
131
139
  "bin/webui/i18n/id/overview.json",
132
140
  "bin/webui/i18n/id/settings.json",
141
+ "bin/webui/i18n/id/lanes.json",
133
142
  "bin/webui/i18n/id/runs.json",
134
143
  "bin/webui/i18n/id/knowledge.json",
135
144
  "bin/webui/i18n/id/stats.json",
@@ -140,6 +149,7 @@ const required = [
140
149
  "bin/webui/i18n/id/maintenance.json",
141
150
  "bin/webui/i18n/id/pact.json",
142
151
  "bin/webui/i18n/id/boundary.json",
152
+ "bin/webui/i18n/id/wait.json",
143
153
  "bin/webui/i18n/id/handoff.json",
144
154
  "bin/webui/i18n/id/challenge.json",
145
155
  "bin/webui/i18n/id/docs.json",
@@ -300,6 +310,63 @@ const required = [
300
310
  "templates/skills/orc-route/SKILL.md",
301
311
  "templates/skills/orc-explain/SKILL.md",
302
312
  "templates/skills/orc-analyze/references/thin-input.md",
313
+ // v1.0.0 W7 — the ONE config doc. `orc/config.md` stopped restating 72 key
314
+ // defaults and now points here for the ranks, the families, the gates, the
315
+ // `announce[]` boundary and the CLI-absent floor. A publish missing this file
316
+ // leaves every lane's `## Config` section pointing at nothing — and the
317
+ // fallback that is supposed to fire when the CLI cannot answer is exactly the
318
+ // moment there is no CLI to ask instead.
319
+ "templates/skills/_shared/config-precedence.md",
320
+ // v1.0.0 W11 — the phase library. The shared phase material already existed
321
+ // and was already shared; it just lived in ONE lane's private folder with 26
322
+ // other lanes reaching across into it. A publish missing any of these leaves
323
+ // every one of those lanes pointing at nothing — and `trace.md` in particular
324
+ // is the file that says how a run records itself, so its absence is silent by
325
+ // construction. README.md carries the CLOSED layer set, which is what stops a
326
+ // trimmed lane reading a full-lane procedure.
327
+ "templates/skills/_shared/phases/README.md",
328
+ "templates/skills/_shared/phases/trace.md",
329
+ "templates/skills/_shared/phases/preflight.md",
330
+ "templates/skills/_shared/phases/stop-resume.md",
331
+ // v1.0.0 W12 — the seven files that were already SHARED while living in one
332
+ // lane's private `references/`. Their consumers are measured, not believed:
333
+ // the C.6 lint asserts every declared reader really points at the file.
334
+ "templates/skills/_shared/phases/intake.md",
335
+ "templates/skills/_shared/phases/plan-handoff.md",
336
+ "templates/skills/_shared/phases/wave-grouping.md",
337
+ "templates/skills/_shared/phases/analyst-gates.md",
338
+ "templates/skills/_shared/phases/wiki-consult.md",
339
+ "templates/skills/_shared/phases/security-checklist.md",
340
+ "templates/skills/_shared/phases/house-rules.md",
341
+ // v1.0.0 W13 — the ten build phases orc-diy became the second reader of.
342
+ // Each carries TWO layers: `full` (/orc's procedure) and `composed` (what
343
+ // `orc diy compile` stitches). A publish missing one breaks BOTH lanes, and
344
+ // breaks orc-diy loudly — the compiler names the file and refuses.
345
+ "templates/skills/_shared/phases/planning.md",
346
+ "templates/skills/_shared/phases/scoring.md",
347
+ "templates/skills/_shared/phases/execution.md",
348
+ "templates/skills/_shared/phases/review.md",
349
+ "templates/skills/_shared/phases/security.md",
350
+ "templates/skills/_shared/phases/verify.md",
351
+ "templates/skills/_shared/phases/testgen.md",
352
+ "templates/skills/_shared/phases/mock-example.md",
353
+ "templates/skills/_shared/phases/summary.md",
354
+ "templates/skills/_shared/phases/ship.md",
355
+ // v1.0.0 W12 — /orc's own phase bodies, W13 — down to the two nothing else
356
+ // runs. The spine is loaded IN FULL on activation and these are loaded when
357
+ // their phase fires; a publish missing one leaves the manifest naming a file
358
+ // that is not there, which is a phase that silently does nothing.
359
+ "templates/skills/orc/references/phases/intake.md",
360
+ "templates/skills/orc/references/phases/integration.md",
361
+ // v1.0.0 W14 — orc-wiki's five phase bodies. A wiki run reaches FEW of them
362
+ // (Phase 0 auto-branches into fresh / resume / refresh / repair, 3c is a legacy
363
+ // backfill), which is what makes a file per phase pay here and not elsewhere.
364
+ // A publish missing one leaves the manifest naming a file that is not there.
365
+ "templates/skills/orc-wiki/references/phases/phase-0.md",
366
+ "templates/skills/orc-wiki/references/phases/phase-1.md",
367
+ "templates/skills/orc-wiki/references/phases/phase-2.md",
368
+ "templates/skills/orc-wiki/references/phases/phase-3.md",
369
+ "templates/skills/orc-wiki/references/phases/phase-3c.md",
303
370
  "templates/commands/orc-grill.md",
304
371
  "templates/commands/orc-route.md",
305
372
  "templates/commands/orc-explain.md",
@@ -377,11 +444,6 @@ const required = [
377
444
  // lint. Both are already Opus 5, so `opus5_only` adds no twin for either.
378
445
  "templates/agents/orc-doc-writer-opus-5-med.md",
379
446
  "templates/agents/orc-doc-checker-opus-5-low.md",
380
- "templates/agents/orc-analyst-fable-5.md",
381
- "templates/agents/orc-planner-fable-5.md",
382
- "templates/agents/orc-advisor-fable-5.md",
383
- "templates/agents/orc-judge-fable-5.md",
384
- "templates/agents/orc-reviewer-fable-5.md",
385
447
  "templates/hooks/orc-effort-guard.js",
386
448
  "templates/hooks/orc-statusline.js",
387
449
  "templates/hooks/orc-trace.js",
@@ -448,8 +510,16 @@ const agentCount = walkCount(path.join(ROOT, "templates/agents"), ".md");
448
510
  // one, and a key that let either be tuned would be a key that let the
449
511
  // instrument be broken. All five are claude-opus-5, so `opus5_only` adds NO
450
512
  // pair and the floor moves by exactly five.
513
+ // v1.0.0 W3: +0 skills and -5 agents — the Fable 5 role override is REMOVED.
514
+ // It is the first time this floor has ever gone DOWN, and the reason it may is
515
+ // that the five files are not a tier of anything: they were a whole second
516
+ // answer to "which model runs a role", competing with `opus5_only` for the same
517
+ // decision. Deleting them removes a rank from `fixed-role-model` rather than a
518
+ // capability from a lane. Fable 5 survives as a SESSION model (the effort guard
519
+ // and the statusline still clear it at medium) — that is a different question,
520
+ // and this wave does not touch it.
451
521
  if (skillCount < 38) missing.push(`templates/skills (expected >=38 SKILL.md, found ${skillCount})`);
452
- if (agentCount < 51) missing.push(`templates/agents (expected >=51 .md, found ${agentCount})`);
522
+ if (agentCount < 46) missing.push(`templates/agents (expected >=46 .md, found ${agentCount})`);
453
523
 
454
524
  // B4 — encoding/mojibake guard. The OneDrive corruption rule becomes a gate:
455
525
  // scan every shipped text file for the U+FFFD replacement char (invalid UTF-8