@azure-id/orc 1.9.2 → 2.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 (228) hide show
  1. package/CHANGELOG.md +722 -0
  2. package/README-id.md +56 -42
  3. package/README.md +58 -41
  4. package/bin/build-agents.js +125 -29
  5. package/bin/clear-logs.js +620 -0
  6. package/bin/cli.js +1873 -180
  7. package/bin/fix.js +459 -0
  8. package/bin/gotcha-import.js +1081 -0
  9. package/bin/gotcha.js +1566 -0
  10. package/bin/graph-query.js +1 -1
  11. package/bin/graph.js +717 -717
  12. package/bin/habit.js +1538 -0
  13. package/bin/mockrun-catalog.js +284 -276
  14. package/bin/onboarding-content.js +2 -1
  15. package/bin/pricing.json +28 -21
  16. package/bin/run-undo.js +398 -0
  17. package/bin/trace-write.js +869 -0
  18. package/bin/verify-contracts.js +627 -100
  19. package/bin/verify-package.js +68 -10
  20. package/bin/webui/api.js +151 -6
  21. package/bin/webui/app.html +239 -232
  22. package/bin/webui/css/00-tokens.css +110 -92
  23. package/bin/webui/css/04-motion.css +87 -0
  24. package/bin/webui/css/06-responsive.css +203 -178
  25. package/bin/webui/css/panels/behaviour.css +205 -0
  26. package/bin/webui/css/panels/hookui.css +79 -0
  27. package/bin/webui/fixtures/behaviour.js +562 -0
  28. package/bin/webui/fixtures/extra.js +9 -9
  29. package/bin/webui/fixtures/flow.js +81 -81
  30. package/bin/webui/fixtures/hookui.js +506 -431
  31. package/bin/webui/fixtures/index.js +66 -3
  32. package/bin/webui/fixtures/knowledge.js +9 -3
  33. package/bin/webui/fixtures/maintenance.js +123 -42
  34. package/bin/webui/fixtures/rules.js +1007 -1002
  35. package/bin/webui/fixtures/settings.js +6 -7
  36. package/bin/webui/fixtures/stats.js +25 -6
  37. package/bin/webui/fixtures/wait.js +98 -97
  38. package/bin/webui/i18n/en/behaviour.json +156 -0
  39. package/bin/webui/i18n/en/hookui.json +290 -194
  40. package/bin/webui/i18n/en/maintenance.json +71 -52
  41. package/bin/webui/i18n/en/nav.json +25 -24
  42. package/bin/webui/i18n/en/settings.json +60 -60
  43. package/bin/webui/i18n/en/tour.json +37 -35
  44. package/bin/webui/i18n/id/behaviour.json +156 -0
  45. package/bin/webui/i18n/id/hookui.json +290 -194
  46. package/bin/webui/i18n/id/maintenance.json +71 -52
  47. package/bin/webui/i18n/id/nav.json +25 -24
  48. package/bin/webui/i18n/id/settings.json +60 -60
  49. package/bin/webui/i18n/id/tour.json +37 -35
  50. package/bin/webui/js/01-i18n.js +155 -154
  51. package/bin/webui/js/05-banners.js +181 -172
  52. package/bin/webui/js/06-edit.js +193 -183
  53. package/bin/webui/js/90-tour.js +498 -494
  54. package/bin/webui/js/91-shortcuts.js +126 -126
  55. package/bin/webui/js/99-boot.js +121 -118
  56. package/bin/webui/js/panels/behaviour.js +1087 -0
  57. package/bin/webui/js/panels/hookui.js +2196 -1691
  58. package/bin/webui/js/panels/maintenance.js +336 -235
  59. package/bin/webui/js/panels/settings.js +726 -719
  60. package/mock-run/INDEX.md +110 -107
  61. package/mock-run/extra-slots.md +1 -1
  62. package/mock-run/gotcha-import.md +118 -0
  63. package/mock-run/habits.md +129 -0
  64. package/mock-run/orc-aftermath.md +392 -392
  65. package/mock-run/orc-budget.md +29 -33
  66. package/mock-run/orc-cli.md +200 -200
  67. package/mock-run/orc-explain.md +86 -86
  68. package/mock-run/orc-extra.md +389 -392
  69. package/mock-run/orc-fix.md +87 -0
  70. package/mock-run/orc-pattern.md +112 -112
  71. package/mock-run/orc-quick.md +6 -1
  72. package/mock-run/orc.md +157 -157
  73. package/package.json +1 -1
  74. package/templates/agents/MODEL-MAPPING.md +37 -34
  75. package/templates/agents/orc-advisor-opus-5-xhigh.md +1 -7
  76. package/templates/agents/orc-analyze-mini-opus-5-med.md +1 -6
  77. package/templates/agents/orc-analyze-mini-sonnet-5-high.md +2 -5
  78. package/templates/agents/{orc-claude-writer-opus-4-8-high.md → orc-claude-writer-opus-5-low.md} +48 -53
  79. package/templates/agents/orc-context-combiner-opus-5-high.md +1 -11
  80. package/templates/agents/orc-executor-haiku-4-5.md +14 -6
  81. package/templates/agents/orc-executor-opus-4-7-high.md +14 -6
  82. package/templates/agents/orc-executor-opus-4-7-med.md +14 -6
  83. package/templates/agents/orc-executor-opus-4-8-high.md +14 -6
  84. package/templates/agents/orc-executor-opus-5-high.md +14 -6
  85. package/templates/agents/orc-executor-opus-5-low.md +14 -6
  86. package/templates/agents/orc-executor-opus-5-med.md +14 -6
  87. package/templates/agents/orc-executor-sonnet-4-6-high.md +14 -6
  88. package/templates/agents/orc-executor-sonnet-4-6-med.md +14 -6
  89. package/templates/agents/orc-executor-sonnet-5-high.md +15 -7
  90. package/templates/agents/orc-executor-sonnet-5-low.md +155 -0
  91. package/templates/agents/orc-executor-sonnet-5-med.md +155 -0
  92. package/templates/agents/orc-graph-noter-sonnet-4-6-med.md +1 -10
  93. package/templates/agents/orc-judge-opus-5-xhigh.md +5 -9
  94. package/templates/agents/orc-learn-writer-opus-5-low.md +1 -7
  95. package/templates/agents/orc-pattern-codifier-opus-5-med.md +1 -8
  96. package/templates/agents/orc-pattern-codifier-sonnet-5-high.md +58 -63
  97. package/templates/agents/orc-planner-mini-opus-5-med.md +1 -4
  98. package/templates/agents/orc-planner-mini-sonnet-5-high.md +2 -3
  99. package/templates/agents/orc-planner-opus-5-med.md +1 -4
  100. package/templates/agents/orc-recon-opus-5-low.md +1 -8
  101. package/templates/agents/orc-recon-sonnet-4-6-med.md +1 -8
  102. package/templates/agents/orc-retro-opus-5-med.md +6 -8
  103. package/templates/agents/orc-retro-sonnet-5-high.md +7 -8
  104. package/templates/agents/orc-reviewer-opus-5-low.md +96 -0
  105. package/templates/agents/orc-scout-opus-5-low.md +1 -6
  106. package/templates/agents/orc-scout-sonnet-4-6-high.md +35 -39
  107. package/templates/agents/orc-system-analyst-opus-5-high.md +1 -6
  108. package/templates/agents/orc-test-author-opus-5-med.md +4 -5
  109. package/templates/agents/orc-trace-writer-haiku-4-5.md +3 -7
  110. package/templates/agents/orc-verifier-opus-5-med.md +16 -8
  111. package/templates/agents/{orc-wiki-scanner-opus-4-8-high.md → orc-wiki-scanner-opus-5-low.md} +74 -79
  112. package/templates/agents/orc-wiki-scanner-sonnet-5-high.md +97 -106
  113. package/templates/commands/orc-analyze.md +13 -21
  114. package/templates/commands/orc-fast.md +10 -15
  115. package/templates/commands/orc-fix.md +18 -0
  116. package/templates/commands/orc-poly.md +12 -21
  117. package/templates/commands/orc-pr-driver.md +11 -30
  118. package/templates/commands/orc-pr-setup.md +10 -31
  119. package/templates/commands/orc-route.md +11 -41
  120. package/templates/commands/orc-test.md +5 -60
  121. package/templates/commands/orc-wiki.md +64 -64
  122. package/templates/hooks/README.md +109 -7
  123. package/templates/hooks/orc-session-hook.js +339 -0
  124. package/templates/hooks/orc-statusline-render.js +317 -23
  125. package/templates/hooks/orc-statusline.js +165 -50
  126. package/templates/hooks/orc-subagent-line.js +23 -5
  127. package/templates/hooks/orc-weather-fetch.js +123 -0
  128. package/templates/skills/_shared/README.md +9 -0
  129. package/templates/skills/_shared/code-graph.md +47 -55
  130. package/templates/skills/_shared/config-precedence.md +3 -1
  131. package/templates/skills/_shared/extra-dispatch.md +78 -93
  132. package/templates/skills/_shared/gotchas.md +248 -177
  133. package/templates/skills/_shared/habits.md +101 -0
  134. package/templates/skills/_shared/lane-contract.md +84 -0
  135. package/templates/skills/_shared/opus5-only.md +14 -14
  136. package/templates/skills/_shared/phases/README.md +142 -83
  137. package/templates/skills/_shared/phases/analyst-gates.md +10 -21
  138. package/templates/skills/_shared/phases/execution.md +8 -14
  139. package/templates/skills/_shared/phases/house-rules.md +27 -32
  140. package/templates/skills/_shared/phases/intake.md +127 -133
  141. package/templates/skills/_shared/phases/mock-example.md +46 -56
  142. package/templates/skills/_shared/phases/plan-handoff.md +91 -97
  143. package/templates/skills/_shared/phases/planning.md +7 -17
  144. package/templates/skills/_shared/phases/preflight.md +19 -42
  145. package/templates/skills/_shared/phases/review.md +24 -28
  146. package/templates/skills/_shared/phases/rules.md +18 -42
  147. package/templates/skills/_shared/phases/scoring.md +55 -65
  148. package/templates/skills/_shared/phases/security-checklist.md +46 -50
  149. package/templates/skills/_shared/phases/security.md +45 -55
  150. package/templates/skills/_shared/phases/ship.md +6 -15
  151. package/templates/skills/_shared/phases/stop-resume.md +2 -5
  152. package/templates/skills/_shared/phases/summary.md +73 -48
  153. package/templates/skills/_shared/phases/testgen.md +41 -51
  154. package/templates/skills/_shared/phases/trace-verbs.md +447 -0
  155. package/templates/skills/_shared/phases/trace.md +66 -297
  156. package/templates/skills/_shared/phases/verify.md +62 -70
  157. package/templates/skills/_shared/phases/wave-grouping.md +128 -133
  158. package/templates/skills/_shared/phases/wiki-consult.md +10 -6
  159. package/templates/skills/_shared/read-ladder.md +2 -55
  160. package/templates/skills/_shared/return-validation.md +17 -70
  161. package/templates/skills/_shared/review-slice.md +106 -0
  162. package/templates/skills/_shared/smoke-gate.md +46 -28
  163. package/templates/skills/_shared/wait.md +1 -0
  164. package/templates/skills/context-combiner/SKILL.md +15 -44
  165. package/templates/skills/orc/README.md +2 -2
  166. package/templates/skills/orc/SKILL.md +35 -63
  167. package/templates/skills/orc/config.md +25 -27
  168. package/templates/skills/orc/examples/full-run-mock.md +2 -1
  169. package/templates/skills/orc/references/effort-and-mode.md +17 -17
  170. package/templates/skills/orc/references/pattern-gate.md +89 -89
  171. package/templates/skills/orc/references/phases/intake.md +41 -47
  172. package/templates/skills/orc/references/phases/integration.md +13 -19
  173. package/templates/skills/orc/references/preflight-report.md +11 -12
  174. package/templates/skills/orc/references/ultra-mode.md +9 -7
  175. package/templates/skills/orc/schemas/checkpoint.md +122 -122
  176. package/templates/skills/orc/subskills/orc-execution/SKILL.md +27 -73
  177. package/templates/skills/orc/subskills/orc-execution/core.md +12 -99
  178. package/templates/skills/orc/subskills/orc-execution/subagent.md +14 -13
  179. package/templates/skills/orc/subskills/orc-review-verify/SKILL.md +12 -53
  180. package/templates/skills/orc/subskills/orc-review-verify/core.md +52 -135
  181. package/templates/skills/orc/subskills/orc-review-verify/subagent.md +7 -7
  182. package/templates/skills/orc/subskills/orc-testgen/SKILL.md +11 -22
  183. package/templates/skills/orc/subskills/orc-testgen/core.md +20 -59
  184. package/templates/skills/orc/subskills/orc-testgen/subagent.md +7 -7
  185. package/templates/skills/orc-advisor/SKILL.md +56 -60
  186. package/templates/skills/orc-analyze/SKILL.md +33 -67
  187. package/templates/skills/orc-analyze/schemas/report-audit.md +2 -1
  188. package/templates/skills/orc-analyze/schemas/report-prose.md +2 -1
  189. package/templates/skills/orc-analyze-mini/SKILL.md +35 -70
  190. package/templates/skills/orc-claude/SKILL.md +14 -14
  191. package/templates/skills/orc-claude/examples/claude-run-mock.md +65 -65
  192. package/templates/skills/orc-diy/README.md +31 -0
  193. package/templates/skills/orc-diy/SKILL.md +27 -78
  194. package/templates/skills/orc-diy/references/blocks/pattern.md +18 -18
  195. package/templates/skills/orc-fast/SKILL.md +49 -75
  196. package/templates/skills/orc-fix/SKILL.md +110 -0
  197. package/templates/skills/orc-judge/SKILL.md +77 -82
  198. package/templates/skills/orc-mini/SKILL.md +64 -112
  199. package/templates/skills/orc-mini/examples/mini-run-mock.md +4 -2
  200. package/templates/skills/orc-pattern/SKILL.md +27 -48
  201. package/templates/skills/orc-poly/SKILL.md +32 -61
  202. package/templates/skills/orc-pr-driver/SKILL.md +25 -51
  203. package/templates/skills/orc-pr-driver/references/green-gate.md +113 -105
  204. package/templates/skills/orc-pr-setup/SKILL.md +20 -45
  205. package/templates/skills/orc-quick/README.md +44 -3
  206. package/templates/skills/orc-quick/SKILL.md +77 -108
  207. package/templates/skills/orc-quick/references/dispatch-gate.md +18 -6
  208. package/templates/skills/orc-quick/references/gh-mode.md +50 -1
  209. package/templates/skills/orc-quick/references/look.md +3 -1
  210. package/templates/skills/orc-retro/SKILL.md +20 -19
  211. package/templates/skills/orc-retro/examples/retro-mock.md +17 -17
  212. package/templates/skills/orc-route/SKILL.md +25 -45
  213. package/templates/skills/orc-test/SKILL.md +16 -37
  214. package/templates/skills/orc-verify/SKILL.md +14 -32
  215. package/templates/skills/orc-wait/SKILL.md +156 -163
  216. package/templates/skills/orc-wiki/README.md +325 -325
  217. package/templates/skills/orc-wiki/SKILL.md +195 -195
  218. package/templates/skills/orc-wiki/examples/wiki-run-mock.md +37 -37
  219. package/templates/skills/orc-wiki/references/extra.md +2 -2
  220. package/templates/skills/orc-wiki/references/partial-refresh.md +276 -271
  221. package/templates/skills/orc-wiki/references/phases/phase-0.md +2 -7
  222. package/templates/skills/orc-wiki/references/phases/phase-1.md +1 -6
  223. package/templates/skills/orc-wiki/references/phases/phase-2.md +4 -9
  224. package/templates/skills/orc-wiki/references/phases/phase-3.md +1 -6
  225. package/templates/skills/orc-wiki/references/phases/phase-3c.md +4 -8
  226. package/templates/agents/orc-claude-writer-opus-5-med.md +0 -55
  227. package/templates/agents/orc-reviewer-opus-5-med.md +0 -60
  228. package/templates/agents/orc-wiki-scanner-opus-5-med.md +0 -81
