@cleocode/contracts 2026.5.112 → 2026.5.113

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 (98) hide show
  1. package/dist/__tests__/cli-meta-suggested-next.test.d.ts +21 -0
  2. package/dist/__tests__/cli-meta-suggested-next.test.d.ts.map +1 -0
  3. package/dist/__tests__/cli-meta-suggested-next.test.js +70 -0
  4. package/dist/__tests__/cli-meta-suggested-next.test.js.map +1 -0
  5. package/dist/config/__tests__/manifest.test.d.ts +13 -0
  6. package/dist/config/__tests__/manifest.test.d.ts.map +1 -0
  7. package/dist/config/__tests__/manifest.test.js +143 -0
  8. package/dist/config/__tests__/manifest.test.js.map +1 -0
  9. package/dist/config/manifest.d.ts +158 -0
  10. package/dist/config/manifest.d.ts.map +1 -0
  11. package/dist/config/manifest.js +123 -0
  12. package/dist/config/manifest.js.map +1 -0
  13. package/dist/docs/__tests__/provenance.test.d.ts +14 -0
  14. package/dist/docs/__tests__/provenance.test.d.ts.map +1 -0
  15. package/dist/docs/__tests__/provenance.test.js +579 -0
  16. package/dist/docs/__tests__/provenance.test.js.map +1 -0
  17. package/dist/docs/provenance.d.ts +731 -0
  18. package/dist/docs/provenance.d.ts.map +1 -0
  19. package/dist/docs/provenance.js +258 -0
  20. package/dist/docs/provenance.js.map +1 -0
  21. package/dist/docs-taxonomy.d.ts +24 -0
  22. package/dist/docs-taxonomy.d.ts.map +1 -1
  23. package/dist/docs-taxonomy.js +27 -0
  24. package/dist/docs-taxonomy.js.map +1 -1
  25. package/dist/doctor.d.ts +101 -0
  26. package/dist/doctor.d.ts.map +1 -1
  27. package/dist/errors.d.ts +4 -0
  28. package/dist/errors.d.ts.map +1 -1
  29. package/dist/errors.js +4 -0
  30. package/dist/errors.js.map +1 -1
  31. package/dist/exit-codes.d.ts +37 -0
  32. package/dist/exit-codes.d.ts.map +1 -1
  33. package/dist/exit-codes.js +37 -0
  34. package/dist/exit-codes.js.map +1 -1
  35. package/dist/index.d.ts +10 -3
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/index.js +7 -2
  38. package/dist/index.js.map +1 -1
  39. package/dist/invariants/__tests__/adr-056-release.test.d.ts +16 -0
  40. package/dist/invariants/__tests__/adr-056-release.test.d.ts.map +1 -0
  41. package/dist/invariants/__tests__/adr-056-release.test.js +88 -0
  42. package/dist/invariants/__tests__/adr-056-release.test.js.map +1 -0
  43. package/dist/invariants/__tests__/adr-070-orchestration.test.d.ts +22 -0
  44. package/dist/invariants/__tests__/adr-070-orchestration.test.d.ts.map +1 -0
  45. package/dist/invariants/__tests__/adr-070-orchestration.test.js +151 -0
  46. package/dist/invariants/__tests__/adr-070-orchestration.test.js.map +1 -0
  47. package/dist/invariants/adr-056-release.d.ts +42 -0
  48. package/dist/invariants/adr-056-release.d.ts.map +1 -0
  49. package/dist/invariants/adr-056-release.js +143 -0
  50. package/dist/invariants/adr-056-release.js.map +1 -0
  51. package/dist/invariants/adr-070-orchestration.d.ts +73 -0
  52. package/dist/invariants/adr-070-orchestration.d.ts.map +1 -0
  53. package/dist/invariants/adr-070-orchestration.js +290 -0
  54. package/dist/invariants/adr-070-orchestration.js.map +1 -0
  55. package/dist/invariants/index.d.ts +4 -1
  56. package/dist/invariants/index.d.ts.map +1 -1
  57. package/dist/invariants/index.js +11 -2
  58. package/dist/invariants/index.js.map +1 -1
  59. package/dist/operations/__tests__/input-contract.test.d.ts +20 -0
  60. package/dist/operations/__tests__/input-contract.test.d.ts.map +1 -0
  61. package/dist/operations/__tests__/input-contract.test.js +158 -0
  62. package/dist/operations/__tests__/input-contract.test.js.map +1 -0
  63. package/dist/operations/docs.d.ts +16 -0
  64. package/dist/operations/docs.d.ts.map +1 -1
  65. package/dist/operations/input-contract.d.ts +267 -0
  66. package/dist/operations/input-contract.d.ts.map +1 -0
  67. package/dist/operations/input-contract.js +29 -0
  68. package/dist/operations/input-contract.js.map +1 -0
  69. package/dist/templates/__tests__/manifest.test.d.ts +18 -0
  70. package/dist/templates/__tests__/manifest.test.d.ts.map +1 -0
  71. package/dist/templates/__tests__/manifest.test.js +123 -0
  72. package/dist/templates/__tests__/manifest.test.js.map +1 -0
  73. package/dist/templates/manifest.d.ts +186 -0
  74. package/dist/templates/manifest.d.ts.map +1 -0
  75. package/dist/templates/manifest.js +165 -0
  76. package/dist/templates/manifest.js.map +1 -0
  77. package/package.json +2 -2
  78. package/src/__tests__/cli-meta-suggested-next.test.ts +76 -0
  79. package/src/config/__tests__/manifest.test.ts +176 -0
  80. package/src/config/manifest.ts +218 -0
  81. package/src/docs/__tests__/__snapshots__/provenance.test.ts.snap +252 -0
  82. package/src/docs/__tests__/provenance.test.ts +648 -0
  83. package/src/docs/provenance.ts +601 -0
  84. package/src/docs-taxonomy.ts +55 -0
  85. package/src/doctor.ts +111 -0
  86. package/src/errors.ts +4 -0
  87. package/src/exit-codes.ts +39 -0
  88. package/src/index.ts +90 -0
  89. package/src/invariants/__tests__/adr-056-release.test.ts +102 -0
  90. package/src/invariants/__tests__/adr-070-orchestration.test.ts +186 -0
  91. package/src/invariants/adr-056-release.ts +154 -0
  92. package/src/invariants/adr-070-orchestration.ts +317 -0
  93. package/src/invariants/index.ts +11 -2
  94. package/src/operations/__tests__/input-contract.test.ts +188 -0
  95. package/src/operations/docs.ts +16 -0
  96. package/src/operations/input-contract.ts +301 -0
  97. package/src/templates/__tests__/manifest.test.ts +140 -0
  98. package/src/templates/manifest.ts +208 -0
