@azure-id/orc 2.1.0 → 2.2.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.
- package/CHANGELOG.md +374 -0
- package/README.md +49 -36
- package/bin/build-agents.js +7 -5
- package/bin/cli.js +1006 -235
- package/bin/fix.js +21 -18
- package/bin/graph-extract.js +314 -6
- package/bin/graph-gain.js +83 -2
- package/bin/graph-map.js +23 -1
- package/bin/graph-notes.js +1 -1
- package/bin/graph-query.js +1362 -37
- package/bin/graph-resolve.js +1 -1
- package/bin/graph-shard.js +29 -6
- package/bin/graph-signals.js +5 -3
- package/bin/graph.js +7 -3
- package/bin/habit.js +1 -1
- package/bin/pricing.json +8 -1
- package/bin/trace-write.js +40 -11
- package/bin/verify-contracts.js +169 -60
- package/bin/verify-package.js +3 -3
- package/bin/webui/api.js +8 -0
- package/bin/webui/fixtures/extra.js +9 -9
- package/bin/webui/fixtures/flow.js +1 -1
- package/bin/webui/fixtures/index.js +2 -2
- package/bin/webui/fixtures/knowledge.js +8 -1
- package/bin/webui/fixtures/pact.js +112 -111
- package/bin/webui/fixtures/stats.js +2 -2
- package/bin/webui/i18n/en/knowledge.json +2 -0
- package/bin/webui/i18n/id/knowledge.json +2 -0
- package/bin/webui/js/panels/knowledge.js +17 -0
- package/guides/code-graph-benefit.md +116 -0
- package/guides/configuration.md +150 -0
- package/guides/documents.md +262 -0
- package/guides/extra-models.md +448 -0
- package/guides/habits-and-gotchas.md +152 -0
- package/guides/knowledge-reads.md +190 -0
- package/guides/model-selection.md +186 -0
- package/guides/rules.md +305 -0
- package/guides/status-line.md +344 -0
- package/mock-run/a-normal-day.md +2 -2
- package/mock-run/extra-slots.md +177 -177
- package/mock-run/orc-cli.md +3 -2
- package/mock-run/orc-doc.md +452 -448
- package/mock-run/orc-fast.md +2 -2
- package/mock-run/orc-quick.md +146 -146
- package/mock-run/orc.md +4 -4
- package/package.json +2 -1
- package/templates/agents/MODEL-MAPPING.md +12 -12
- package/templates/agents/{orc-executor-haiku-4-5.md → orc-executor-haiku-5-high.md} +21 -8
- package/templates/agents/orc-executor-opus-4-7-high.md +17 -5
- package/templates/agents/orc-executor-opus-4-7-med.md +17 -5
- package/templates/agents/orc-executor-opus-4-8-high.md +17 -5
- package/templates/agents/orc-executor-opus-5-high.md +17 -5
- package/templates/agents/orc-executor-opus-5-low.md +17 -5
- package/templates/agents/orc-executor-opus-5-med.md +17 -5
- package/templates/agents/orc-executor-sonnet-4-6-high.md +17 -5
- package/templates/agents/orc-executor-sonnet-5-high.md +17 -5
- package/templates/agents/orc-executor-sonnet-5-low.md +17 -5
- package/templates/agents/orc-executor-sonnet-5-med.md +17 -5
- package/templates/agents/{orc-graph-noter-sonnet-4-6-med.md → orc-graph-noter-haiku-5-high.md} +4 -4
- package/templates/agents/orc-planner-mini-opus-5-med.md +3 -1
- package/templates/agents/orc-planner-mini-sonnet-5-high.md +3 -1
- package/templates/agents/orc-planner-opus-5-med.md +3 -1
- package/templates/agents/{orc-recon-sonnet-4-6-med.md → orc-recon-sonnet-5-med.md} +4 -4
- package/templates/agents/{orc-trace-writer-haiku-4-5.md → orc-trace-writer-haiku-5-high.md} +4 -3
- package/templates/commands/orc-doc.md +128 -128
- package/templates/commands/orc-export.md +51 -46
- package/templates/commands/orc-fast.md +10 -10
- package/templates/hooks/README.md +8 -3
- package/templates/hooks/orc-effort-guard.js +105 -27
- package/templates/hooks/orc-graph-hook.js +252 -4
- package/templates/hooks/orc-statusline.js +13 -6
- package/templates/hooks/orc-trace.js +1 -1
- package/templates/skills/_shared/README.md +2 -2
- package/templates/skills/_shared/code-graph.md +185 -251
- package/templates/skills/_shared/extra-dispatch.md +4 -4
- package/templates/skills/_shared/lane-contract.md +7 -3
- package/templates/skills/_shared/opus5-only.md +3 -3
- package/templates/skills/_shared/phases/execution.md +13 -11
- package/templates/skills/_shared/phases/planning.md +27 -9
- package/templates/skills/_shared/phases/preflight.md +3 -3
- package/templates/skills/_shared/phases/review.md +4 -3
- package/templates/skills/_shared/phases/ship.md +7 -10
- package/templates/skills/_shared/phases/summary.md +2 -3
- package/templates/skills/_shared/phases/trace-verbs.md +21 -16
- package/templates/skills/_shared/phases/trace.md +3 -3
- package/templates/skills/_shared/phases/wiki-consult.md +2 -2
- package/templates/skills/_shared/pr-templates.md +108 -106
- package/templates/skills/_shared/read-ladder.md +8 -2
- package/templates/skills/_shared/return-validation.md +10 -6
- package/templates/skills/_shared/review-slice.md +1 -1
- package/templates/skills/_shared/stack-plan.md +135 -135
- package/templates/skills/_shared/wait.md +14 -2
- package/templates/skills/context-combiner/SKILL.md +2 -2
- package/templates/skills/orc/SKILL.md +7 -7
- package/templates/skills/orc/config.md +2 -2
- package/templates/skills/orc/examples/full-run-mock.md +7 -7
- package/templates/skills/orc/references/effort-and-mode.md +222 -222
- package/templates/skills/orc/schemas/planning-output.md +3 -0
- package/templates/skills/orc-aftermath/SKILL.md +15 -15
- package/templates/skills/orc-analyze/SKILL.md +2 -2
- package/templates/skills/orc-analyze-mini/SKILL.md +2 -2
- package/templates/skills/orc-boundary/SKILL.md +15 -15
- package/templates/skills/orc-boundary/references/card.md +81 -78
- package/templates/skills/orc-boundary/references/gate.md +113 -113
- package/templates/skills/orc-brainstorm/SKILL.md +15 -15
- package/templates/skills/orc-budget/SKILL.md +15 -15
- package/templates/skills/orc-challenge/README.md +1 -1
- package/templates/skills/orc-challenge/SKILL.md +16 -16
- package/templates/skills/orc-challenge/examples/council-full-roster.md +1 -1
- package/templates/skills/orc-claude/SKILL.md +4 -4
- package/templates/skills/orc-claude/examples/claude-run-mock.md +1 -1
- package/templates/skills/orc-diy/SKILL.md +2 -2
- package/templates/skills/orc-diy/references/blocks/wiki.md +26 -26
- package/templates/skills/orc-diy/references/flow-schema.md +2 -2
- package/templates/skills/orc-doc/README.md +2 -2
- package/templates/skills/orc-doc/SKILL.md +501 -490
- package/templates/skills/orc-doc/examples/orc-doc-prd-run.md +12 -1
- package/templates/skills/orc-doc/references/chunking.md +6 -4
- package/templates/skills/orc-doc/references/gates.md +311 -311
- package/templates/skills/orc-doc/references/resume-protocol.md +229 -228
- package/templates/skills/orc-explain/SKILL.md +88 -88
- package/templates/skills/orc-export/SKILL.md +190 -187
- package/templates/skills/orc-fast/SKILL.md +17 -14
- package/templates/skills/orc-grill/SKILL.md +16 -16
- package/templates/skills/orc-grill/references/grill-doc.md +1 -1
- package/templates/skills/orc-handoff/SKILL.md +11 -11
- package/templates/skills/orc-learn/SKILL.md +13 -13
- package/templates/skills/orc-learn/examples/learn-run-mock.md +2 -2
- package/templates/skills/orc-mini/SKILL.md +12 -12
- package/templates/skills/orc-mini/examples/mini-run-mock.md +4 -5
- package/templates/skills/orc-pact/SKILL.md +15 -15
- package/templates/skills/orc-pact/references/gate.md +70 -70
- package/templates/skills/orc-pattern/SKILL.md +3 -3
- package/templates/skills/orc-poly/SKILL.md +4 -4
- package/templates/skills/orc-poly/examples/poly-run-mock.md +51 -51
- package/templates/skills/orc-pr-driver/SKILL.md +4 -3
- package/templates/skills/orc-pr-driver/references/orc-run-split.md +108 -99
- package/templates/skills/orc-pr-setup/SKILL.md +2 -2
- package/templates/skills/orc-quick/README.md +11 -12
- package/templates/skills/orc-quick/SKILL.md +29 -32
- package/templates/skills/orc-quick/references/context-doc.md +5 -5
- package/templates/skills/orc-quick/references/dispatch-gate.md +10 -10
- package/templates/skills/orc-quick/references/gh-mode.md +2 -1
- package/templates/skills/orc-quick/references/look.md +34 -12
- package/templates/skills/orc-retro/SKILL.md +2 -2
- package/templates/skills/orc-retro/examples/retro-mock.md +2 -2
- package/templates/skills/orc-route/SKILL.md +2 -2
- package/templates/skills/orc-test/SKILL.md +6 -3
- package/templates/skills/orc-verify/SKILL.md +2 -2
- package/templates/skills/orc-wait/SKILL.md +10 -2
- package/templates/skills/orc-wiki/SKILL.md +4 -4
- package/templates/skills/orc-wiki/references/pattern-prewarm.md +19 -19
- package/templates/agents/orc-executor-sonnet-4-6-med.md +0 -155
|
@@ -224,7 +224,7 @@ $ orc doc plan checkout-refund --role check --json
|
|
|
224
224
|
"changed_subparts": [] } ] } ] }
|
|
225
225
|
```
|
|
226
226
|
|
|
227
|
-
**
|
|
227
|
+
**Bounded part files per checker slice**, so there is no line arithmetic anywhere in
|
|
228
228
|
the check loop and no two checkers ever share a file. The slice carries the
|
|
229
229
|
lint's findings for that file. It never re-reports one: paying a model to repeat
|
|
230
230
|
a free check is the mistake this ordering exists to prevent.
|
|
@@ -242,6 +242,13 @@ findings:
|
|
|
242
242
|
coverage: "sections/04-goals-and-success-metrics.md in full, 1 section, no gaps"
|
|
243
243
|
```
|
|
244
244
|
|
|
245
|
+
The return is validated, then RECORDED. One P1 finding is a blocking finding, so
|
|
246
|
+
the section is flagged and the next step is the edit:
|
|
247
|
+
|
|
248
|
+
```
|
|
249
|
+
$ orc doc parts checkout-refund --findings 04-goals-and-success-metrics=1 --json
|
|
250
|
+
```
|
|
251
|
+
|
|
245
252
|
---
|
|
246
253
|
|
|
247
254
|
## D8 — the edit wave (cap 2 rounds)
|
|
@@ -254,6 +261,10 @@ section. The writer's slice is that one file, the finding, and the instruction.
|
|
|
254
261
|
|
|
255
262
|
$ orc doc compile checkout-refund
|
|
256
263
|
✓ compiled 17 sections → …/document.md (500 lines)
|
|
264
|
+
|
|
265
|
+
$ orc doc parts checkout-refund --confirm 04-goals-and-success-metrics --json
|
|
266
|
+
… the section goes back to the check, and the re-check is clean …
|
|
267
|
+
$ orc doc parts checkout-refund --checked 04-goals-and-success-metrics --json
|
|
257
268
|
```
|
|
258
269
|
|
|
259
270
|
For a section stored as sub-parts it opens only the sub-part that needs changing:
|
|
@@ -99,7 +99,9 @@ $ orc doc map prd-checkout-refund-130826 --json
|
|
|
99
99
|
has not moved does not need re-checking). *The hash is what turns a re-check
|
|
100
100
|
from a full pass into a diff.*
|
|
101
101
|
- **`state`** ∈ `planned | written | checked | user-edited | open | unconfirmed`.
|
|
102
|
-
COMPUTED from the disk every time — never stored as a claim.
|
|
102
|
+
COMPUTED from the disk every time — never stored as a claim. `checked` is
|
|
103
|
+
recorded by `orc doc parts --checked` from a validated checker return and
|
|
104
|
+
stays only while the hash holds.
|
|
103
105
|
- **Renames are repaired, not lost.** A heading whose text changed but whose
|
|
104
106
|
position and neighbours match is the same section with a new `id`; `doc.json`
|
|
105
107
|
is updated and the history follows it. A heading that appears with no such
|
|
@@ -111,7 +113,7 @@ system is ever stale.** That is what makes range-based reading safe.
|
|
|
111
113
|
### `unconfirmed` — the state a usage limit leaves behind
|
|
112
114
|
|
|
113
115
|
A part is `written` only when its hash was recorded from a **validated return**
|
|
114
|
-
(`orc doc parts <slug> --confirm <ids>`, run at the wave's stop sequence). **A
|
|
116
|
+
(`orc doc parts <slug> --confirm <ids>`, run at the wave's stop sequence and after each D8 edit round). **A
|
|
115
117
|
file present with no recorded hash is `unconfirmed`:** a writer killed mid-flight
|
|
116
118
|
leaves a truncated file, and detection is already paid for. `orc doc parts`
|
|
117
119
|
reports it, `orc doc next` offers to re-write it, and `compile` includes it only
|
|
@@ -366,7 +368,7 @@ already reported by lint: [{line: 13, rule: "long-sentence", …}]
|
|
|
366
368
|
rules: references/generation-rules.md (5b · 5c · 5d, and the template lock)
|
|
367
369
|
```
|
|
368
370
|
|
|
369
|
-
**
|
|
371
|
+
**Bounded part files per checker slice, so there is no line arithmetic anywhere in
|
|
370
372
|
the check loop**, and no two checkers ever share a file. A checker never opens a
|
|
371
373
|
second file and is never given the whole document. Findings the lint already
|
|
372
374
|
reported are never re-reported — paying a model to repeat a free check is the
|
|
@@ -524,4 +526,4 @@ section straight from its own file.
|
|
|
524
526
|
**The orchestrator never runs `orc doc read`.** It is a command for the HUMAN,
|
|
525
527
|
the same way `orc challenge report` is. Hard rule 0 is not softened by a command
|
|
526
528
|
that happens to print prose: reading the document is still delegated, always, to
|
|
527
|
-
a checker that receives
|
|
529
|
+
a checker that receives the part files of its slice and nothing else.
|