package/mock-run/INDEX.md CHANGED
@@ -1,107 +1,110 @@
1
- # Mocked runs — what each ORC lane looks like when it runs
2
-
3
- New to ORC? Start here. Every file below is a **mocked run**: the screen you
4
- would see, the questions you would be asked, and the files that would land on
5
- disk — written the way the real lane writes them.
6
-
7
- Nothing here was executed. It is documentation, and it is here because you
8
- should not have to spend tokens to find out what a command does.
9
-
10
- All of it uses **easy English**, short sentences, and the same fake project.
11
-
12
- > **Read it in the panel instead:** `orc ui` ▸ **Mocked Skill Use** — the same
13
- > documents, searchable, with a reading pane. From the terminal:
14
- > `orc mock-run list` and `orc mock-run show <slug>`.
15
-
16
- ---
17
-
18
- ## Start here
19
-
20
- | Doc | What it shows |
21
- |---|---|
22
- | [The example project](the-example-project.md) | `shopcart`, the fake project every mock uses, and how to read these files |
23
- | [A normal day](a-normal-day.md) | `/orc-pact`, `/orc-boundary`, `/orc-budget`, `/orc-aftermath` and the rest, all inside one ordinary run |
24
-
25
- ## Build a change
26
-
27
- | Doc | Lane | One line |
28
- |---|---|---|
29
- | [orc](orc.md) | `/orc` | The full pipeline: intake → plan → score → parallel waves → review → verify → ship |
30
- | [orc-ultra](orc-ultra.md) | `/orc-ultra` | The same, plus an advisor and three judgment gates. Costs the most |
31
- | [orc-mini](../templates/skills/orc-mini/examples/mini-run-mock.md) | `/orc-mini` | One executor, a smoke gate, ship |
32
- | [orc-fast](orc-fast.md) | `/orc-fast` | No analyst, no planner — the wiki and the pattern already did that work |
33
- | [orc-quick](orc-quick.md) | `/orc-quick` | Ask for anything. Look → ask once → do, and it always asks which agent |
34
- | [orc-diy](orc-diy.md) | `/orc-diy` | Your own lane, composed in the terminal and compiled |
35
-
36
- ## Decide what to build
37
-
38
- | Doc | Lane | One line |
39
- |---|---|---|
40
- | [orc-brainstorm](orc-brainstorm.md) | `/orc-brainstorm` | No idea yet: it generates the options and **you** pick |
41
- | [orc-grill](orc-grill.md) | `/orc-grill` | One vague idea, sharpened by questions — it never answers its own |
42
- | [orc-doc](orc-doc.md) | `/orc-doc` | A PRD, TSD, agreement, report or runbook — written in parts, so nothing holds it all |
43
- | [orc-plan](orc-plan.md) | `/orc-plan` | A real task plan: grounded files, dependencies, facets, test dispositions |
44
- | [orc-route](orc-route.md) | `/orc-route` | You have a plan — which lane should build it, and which cannot |
45
- | [orc-explain](orc-explain.md) | `/orc-explain` | "Wait, what?" — it says the last message again, properly |
46
- | [orc-analyze](../templates/skills/orc-analyze/examples/analyze-mock.md) | `/orc-analyze` | A document turned into code-grounded requirements |
47
- | [orc-analyze-mini](../templates/skills/orc-analyze-mini/examples/quick-analysis-mock.md) | *(inside `/orc-mini`)* | The same, single pass, much cheaper |
48
- | [context-combiner](context-combiner.md) | — | Two related analyses merged into one spec, with a 100% conservation gate |
49
- | [orc-poly](../templates/skills/orc-poly/examples/poly-run-mock.md) | `/orc-poly` | One change across two or more repos, without drift |
50
-
51
- ## Teach ORC your project
52
-
53
- | Doc | Lane | One line |
54
- |---|---|---|
55
- | [orc-rules](orc-rules.md) | `orc rules` | The anti-slop rules: 65 shipped read-only, plus your own, which win |
56
- | [orc-wiki](../templates/skills/orc-wiki/examples/wiki-run-mock.md) | `/orc-wiki` | Scan the codebase into an evidence-anchored knowledge base |
57
- | [orc-pattern](orc-pattern.md) | `/orc-pattern` | Learn your real conventions so executors match your house style |
58
- | [orc-learn](../templates/skills/orc-learn/examples/learn-run-mock.md) | `/orc-learn` | Onboarding docs for a human, per feature |
59
- | [orc-claude](../templates/skills/orc-claude/examples/claude-run-mock.md) | `/orc-claude` | Build or refresh this repo's `CLAUDE.md` from verified facts |
60
- | [orc-export](orc-export.md) | `/orc-export` | Compile it all into a portable `AGENTS.md` so ORC is not a trap |
61
-
62
- ## Check what happened
63
-
64
- | Doc | Lane | One line |
65
- |---|---|---|
66
- | [orc-verify](../templates/skills/orc-verify/examples/verify-mock.md) | `/orc-verify` | Verify only your git-modified changes. Read-only |
67
- | [orc-challenge](orc-challenge.md) | `/orc-challenge` | Grade a finished document, then stop and make you fix it in another session |
68
- | [orc-challenge-council](orc-challenge-council.md) | `/orc-challenge` | Six more ways of looking at the same document — and you choose which ones run |
69
- | [orc-pact](orc-pact.md) | `/orc-pact` | The promises your system makes, and which are in doubt right now |
70
- | [orc-boundary](orc-boundary.md) | `/orc-boundary` | What the agent should **not** try here, and what would change that |
71
- | [orc-aftermath](orc-aftermath.md) | `/orc-aftermath` | Did what we shipped hold up. Churn is a signal, never a verdict |
72
- | [orc-budget](orc-budget.md) | `/orc-budget` | What a run costs, in the unit you are billed in |
73
- | [orc-retro](../templates/skills/orc-retro/examples/retro-mock.md) | `/orc-retro` | Mine the behavior traces into a calibration report |
74
-
75
- ## Ship and hand over
76
-
77
- | Doc | Lane | One line |
78
- |---|---|---|
79
- | [orc-pr-setup / orc-pr-driver](orc-pr-setup.md) | `/orc-pr-setup`, `/orc-pr-driver` | Split a big change into a stack of PRs, then build and merge them |
80
- | [orc-handoff](orc-handoff.md) | `/orc-handoff` | What a non-developer can safely change, graded by whether a check exists |
81
-
82
- ## Panel and terminal
83
-
84
- | Doc | One line |
85
- |---|---|
86
- | [orc-ui](orc-ui.md) | The local control panel for everything that is not ai (**video placeholder here**) |
87
- | [orc-cli](orc-cli.md) | The terminal commands: install, config, probes, run state, stats |
88
- | [orc-extra](orc-extra.md) | Run some of ORC's work on a different AI model, and still know what left your machine |
89
- | [extra-recovery](extra-recovery.md) | When that other model stops half-way: what it left on disk, whose fault it was, and how to continue |
90
- | [extra-slots](extra-slots.md) | The four lanes that never score a task: giving one JOB to a cheaper model, and what ORC says before it does |
91
-
92
- ---
93
-
94
- ## Two kinds of document
95
-
96
- - **Walkthroughs** (this folder) — written for a person, in easy English.
97
- - **Annotated examples** (`templates/skills/<skill>/examples/`) — dense, written
98
- for the model, and shipped inside your `.claude/` install. Both appear in
99
- `orc mock-run list` and in the **Mocked Skill Use** panel.
100
-
101
- ## Adding one
102
-
103
- Drop a `.md` file in this folder with a `# Title` heading and a `> one line`
104
- summary under it. It appears in `orc mock-run`, in the panel, and here — no list
105
- to update anywhere else. Reading order comes from `GROUP_OF` in
106
- [`bin/mockrun-catalog.js`](../bin/mockrun-catalog.js); a file nobody placed
107
- there still shows, under **More**.
1
+ # Mocked runs — what each ORC lane looks like when it runs
2
+
3
+ New to ORC? Start here. Every file below is a **mocked run**: the screen you
4
+ would see, the questions you would be asked, and the files that would land on
5
+ disk — written the way the real lane writes them.
6
+
7
+ Nothing here was executed. It is documentation, and it is here because you
8
+ should not have to spend tokens to find out what a command does.
9
+
10
+ All of it uses **easy English**, short sentences, and the same fake project.
11
+
12
+ > **Read it in the panel instead:** `orc ui` ▸ **Mocked Skill Use** — the same
13
+ > documents, searchable, with a reading pane. From the terminal:
14
+ > `orc mock-run list` and `orc mock-run show <slug>`.
15
+
16
+ ---
17
+
18
+ ## Start here
19
+
20
+ | Doc | What it shows |
21
+ |---|---|
22
+ | [The example project](the-example-project.md) | `shopcart`, the fake project every mock uses, and how to read these files |
23
+ | [A normal day](a-normal-day.md) | `/orc-pact`, `/orc-boundary`, `/orc-budget`, `/orc-aftermath` and the rest, all inside one ordinary run |
24
+
25
+ ## Build a change
26
+
27
+ | Doc | Lane | One line |
28
+ |---|---|---|
29
+ | [orc](orc.md) | `/orc` | The full pipeline: intake → plan → score → parallel waves → review → verify → ship |
30
+ | [orc-ultra](orc-ultra.md) | `/orc-ultra` | The same, plus an advisor and three judgment gates. Costs the most |
31
+ | [orc-mini](../templates/skills/orc-mini/examples/mini-run-mock.md) | `/orc-mini` | One executor, a smoke gate, ship |
32
+ | [orc-fast](orc-fast.md) | `/orc-fast` | No analyst, no planner — the wiki and the pattern already did that work |
33
+ | [orc-quick](orc-quick.md) | `/orc-quick` | Ask for anything. Look → ask once → do, and it always asks which agent |
34
+ | [orc-diy](orc-diy.md) | `/orc-diy` | Your own lane, composed in the terminal and compiled |
35
+
36
+ ## Decide what to build
37
+
38
+ | Doc | Lane | One line |
39
+ |---|---|---|
40
+ | [orc-brainstorm](orc-brainstorm.md) | `/orc-brainstorm` | No idea yet: it generates the options and **you** pick |
41
+ | [orc-grill](orc-grill.md) | `/orc-grill` | One vague idea, sharpened by questions — it never answers its own |
42
+ | [orc-doc](orc-doc.md) | `/orc-doc` | A PRD, TSD, agreement, report or runbook — written in parts, so nothing holds it all |
43
+ | [orc-plan](orc-plan.md) | `/orc-plan` | A real task plan: grounded files, dependencies, facets, test dispositions |
44
+ | [orc-route](orc-route.md) | `/orc-route` | You have a plan — which lane should build it, and which cannot |
45
+ | [orc-explain](orc-explain.md) | `/orc-explain` | "Wait, what?" — it says the last message again, properly |
46
+ | [orc-analyze](../templates/skills/orc-analyze/examples/analyze-mock.md) | `/orc-analyze` | A document turned into code-grounded requirements |
47
+ | [orc-analyze-mini](../templates/skills/orc-analyze-mini/examples/quick-analysis-mock.md) | *(inside `/orc-mini`)* | The same, single pass, much cheaper |
48
+ | [context-combiner](context-combiner.md) | — | Two related analyses merged into one spec, with a 100% conservation gate |
49
+ | [orc-poly](../templates/skills/orc-poly/examples/poly-run-mock.md) | `/orc-poly` | One change across two or more repos, without drift |
50
+
51
+ ## Teach ORC your project
52
+
53
+ | Doc | Lane | One line |
54
+ |---|---|---|
55
+ | [orc-rules](orc-rules.md) | `orc rules` | The anti-slop rules: 65 shipped read-only, plus your own, which win |
56
+ | [orc-wiki](../templates/skills/orc-wiki/examples/wiki-run-mock.md) | `/orc-wiki` | Scan the codebase into an evidence-anchored knowledge base |
57
+ | [orc-pattern](orc-pattern.md) | `/orc-pattern` | Learn your real conventions so executors match your house style |
58
+ | [orc-learn](../templates/skills/orc-learn/examples/learn-run-mock.md) | `/orc-learn` | Onboarding docs for a human, per feature |
59
+ | [orc-claude](../templates/skills/orc-claude/examples/claude-run-mock.md) | `/orc-claude` | Build or refresh this repo's `CLAUDE.md` from verified facts |
60
+ | [orc-export](orc-export.md) | `/orc-export` | Compile it all into a portable `AGENTS.md` so ORC is not a trap |
61
+ | [habits](habits.md) | `orc habit` | The answers you keep giving, proposed once at the end of a run. Off by default, never applied without your yes |
62
+ | [gotcha-import](gotcha-import.md) | `orc gotcha import` | Teach the repair memory from SARIF, Sonar, PR threads and closed defects |
63
+
64
+ ## Check what happened
65
+
66
+ | Doc | Lane | One line |
67
+ |---|---|---|
68
+ | [orc-verify](../templates/skills/orc-verify/examples/verify-mock.md) | `/orc-verify` | Verify only your git-modified changes. Read-only |
69
+ | [orc-challenge](orc-challenge.md) | `/orc-challenge` | Grade a finished document, then stop and make you fix it in another session |
70
+ | [orc-challenge-council](orc-challenge-council.md) | `/orc-challenge` | Six more ways of looking at the same document — and you choose which ones run |
71
+ | [orc-pact](orc-pact.md) | `/orc-pact` | The promises your system makes, and which are in doubt right now |
72
+ | [orc-boundary](orc-boundary.md) | `/orc-boundary` | What the agent should **not** try here, and what would change that |
73
+ | [orc-aftermath](orc-aftermath.md) | `/orc-aftermath` | Did what we shipped hold up. Churn is a signal, never a verdict |
74
+ | [orc-budget](orc-budget.md) | `/orc-budget` | What a run costs, in the unit you are billed in |
75
+ | [orc-retro](../templates/skills/orc-retro/examples/retro-mock.md) | `/orc-retro` | Mine the behavior traces into a calibration report |
76
+ | [orc-fix](orc-fix.md) | `/orc-fix` | Record a fix and what it fixes, so the next review sees it — and see what a review missed |
77
+
78
+ ## Ship and hand over
79
+
80
+ | Doc | Lane | One line |
81
+ |---|---|---|
82
+ | [orc-pr-setup / orc-pr-driver](orc-pr-setup.md) | `/orc-pr-setup`, `/orc-pr-driver` | Split a big change into a stack of PRs, then build and merge them |
83
+ | [orc-handoff](orc-handoff.md) | `/orc-handoff` | What a non-developer can safely change, graded by whether a check exists |
84
+
85
+ ## Panel and terminal
86
+
87
+ | Doc | One line |
88
+ |---|---|
89
+ | [orc-ui](orc-ui.md) | The local control panel for everything that is not ai (**video placeholder here**) |
90
+ | [orc-cli](orc-cli.md) | The terminal commands: install, config, probes, run state, stats |
91
+ | [orc-extra](orc-extra.md) | Run some of ORC's work on a different AI model, and still know what left your machine |
92
+ | [extra-recovery](extra-recovery.md) | When that other model stops half-way: what it left on disk, whose fault it was, and how to continue |
93
+ | [extra-slots](extra-slots.md) | The four lanes that never score a task: giving one JOB to a cheaper model, and what ORC says before it does |
94
+
95
+ ---
96
+
97
+ ## Two kinds of document
98
+
99
+ - **Walkthroughs** (this folder) — written for a person, in easy English.
100
+ - **Annotated examples** (`templates/skills/<skill>/examples/`) — dense, written
101
+ for the model, and shipped inside your `.claude/` install. Both appear in
102
+ `orc mock-run list` and in the **Mocked Skill Use** panel.
103
+
104
+ ## Adding one
105
+
106
+ Drop a `.md` file in this folder with a `# Title` heading and a `> one line`
107
+ summary under it. It appears in `orc mock-run`, in the panel, and here — no list
108
+ to update anywhere else. Reading order comes from `GROUP_OF` in
109
+ [`bin/mockrun-catalog.js`](../bin/mockrun-catalog.js); a file nobody placed
110
+ there still shows, under **More**.
@@ -49,7 +49,7 @@ ORC · extra — the positions
49
49
  fast-executor claude · orc-executor-sonnet-4-6-high /orc-fast
