@orkestrel/scaffold 0.0.135 → 0.0.137

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 (36) hide show
  1. package/dist/agents/skills/orkestrel-parallel/scripts/lane.js +167 -4
  2. package/dist/agents/skills/orkestrel-publish/scripts/wave.js +20 -5
  3. package/dist/bin/main.js +12 -12
  4. package/dist/host/AGENTS.md +1 -1
  5. package/dist/host/agents/orchestration.md +2 -2
  6. package/dist/host/agents/skills/orkestrel-parallel/scripts/lane.ts +201 -8
  7. package/dist/host/agents/skills/orkestrel-publish/scripts/wave.ts +24 -5
  8. package/dist/host/claude/agents/orkestrel.md +52 -52
  9. package/dist/host/claude/agents/reviewer.md +1 -1
  10. package/dist/host/claude/rules/documentation.md +1 -1
  11. package/dist/host/claude/rules/patterns.md +2 -2
  12. package/dist/host/claude/rules/workspace.md +9 -4
  13. package/dist/host/configs/helpers.ts +21 -6
  14. package/dist/host/guides/agent.md +3 -1
  15. package/dist/host/guides/brief.md +16 -16
  16. package/dist/host/guides/browser.md +1 -1
  17. package/dist/host/guides/contract.md +198 -163
  18. package/dist/host/guides/database.md +773 -310
  19. package/dist/host/guides/indexeddb.md +80 -66
  20. package/dist/host/guides/reason.md +1 -1
  21. package/dist/host/guides/relation.md +56 -32
  22. package/dist/host/guides/scaffold.md +8 -2
  23. package/dist/host/guides/sqlite.md +44 -23
  24. package/dist/host/guides/test.md +7 -3
  25. package/dist/host/guides/tool.md +2 -1
  26. package/dist/host/guides/toolbox.md +44 -44
  27. package/dist/host/guides/workflow.md +2 -2
  28. package/dist/host/manifest.json +26 -26
  29. package/dist/host/tests/config.test.ts +71 -3
  30. package/dist/src/core/index.cjs +112 -35
  31. package/dist/src/core/index.cjs.map +1 -1
  32. package/dist/src/core/index.d.cts +31 -5
  33. package/dist/src/core/index.d.ts +31 -5
  34. package/dist/src/core/index.js +112 -36
  35. package/dist/src/core/index.js.map +1 -1
  36. package/package.json +12 -12
@@ -314,22 +314,22 @@ a mistake. [`tests/src/core/shapers.test.ts`](../tests/src/core/shapers.test.ts)
314
314
  over the same values. `createBriefContract` returns `ContractInterface<Infer<typeof briefShape>>`; the value type follows the composed shape. Definitions cross through the contract's `is` method,
315
315
  never its coercing `parse` method. The stored round trip remains JSON text through `parseBrief`.
316
316
 