@@ -0,0 +1,290 @@
1
+ /**
2
+ * ADR-070 ORC-### orchestration invariants registered against the central
3
+ * invariants registry (`./index.ts`).
4
+ *
5
+ * ORC codes govern the three-tier spawn topology — Orchestrator (HITL
6
+ * interface) → Lead (phase coordinator) → Worker (leaf task) — defined by
7
+ * ADR-070 and refined by ADR-083 §2 (Cleo persona + recursion bounds).
8
+ *
9
+ * Severity mapping (see `RegisteredInvariant` JSDoc for tier semantics):
10
+ *
11
+ * - **ORC-012** (thin-agent inversion-of-control) is the only ORC rule with
12
+ * a hard-enforced runtime gate today (`enforceThinAgent` +
13
+ * `ThinAgentViolationError`). It surfaces as
14
+ * `E_THIN_AGENT_VIOLATION` (LAFS error code + exit 68). Tier: `error`.
15
+ * - **ORC-001..ORC-009** are the skill-injection rules shipped through
16
+ * `ct-orchestrator/SKILL.md`. They constrain the Orchestrator's runtime
17
+ * behaviour (no code writes, dependency-ordered spawning, 10 K context
18
+ * budget, etc.) but live as prompt-time invariants rather than dispatch
19
+ * guards. Tier: `warning`, `runtimeGate: null` — the gap is documented
20
+ * explicitly so the R6 doctor audit (T10340) can surface it.
21
+ * - **ORC-010** (Lead-interposition: a Worker spawn for an Epic-child Task
22
+ * requires a preceding Lead spawn) and **ORC-011** (Orchestrator-depth
23
+ * ≤ 3) are filed against ADR-083 §2.4 + §6 but the dispatch-time gate
24
+ * has not yet shipped (tracked T10278 + T10279). They are registered
25
+ * here as `warning` with `runtimeGate: null` so the gap surfaces in the
26
+ * audit pipeline.
27
+ * - **ORC-013** (worktree provisioning per ADR-055 / D009) IS enforced at
28
+ * `createWorktree` time via `assertCanonicalWorktreeLocation` — it
29
+ * carries `severity: 'error'` and a runtime gate. The companion CI gate
30
+ * `lint-worktree-location.mjs` is recorded under `lintRule`.
31
+ * - **ORC-014** (Lead-bypass detection at session end) IS enforced by
32
+ * `endSession` via `LeadBypassDetectedError`. Tier: `error`.
33
+ *
34
+ * @epic T10327 — E-INVARIANT-REGISTRY-SSOT
35
+ * @saga T10326 — SG-SUBSTRATE-RECONCILIATION
36
+ * @task T10336 — R2 (ADR-070 ORC codes)
37
+ * @see ADR-070-three-tier-orchestration.md
38
+ * @see ADR-083-section-2.4 — Cleo persona + recursion bounds
39
+ */
40
+ /**
41
+ * Module path that hosts the thin-agent enforcement function.
42
+ */
43
+ const THIN_AGENT_MODULE = 'packages/core/src/orchestration/thin-agent.ts';
44
+ /**
45
+ * Module path that hosts the session lifecycle entrypoint enforcing
46
+ * Lead-bypass detection at session end.
47
+ */
48
+ const SESSIONS_MODULE = 'packages/core/src/sessions/index.ts';
49
+ /**
50
+ * Module path that hosts the worktree creation guard (canonical XDG
51
+ * location enforcement per ADR-055 + Council D009).
52
+ */
53
+ const WORKTREE_CREATE_MODULE = 'packages/worktree/src/worktree-create.ts';
54
+ /**
55
+ * Canonical ct-orchestrator skill that injects ORC-001..ORC-009 into the
56
+ * Orchestrator's prompt at spawn time. Referenced from every prompt-time
57
+ * ORC entry so downstream tooling (R8 docs renderer) can chase the source.
58
+ */
59
+ const CT_ORCHESTRATOR_SKILL = 'packages/skills/skills/ct-orchestrator/SKILL.md';
60
+ /**
61
+ * Path to the spawn-prompt builder that materialises ORC-006 worker budget
62
+ * constraints into spawn payloads (referenced from ORC-006 below).
63
+ */
64
+ const SPAWN_PROMPT_MODULE = 'packages/core/src/orchestration/spawn-prompt.ts';
65
+ /**
66
+ * Path to the validate-spawn module that materialises ORC-006 atomic-scope
67
+ * checks via `V_ATOMIC_SCOPE_MISSING` / `V_ATOMIC_SCOPE_TOO_LARGE` codes.
68
+ */
69
+ const VALIDATE_SPAWN_MODULE = 'packages/core/src/orchestration/validate-spawn.ts';
70
+ /**
71
+ * Skill-validator test that exercises ORC-004 / ORC-005 manifest checks.
72
+ */
73
+ const SKILL_VALIDATOR_TESTS = 'packages/core/src/skills/orchestrator/__tests__/validator.test.ts';
74
+ /**
75
+ * ADR-070 ORC-### invariants in declaration order.
76
+ *
77
+ * The 14 entries cover:
78
+ * - ORC-001..ORC-009 — ct-orchestrator skill behavioural constraints.
79
+ * - ORC-010..ORC-011 — ADR-083 §2.4 recursion-bound gaps (filed,
80
+ * runtime gate unimplemented — tracked T10278 / T10279).
81
+ * - ORC-012 — thin-agent inversion-of-control (hard-enforced).
82
+ * - ORC-013 — worktree provisioning per ADR-055 / D009 (hard-enforced).
83
+ * - ORC-014 — Lead-bypass detection at session end (hard-enforced).
84
+ *
85
+ * Every `severity: 'warning'` entry with `runtimeGate: null` carries an
86
+ * explicit description of WHY the gate is absent, satisfying the gap-
87
+ * documentation invariant asserted in the unit test below.
88
+ */
89
+ export const ADR_070_INVARIANTS = Object.freeze([
90
+ {
91
+ adr: 'ADR-070',
92
+ code: 'ORC-001',
93
+ name: 'Orchestrator is the HITL interface',
94
+ description: 'The Orchestrator (Cleo) is the single subagent that talks to the human operator. It plans, decomposes, and delegates — it never produces line-level implementation. Source-of-truth lives in ct-orchestrator/SKILL.md row ORC-001 and is injected into the Orchestrator prompt at spawn time. UNENFORCED at the dispatch layer: this is a prompt-time invariant with no runtime guard today.',
95
+ severity: 'warning',
96
+ runtimeGate: null,
97
+ lintRule: null,
98
+ doctorAudit: null,
99
+ tests: [CT_ORCHESTRATOR_SKILL],
100
+ },
101
+ {
102
+ adr: 'ADR-070',
103
+ code: 'ORC-002',
104
+ name: 'Orchestrator MUST NOT write or edit code',
105
+ description: 'Every line of code is written by a spawned subagent. The Orchestrator delegates implementation work via cleo orchestrate spawn / delegate_task. UNENFORCED at the dispatch layer: this is a prompt-time invariant — there is no runtime gate that blocks the Orchestrator from calling Edit/Write, so the contract is held by the ct-orchestrator skill text.',
106
+ severity: 'warning',
107
+ runtimeGate: null,
108
+ lintRule: null,
109
+ doctorAudit: null,
110
+ tests: [CT_ORCHESTRATOR_SKILL],
111
+ },
112
+ {
113
+ adr: 'ADR-070',
114
+ code: 'ORC-003',
115
+ name: 'Orchestrator MUST NOT read full source files',
116
+ description: 'Orchestrator reads only pipeline manifests, task envelopes, and rolled-up phase summaries returned by Phase Leads. Workers read code; the Orchestrator reads summaries. UNENFORCED at the dispatch layer — held by the ct-orchestrator skill text and reinforced by ORC-005 budget pressure.',
117
+ severity: 'warning',
118
+ runtimeGate: null,
119
+ lintRule: null,
120
+ doctorAudit: null,
121
+ tests: [CT_ORCHESTRATOR_SKILL],
122
+ },
123
+ {
124
+ adr: 'ADR-070',
125
+ code: 'ORC-004',
126
+ name: 'Dependency-ordered spawning',
127
+ description: 'Spawns within a wave are ordered by task.depends — a Worker MUST NOT be dispatched until its declared dependencies are status=done. Surfaced by validateSpawnReadiness via V_MISSING_DEP / V_UNMET_DEP codes; surfaced by the skill-orchestrator validator via the ORC-004_DEPENDENCY_ORDER warning emitted from packages/core/src/skills/orchestrator/validator.ts. Tier: warning because the validator surfaces ordering issues but does not throw — workers can still proceed if the operator overrides.',
128
+ severity: 'warning',
129
+ runtimeGate: {
130
+ module: VALIDATE_SPAWN_MODULE,
131
+ functionName: 'validateSpawnReadiness',
132
+ },
133
+ lintRule: null,
134
+ doctorAudit: null,
135
+ tests: [
136
+ 'packages/core/src/orchestration/__tests__/validate-spawn.test.ts',
137
+ SKILL_VALIDATOR_TESTS,
138
+ ],
139
+ },
140
+ {
141
+ adr: 'ADR-070',
142
+ code: 'ORC-005',
143
+ name: 'Orchestrator context budget ≈ 10 K tokens',
144
+ description: 'The Orchestrator MUST keep its working context under ~10 K tokens; delegate at 80 %. Surfaced by cleo orchestrate context (estimateContext) and by the skill-orchestrator validator (ORC-005_NO_MANIFEST / ORC-005_EMPTY_MANIFEST). UNENFORCED as a hard gate — the budget is advisory, surfaced to the Orchestrator as a warning so the human operator can intervene.',
145
+ severity: 'warning',
146
+ runtimeGate: {
147
+ module: 'packages/core/src/orchestration/context.ts',
148
+ functionName: 'estimateContext',
149
+ },
150
+ lintRule: null,
151
+ doctorAudit: null,
152
+ tests: ['packages/core/src/orchestration/__tests__/'],
153
+ },
154
+ {
155
+ adr: 'ADR-070',
156
+ code: 'ORC-006',
157
+ name: 'Worker scope ≤ 3 files per spawn',
158
+ description: 'Cross-file reasoning quality degrades beyond ~3 files for a single Worker. Enforced at spawn-time by validateSpawnReadiness — V_ATOMIC_SCOPE_MISSING when task.files is empty, V_ATOMIC_SCOPE_TOO_LARGE when files.length > MAX_WORKER_FILES (currently 3). Spawn-prompt builder injects a Worker Budget Constraints section so the Worker sees the budget inline. Tier: error because the gate refuses to spawn an over-scoped Worker.',
159
+ severity: 'error',
160
+ runtimeGate: {
161
+ module: VALIDATE_SPAWN_MODULE,
162
+ functionName: 'validateSpawnReadiness',
163
+ },
164
+ lintRule: null,
165
+ doctorAudit: null,
166
+ tests: [
167
+ 'packages/core/src/orchestration/__tests__/validate-spawn.test.ts',
168
+ 'packages/core/src/orchestration/__tests__/spawn-prompt.test.ts',
169
+ ],
170
+ },
171
+ {
172
+ adr: 'ADR-070',
173
+ code: 'ORC-007',
174
+ name: 'All work traced to an Epic',
175
+ description: 'Every Task and Subtask MUST attach to a parent Epic (directly or transitively). No orphan work — orphans are filed against the ADR-066 acceptance-criteria gate and surface via cleo find. UNENFORCED at the dispatch layer; the parent-id requirement is materialised through cleo add validation rather than a single ORC-named guard. R6 doctor audit should walk the task graph to surface orphans.',
176
+ severity: 'warning',
177
+ runtimeGate: null,
178
+ lintRule: null,
179
+ doctorAudit: null,
180
+ tests: [CT_ORCHESTRATOR_SKILL],
181
+ },
182
+ {
183
+ adr: 'ADR-070',
184
+ code: 'ORC-008',
185
+ name: 'Zero architectural decisions during execution',
186
+ description: 'Architectural choices MUST be pre-decided via RCASD consensus or HITL — never inside a worker session. UNENFORCED at the dispatch layer: this is a behavioural invariant held by the ct-orchestrator skill text plus the ADR-066 acceptance criterion that every task must declare its architecture-relevant decisions before spawn.',
187
+ severity: 'warning',
188
+ runtimeGate: null,
189
+ lintRule: null,
190
+ doctorAudit: null,
191
+ tests: [CT_ORCHESTRATOR_SKILL],
192
+ },
193
+ {
194
+ adr: 'ADR-070',
195
+ code: 'ORC-009',
196
+ name: 'Manifest-mediated handoffs',
197
+ description: 'Orchestrator reads only the key_findings field of pipeline_manifest rows when reconciling worker output. Subagents read the full task description and supporting files. UNENFORCED at the dispatch layer: the contract is held by the ct-orchestrator skill text and reinforced by ORC-003 + ORC-005 budget pressure.',
198
+ severity: 'warning',
199
+ runtimeGate: null,
200
+ lintRule: null,
201
+ doctorAudit: null,
202
+ tests: [CT_ORCHESTRATOR_SKILL],
203
+ },
204
+ {
205
+ adr: 'ADR-070',
206
+ code: 'ORC-010',
207
+ name: 'Lead-interposition required for Epic-child Workers',
208
+ description: 'A Worker spawn against a Task whose parent is type=epic MUST be preceded by a Lead spawn for the same Task (ADR-083 §2.4 / §6). The intended runtime gate (composeSpawnPayload throwing E_LEAD_REQUIRED_FOR_EPIC_CHILD) is FILED but UNSHIPPED — tracked under T10278. Registered here as a warning + runtimeGate:null so the gap is visible in the R6 doctor audit.',
209
+ severity: 'warning',
210
+ runtimeGate: null,
211
+ lintRule: null,
212
+ doctorAudit: null,
213
+ tests: [],
214
+ },
215
+ {
216
+ adr: 'ADR-070',
217
+ code: 'ORC-011',
218
+ name: 'Orchestrator-depth cap at 3',
219
+ description: 'Recursive Orchestrator spawns (Cleo → sub-Orchestrator → sub-Orchestrator → …) MUST stop at depth 3 (ADR-083 §2.2 + §2.4). The intended runtime gate (composeSpawnPayload throwing E_ORCHESTRATOR_DEPTH_EXCEEDED) is FILED but UNSHIPPED — tracked under T10279. Registered here as a warning + runtimeGate:null so the gap is visible in the R6 doctor audit.',
220
+ severity: 'warning',
221
+ runtimeGate: null,
222
+ lintRule: null,
223
+ doctorAudit: null,
224
+ tests: [],
225
+ },
226
+ {
227
+ adr: 'ADR-070',
228
+ code: 'ORC-012',
229
+ name: 'Thin-agent inversion-of-control',
230
+ description: 'Workers MUST NOT spawn other subagents. The spawn-capable tools (Agent / Task / TaskCreate) are stripped from the Worker tool list at .cant compile time, and any survivor at spawn time triggers ThinAgentViolationError → E_THIN_AGENT_VIOLATION (exit 68). The only ORC rule with a hard-enforced dispatch-time gate today.',
231
+ severity: 'error',
232
+ runtimeGate: {
233
+ module: THIN_AGENT_MODULE,
234
+ functionName: 'enforceThinAgent',
235
+ },
236
+ lintRule: null,
237
+ doctorAudit: null,
238
+ tests: [
239
+ 'packages/core/src/orchestration/__tests__/thin-agent.test.ts',
240
+ 'packages/cant/src/__tests__/hierarchy.test.ts',
241
+ ],
242
+ },
243
+ {
244
+ adr: 'ADR-070',
245
+ code: 'ORC-013',
246
+ name: 'Worktree provisioning at canonical XDG location',
247
+ description: 'Every agent worktree MUST be created under <cleoHome>/worktrees/<projectHash>/<taskId>/ (ADR-055 + Council D009). createWorktree throws E_WT_LOCATION_FORBIDDEN before any git worktree add call when the computed path falls outside the canonical root. CI gate lint-worktree-location.mjs enforces the same invariant on every PR. The single-most-load-bearing orchestration guard after ORC-012.',
248
+ severity: 'error',
249
+ runtimeGate: {
250
+ module: WORKTREE_CREATE_MODULE,
251
+ functionName: 'assertCanonicalWorktreeLocation',
252
+ },
253
+ lintRule: {
254
+ lintScript: 'scripts/lint-worktree-location.mjs',
255
+ },
256
+ doctorAudit: null,
257
+ tests: ['packages/worktree/src/__tests__/'],
258
+ },
259
+ {
260
+ adr: 'ADR-070',
261
+ code: 'ORC-014',
262
+ name: 'Lead-bypass detection at session end',
263
+ description: 'A Lead session (CLEO_AGENT_ROLE=lead) that ends with tasks_completed > 0 AND delegate_task_count = 0 is rejected with LeadBypassDetectedError → E_LEAD_BYPASS_DETECTED (exit 107). Leads MUST fan out work to Workers; a Lead that did the work itself defeats the three-tier topology. Override via CLEO_OWNER_OVERRIDE=1 (audited to force-bypass.jsonl).',
264
+ severity: 'error',
265
+ runtimeGate: {
266
+ module: SESSIONS_MODULE,
267
+ functionName: 'endSession',
268
+ },
269
+ lintRule: null,
270
+ doctorAudit: null,
271
+ tests: ['packages/core/src/sessions/__tests__/'],
272
+ },
273
+ ]);
274
+ /** Sentinel referenced by the unit test — keep in sync with array length. */
275
+ export const ADR_070_INVARIANT_COUNT = ADR_070_INVARIANTS.length;
276
+ /** Sentinel — minimum entries the central registry must merge from this file. */
277
+ export const ADR_070_MIN_ENTRIES = 14;
278
+ /**
279
+ * Export the prompt-only module reference so other ADR-070 ORC modules can
280
+ * cross-reference the canonical skill location without restating the path.
281
+ * @internal
282
+ */
283
+ export const ADR_070_PROMPT_SOURCE = CT_ORCHESTRATOR_SKILL;
284
+ /**
285
+ * Re-export for symmetry with the spawn-prompt builder consumers — used by
286
+ * the R8 docs renderer to chase the prompt-injection source for ORC-006.
287
+ * @internal
288
+ */
289
+ export const ADR_070_SPAWN_PROMPT_MODULE = SPAWN_PROMPT_MODULE;
290
+ //# sourceMappingURL=adr-070-orchestration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adr-070-orchestration.js","sourceRoot":"","sources":["../../src/invariants/adr-070-orchestration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAIH;;GAEG;AACH,MAAM,iBAAiB,GAAG,+CAA+C,CAAC;AAE1E;;;GAGG;AACH,MAAM,eAAe,GAAG,qCAAqC,CAAC;AAE9D;;;GAGG;AACH,MAAM,sBAAsB,GAAG,0CAA0C,CAAC;AAE1E;;;;GAIG;AACH,MAAM,qBAAqB,GAAG,iDAAiD,CAAC;AAEhF;;;GAGG;AACH,MAAM,mBAAmB,GAAG,iDAAiD,CAAC;AAE9E;;;GAGG;AACH,MAAM,qBAAqB,GAAG,mDAAmD,CAAC;AAElF;;GAEG;AACH,MAAM,qBAAqB,GAAG,mEAAmE,CAAC;AAElG;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAmC,MAAM,CAAC,MAAM,CAAC;IAC9E;QACE,GAAG,EAAE,SAAS;QACd,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,oCAAoC;QAC1C,WAAW,EACT,8XAA8X;QAChY,QAAQ,EAAE,SAAS;QACnB,WAAW,EAAE,IAAI;QACjB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,IAAI;QACjB,KAAK,EAAE,CAAC,qBAAqB,CAAC;KAC/B;IACD;QACE,GAAG,EAAE,SAAS;QACd,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,0CAA0C;QAChD,WAAW,EACT,+VAA+V;QACjW,QAAQ,EAAE,SAAS;QACnB,WAAW,EAAE,IAAI;QACjB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,IAAI;QACjB,KAAK,EAAE,CAAC,qBAAqB,CAAC;KAC/B;IACD;QACE,GAAG,EAAE,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AE;YACX,MAAM,EAAE,iBAAiB;YACzB,YAAY,EAAE,kBAAkB;SACjC;QACD,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,IAAI;QACjB,KAAK,EAAE;YACL,8DAA8D;YAC9D,+CAA+C;SAChD;KACF;IACD;QACE,GAAG,EAAE,SAAS;QACd,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,iDAAiD;QACvD,WAAW,EACT,uYAAuY;QACzY,QAAQ,EAAE,OAAO;QACjB,WAAW,EAAE;YACX,MAAM,EAAE,sBAAsB;YAC9B,YAAY,EAAE,iCAAiC;SAChD;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,oCAAoC;SACjD;QACD,WAAW,EAAE,IAAI;QACjB,KAAK,EAAE,CAAC,kCAAkC,CAAC;KAC5C;IACD;QACE,GAAG,EAAE,SAAS;QACd,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,sCAAsC;QAC5C,WAAW,EACT,6VAA6V;QAC/V,QAAQ,EAAE,OAAO;QACjB,WAAW,EAAE;YACX,MAAM,EAAE,eAAe;YACvB,YAAY,EAAE,YAAY;SAC3B;QACD,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,IAAI;QACjB,KAAK,EAAE,CAAC,uCAAuC,CAAC;KACjD;CACF,CAAC,CAAC;AAEH,6EAA6E;AAC7E,MAAM,CAAC,MAAM,uBAAuB,GAAG,kBAAkB,CAAC,MAAM,CAAC;AAEjE,iFAAiF;AACjF,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAEtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,qBAAqB,CAAC;AAE3D;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC"}
@@ -11,7 +11,8 @@
11
11
  * 5. Render documentation via the downstream R8 auto-render pipeline.