50
50
  doc-writer claude · orc-doc-writer-opus-5-med /orc-doc
51
51
  doc-checker claude · orc-doc-checker-opus-5-low /orc-doc
52
- wiki-scanner-deep claude · orc-wiki-scanner-opus-4-8-high /orc-wiki
52
+ wiki-scanner-deep claude · orc-wiki-scanner-opus-5-low /orc-wiki
53
53
  wiki-scanner-light claude · orc-wiki-scanner-sonnet-5-high /orc-wiki
54
54
 
55
55
  what each position is
@@ -0,0 +1,118 @@
1
+ # Mock run — gotcha import and sync (`orc gotcha`)
2
+
3
+ > Teach the repair memory from what your tools and your reviewers already
4
+ > said: SARIF, Sonar, PR threads and closed defects. No model, and nothing is
5
+ > written to GitHub.
6
+
7
+ ---
8
+
9
+ ## 1. What it does
10
+
11
+ Gotchas are ORC's repair memory: what this project already got wrong, and how
12
+ it was fixed. Before 2.0.0 only a red → green inside a run could add one. Now
13
+ the CLI also reads four outside sources and turns each finding into an
14
+ **observation** in `.claude/orc/observations.jsonl`.
15
+
16
+ An observation is not an entry yet. A candidate becomes an entry only by a
17
+ fixed rule — or when you promote it yourself. The reviewer then gets a short
18
+ **card** of the entries that match the files it reviews.
19
+
20
+ ---
21
+
22
+ ## 2. Import once, from each source
23
+
24
+ ```
25
+ $ orc gotcha import sarif reports/eslint.sarif
26
+ sarif · ESLint · 14 results · 1 suppressed (skipped) · 13 observations
27
+ new since the last ESLint import: 4
28
+
29
+ $ export SONAR_TOKEN=… # the token is never a config key
30
+ $ orc config set sonar_url https://sonarcloud.io
31
+ $ orc config set sonar_project shopcart
32
+ $ orc config set sonar_org shopcart-team
33
+ $ orc gotcha import sonar --branch main
34
+ sonar · 9 issues · 9 observations
35
+
36
+ $ orc gotcha import pr 212
37
+ pr #212 · 6 threads · 5 by people, 1 by a bot (measured, not recorded)
38
+ 5 observations (3 addressed · 1 disputed · 1 open)
39
+
40
+ $ orc gotcha import issues --label bug
41
+ issues · 4 closed defects with a closing PR · 4 observations
42
+ ```
43
+
44
+ Every import is read-only. `gh` is used only to read, and a test with a fake
45
+ `gh` proves that no call writes.
46
+
47
+ ---
48
+
49
+ ## 3. Keep it fresh
50
+
51
+ ```
52
+ $ orc gotcha sync
53
+ sarif nothing new
54
+ sonar 2 new issues
55
+ pr #214: 1 new thread
56
+ issues nothing new
57
+ synced · 3 observations · next sync due in 6 h (gotcha_sync_hours)
58
+ ```
59
+
60
+ `sync` runs every source that is available, reads only what is new, and has a
61
+ time limit. The review step of a lane runs it too. If a source fails, the lane
62
+ goes on — a failed import never blocks a review.
63
+
64
+ ---
65
+
66
+ ## 4. From observations to an entry
67
+
68
+ ```
69
+ $ orc gotcha list --candidates
70
+ C-004 money rounding in cart totals 3 addressed cases in 2 PRs → promoted as G-017
71
+ C-007 missing await on db.save 2 addressed cases in 1 PR needs 1 more case in 1 more PR
72
+ C-009 "prefer template literals" 4 disputed proposed suppression
73
+
74
+ $ orc gotcha accept C-007
75
+ C-007 → G-018 (promoted by a person)
76
+ ```
77
+
78
+ The fixed rule promotes a candidate on ONE of these:
79
+
80
+ - a red → green inside a lane, with a reproduction;
81
+ - a miss — an ORC review read those lines and did not flag them;
82
+ - a security finding with a CWE tag or a HIGH impact (one case is enough);
83
+ - 3 addressed cases in 2 PRs within 90 days.
84
+
85
+ ---
86
+
87
+ ## 5. What the reviewer sees
88
+
89
+ ```
90
+ $ orc gotcha card --files src/cart/total.ts
91
+ gotchas · 2 of 18 match · budget 600 tokens · 0 dropped
92
+ G-017 money rounding in cart totals — round once, at the end, in cents
93
+ G-011 totals cached across currency switch — clear on currency change
94
+ ```
95
+
96
+ The card is always on. `gotcha_card_budget` sets its size (600 tokens, at
97
+ least 200). An entry that does not fit is counted in the header, never dropped
98
+ in silence.
99
+
100
+ ---
101
+
102
+ ## 6. What to notice
103
+
104
+ - **People teach, bots are measured.** A bot comment is counted for quality,
105
+ but it never becomes an entry by itself.
106
+ - **`orc gotcha filter` never removes a P0 or a P1.** It removes only
107
+ suppressed, folded and noisy advice.
108
+ - **Your v1 file stays valid.** `gotchas.md` is not rewritten, and ORC 1.9.2
109
+ can still read the file 2.0.0 writes.
110
+ - **Quality is measured.** `orc gotcha quality` shows the acceptance per
111
+ category after five reviews, and `orc ui` ▸ **Behaviour** draws it.
112
+
113
+ ---
114
+
115
+ ## 7. Related
116
+
117
+ - The full guide: [`guides/habits-and-gotchas.md`](../guides/habits-and-gotchas.md)
118
+ - A normal run that uses the card: [orc](orc.md)
@@ -0,0 +1,129 @@
1
+ # Mock run — habits (`orc habit`)
2
+
3
+ > You keep giving the same answer to the same question. ORC notices, asks you
4
+ > ONCE at the end of a run, and applies nothing without your yes.
5
+
6
+ ---
7
+
8
+ ## 1. What it does
9
+
10
+ Every lane asks you questions: review first or commit now, use TDD or not,
11
+ open a PR or commit only. Some of those answers are the same every time.
12
+
13
+ With habits on, each answer writes one `ASK` line into the run's trace. The
14
+ CLI (`orc habit`, no model) counts those lines. When one answer is clearly your
15
+ usual, it proposes it — once, at the end of a run, inside the questions the
16
+ lane already asks.
17
+
18
+ Habits are **off by default**. Off costs zero tokens: no line is written, no
19
+ question changes, and `orc lane config --json` has no habits field.
20
+
21
+ ---
22
+
23
+ ## 2. Turn it on
24
+
25
+ ```
26
+ $ orc config set habits propose
27
+ habits: off → propose
28
+ ORC now writes one ASK line per answered question. At the end of a run it may
29
+ ask ONE question. Nothing is applied without your yes.
30
+ ```
31
+
32
+ `observe` is the quieter step: ORC counts, and `orc habit show` tells you what
33
+ it sees, but it never proposes.
34
+
35
+ ---
36
+
37
+ ## 3. Six runs later
38
+
39
+ You ran `/orc-quick` six times on `shopcart`. Each time, at the Q3 offers, you
40
+ chose **review first**. The seventh run opens with the usual preflight lines,
41
+ plus one more:
42
+
43
+ ```
44
+ habits: propose — 0 learned, 0 usual mark(s), 1 proposal for the end of the run
45
+ ```
46
+
47
+ The work runs as normal. The dispatch gate still asks which agent to use —
48
+ every time, with or without habits. At the end, the proposal is ONE line in
49
+ the offers you already get:
50
+
51
+ ```
52
+ Entry 7 written to orc-quick/cart-rounding/quick-context.md
53
+
54
+ 1 review first dispatch orc-reviewer-opus-5-low on the diff
55
+ 2 commit directly
56
+ 3 stop
57
+
58
+ You chose review first in 6 of your last 6 answers to "Code review before
59
+ commit". Make it your usual? [yes · not now · never]
60
+
61
+ > 1, and yes
62
+ ```
63
+
64
+ ORC runs the command that the `lane config` answer named for "yes". Nothing
65
+ else changes in this run.
66
+
67
+ ---
68
+
69
+ ## 4. The next run
70
+
71
+ ```
72
+ habits: propose — 0 learned, 1 usual mark(s), no proposal
73
+ ```
74
+
75
+ ```
76
+ 1 review → then commit → usual (6 of 6)
77
+ 2 commit without review
78
+ 3 stop
79
+ ```
80
+
81
+ The usual answer is FIRST and marked. It is not pre-selected: the question is
82
+ still asked, and the review is still a dispatch, so its gate still asks which
83
+ agent.
84
+
85
+ ---
86
+
87
+ ## 5. Look at it, and undo it
88
+
89
+ ```
90
+ $ orc habit show
91
+ mode propose · window 30d · 7 runs · 7 answers
92
+
93
+ H-3f9a2c Code review before commit applied 6 of 6
94
+ You chose review first in 6 of your last 6 answers to "Code review
95
+ before commit".
96
+ rule: Wilson95 LB 0.61 (n_eff 6, raw n 6) — proposes at ≥ 0.55 with
97
+ n ≥ 5 and the last 3 agreeing
98
+ undo: orc habit forget H-3f9a2c
99
+
100
+ $ orc habit why H-3f9a2c # every ASK line behind it
101
+ $ orc habit forget H-3f9a2c # back to asking with no mark
102
+ ```
103
+
104
+ `orc ui` ▸ **Behaviour** shows the same rows, with the buttons the CLI allows.
105
+
106
+ ---
107
+
108
+ ## 6. What to notice
109
+
110
+ - **Nothing is applied without your yes.** There is no automatic level, and
111
+ `orc config set habits auto` is refused by name.
112
+ - **A habit moves only toward the careful side.** A habit can turn
113
+ `review_before_push`, `mini_tdd` or `quick_update_tests` to `on`. A habit to
114
+ skip a review, drop TDD or continue on a stale wiki is never applied.
115
+ - **Your config file wins.** An accepted habit is the `learned` rank, below
116
+ `.claude/orc.config.yaml`. `orc config set` always beats it.
117
+ - **Your words are never stored.** An answer in your own words is recorded as
118
+ `chose=other`.
119
+ - **A habit can go stale.** Two overrides in the last three answers, or 90 days
120
+ without use, and ORC asks again at the end of a run.
121
+ - **Old runs do not count.** Traces from before 2.0.0 have no `ASK` lines, so
122
+ habits start at `none yet`.
123
+
124
+ ---
125
+
126
+ ## 7. Related
127
+
128
+ - The full guide: [`guides/habits-and-gotchas.md`](../guides/habits-and-gotchas.md)
129
+ - The quick lane: [orc-quick](orc-quick.md)