317
- | Name | Kind | Signature | Summary |
318
- | ---------------- | ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
319
- | `textShape` | const | `StringShape` | Describes a single-line string of any length, including empty — the shape mirror of `isText`. |
320
- | `lineShape` | const | `StringShape` | Describes a non-empty single-line string — the shape mirror of `isLine`. |
321
- | `taskShape` | const | `import("@orkestrel/contract").ObjectShape<{ operation: import("@orkestrel/contract").LiteralShape<readonly import("./types.js").TaskOperation[]>; domain: import("@orkestrel/contract").LiteralShape<readonly import("./types.js").TaskDomain[]>; statement: StringShape; }, false>` | Describes the `Task` shape — closed operation and domain vocabularies plus a non-empty statement. |
322
- | `referenceShape` | const | `import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>` | Describes the `Reference` shape — a path and the note that justifies listing it. |
323
- | `manifestShape` | const | `import("@orkestrel/contract").ObjectShape<{ read: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>>; edit: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>>; locked: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>>; forbidden: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>>; }, false>` | Describes the `Manifest` shape — disjoint reference partitions. |
324
- | `outcomeShape` | const | `import("@orkestrel/contract").ObjectShape<{ rank: import("@orkestrel/contract").NumberShape; text: StringShape; required: import("@orkestrel/contract").BooleanShape; }, false>` | Describes the `Outcome` shape — a one-based rank, the result text, and whether it gates done. |
325
- | `givenShape` | const | `import("@orkestrel/contract").ObjectShape<{ category: StringShape; name: StringShape; value: StringShape; }, false>` | Describes the `Given` shape — one categorized context fact. |
326
- | `exampleShape` | const | `import("@orkestrel/contract").ObjectShape<{ input: StringShape; output: StringShape; note: import("@orkestrel/contract").OptionalShape<StringShape>; }, false>` | Describes the `Example` shape — one input to output exemplar. |
327
- | `citationShape` | const | `import("@orkestrel/contract").ObjectShape<{ name: StringShape; url: StringShape; note: StringShape; }, false>` | Describes the `Citation` shape — a name, a locator, and why the source is cited. |
328
- | `gapShape` | const | `import("@orkestrel/contract").ObjectShape<{ field: StringShape; question: StringShape; blocking: import("@orkestrel/contract").BooleanShape; candidates: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").ArrayShape<StringShape>>; fault: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").UnionShape<readonly [import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["type"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; expected: import("@orkestrel/contract").LiteralShape<readonly import("@orkestrel/contract").FaultKind[]>; received: StringShape; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["missing"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; expected: import("@orkestrel/contract").LiteralShape<readonly import("@orkestrel/contract").FaultKind[]>; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["constraint"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; expected: import("@orkestrel/contract").LiteralShape<readonly import("@orkestrel/contract").FaultKind[]>; constraint: import("@orkestrel/contract").LiteralShape<readonly import("@orkestrel/contract").FaultConstraint[]>; limit: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").UnionShape<readonly [import("@orkestrel/contract").NumberShape, StringShape]>>; received: StringShape; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["variant"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; variants: import("@orkestrel/contract").NumberShape; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["variant"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; variants: import("@orkestrel/contract").NumberShape; key: StringShape; expected: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").NumberShape, import("@orkestrel/contract").BooleanShape]>>; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["oneOf"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; matched: import("@orkestrel/contract").NumberShape; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["oneOf"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; matched: import("@orkestrel/contract").NumberShape; key: StringShape; expected: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").NumberShape, import("@orkestrel/contract").BooleanShape]>>; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["extra"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; }, false>]>>; }, false>` | Describes the `Gap` shape — an unknown, whether it blocks, and the candidates that would close it. |
329
- | `riskShape` | const | `import("@orkestrel/contract").ObjectShape<{ severity: import("@orkestrel/contract").LiteralShape<readonly import("./types.js").RiskSeverity[]>; text: StringShape; mitigation: StringShape; }, false>` | Describes the `Risk` shape — a closed severity, the risk, and its mitigation. |
330
- | `outputShape` | const | `import("@orkestrel/contract").ObjectShape<{ format: import("@orkestrel/contract").LiteralShape<readonly import("./types.js").OutputFormat[]>; sections: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").ArrayShape<StringShape>>; include: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").ArrayShape<StringShape>>; exclude: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").ArrayShape<StringShape>>; }, false>` | Describes the `Output` shape — a closed format plus its optional refinements. |
331
- | `proofShape` | const | `import("@orkestrel/contract").ObjectShape<{ text: StringShape; command: StringShape; }, false>` | Describes the `Proof` shape — the claim and the command that settles it. |
332
- | `briefShape` | const | `import("@orkestrel/contract").ObjectShape<{ task: import("@orkestrel/contract").ObjectShape<{ operation: import("@orkestrel/contract").LiteralShape<readonly import("./types.js").TaskOperation[]>; domain: import("@orkestrel/contract").LiteralShape<readonly import("./types.js").TaskDomain[]>; statement: StringShape; }, false>; authority: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>>; manifest: import("@orkestrel/contract").ObjectShape<{ read: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>>; edit: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>>; locked: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>>; forbidden: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>>; }, false>; outcomes: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ rank: import("@orkestrel/contract").NumberShape; text: StringShape; required: import("@orkestrel/contract").BooleanShape; }, false>>; rules: import("@orkestrel/contract").ArrayShape<StringShape>; invariants: import("@orkestrel/contract").ArrayShape<StringShape>; givens: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ category: StringShape; name: StringShape; value: StringShape; }, false>>; examples: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ input: StringShape; output: StringShape; note: import("@orkestrel/contract").OptionalShape<StringShape>; }, false>>; assumptions: import("@orkestrel/contract").ArrayShape<StringShape>; citations: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ name: StringShape; url: StringShape; note: StringShape; }, false>>; gaps: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ field: StringShape; question: StringShape; blocking: import("@orkestrel/contract").BooleanShape; candidates: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").ArrayShape<StringShape>>; fault: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").UnionShape<readonly [import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["type"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; expected: import("@orkestrel/contract").LiteralShape<readonly import("@orkestrel/contract").FaultKind[]>; received: StringShape; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["missing"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; expected: import("@orkestrel/contract").LiteralShape<readonly import("@orkestrel/contract").FaultKind[]>; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["constraint"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; expected: import("@orkestrel/contract").LiteralShape<readonly import("@orkestrel/contract").FaultKind[]>; constraint: import("@orkestrel/contract").LiteralShape<readonly import("@orkestrel/contract").FaultConstraint[]>; limit: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").UnionShape<readonly [import("@orkestrel/contract").NumberShape, StringShape]>>; received: StringShape; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["variant"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; variants: import("@orkestrel/contract").NumberShape; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["variant"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; variants: import("@orkestrel/contract").NumberShape; key: StringShape; expected: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").NumberShape, import("@orkestrel/contract").BooleanShape]>>; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["oneOf"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; matched: import("@orkestrel/contract").NumberShape; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["oneOf"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; matched: import("@orkestrel/contract").NumberShape; key: StringShape; expected: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").NumberShape, import("@orkestrel/contract").BooleanShape]>>; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["extra"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; }, false>]>>; }, false>>; risks: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ severity: import("@orkestrel/contract").LiteralShape<readonly import("./types.js").RiskSeverity[]>; text: StringShape; mitigation: StringShape; }, false>>; output: import("@orkestrel/contract").ObjectShape<{ format: import("@orkestrel/contract").LiteralShape<readonly import("./types.js").OutputFormat[]>; sections: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").ArrayShape<StringShape>>; include: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").ArrayShape<StringShape>>; exclude: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").ArrayShape<StringShape>>; }, false>; proofs: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ text: StringShape; command: StringShape; }, false>>; trace: import("@orkestrel/contract").OptionalShape<StringShape>; hash: import("@orkestrel/contract").OptionalShape<StringShape>; }, false>` | Describes the whole `Brief` shape, section shapes composed. |
317
+ | Name | Kind | Signature | Summary |
318
+ | ---------------- | ----- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
319
+ | `textShape` | const | `StringShape` | Describes a single-line string of any length, including empty — the shape mirror of `isText`. |
320
+ | `lineShape` | const | `StringShape` | Describes a non-empty single-line string — the shape mirror of `isLine`. |
321
+ | `taskShape` | const | `import("@orkestrel/contract").ObjectShape<{ operation: import("@orkestrel/contract").LiteralShape<readonly import("./types.js").TaskOperation[]>; domain: import("@orkestrel/contract").LiteralShape<readonly import("./types.js").TaskDomain[]>; statement: StringShape; }, false>` | Describes the `Task` shape — closed operation and domain vocabularies plus a non-empty statement. |
322
+ | `referenceShape` | const | `import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>` | Describes the `Reference` shape — a path and the note that justifies listing it. |
323
+ | `manifestShape` | const | `import("@orkestrel/contract").ObjectShape<{ read: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>>; edit: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>>; locked: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>>; forbidden: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>>; }, false>` | Describes the `Manifest` shape — disjoint reference partitions. |
324
+ | `outcomeShape` | const | `import("@orkestrel/contract").ObjectShape<{ rank: import("@orkestrel/contract").NumberShape; text: StringShape; required: import("@orkestrel/contract").BooleanShape; }, false>` | Describes the `Outcome` shape — a one-based rank, the result text, and whether it gates done. |
325
+ | `givenShape` | const | `import("@orkestrel/contract").ObjectShape<{ category: StringShape; name: StringShape; value: StringShape; }, false>` | Describes the `Given` shape — one categorized context fact. |
326
+ | `exampleShape` | const | `import("@orkestrel/contract").ObjectShape<{ input: StringShape; output: StringShape; note: import("@orkestrel/contract").OptionalShape<StringShape>; }, false>` | Describes the `Example` shape — one input to output exemplar. |
327
+ | `citationShape` | const | `import("@orkestrel/contract").ObjectShape<{ name: StringShape; url: StringShape; note: StringShape; }, false>` | Describes the `Citation` shape — a name, a locator, and why the source is cited. |
328
+ | `gapShape` | const | `import("@orkestrel/contract").ObjectShape<{ field: StringShape; question: StringShape; blocking: import("@orkestrel/contract").BooleanShape; candidates: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").ArrayShape<StringShape>>; fault: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").UnionShape<readonly [import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["type"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; expected: import("@orkestrel/contract").LiteralShape<readonly import("@orkestrel/contract").FaultKind[]>; received: StringShape; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["missing"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; expected: import("@orkestrel/contract").LiteralShape<readonly import("@orkestrel/contract").FaultKind[]>; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["constraint"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; expected: import("@orkestrel/contract").LiteralShape<readonly import("@orkestrel/contract").FaultKind[]>; constraint: import("@orkestrel/contract").LiteralShape<readonly import("@orkestrel/contract").FaultConstraint[]>; limit: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").UnionShape<readonly [import("@orkestrel/contract").NumberShape, StringShape]>>; received: StringShape; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["variant"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; variants: import("@orkestrel/contract").NumberShape; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["variant"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; variants: import("@orkestrel/contract").NumberShape; key: StringShape; expected: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").NumberShape, import("@orkestrel/contract").BooleanShape]>>; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["oneOf"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; matched: import("@orkestrel/contract").NumberShape; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["oneOf"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; matched: import("@orkestrel/contract").NumberShape; key: StringShape; expected: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").NumberShape, import("@orkestrel/contract").BooleanShape]>>; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["extra"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["extra"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; symbol: StringShape; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["hidden"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; }, false>]>>; }, false>` | Describes the `Gap` shape — an unknown, whether it blocks, and the candidates that would close it. |
329
+ | `riskShape` | const | `import("@orkestrel/contract").ObjectShape<{ severity: import("@orkestrel/contract").LiteralShape<readonly import("./types.js").RiskSeverity[]>; text: StringShape; mitigation: StringShape; }, false>` | Describes the `Risk` shape — a closed severity, the risk, and its mitigation. |
330
+ | `outputShape` | const | `import("@orkestrel/contract").ObjectShape<{ format: import("@orkestrel/contract").LiteralShape<readonly import("./types.js").OutputFormat[]>; sections: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").ArrayShape<StringShape>>; include: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").ArrayShape<StringShape>>; exclude: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").ArrayShape<StringShape>>; }, false>` | Describes the `Output` shape — a closed format plus its optional refinements. |
331
+ | `proofShape` | const | `import("@orkestrel/contract").ObjectShape<{ text: StringShape; command: StringShape; }, false>` | Describes the `Proof` shape — the claim and the command that settles it. |
332
+ | `briefShape` | const | `import("@orkestrel/contract").ObjectShape<{ task: import("@orkestrel/contract").ObjectShape<{ operation: import("@orkestrel/contract").LiteralShape<readonly import("./types.js").TaskOperation[]>; domain: import("@orkestrel/contract").LiteralShape<readonly import("./types.js").TaskDomain[]>; statement: StringShape; }, false>; authority: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>>; manifest: import("@orkestrel/contract").ObjectShape<{ read: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>>; edit: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>>; locked: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>>; forbidden: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ path: StringShape; note: StringShape; }, false>>; }, false>; outcomes: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ rank: import("@orkestrel/contract").NumberShape; text: StringShape; required: import("@orkestrel/contract").BooleanShape; }, false>>; rules: import("@orkestrel/contract").ArrayShape<StringShape>; invariants: import("@orkestrel/contract").ArrayShape<StringShape>; givens: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ category: StringShape; name: StringShape; value: StringShape; }, false>>; examples: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ input: StringShape; output: StringShape; note: import("@orkestrel/contract").OptionalShape<StringShape>; }, false>>; assumptions: import("@orkestrel/contract").ArrayShape<StringShape>; citations: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ name: StringShape; url: StringShape; note: StringShape; }, false>>; gaps: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ field: StringShape; question: StringShape; blocking: import("@orkestrel/contract").BooleanShape; candidates: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").ArrayShape<StringShape>>; fault: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").UnionShape<readonly [import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["type"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; expected: import("@orkestrel/contract").LiteralShape<readonly import("@orkestrel/contract").FaultKind[]>; received: StringShape; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["missing"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; expected: import("@orkestrel/contract").LiteralShape<readonly import("@orkestrel/contract").FaultKind[]>; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["constraint"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; expected: import("@orkestrel/contract").LiteralShape<readonly import("@orkestrel/contract").FaultKind[]>; constraint: import("@orkestrel/contract").LiteralShape<readonly import("@orkestrel/contract").FaultConstraint[]>; limit: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").UnionShape<readonly [import("@orkestrel/contract").NumberShape, StringShape]>>; received: StringShape; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["variant"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; variants: import("@orkestrel/contract").NumberShape; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["variant"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; variants: import("@orkestrel/contract").NumberShape; key: StringShape; expected: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").NumberShape, import("@orkestrel/contract").BooleanShape]>>; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["oneOf"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; matched: import("@orkestrel/contract").NumberShape; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["oneOf"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; matched: import("@orkestrel/contract").NumberShape; key: StringShape; expected: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").NumberShape, import("@orkestrel/contract").BooleanShape]>>; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["extra"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["extra"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; symbol: StringShape; }, false>, import("@orkestrel/contract").ObjectShape<{ reason: import("@orkestrel/contract").LiteralShape<readonly ["hidden"]>; path: import("@orkestrel/contract").UnionShape<readonly [StringShape, import("@orkestrel/contract").ArrayShape<StringShape>]>; }, false>]>>; }, false>>; risks: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ severity: import("@orkestrel/contract").LiteralShape<readonly import("./types.js").RiskSeverity[]>; text: StringShape; mitigation: StringShape; }, false>>; output: import("@orkestrel/contract").ObjectShape<{ format: import("@orkestrel/contract").LiteralShape<readonly import("./types.js").OutputFormat[]>; sections: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").ArrayShape<StringShape>>; include: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").ArrayShape<StringShape>>; exclude: import("@orkestrel/contract").OptionalShape<import("@orkestrel/contract").ArrayShape<StringShape>>; }, false>; proofs: import("@orkestrel/contract").ArrayShape<import("@orkestrel/contract").ObjectShape<{ text: StringShape; command: StringShape; }, false>>; trace: import("@orkestrel/contract").OptionalShape<StringShape>; hash: import("@orkestrel/contract").OptionalShape<StringShape>; }, false>` | Describes the whole `Brief` shape, section shapes composed. |
333
333
 
334
334
  ```ts
335
335
  import {