12
12
  *
13
13
  * Downstream consumers:
14
- * - R2 (T10336): register ADR-070 ORC codes into this same registry.
14
+ * - R2 (T10336, SHIPPED): registers ADR-070 ORC-001..ORC-014 codes into
15
+ * this same registry via `./adr-070-orchestration.ts`.
15
16
  * - R4 (T10338): CI gate validates that every `severity:'error'` entry has
16
17
  * a non-null `runtimeGate` AND a matching error-code in `errors.ts`.
17
18
  * - R5 (T10339): refactor `packages/core/src/release/invariants/registry.ts`
@@ -25,6 +26,8 @@
25
26
  * @task T10335 — R1: registry + ADR-073 I1-I8
26
27
  * @see ADR-073-above-epic-naming.md §1.2
27
28
  */
29
+ export { ADR_056_INVARIANTS } from './adr-056-release.js';
30
+ export { ADR_070_INVARIANTS } from './adr-070-orchestration.js';
28
31
  export { ADR_073_INVARIANTS } from './adr-073-saga.js';
29
32
  /**
30
33
  * Severity tier for a registered invariant.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/invariants/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAMH,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAE7D;;;;;;;;;;GAUG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,mBAAmB;IAClC,+CAA+C;IAC/C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,iEAAiE;IACjE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,oEAAoE;IACpE,QAAQ,CA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ED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,EAAE,CASrE"}
@@ -11,7 +11,8 @@
11
11
  * 5. Render documentation via the downstream R8 auto-render pipeline.
12
12
  *
13
13
  * Downstream consumers:
14
- * - R2 (T10336): register ADR-070 ORC codes into this same registry.
14
+ * - R2 (T10336, SHIPPED): registers ADR-070 ORC-001..ORC-014 codes into
15
+ * this same registry via `./adr-070-orchestration.ts`.
15
16
  * - R4 (T10338): CI gate validates that every `severity:'error'` entry has
16
17
  * a non-null `runtimeGate` AND a matching error-code in `errors.ts`.
17
18
  * - R5 (T10339): refactor `packages/core/src/release/invariants/registry.ts`
@@ -25,9 +26,13 @@
25
26
  * @task T10335 — R1: registry + ADR-073 I1-I8
26
27
  * @see ADR-073-above-epic-naming.md §1.2
27
28
  */
29
+ import { ADR_056_INVARIANTS } from './adr-056-release.js';
30
+ import { ADR_070_INVARIANTS } from './adr-070-orchestration.js';
28
31
  import { ADR_073_INVARIANTS } from './adr-073-saga.js';
29
32
  // Re-exported so consumers can import either the per-ADR list or the merged
30
33
  // registry from one place.
34
+ export { ADR_056_INVARIANTS } from './adr-056-release.js';
35
+ export { ADR_070_INVARIANTS } from './adr-070-orchestration.js';
31
36
  export { ADR_073_INVARIANTS } from './adr-073-saga.js';
32
37
  /**
33
38
  * Compute the canonical registry key for an invariant.
@@ -47,7 +52,11 @@ function buildKey(invariant) {
47
52
  * @internal
48
53
  */
49
54
  function buildRegistry() {
50
- const entries = [...ADR_073_INVARIANTS];
55
+ const entries = [
56
+ ...ADR_073_INVARIANTS,
57
+ ...ADR_056_INVARIANTS,
58
+ ...ADR_070_INVARIANTS,
59
+ ];
51
60
  const record = {};
52
61
  for (const entry of entries) {
53
62
  const key = buildKey(entry);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/invariants/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;G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AAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAkD,aAAa,EAAE,CAAC;AAElG;;;;;;;;GAQG;AACH,MAAM,UAAU,YAAY,CAAC,OAAe;IAC1C,OAAO,mBAAmB,CAAC,OAAO,CAAC,CAAC;AACtC,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAAW;IAC5C,MAAM,MAAM,GAA0B,EAAE,CAAC;IACzC,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,EAAE,CAAC;QACnD,MAAM,KAAK,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;QACvC,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,GAAG,KAAK,GAAG,EAAE,CAAC;YAC7C,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Type + construction tests for OperationInputContract, ValidationResult,
3
+ * and ValidationError.
4
+ *
5
+ * These tests are intentionally minimal — the contracts package is a leaf
6
+ * with zero runtime dependencies, so there is no validator to exercise
7
+ * here. Instead, we assert:
8
+ *
9
+ * 1. ValidationResult narrows correctly via the `ok` discriminator.
10
+ * 2. A typed OperationInputContract<T> can be constructed and its
11
+ * examples[0].value satisfies the generic.
12
+ * 3. ValidationError can be constructed with all 6 required fields.
13
+ *
14
+ * The runtime validator that consumes these types ships under T9915.
15
+ *
16
+ * @epic T9855
17
+ * @task T9914
18
+ */
19
+ export {};
20
+ //# sourceMappingURL=input-contract.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-contract.test.d.ts","sourceRoot":"","sources":["../../../src/operations/__tests__/input-contract.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG"}
@@ -0,0 +1,158 @@
1
+ /**
2
+ * Type + construction tests for OperationInputContract, ValidationResult,
3
+ * and ValidationError.
4
+ *
5
+ * These tests are intentionally minimal — the contracts package is a leaf
6
+ * with zero runtime dependencies, so there is no validator to exercise
7
+ * here. Instead, we assert:
8
+ *
9
+ * 1. ValidationResult narrows correctly via the `ok` discriminator.
10
+ * 2. A typed OperationInputContract<T> can be constructed and its
11
+ * examples[0].value satisfies the generic.
12
+ * 3. ValidationError can be constructed with all 6 required fields.
13
+ *
14
+ * The runtime validator that consumes these types ships under T9915.
15
+ *
16
+ * @epic T9855
17
+ * @task T9914
18
+ */
19
+ import { describe, expect, it } from 'vitest';
20
+ // ---------------------------------------------------------------------------
21
+ // ValidationResult discriminated-union narrowing
22
+ // ---------------------------------------------------------------------------
23
+ describe('ValidationResult<T>', () => {
24
+ it('narrows to the success branch when ok is true', () => {
25
+ // Constructor return type is widened so TS keeps both branches reachable
26
+ // at the call site — that's the whole point of the discriminated union.
27
+ const makeResult = () => ({
28
+ ok: true,
29
+ value: { title: 'Ship E7' },
30
+ });
31
+ const result = makeResult();
32
+ if (result.ok) {
33
+ // Type-level: TypeScript narrows result.value to { title: string }.
34
+ // Runtime: the value is exactly what we constructed.
35
+ expect(result.value.title).toBe('Ship E7');
36
+ }
37
+ else {
38
+ // Type-level: result.errors is ValidationError[].
39
+ expect(result.errors).toEqual([]);
40
+ }
41
+ });
42
+ it('narrows to the failure branch when ok is false', () => {
43
+ const makeResult = () => ({
44
+ ok: false,
45
+ errors: [
46
+ {
47
+ path: '/title',
48
+ expected: 'string with minLength 1',
49
+ received: 'empty string',
50
+ fix: 'Provide a non-empty title.',
51
+ errorCode: 'E_INPUT_MIN_LENGTH',
52
+ schemaPath: '#/properties/title/minLength',
53
+ },
54
+ ],
55
+ });
56
+ const result = makeResult();
57
+ if (result.ok) {
58
+ expect(result.value).toBeDefined();
59
+ }
60
+ else {
61
+ expect(result.errors).toHaveLength(1);
62
+ expect(result.errors[0]?.errorCode).toBe('E_INPUT_MIN_LENGTH');
63
+ }
64
+ });
65
+ });
66
+ // ---------------------------------------------------------------------------
67
+ // OperationInputContract<T> construction
68
+ // ---------------------------------------------------------------------------
69
+ describe('OperationInputContract<T>', () => {
70
+ it('builds a typed contract whose examples match the generic', () => {
71
+ const schema = {
72
+ type: 'object',
73
+ required: ['title', 'acceptance'],
74
+ properties: {
75
+ title: { type: 'string', minLength: 1, maxLength: 200 },
76
+ acceptance: { type: 'string', minLength: 1 },
77
+ },
78
+ additionalProperties: false,
79
+ };
80
+ const contract = {
81
+ operation: 'tasks.create',
82
+ schema,
83
+ examples: [
84
+ {
85
+ name: 'minimal',
86
+ value: { title: 'Ship E7', acceptance: 'PR merged' },
87
+ description: 'Smallest valid payload.',
88
+ },
89
+ ],
90
+ };
91
+ expect(contract.operation).toBe('tasks.create');
92
+ expect(contract.schema).toBe(schema);
93
+ expect(contract.examples).toHaveLength(1);
94
+ const first = contract.examples[0];
95
+ expect(first).toBeDefined();
96
+ // Type-level: first.value is CreateTaskInput. Runtime sanity:
97
+ expect(first?.value.title).toBe('Ship E7');
98
+ expect(first?.value.acceptance).toBe('PR merged');
99
+ expect(first?.name).toBe('minimal');
100
+ expect(first?.description).toBe('Smallest valid payload.');
101
+ });
102
+ it('accepts a contract with an example that omits the optional description', () => {
103
+ const contract = {
104
+ operation: 'docs.fetch',
105
+ schema: { type: 'object', required: ['id'], properties: { id: { type: 'string' } } },
106
+ examples: [{ name: 'minimal', value: { id: 'adr-076' } }],
107
+ };
108
+ expect(contract.examples[0]?.description).toBeUndefined();
109
+ });
110
+ });
111
+ // ---------------------------------------------------------------------------
112
+ // ValidationError shape
113
+ // ---------------------------------------------------------------------------
114
+ describe('ValidationError', () => {
115
+ it('constructs with all 6 required fields', () => {
116
+ const err = {
117
+ path: '/owners/0/email',
118
+ expected: 'string matching email format',
119
+ received: 'string',
120
+ fix: 'Use a valid email address (e.g. user@example.com).',
121
+ errorCode: 'E_INPUT_FORMAT_EMAIL',
122
+ schemaPath: '#/properties/owners/items/properties/email/format',
123
+ };
124
+ expect(err.path).toBe('/owners/0/email');
125
+ expect(err.expected).toBe('string matching email format');
126
+ expect(err.received).toBe('string');
127
+ expect(err.fix).toBe('Use a valid email address (e.g. user@example.com).');
128
+ expect(err.errorCode).toBe('E_INPUT_FORMAT_EMAIL');
129
+ expect(err.schemaPath).toBe('#/properties/owners/items/properties/email/format');
130
+ // All 6 fields present — no extras.
131
+ expect(Object.keys(err).sort()).toEqual([
132
+ 'errorCode',
133
+ 'expected',
134
+ 'fix',
135
+ 'path',
136
+ 'received',
137
+ 'schemaPath',
138
+ ]);
139
+ });
140
+ });
141
+ // ---------------------------------------------------------------------------
142
+ // Registry shape
143
+ // ---------------------------------------------------------------------------
144
+ describe('OperationInputContractRegistry', () => {
145
+ it('keys contracts by their operation identifier', () => {
146
+ const createTask = {
147
+ operation: 'tasks.create',
148
+ schema: { type: 'object', required: ['title'], properties: { title: { type: 'string' } } },
149
+ examples: [{ name: 'minimal', value: { title: 'a' } }],
150
+ };
151
+ const registry = {
152
+ 'tasks.create': createTask,
153
+ };
154
+ expect(registry['tasks.create']?.operation).toBe('tasks.create');
155
+ expect(registry['unknown.op']).toBeUndefined();
156
+ });
157
+ });
158
+ //# sourceMappingURL=input-contract.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-contract.test.js","sourceRoot":"","sources":["../../../src/operations/__tests__/input-contract.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAS9C,8EAA8E;AAC9E,iDAAiD;AACjD,8EAA8E;AAE9E,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;QACvD,yEAAyE;QACzE,wEAAwE;QACxE,MAAM,UAAU,GAAG,GAAw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Y,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -351,6 +351,22 @@ export interface DocsAddParams {
351
351
  * @task T9637 (T-DOCS-SLUG-2)
352
352
  */
353
353
  type?: DocsType;
354
+ /**
355
+ * When `true`, body-schema validation against
356
+ * {@link DocKindMetadata.requiredSections} is enforced — a missing
357
+ * required H2 section returns `E_DOC_SCHEMA_MISMATCH` with the
358
+ * missing-sections list in `details.missing`. When omitted or `false`,
359
+ * the validator runs in advisory mode: the write proceeds and any
360
+ * missing sections surface as a warning in the envelope's `meta`.
361
+ *
362
+ * Only meaningful when `file` is set; URL attachments skip body
363
+ * validation (no local bytes to scan).
364
+ *
365
+ * @task T10160 (E12.C3 · absorbs T10154)
366
+ * @epic T10157
367
+ * @saga T9855
368
+ */
369
+ strict?: boolean;
354
370
  }
355
371
  /**
356
372
  * Result of `docs.add`.
@@ -1 +1 @@
1
- {"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../src/operations/docs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAA2B,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAMnF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAC3B,MAAM,GACN,SAAS,GACT,aAAa,GACb,UAAU,GACV,UAAU,GACV,SAAS,CAAC;AAId,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,cAAc,CACD,CAAC;AAE3D;;;;;;;;;GASG;AACH,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AAEtC;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,iBAAiB;IAChC,gDAAgD;IAChD,EAAE,EAAE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