harness-everything 1.3.0 → 1.3.1

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 (125) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +6 -0
  4. package/ci/archive/325-prep/README.md +9 -2
  5. package/ci/archive/325-prep/doc-reconciliation-red.js +34 -8
  6. package/ci/fixtures/553-t2a/body-edit/base/.agents/harness-everything/project-docs.json +11 -0
  7. package/ci/fixtures/553-t2a/body-edit/base/docs/a.md +6 -0
  8. package/ci/fixtures/553-t2a/body-edit/base/docs/b.md +1 -0
  9. package/ci/fixtures/553-t2a/body-edit/candidate/docs/a.md +6 -0
  10. package/ci/fixtures/553-t2c/derived-regenerate-must/base/docs/adr/EVID-001-verify-all-evidence.md +11 -0
  11. package/ci/fixtures/553-t2c/derived-regenerate-must/base/docs/governed-index.md +19 -0
  12. package/ci/fixtures/553-t2c/derived-regenerate-must/candidate/docs/adr/EVID-001-verify-all-evidence.md +11 -0
  13. package/ci/fixtures/553-t2c/derived-regenerate-must/candidate/docs/governed-index.md +19 -0
  14. package/ci/fixtures/553-t2c/derived-regenerate-must/config.json +17 -0
  15. package/ci/fixtures/doc-obligations/derive/regression-pins.json +153 -0
  16. package/ci/fixtures/state-persist-post-tool-use/harness.js +206 -0
  17. package/ci/fixtures/state-persist-post-tool-use/off-handoff-golden.json +16 -0
  18. package/ci/fixtures/state-persist-post-tool-use/payload-post-tool-use-success.json +13 -0
  19. package/ci/fixtures/stop/fail-session-writes.js +109 -0
  20. package/ci/fixtures/workflow-contract/cases.json +3355 -0
  21. package/ci/fixtures/workflow-contract/wiring-cases.json +560 -0
  22. package/ci/lib/doc-reconciliation-prep-fixtures.js +4 -9
  23. package/ci/mechanism-2an-workflow-replay.test.js +324 -0
  24. package/ci/mechanism-2ax-doc-lifecycle.test.js +132 -0
  25. package/ci/mechanism-325-3a-doc-evidence.test.js +73 -0
  26. package/ci/mechanism-325-3a-doc-obligations.test.js +61 -0
  27. package/ci/mechanism-325-3b-preparation.test.js +208 -49
  28. package/ci/mechanism-325-3b-s1-review.test.js +20 -828
  29. package/ci/mechanism-325-3b-s3-providers.test.js +59 -0
  30. package/ci/mechanism-325-f3-derived-views.test.js +140 -0
  31. package/ci/mechanism-341-opencode-lane.test.js +164 -284
  32. package/ci/mechanism-35-verification-contract.test.js +246 -0
  33. package/ci/mechanism-365-step-edit-accounting.test.js +5 -6
  34. package/ci/mechanism-383-doc-glob-line-terminators.test.js +0 -30
  35. package/ci/mechanism-397-opencode-observations.test.js +151 -18
  36. package/ci/mechanism-553-e1-unhook-credit.test.js +328 -0
  37. package/ci/mechanism-553-p2a-claude-hooks.test.js +98 -0
  38. package/ci/mechanism-553-p3-plan-start.test.js +212 -0
  39. package/ci/mechanism-553-state-persist-post-tool-use.test.js +307 -0
  40. package/ci/mechanism-553-stop.test.js +427 -0
  41. package/ci/mechanism-553-t2a-derive.test.js +110 -0
  42. package/ci/mechanism-553-t2c-derive.test.js +94 -0
  43. package/ci/mechanism-e1-derived-regenerate.test.js +45 -206
  44. package/ci/mechanism-outline-sanitizer.test.js +0 -8
  45. package/ci/mechanism-pr-a-conflict-check.test.js +38 -305
  46. package/ci/mechanism-prb-outline-review.test.js +101 -3283
  47. package/docs/adr/DOCS-006-reconciliation-pilot.md +4 -2
  48. package/docs/adr/DOCS-008-obligation-abstraction-bounded-consumer.md +3 -3
  49. package/docs/doc-workflow-reconciliation.md +17 -2
  50. package/docs/document-lifecycle.md +6 -2
  51. package/docs/platform-capabilities.md +35 -5
  52. package/hooks/hooks.json +0 -46
  53. package/hooks/scripts/lib/workflow-obligations.js +0 -55
  54. package/hooks/scripts/state-persist.js +7 -95
  55. package/hooks/scripts/workflow-disposition.js +0 -2
  56. package/hooks/scripts/workflow-stop-gate.js +17 -30
  57. package/opencode-plugin/index.mjs +6 -70
  58. package/opencode-plugin/plugin.json +1 -1
  59. package/package.json +1 -1
  60. package/plugins/harness-everything/.antigravity-plugin/plugin.json +1 -1
  61. package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
  62. package/plugins/harness-everything/hooks/scripts/lib/workflow-obligations.js +0 -55
  63. package/plugins/harness-everything/hooks/scripts/state-persist.js +7 -95
  64. package/plugins/harness-everything/hooks/scripts/workflow-disposition.js +0 -2
  65. package/plugins/harness-everything/hooks/scripts/workflow-stop-gate.js +17 -30
  66. package/plugins/harness-everything/plugin.json +1 -1
  67. package/sbom.cdx.json +7 -7
  68. package/ci/fixtures/doc-obligations/reconciliation-s1/cases.json +0 -6854
  69. package/ci/fixtures/doc-obligations/reconciliation-s1/fail-session-writes.js +0 -116
  70. package/ci/fixtures/doc-obligations/reconciliation-s2a/harness.js +0 -507
  71. package/ci/fixtures/doc-obligations/reconciliation-s2a/run13-workflow-requirements.json +0 -42
  72. package/ci/fixtures/doc-obligations/reconciliation-s2a/vectors.json +0 -617
  73. package/ci/fixtures/doc-obligations/reconciliation-s2b/capture/harness.js +0 -415
  74. package/ci/fixtures/doc-obligations/reconciliation-s2b/capture/payload-post-tool-use-success-minimal.json +0 -9
  75. package/ci/fixtures/doc-obligations/reconciliation-s2b/capture/payload-subagent-start.json +0 -7
  76. package/ci/fixtures/doc-obligations/reconciliation-s2b/capture/payload-subagent-stop-freetext-reject.json +0 -11
  77. package/ci/fixtures/doc-obligations/reconciliation-s2b/capture/payload-subagent-stop-reject.json +0 -11
  78. package/ci/fixtures/doc-obligations/reconciliation-s2b/capture/payload-subagent-stop.json +0 -11
  79. package/ci/fixtures/doc-obligations/reconciliation-s2b/capture/payload-task-result.json +0 -19
  80. package/ci/fixtures/doc-obligations/reconciliation-s2b/corpus/off-capture-only.json +0 -99
  81. package/ci/fixtures/doc-obligations/reconciliation-s2b/corpus/off-legacy.json +0 -67
  82. package/ci/fixtures/doc-obligations/reconciliation-s2b/corpus/on-concurrent-writers.json +0 -62
  83. package/ci/fixtures/doc-obligations/reconciliation-s2b/corpus/on-lookalikes-runtime-mutations.json +0 -67
  84. package/ci/fixtures/doc-obligations/reconciliation-s2b/corpus/on-malformed.json +0 -85
  85. package/ci/fixtures/doc-obligations/reconciliation-s2b/corpus/on-normal-session.json +0 -74
  86. package/ci/fixtures/doc-obligations/reconciliation-s2b/corpus/on-runtime-drift-later-npm-test.json +0 -58
  87. package/ci/fixtures/doc-obligations/reconciliation-s2b/corpus/on-valid-direct-quoted-review.json +0 -85
  88. package/ci/fixtures/doc-obligations/reconciliation-s2b/f4/cases.json +0 -2267
  89. package/ci/fixtures/doc-obligations/reconciliation-s2b/wiring/cases.json +0 -1110
  90. package/ci/lib/doc-reconciliation-file-spy.js +0 -23
  91. package/ci/lib/doc-reconciliation-qualification-preload.js +0 -37
  92. package/ci/lib/doc-reconciliation-replay.js +0 -104
  93. package/ci/lib/doc-reconciliation-staged-tree.js +0 -102
  94. package/ci/mechanism-325-3b-h1-qualification.test.js +0 -206
  95. package/ci/mechanism-325-3b-s1.test.js +0 -188
  96. package/ci/mechanism-325-3b-s2a-core.test.js +0 -840
  97. package/ci/mechanism-325-3b-s2a-producer.test.js +0 -564
  98. package/ci/mechanism-325-3b-s2b-capture.test.js +0 -566
  99. package/ci/mechanism-325-3b-s2b-wiring.test.js +0 -679
  100. package/ci/mechanism-325-f4-invariants.test.js +0 -606
  101. package/ci/mechanism-325-f4-projections.test.js +0 -392
  102. package/ci/mechanism-325-f4-qualification.test.js +0 -228
  103. package/ci/mechanism-325-f4-trust-boundary.test.js +0 -880
  104. package/ci/mechanism-e1-dependency-artifact-scope.test.js +0 -657
  105. package/hooks/scripts/lib/doc-reconciliation-capture.sanitized.jsonl +0 -26
  106. package/hooks/scripts/lib/doc-reconciliation-core.js +0 -336
  107. package/hooks/scripts/lib/doc-reconciliation-events.js +0 -292
  108. package/hooks/scripts/lib/doc-reconciliation-outline-capture.sanitized.jsonl +0 -24
  109. package/hooks/scripts/lib/doc-reconciliation-pilot.js +0 -482
  110. package/hooks/scripts/lib/doc-reconciliation-producer.js +0 -468
  111. package/hooks/scripts/lib/doc-reconciliation-provider.js +0 -3304
  112. package/hooks/scripts/lib/doc-reconciliation-qualification.json +0 -54
  113. package/hooks/scripts/w6-state-operations.js +0 -239
  114. package/plugins/harness-everything/hooks/scripts/lib/doc-reconciliation-capture.sanitized.jsonl +0 -26
  115. package/plugins/harness-everything/hooks/scripts/lib/doc-reconciliation-core.js +0 -336
  116. package/plugins/harness-everything/hooks/scripts/lib/doc-reconciliation-events.js +0 -292
  117. package/plugins/harness-everything/hooks/scripts/lib/doc-reconciliation-outline-capture.sanitized.jsonl +0 -24
  118. package/plugins/harness-everything/hooks/scripts/lib/doc-reconciliation-pilot.js +0 -482
  119. package/plugins/harness-everything/hooks/scripts/lib/doc-reconciliation-producer.js +0 -468
  120. package/plugins/harness-everything/hooks/scripts/lib/doc-reconciliation-provider.js +0 -3304
  121. package/plugins/harness-everything/hooks/scripts/lib/doc-reconciliation-qualification.json +0 -54
  122. package/plugins/harness-everything/hooks/scripts/w6-state-operations.js +0 -239
  123. package/scripts/system-one-eval-laya.js +0 -112
  124. /package/ci/fixtures/{doc-obligations/reconciliation-s2b/capture → state-persist-post-tool-use}/payload-post-tool-use-failure.json +0 -0
  125. /package/ci/fixtures/{doc-obligations/reconciliation-s2b/wiring → workflow-contract}/legacy-off-golden.json +0 -0
@@ -0,0 +1,3355 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "phase": "workflow-contract-replay",
4
+ "description": "Surviving CLI/Stop workflow replay controls migrated from reconciliation-s1/cases.json (Issue #553 T2-W). Replayed by ci/mechanism-2an-workflow-replay.test.js through real source and packaged entry points.",
5
+ "cases": [
6
+ {
7
+ "id": "P01",
8
+ "family": "P01",
9
+ "description": "Declared doc-change then verification; the verification step is passed with free text only.",
10
+ "topology": "iterative-single-typed",
11
+ "requirements": [
12
+ {
13
+ "id": "req-docs",
14
+ "stepType": "doc-change",
15
+ "summary": "Update the ADR text",
16
+ "acceptance": "normative ADR text is reviewed"
17
+ },
18
+ {
19
+ "id": "req-verify",
20
+ "stepType": "verification",
21
+ "summary": "Verify the ADR change",
22
+ "acceptance": "objective doc checks are recorded"
23
+ }
24
+ ],
25
+ "input": {
26
+ "baseFiles": {},
27
+ "candidateFiles": {},
28
+ "config": null,
29
+ "task": null,
30
+ "hostEvents": []
31
+ },
32
+ "actions": [
33
+ {
34
+ "id": "route",
35
+ "op": "route",
36
+ "payload": {
37
+ "prompt": "Fix this checkout bug and update its documentation."
38
+ }
39
+ },
40
+ {
41
+ "id": "plan",
42
+ "op": "plan",
43
+ "payload": {
44
+ "requirements": "$requirements",
45
+ "strategy": "iterative-single",
46
+ "evidence": "two dependent requirements fit a bounded documentation loop"
47
+ }
48
+ },
49
+ {
50
+ "id": "start",
51
+ "op": "start",
52
+ "payload": {}
53
+ },
54
+ {
55
+ "id": "doc-pass",
56
+ "op": "step",
57
+ "payload": {
58
+ "stepId": "req-docs",
59
+ "disposition": "pass",
60
+ "evidence": "ADR text updated"
61
+ }
62
+ },
63
+ {
64
+ "id": "verify-bind",
65
+ "op": "binding",
66
+ "payload": {
67
+ "stepId": "req-verify",
68
+ "bindingId": "verification-loop",
69
+ "disposition": "loaded",
70
+ "evidence": "verification loop skill located"
71
+ }
72
+ },
73
+ {
74
+ "id": "verify-pass",
75
+ "op": "step",
76
+ "payload": {
77
+ "stepId": "req-verify",
78
+ "disposition": "pass",
79
+ "evidence": "done"
80
+ }
81
+ },
82
+ {
83
+ "id": "stop",
84
+ "op": "stop",
85
+ "payload": {}
86
+ },
87
+ {
88
+ "id": "stop-generic",
89
+ "op": "stopGeneric",
90
+ "payload": {}
91
+ }
92
+ ],
93
+ "expectations": {
94
+ "off": [
95
+ {
96
+ "id": "verify-exit-accepted",
97
+ "path": [
98
+ "actions",
99
+ "verify-pass",
100
+ "exitCode"
101
+ ],
102
+ "operator": "equals",
103
+ "expected": 0,
104
+ "s1Kind": "control"
105
+ },
106
+ {
107
+ "id": "verify-obligation-passed",
108
+ "path": [
109
+ "actions",
110
+ "verify-pass",
111
+ "state",
112
+ "obligations",
113
+ "obligations",
114
+ 3,
115
+ "status"
116
+ ],
117
+ "operator": "equals",
118
+ "expected": "pass",
119
+ "s1Kind": "control"
120
+ },
121
+ {
122
+ "id": "stop-satisfied",
123
+ "path": [
124
+ "actions",
125
+ "stop",
126
+ "state",
127
+ "workflow",
128
+ "state"
129
+ ],
130
+ "operator": "equals",
131
+ "expected": "satisfied",
132
+ "s1Kind": "control"
133
+ },
134
+ {
135
+ "id": "pilot-not-credited",
136
+ "path": [
137
+ "pilot"
138
+ ],
139
+ "operator": "equals",
140
+ "expected": null,
141
+ "s1Kind": "control"
142
+ },
143
+ {
144
+ "id": "stop-generic-exit-0",
145
+ "path": [
146
+ "actions",
147
+ "stop-generic",
148
+ "exitCode"
149
+ ],
150
+ "operator": "equals",
151
+ "expected": 0,
152
+ "s1Kind": "additional"
153
+ }
154
+ ],
155
+ "on": [
156
+ {
157
+ "id": "stop-exit-0",
158
+ "path": [
159
+ "actions",
160
+ "stop",
161
+ "exitCode"
162
+ ],
163
+ "operator": "equals",
164
+ "expected": 0,
165
+ "s1Kind": "additional"
166
+ },
167
+ {
168
+ "id": "stop-generic-exit-0",
169
+ "path": [
170
+ "actions",
171
+ "stop-generic",
172
+ "exitCode"
173
+ ],
174
+ "operator": "equals",
175
+ "expected": 0,
176
+ "s1Kind": "additional"
177
+ }
178
+ ]
179
+ }
180
+ },
181
+ {
182
+ "id": "P04",
183
+ "family": "P04",
184
+ "description": "Direct aggregate execute and verify PASS writes with free text on a doc-governed typed plan.",
185
+ "topology": "iterative-single-typed",
186
+ "requirements": [
187
+ {
188
+ "id": "req-docs",
189
+ "stepType": "doc-change",
190
+ "summary": "Update the ADR text",
191
+ "acceptance": "normative ADR text is reviewed"
192
+ },
193
+ {
194
+ "id": "req-verify",
195
+ "stepType": "verification",
196
+ "summary": "Verify the ADR change",
197
+ "acceptance": "objective doc checks are recorded"
198
+ }
199
+ ],
200
+ "input": {
201
+ "baseFiles": {},
202
+ "candidateFiles": {},
203
+ "config": null,
204
+ "task": null,
205
+ "hostEvents": []
206
+ },
207
+ "actions": [
208
+ {
209
+ "id": "route",
210
+ "op": "route",
211
+ "payload": {
212
+ "prompt": "Fix this checkout bug and update its documentation."
213
+ }
214
+ },
215
+ {
216
+ "id": "plan",
217
+ "op": "plan",
218
+ "payload": {
219
+ "requirements": "$requirements",
220
+ "strategy": "iterative-single",
221
+ "evidence": "two dependent requirements fit a bounded documentation loop"
222
+ }
223
+ },
224
+ {
225
+ "id": "start",
226
+ "op": "start",
227
+ "payload": {}
228
+ },
229
+ {
230
+ "id": "direct-execute",
231
+ "op": "obligation",
232
+ "payload": {
233
+ "obligationId": "execute",
234
+ "disposition": "pass",
235
+ "evidence": "done"
236
+ }
237
+ },
238
+ {
239
+ "id": "direct-verify",
240
+ "op": "obligation",
241
+ "payload": {
242
+ "obligationId": "verify",
243
+ "disposition": "pass",
244
+ "evidence": "done"
245
+ }
246
+ },
247
+ {
248
+ "id": "stop",
249
+ "op": "stop",
250
+ "payload": {}
251
+ },
252
+ {
253
+ "id": "stop-generic",
254
+ "op": "stopGeneric",
255
+ "payload": {}
256
+ }
257
+ ],
258
+ "expectations": {
259
+ "off": [
260
+ {
261
+ "id": "direct-execute-accepted",
262
+ "path": [
263
+ "actions",
264
+ "direct-execute",
265
+ "exitCode"
266
+ ],
267
+ "operator": "equals",
268
+ "expected": 0,
269
+ "s1Kind": "control"
270
+ },
271
+ {
272
+ "id": "direct-verify-accepted",
273
+ "path": [
274
+ "actions",
275
+ "direct-verify",
276
+ "exitCode"
277
+ ],
278
+ "operator": "equals",
279
+ "expected": 0,
280
+ "s1Kind": "control"
281
+ },
282
+ {
283
+ "id": "verify-obligation-passed-by-text",
284
+ "path": [
285
+ "actions",
286
+ "direct-verify",
287
+ "state",
288
+ "obligations",
289
+ "obligations",
290
+ 3,
291
+ "status"
292
+ ],
293
+ "operator": "equals",
294
+ "expected": "pass",
295
+ "s1Kind": "control"
296
+ },
297
+ {
298
+ "id": "stop-blocked-by-authored-step",
299
+ "path": [
300
+ "actions",
301
+ "stop",
302
+ "state",
303
+ "workflow",
304
+ "unresolved"
305
+ ],
306
+ "operator": "includes",
307
+ "expected": "step:req-docs:pending",
308
+ "s1Kind": "control"
309
+ },
310
+ {
311
+ "id": "pilot-not-credited",
312
+ "path": [
313
+ "pilot"
314
+ ],
315
+ "operator": "equals",
316
+ "expected": null,
317
+ "s1Kind": "control"
318
+ },
319
+ {
320
+ "id": "stop-generic-exit-0",
321
+ "path": [
322
+ "actions",
323
+ "stop-generic",
324
+ "exitCode"
325
+ ],
326
+ "operator": "equals",
327
+ "expected": 0,
328
+ "s1Kind": "additional"
329
+ }
330
+ ],
331
+ "on": [
332
+ {
333
+ "id": "stop-blocked-by-authored-step",
334
+ "path": [
335
+ "actions",
336
+ "stop",
337
+ "state",
338
+ "workflow",
339
+ "unresolved"
340
+ ],
341
+ "operator": "includes",
342
+ "expected": "step:req-docs:pending",
343
+ "s1Kind": "control"
344
+ },
345
+ {
346
+ "id": "stop-exit-0",
347
+ "path": [
348
+ "actions",
349
+ "stop",
350
+ "exitCode"
351
+ ],
352
+ "operator": "equals",
353
+ "expected": 0,
354
+ "s1Kind": "additional"
355
+ },
356
+ {
357
+ "id": "stop-generic-exit-0",
358
+ "path": [
359
+ "actions",
360
+ "stop-generic",
361
+ "exitCode"
362
+ ],
363
+ "operator": "equals",
364
+ "expected": 0,
365
+ "s1Kind": "additional"
366
+ }
367
+ ]
368
+ }
369
+ },
370
+ {
371
+ "id": "P06",
372
+ "family": "P06",
373
+ "description": "Typed non-doc plan with a git-materialised non-code, non-governed diff (assets/notes.txt): no applicable or unknown MUST, so legacy satisfied under ON.",
374
+ "topology": "iterative-single-typed",
375
+ "requirements": [
376
+ {
377
+ "id": "req-code",
378
+ "stepType": "behavior-change",
379
+ "summary": "Fix the checkout failure",
380
+ "acceptance": "the failing scenario succeeds"
381
+ },
382
+ {
383
+ "id": "req-verify",
384
+ "stepType": "verification",
385
+ "summary": "Verify the checkout change",
386
+ "acceptance": "objective check evidence is recorded"
387
+ }
388
+ ],
389
+ "input": {
390
+ "baseFiles": {
391
+ ".agents/harness-everything/project-docs.json": "{\n \"governed\": [\n { \"path\": \"docs/adr/**\", \"role\": \"adr\" }\n ],\n \"domains\": [\"GRPH\"]\n}\n",
392
+ "assets/notes.txt": "Release notes draft.\n"
393
+ },
394
+ "candidateFiles": {
395
+ ".agents/harness-everything/project-docs.json": "{\n \"governed\": [\n { \"path\": \"docs/adr/**\", \"role\": \"adr\" }\n ],\n \"domains\": [\"GRPH\"]\n}\n",
396
+ "assets/notes.txt": "Release notes draft, revised.\n"
397
+ },
398
+ "config": null,
399
+ "task": null,
400
+ "hostEvents": []
401
+ },
402
+ "actions": [
403
+ {
404
+ "id": "route",
405
+ "op": "route",
406
+ "payload": {
407
+ "prompt": "Fix this checkout bug and add a regression test."
408
+ }
409
+ },
410
+ {
411
+ "id": "plan",
412
+ "op": "plan",
413
+ "payload": {
414
+ "requirements": "$requirements",
415
+ "strategy": "iterative-single",
416
+ "evidence": "two dependent requirements fit a bounded test-fix-verify loop"
417
+ }
418
+ },
419
+ {
420
+ "id": "start",
421
+ "op": "start",
422
+ "payload": {}
423
+ },
424
+ {
425
+ "id": "direct-execute",
426
+ "op": "obligation",
427
+ "payload": {
428
+ "obligationId": "execute",
429
+ "disposition": "pass",
430
+ "evidence": "typed execution steps are underway"
431
+ }
432
+ },
433
+ {
434
+ "id": "tdd-bind",
435
+ "op": "binding",
436
+ "payload": {
437
+ "stepId": "req-code",
438
+ "bindingId": "tdd",
439
+ "disposition": "loaded",
440
+ "evidence": "tdd skill located"
441
+ }
442
+ },
443
+ {
444
+ "id": "code-pass",
445
+ "op": "step",
446
+ "payload": {
447
+ "stepId": "req-code",
448
+ "disposition": "pass",
449
+ "evidence": "regression test added"
450
+ }
451
+ },
452
+ {
453
+ "id": "verify-bind",
454
+ "op": "binding",
455
+ "payload": {
456
+ "stepId": "req-verify",
457
+ "bindingId": "verification-loop",
458
+ "disposition": "loaded",
459
+ "evidence": "verification loop skill located"
460
+ }
461
+ },
462
+ {
463
+ "id": "verify-pass",
464
+ "op": "step",
465
+ "payload": {
466
+ "stepId": "req-verify",
467
+ "disposition": "pass",
468
+ "evidence": "objective check recorded"
469
+ }
470
+ },
471
+ {
472
+ "id": "stop",
473
+ "op": "stop",
474
+ "payload": {}
475
+ },
476
+ {
477
+ "id": "stop-generic",
478
+ "op": "stopGeneric",
479
+ "payload": {}
480
+ }
481
+ ],
482
+ "expectations": {
483
+ "off": [
484
+ {
485
+ "id": "route-exit",
486
+ "path": [
487
+ "actions",
488
+ "route",
489
+ "exitCode"
490
+ ],
491
+ "operator": "equals",
492
+ "expected": 0,
493
+ "s1Kind": "control"
494
+ },
495
+ {
496
+ "id": "plan-exit",
497
+ "path": [
498
+ "actions",
499
+ "plan",
500
+ "exitCode"
501
+ ],
502
+ "operator": "equals",
503
+ "expected": 0,
504
+ "s1Kind": "control"
505
+ },
506
+ {
507
+ "id": "start-exit",
508
+ "path": [
509
+ "actions",
510
+ "start",
511
+ "exitCode"
512
+ ],
513
+ "operator": "equals",
514
+ "expected": 0,
515
+ "s1Kind": "control"
516
+ },
517
+ {
518
+ "id": "verify-pass-exit",
519
+ "path": [
520
+ "actions",
521
+ "verify-pass",
522
+ "exitCode"
523
+ ],
524
+ "operator": "equals",
525
+ "expected": 0,
526
+ "s1Kind": "control"
527
+ },
528
+ {
529
+ "id": "stop-satisfied",
530
+ "path": [
531
+ "actions",
532
+ "stop",
533
+ "state",
534
+ "workflow",
535
+ "state"
536
+ ],
537
+ "operator": "equals",
538
+ "expected": "satisfied",
539
+ "s1Kind": "control"
540
+ },
541
+ {
542
+ "id": "stop-no-unresolved",
543
+ "path": [
544
+ "actions",
545
+ "stop",
546
+ "state",
547
+ "workflow",
548
+ "unresolved"
549
+ ],
550
+ "operator": "equals",
551
+ "expected": [],
552
+ "s1Kind": "control"
553
+ },
554
+ {
555
+ "id": "direct-execute-accepted",
556
+ "path": [
557
+ "actions",
558
+ "direct-execute",
559
+ "exitCode"
560
+ ],
561
+ "operator": "equals",
562
+ "expected": 0,
563
+ "s1Kind": "control"
564
+ },
565
+ {
566
+ "id": "pilot-not-credited",
567
+ "path": [
568
+ "pilot"
569
+ ],
570
+ "operator": "equals",
571
+ "expected": null,
572
+ "s1Kind": "control"
573
+ },
574
+ {
575
+ "id": "stop-generic-exit-0",
576
+ "path": [
577
+ "actions",
578
+ "stop-generic",
579
+ "exitCode"
580
+ ],
581
+ "operator": "equals",
582
+ "expected": 0,
583
+ "s1Kind": "additional"
584
+ }
585
+ ],
586
+ "on": [
587
+ {
588
+ "id": "route-exit",
589
+ "path": [
590
+ "actions",
591
+ "route",
592
+ "exitCode"
593
+ ],
594
+ "operator": "equals",
595
+ "expected": 0,
596
+ "s1Kind": "control"
597
+ },
598
+ {
599
+ "id": "plan-exit",
600
+ "path": [
601
+ "actions",
602
+ "plan",
603
+ "exitCode"
604
+ ],
605
+ "operator": "equals",
606
+ "expected": 0,
607
+ "s1Kind": "control"
608
+ },
609
+ {
610
+ "id": "start-exit",
611
+ "path": [
612
+ "actions",
613
+ "start",
614
+ "exitCode"
615
+ ],
616
+ "operator": "equals",
617
+ "expected": 0,
618
+ "s1Kind": "control"
619
+ },
620
+ {
621
+ "id": "verify-pass-exit",
622
+ "path": [
623
+ "actions",
624
+ "verify-pass",
625
+ "exitCode"
626
+ ],
627
+ "operator": "equals",
628
+ "expected": 0,
629
+ "s1Kind": "control"
630
+ },
631
+ {
632
+ "id": "stop-satisfied",
633
+ "path": [
634
+ "actions",
635
+ "stop",
636
+ "state",
637
+ "workflow",
638
+ "state"
639
+ ],
640
+ "operator": "equals",
641
+ "expected": "satisfied",
642
+ "s1Kind": "control"
643
+ },
644
+ {
645
+ "id": "stop-no-unresolved",
646
+ "path": [
647
+ "actions",
648
+ "stop",
649
+ "state",
650
+ "workflow",
651
+ "unresolved"
652
+ ],
653
+ "operator": "equals",
654
+ "expected": [],
655
+ "s1Kind": "control"
656
+ },
657
+ {
658
+ "id": "direct-execute-accepted",
659
+ "path": [
660
+ "actions",
661
+ "direct-execute",
662
+ "exitCode"
663
+ ],
664
+ "operator": "equals",
665
+ "expected": 0,
666
+ "s1Kind": "control"
667
+ },
668
+ {
669
+ "id": "stop-exit-0",
670
+ "path": [
671
+ "actions",
672
+ "stop",
673
+ "exitCode"
674
+ ],
675
+ "operator": "equals",
676
+ "expected": 0,
677
+ "s1Kind": "additional"
678
+ },
679
+ {
680
+ "id": "stop-generic-exit-0",
681
+ "path": [
682
+ "actions",
683
+ "stop-generic",
684
+ "exitCode"
685
+ ],
686
+ "operator": "equals",
687
+ "expected": 0,
688
+ "s1Kind": "additional"
689
+ }
690
+ ]
691
+ }
692
+ },
693
+ {
694
+ "id": "P02d",
695
+ "family": "P02",
696
+ "description": "unavailable verifier: a required verification binding is unavailable, so verification must not pass",
697
+ "topology": "iterative-single-typed",
698
+ "requirements": [
699
+ {
700
+ "id": "req-docs",
701
+ "stepType": "doc-change",
702
+ "summary": "Update the ADR text",
703
+ "acceptance": "normative ADR text is reviewed"
704
+ },
705
+ {
706
+ "id": "req-verify",
707
+ "stepType": "verification",
708
+ "summary": "Verify the ADR change",
709
+ "acceptance": "objective doc checks are recorded"
710
+ }
711
+ ],
712
+ "input": {
713
+ "baseFiles": {},
714
+ "candidateFiles": {},
715
+ "config": null,
716
+ "task": null,
717
+ "hostEvents": []
718
+ },
719
+ "actions": [
720
+ {
721
+ "id": "route",
722
+ "op": "route",
723
+ "payload": {
724
+ "prompt": "Fix this checkout bug and update its documentation."
725
+ }
726
+ },
727
+ {
728
+ "id": "plan",
729
+ "op": "plan",
730
+ "payload": {
731
+ "requirements": "$requirements",
732
+ "strategy": "iterative-single",
733
+ "evidence": "two dependent requirements fit a bounded documentation loop"
734
+ }
735
+ },
736
+ {
737
+ "id": "start",
738
+ "op": "start",
739
+ "payload": {}
740
+ },
741
+ {
742
+ "id": "doc-pass",
743
+ "op": "step",
744
+ "payload": {
745
+ "stepId": "req-docs",
746
+ "disposition": "pass",
747
+ "evidence": "ADR text updated"
748
+ }
749
+ },
750
+ {
751
+ "id": "verify-bind",
752
+ "op": "binding",
753
+ "payload": {
754
+ "stepId": "req-verify",
755
+ "bindingId": "verification-loop",
756
+ "disposition": "unavailable",
757
+ "evidence": "verification loop skill not available on this host"
758
+ }
759
+ },
760
+ {
761
+ "id": "verify-pass",
762
+ "op": "step",
763
+ "payload": {
764
+ "stepId": "req-verify",
765
+ "disposition": "pass",
766
+ "evidence": "done"
767
+ },
768
+ "expectExit": {
769
+ "off": 2,
770
+ "on": 2
771
+ }
772
+ },
773
+ {
774
+ "id": "stop",
775
+ "op": "stop",
776
+ "payload": {}
777
+ },
778
+ {
779
+ "id": "stop-generic",
780
+ "op": "stopGeneric",
781
+ "payload": {}
782
+ }
783
+ ],
784
+ "expectations": {
785
+ "off": [
786
+ {
787
+ "id": "verify-pass-exit",
788
+ "path": [
789
+ "actions",
790
+ "verify-pass",
791
+ "exitCode"
792
+ ],
793
+ "operator": "equals",
794
+ "expected": 2,
795
+ "s1Kind": "control"
796
+ },
797
+ {
798
+ "id": "stop-state",
799
+ "path": [
800
+ "actions",
801
+ "stop",
802
+ "state",
803
+ "workflow",
804
+ "state"
805
+ ],
806
+ "operator": "equals",
807
+ "expected": "running",
808
+ "s1Kind": "control"
809
+ },
810
+ {
811
+ "id": "stop-reports",
812
+ "path": [
813
+ "actions",
814
+ "stop",
815
+ "state",
816
+ "workflow",
817
+ "unresolved"
818
+ ],
819
+ "operator": "includes",
820
+ "expected": "step:req-verify:pending",
821
+ "s1Kind": "control"
822
+ },
823
+ {
824
+ "id": "stop-generic-exit-0",
825
+ "path": [
826
+ "actions",
827
+ "stop-generic",
828
+ "exitCode"
829
+ ],
830
+ "operator": "equals",
831
+ "expected": 0,
832
+ "s1Kind": "additional"
833
+ }
834
+ ],
835
+ "on": [
836
+ {
837
+ "id": "verify-pass-exit",
838
+ "path": [
839
+ "actions",
840
+ "verify-pass",
841
+ "exitCode"
842
+ ],
843
+ "operator": "equals",
844
+ "expected": 2,
845
+ "s1Kind": "control"
846
+ },
847
+ {
848
+ "id": "stop-state",
849
+ "path": [
850
+ "actions",
851
+ "stop",
852
+ "state",
853
+ "workflow",
854
+ "state"
855
+ ],
856
+ "operator": "equals",
857
+ "expected": "running",
858
+ "s1Kind": "control"
859
+ },
860
+ {
861
+ "id": "stop-reports",
862
+ "path": [
863
+ "actions",
864
+ "stop",
865
+ "state",
866
+ "workflow",
867
+ "unresolved"
868
+ ],
869
+ "operator": "includes",
870
+ "expected": "step:req-verify:pending",
871
+ "s1Kind": "control"
872
+ },
873
+ {
874
+ "id": "stop-exit-0",
875
+ "path": [
876
+ "actions",
877
+ "stop",
878
+ "exitCode"
879
+ ],
880
+ "operator": "equals",
881
+ "expected": 0,
882
+ "s1Kind": "additional"
883
+ },
884
+ {
885
+ "id": "stop-generic-exit-0",
886
+ "path": [
887
+ "actions",
888
+ "stop-generic",
889
+ "exitCode"
890
+ ],
891
+ "operator": "equals",
892
+ "expected": 0,
893
+ "s1Kind": "additional"
894
+ }
895
+ ]
896
+ }
897
+ },
898
+ {
899
+ "id": "P02e",
900
+ "family": "P02",
901
+ "description": "self-review: an authored review step is passed with text saying the author reviewed the change",
902
+ "topology": "iterative-single-typed",
903
+ "requirements": [
904
+ {
905
+ "id": "req-docs",
906
+ "stepType": "doc-change",
907
+ "summary": "Update the ADR text",
908
+ "acceptance": "normative ADR text is reviewed"
909
+ },
910
+ {
911
+ "id": "req-review",
912
+ "stepType": "review",
913
+ "summary": "Review the ADR change",
914
+ "acceptance": "reviewed scope and findings are recorded"
915
+ },
916
+ {
917
+ "id": "req-verify",
918
+ "stepType": "verification",
919
+ "summary": "Verify the ADR change",
920
+ "acceptance": "objective doc checks are recorded"
921
+ }
922
+ ],
923
+ "input": {
924
+ "baseFiles": {},
925
+ "candidateFiles": {},
926
+ "config": null,
927
+ "task": null,
928
+ "hostEvents": []
929
+ },
930
+ "actions": [
931
+ {
932
+ "id": "route",
933
+ "op": "route",
934
+ "payload": {
935
+ "prompt": "Fix this checkout bug and update its documentation."
936
+ }
937
+ },
938
+ {
939
+ "id": "plan",
940
+ "op": "plan",
941
+ "payload": {
942
+ "requirements": "$requirements",
943
+ "strategy": "iterative-single",
944
+ "evidence": "two dependent requirements fit a bounded documentation loop"
945
+ }
946
+ },
947
+ {
948
+ "id": "start",
949
+ "op": "start",
950
+ "payload": {}
951
+ },
952
+ {
953
+ "id": "doc-pass",
954
+ "op": "step",
955
+ "payload": {
956
+ "stepId": "req-docs",
957
+ "disposition": "pass",
958
+ "evidence": "ADR text updated"
959
+ }
960
+ },
961
+ {
962
+ "id": "review-pass",
963
+ "op": "step",
964
+ "payload": {
965
+ "stepId": "req-review",
966
+ "disposition": "pass",
967
+ "evidence": "self-review by the author of the change"
968
+ }
969
+ },
970
+ {
971
+ "id": "stop",
972
+ "op": "stop",
973
+ "payload": {}
974
+ },
975
+ {
976
+ "id": "stop-generic",
977
+ "op": "stopGeneric",
978
+ "payload": {}
979
+ }
980
+ ],
981
+ "expectations": {
982
+ "off": [
983
+ {
984
+ "id": "review-pass-exit",
985
+ "path": [
986
+ "actions",
987
+ "review-pass",
988
+ "exitCode"
989
+ ],
990
+ "operator": "equals",
991
+ "expected": 0,
992
+ "s1Kind": "control"
993
+ },
994
+ {
995
+ "id": "stop-reports",
996
+ "path": [
997
+ "actions",
998
+ "stop",
999
+ "state",
1000
+ "workflow",
1001
+ "unresolved"
1002
+ ],
1003
+ "operator": "includes",
1004
+ "expected": "step:req-verify:pending",
1005
+ "s1Kind": "control"
1006
+ },
1007
+ {
1008
+ "id": "stop-generic-exit-0",
1009
+ "path": [
1010
+ "actions",
1011
+ "stop-generic",
1012
+ "exitCode"
1013
+ ],
1014
+ "operator": "equals",
1015
+ "expected": 0,
1016
+ "s1Kind": "additional"
1017
+ }
1018
+ ],
1019
+ "on": [
1020
+ {
1021
+ "id": "stop-exit-0",
1022
+ "path": [
1023
+ "actions",
1024
+ "stop",
1025
+ "exitCode"
1026
+ ],
1027
+ "operator": "equals",
1028
+ "expected": 0,
1029
+ "s1Kind": "additional"
1030
+ },
1031
+ {
1032
+ "id": "stop-generic-exit-0",
1033
+ "path": [
1034
+ "actions",
1035
+ "stop-generic",
1036
+ "exitCode"
1037
+ ],
1038
+ "operator": "equals",
1039
+ "expected": 0,
1040
+ "s1Kind": "additional"
1041
+ }
1042
+ ]
1043
+ }
1044
+ },
1045
+ {
1046
+ "id": "P03",
1047
+ "family": "P03",
1048
+ "description": "ordered doc-change, review, verification: the first verification attempt has no evidence; trusted evidence arrives and the retry is made",
1049
+ "topology": "iterative-single-typed",
1050
+ "requirements": [
1051
+ {
1052
+ "id": "req-docs",
1053
+ "stepType": "doc-change",
1054
+ "summary": "Update the ADR text",
1055
+ "acceptance": "normative ADR text is reviewed"
1056
+ },
1057
+ {
1058
+ "id": "req-review",
1059
+ "stepType": "review",
1060
+ "summary": "Review the ADR change",
1061
+ "acceptance": "reviewed scope and findings are recorded"
1062
+ },
1063
+ {
1064
+ "id": "req-verify",
1065
+ "stepType": "verification",
1066
+ "summary": "Verify the ADR change",
1067
+ "acceptance": "objective doc checks are recorded"
1068
+ }
1069
+ ],
1070
+ "input": {
1071
+ "baseFiles": {},
1072
+ "candidateFiles": {},
1073
+ "config": null,
1074
+ "task": null,
1075
+ "hostEvents": []
1076
+ },
1077
+ "actions": [
1078
+ {
1079
+ "id": "route",
1080
+ "op": "route",
1081
+ "payload": {
1082
+ "prompt": "Fix this checkout bug and update its documentation."
1083
+ }
1084
+ },
1085
+ {
1086
+ "id": "plan",
1087
+ "op": "plan",
1088
+ "payload": {
1089
+ "requirements": "$requirements",
1090
+ "strategy": "iterative-single",
1091
+ "evidence": "two dependent requirements fit a bounded documentation loop"
1092
+ }
1093
+ },
1094
+ {
1095
+ "id": "start",
1096
+ "op": "start",
1097
+ "payload": {}
1098
+ },
1099
+ {
1100
+ "id": "doc-pass",
1101
+ "op": "step",
1102
+ "payload": {
1103
+ "stepId": "req-docs",
1104
+ "disposition": "pass",
1105
+ "evidence": "ADR text updated"
1106
+ }
1107
+ },
1108
+ {
1109
+ "id": "review-pass",
1110
+ "op": "step",
1111
+ "payload": {
1112
+ "stepId": "req-review",
1113
+ "disposition": "pass",
1114
+ "evidence": "review scope recorded"
1115
+ }
1116
+ },
1117
+ {
1118
+ "id": "verify-bind",
1119
+ "op": "binding",
1120
+ "payload": {
1121
+ "stepId": "req-verify",
1122
+ "bindingId": "verification-loop",
1123
+ "disposition": "loaded",
1124
+ "evidence": "verification loop skill located"
1125
+ },
1126
+ "note": "F4-T3: after the ON review PASS is refused (review-pass exit 2) the review step stays active, so the verification binding is refused with exit 2 (bindings may only be resolved for the active step). Declared as an ON refusal; the OFF leg is unchanged."
1127
+ },
1128
+ {
1129
+ "id": "verify-pass",
1130
+ "op": "step",
1131
+ "payload": {
1132
+ "stepId": "req-verify",
1133
+ "disposition": "pass",
1134
+ "evidence": "verification attempted before evidence arrived"
1135
+ }
1136
+ },
1137
+ {
1138
+ "id": "evidence-arrives",
1139
+ "op": "provideEvidence",
1140
+ "payload": {
1141
+ "id": "doc-check-1",
1142
+ "record": {
1143
+ "kind": "doc-checker",
1144
+ "status": "pass",
1145
+ "scope": "docs/adr/GRPH-001.md"
1146
+ }
1147
+ }
1148
+ },
1149
+ {
1150
+ "id": "verify-retry",
1151
+ "op": "step",
1152
+ "payload": {
1153
+ "stepId": "req-verify",
1154
+ "disposition": "pass",
1155
+ "evidence": "verification retried with evidence"
1156
+ },
1157
+ "expectExit": {
1158
+ "off": 2,
1159
+ "on": 2
1160
+ }
1161
+ },
1162
+ {
1163
+ "id": "stop",
1164
+ "op": "stop",
1165
+ "payload": {}
1166
+ },
1167
+ {
1168
+ "id": "stop-generic",
1169
+ "op": "stopGeneric",
1170
+ "payload": {}
1171
+ }
1172
+ ],
1173
+ "expectations": {
1174
+ "off": [
1175
+ {
1176
+ "id": "review-pass-exit",
1177
+ "path": [
1178
+ "actions",
1179
+ "review-pass",
1180
+ "exitCode"
1181
+ ],
1182
+ "operator": "equals",
1183
+ "expected": 0,
1184
+ "s1Kind": "control"
1185
+ },
1186
+ {
1187
+ "id": "verify-pass-exit",
1188
+ "path": [
1189
+ "actions",
1190
+ "verify-pass",
1191
+ "exitCode"
1192
+ ],
1193
+ "operator": "equals",
1194
+ "expected": 0,
1195
+ "s1Kind": "control"
1196
+ },
1197
+ {
1198
+ "id": "verify-retry-exit",
1199
+ "path": [
1200
+ "actions",
1201
+ "verify-retry",
1202
+ "exitCode"
1203
+ ],
1204
+ "operator": "equals",
1205
+ "expected": 2,
1206
+ "s1Kind": "control"
1207
+ },
1208
+ {
1209
+ "id": "stop-state",
1210
+ "path": [
1211
+ "actions",
1212
+ "stop",
1213
+ "state",
1214
+ "workflow",
1215
+ "state"
1216
+ ],
1217
+ "operator": "equals",
1218
+ "expected": "satisfied",
1219
+ "s1Kind": "control"
1220
+ },
1221
+ {
1222
+ "id": "stop-generic-exit-0",
1223
+ "path": [
1224
+ "actions",
1225
+ "stop-generic",
1226
+ "exitCode"
1227
+ ],
1228
+ "operator": "equals",
1229
+ "expected": 0,
1230
+ "s1Kind": "additional"
1231
+ }
1232
+ ],
1233
+ "on": [
1234
+ {
1235
+ "id": "stop-exit-0",
1236
+ "path": [
1237
+ "actions",
1238
+ "stop",
1239
+ "exitCode"
1240
+ ],
1241
+ "operator": "equals",
1242
+ "expected": 0,
1243
+ "s1Kind": "additional"
1244
+ },
1245
+ {
1246
+ "id": "stop-generic-exit-0",
1247
+ "path": [
1248
+ "actions",
1249
+ "stop-generic",
1250
+ "exitCode"
1251
+ ],
1252
+ "operator": "equals",
1253
+ "expected": 0,
1254
+ "s1Kind": "additional"
1255
+ }
1256
+ ]
1257
+ },
1258
+ "staging": {
1259
+ "slice": "S1",
1260
+ "s2CompletionExpected": "satisfied",
1261
+ "reason": "Retry PASS remains the S2 gap; S1 completion is pending until that positive path exists."
1262
+ }
1263
+ },
1264
+ {
1265
+ "id": "P07-fable-staged",
1266
+ "family": "P07",
1267
+ "description": "Fable strategy fable-staged: no stage contract, generic commands refused; the pilot reports no structured unavailable status",
1268
+ "topology": "fable-stage-contract",
1269
+ "requirements": [
1270
+ {
1271
+ "id": "req-docs",
1272
+ "stepType": "doc-change",
1273
+ "summary": "Update the ADR text",
1274
+ "acceptance": "normative ADR text is reviewed"
1275
+ },
1276
+ {
1277
+ "id": "req-verify",
1278
+ "stepType": "verification",
1279
+ "summary": "Verify the ADR change",
1280
+ "acceptance": "objective doc checks are recorded"
1281
+ }
1282
+ ],
1283
+ "input": {
1284
+ "baseFiles": {},
1285
+ "candidateFiles": {},
1286
+ "config": null,
1287
+ "task": null,
1288
+ "hostEvents": []
1289
+ },
1290
+ "actions": [
1291
+ {
1292
+ "id": "route",
1293
+ "op": "route",
1294
+ "payload": {
1295
+ "prompt": "Fix this checkout bug and update its documentation."
1296
+ }
1297
+ },
1298
+ {
1299
+ "id": "plan",
1300
+ "op": "plan",
1301
+ "payload": {
1302
+ "requirements": "$requirements",
1303
+ "strategy": "fable-staged",
1304
+ "evidence": "fable pilot-unavailable probe"
1305
+ }
1306
+ },
1307
+ {
1308
+ "id": "start",
1309
+ "op": "start",
1310
+ "payload": {},
1311
+ "expectExit": {
1312
+ "off": 2,
1313
+ "on": 2
1314
+ }
1315
+ },
1316
+ {
1317
+ "id": "step",
1318
+ "op": "step",
1319
+ "payload": {
1320
+ "stepId": "req-docs",
1321
+ "disposition": "pass",
1322
+ "evidence": "text"
1323
+ },
1324
+ "expectExit": {
1325
+ "off": 2,
1326
+ "on": 2
1327
+ }
1328
+ },
1329
+ {
1330
+ "id": "obligation",
1331
+ "op": "obligation",
1332
+ "payload": {
1333
+ "obligationId": "execute",
1334
+ "disposition": "pass",
1335
+ "evidence": "text"
1336
+ },
1337
+ "expectExit": {
1338
+ "off": 2,
1339
+ "on": 2
1340
+ }
1341
+ },
1342
+ {
1343
+ "id": "stop",
1344
+ "op": "stop",
1345
+ "payload": {}
1346
+ },
1347
+ {
1348
+ "id": "stop-generic",
1349
+ "op": "stopGeneric",
1350
+ "payload": {}
1351
+ }
1352
+ ],
1353
+ "expectations": {
1354
+ "off": [
1355
+ {
1356
+ "id": "start-exit",
1357
+ "path": [
1358
+ "actions",
1359
+ "start",
1360
+ "exitCode"
1361
+ ],
1362
+ "operator": "equals",
1363
+ "expected": 2,
1364
+ "s1Kind": "control"
1365
+ },
1366
+ {
1367
+ "id": "step-exit",
1368
+ "path": [
1369
+ "actions",
1370
+ "step",
1371
+ "exitCode"
1372
+ ],
1373
+ "operator": "equals",
1374
+ "expected": 2,
1375
+ "s1Kind": "control"
1376
+ },
1377
+ {
1378
+ "id": "obligation-exit",
1379
+ "path": [
1380
+ "actions",
1381
+ "obligation",
1382
+ "exitCode"
1383
+ ],
1384
+ "operator": "equals",
1385
+ "expected": 2,
1386
+ "s1Kind": "control"
1387
+ },
1388
+ {
1389
+ "id": "stop-exit",
1390
+ "path": [
1391
+ "actions",
1392
+ "stop",
1393
+ "exitCode"
1394
+ ],
1395
+ "operator": "equals",
1396
+ "expected": 0,
1397
+ "s1Kind": "control"
1398
+ },
1399
+ {
1400
+ "id": "pilot-not-credited",
1401
+ "path": [
1402
+ "pilot"
1403
+ ],
1404
+ "operator": "equals",
1405
+ "expected": null,
1406
+ "s1Kind": "control"
1407
+ },
1408
+ {
1409
+ "id": "stop-generic-exit-0",
1410
+ "path": [
1411
+ "actions",
1412
+ "stop-generic",
1413
+ "exitCode"
1414
+ ],
1415
+ "operator": "equals",
1416
+ "expected": 0,
1417
+ "s1Kind": "additional"
1418
+ }
1419
+ ],
1420
+ "on": [
1421
+ {
1422
+ "id": "start-exit",
1423
+ "path": [
1424
+ "actions",
1425
+ "start",
1426
+ "exitCode"
1427
+ ],
1428
+ "operator": "equals",
1429
+ "expected": 2,
1430
+ "s1Kind": "control"
1431
+ },
1432
+ {
1433
+ "id": "step-exit",
1434
+ "path": [
1435
+ "actions",
1436
+ "step",
1437
+ "exitCode"
1438
+ ],
1439
+ "operator": "equals",
1440
+ "expected": 2,
1441
+ "s1Kind": "control"
1442
+ },
1443
+ {
1444
+ "id": "obligation-exit",
1445
+ "path": [
1446
+ "actions",
1447
+ "obligation",
1448
+ "exitCode"
1449
+ ],
1450
+ "operator": "equals",
1451
+ "expected": 2,
1452
+ "s1Kind": "control"
1453
+ },
1454
+ {
1455
+ "id": "stop-exit",
1456
+ "path": [
1457
+ "actions",
1458
+ "stop",
1459
+ "exitCode"
1460
+ ],
1461
+ "operator": "equals",
1462
+ "expected": 0,
1463
+ "s1Kind": "control"
1464
+ },
1465
+ {
1466
+ "id": "stop-generic-exit-0",
1467
+ "path": [
1468
+ "actions",
1469
+ "stop-generic",
1470
+ "exitCode"
1471
+ ],
1472
+ "operator": "equals",
1473
+ "expected": 0,
1474
+ "s1Kind": "additional"
1475
+ }
1476
+ ]
1477
+ }
1478
+ },
1479
+ {
1480
+ "id": "P07-fable-parallel",
1481
+ "family": "P07",
1482
+ "description": "Fable strategy fable-parallel: no stage contract, generic commands refused; the pilot reports no structured unavailable status",
1483
+ "topology": "fable-stage-contract",
1484
+ "requirements": [
1485
+ {
1486
+ "id": "req-docs",
1487
+ "stepType": "doc-change",
1488
+ "summary": "Update the ADR text",
1489
+ "acceptance": "normative ADR text is reviewed"
1490
+ },
1491
+ {
1492
+ "id": "req-verify",
1493
+ "stepType": "verification",
1494
+ "summary": "Verify the ADR change",
1495
+ "acceptance": "objective doc checks are recorded"
1496
+ }
1497
+ ],
1498
+ "input": {
1499
+ "baseFiles": {},
1500
+ "candidateFiles": {},
1501
+ "config": null,
1502
+ "task": null,
1503
+ "hostEvents": []
1504
+ },
1505
+ "actions": [
1506
+ {
1507
+ "id": "route",
1508
+ "op": "route",
1509
+ "payload": {
1510
+ "prompt": "Fix this checkout bug and update its documentation."
1511
+ }
1512
+ },
1513
+ {
1514
+ "id": "plan",
1515
+ "op": "plan",
1516
+ "payload": {
1517
+ "requirements": "$requirements",
1518
+ "strategy": "fable-parallel",
1519
+ "evidence": "fable pilot-unavailable probe"
1520
+ }
1521
+ },
1522
+ {
1523
+ "id": "start",
1524
+ "op": "start",
1525
+ "payload": {},
1526
+ "expectExit": {
1527
+ "off": 2,
1528
+ "on": 2
1529
+ }
1530
+ },
1531
+ {
1532
+ "id": "step",
1533
+ "op": "step",
1534
+ "payload": {
1535
+ "stepId": "req-docs",
1536
+ "disposition": "pass",
1537
+ "evidence": "text"
1538
+ },
1539
+ "expectExit": {
1540
+ "off": 2,
1541
+ "on": 2
1542
+ }
1543
+ },
1544
+ {
1545
+ "id": "obligation",
1546
+ "op": "obligation",
1547
+ "payload": {
1548
+ "obligationId": "execute",
1549
+ "disposition": "pass",
1550
+ "evidence": "text"
1551
+ },
1552
+ "expectExit": {
1553
+ "off": 2,
1554
+ "on": 2
1555
+ }
1556
+ },
1557
+ {
1558
+ "id": "stop",
1559
+ "op": "stop",
1560
+ "payload": {}
1561
+ },
1562
+ {
1563
+ "id": "stop-generic",
1564
+ "op": "stopGeneric",
1565
+ "payload": {}
1566
+ }
1567
+ ],
1568
+ "expectations": {
1569
+ "off": [
1570
+ {
1571
+ "id": "start-exit",
1572
+ "path": [
1573
+ "actions",
1574
+ "start",
1575
+ "exitCode"
1576
+ ],
1577
+ "operator": "equals",
1578
+ "expected": 2,
1579
+ "s1Kind": "control"
1580
+ },
1581
+ {
1582
+ "id": "step-exit",
1583
+ "path": [
1584
+ "actions",
1585
+ "step",
1586
+ "exitCode"
1587
+ ],
1588
+ "operator": "equals",
1589
+ "expected": 2,
1590
+ "s1Kind": "control"
1591
+ },
1592
+ {
1593
+ "id": "obligation-exit",
1594
+ "path": [
1595
+ "actions",
1596
+ "obligation",
1597
+ "exitCode"
1598
+ ],
1599
+ "operator": "equals",
1600
+ "expected": 2,
1601
+ "s1Kind": "control"
1602
+ },
1603
+ {
1604
+ "id": "stop-exit",
1605
+ "path": [
1606
+ "actions",
1607
+ "stop",
1608
+ "exitCode"
1609
+ ],
1610
+ "operator": "equals",
1611
+ "expected": 0,
1612
+ "s1Kind": "control"
1613
+ },
1614
+ {
1615
+ "id": "pilot-not-credited",
1616
+ "path": [
1617
+ "pilot"
1618
+ ],
1619
+ "operator": "equals",
1620
+ "expected": null,
1621
+ "s1Kind": "control"
1622
+ },
1623
+ {
1624
+ "id": "stop-generic-exit-0",
1625
+ "path": [
1626
+ "actions",
1627
+ "stop-generic",
1628
+ "exitCode"
1629
+ ],
1630
+ "operator": "equals",
1631
+ "expected": 0,
1632
+ "s1Kind": "additional"
1633
+ }
1634
+ ],
1635
+ "on": [
1636
+ {
1637
+ "id": "start-exit",
1638
+ "path": [
1639
+ "actions",
1640
+ "start",
1641
+ "exitCode"
1642
+ ],
1643
+ "operator": "equals",
1644
+ "expected": 2,
1645
+ "s1Kind": "control"
1646
+ },
1647
+ {
1648
+ "id": "step-exit",
1649
+ "path": [
1650
+ "actions",
1651
+ "step",
1652
+ "exitCode"
1653
+ ],
1654
+ "operator": "equals",
1655
+ "expected": 2,
1656
+ "s1Kind": "control"
1657
+ },
1658
+ {
1659
+ "id": "obligation-exit",
1660
+ "path": [
1661
+ "actions",
1662
+ "obligation",
1663
+ "exitCode"
1664
+ ],
1665
+ "operator": "equals",
1666
+ "expected": 2,
1667
+ "s1Kind": "control"
1668
+ },
1669
+ {
1670
+ "id": "stop-exit",
1671
+ "path": [
1672
+ "actions",
1673
+ "stop",
1674
+ "exitCode"
1675
+ ],
1676
+ "operator": "equals",
1677
+ "expected": 0,
1678
+ "s1Kind": "control"
1679
+ },
1680
+ {
1681
+ "id": "stop-generic-exit-0",
1682
+ "path": [
1683
+ "actions",
1684
+ "stop-generic",
1685
+ "exitCode"
1686
+ ],
1687
+ "operator": "equals",
1688
+ "expected": 0,
1689
+ "s1Kind": "additional"
1690
+ }
1691
+ ]
1692
+ }
1693
+ },
1694
+ {
1695
+ "id": "P07-fable-multi-agent-workspace",
1696
+ "family": "P07",
1697
+ "description": "Fable strategy fable-multi-agent-workspace: no stage contract, generic commands refused; the pilot reports no structured unavailable status",
1698
+ "topology": "fable-stage-contract",
1699
+ "requirements": [
1700
+ {
1701
+ "id": "req-docs",
1702
+ "stepType": "doc-change",
1703
+ "summary": "Update the ADR text",
1704
+ "acceptance": "normative ADR text is reviewed"
1705
+ },
1706
+ {
1707
+ "id": "req-verify",
1708
+ "stepType": "verification",
1709
+ "summary": "Verify the ADR change",
1710
+ "acceptance": "objective doc checks are recorded"
1711
+ }
1712
+ ],
1713
+ "input": {
1714
+ "baseFiles": {},
1715
+ "candidateFiles": {},
1716
+ "config": null,
1717
+ "task": null,
1718
+ "hostEvents": []
1719
+ },
1720
+ "actions": [
1721
+ {
1722
+ "id": "route",
1723
+ "op": "route",
1724
+ "payload": {
1725
+ "prompt": "Fix this checkout bug and update its documentation."
1726
+ }
1727
+ },
1728
+ {
1729
+ "id": "plan",
1730
+ "op": "plan",
1731
+ "payload": {
1732
+ "requirements": "$requirements",
1733
+ "strategy": "fable-multi-agent-workspace",
1734
+ "evidence": "fable pilot-unavailable probe"
1735
+ }
1736
+ },
1737
+ {
1738
+ "id": "start",
1739
+ "op": "start",
1740
+ "payload": {},
1741
+ "expectExit": {
1742
+ "off": 2,
1743
+ "on": 2
1744
+ }
1745
+ },
1746
+ {
1747
+ "id": "step",
1748
+ "op": "step",
1749
+ "payload": {
1750
+ "stepId": "req-docs",
1751
+ "disposition": "pass",
1752
+ "evidence": "text"
1753
+ },
1754
+ "expectExit": {
1755
+ "off": 2,
1756
+ "on": 2
1757
+ }
1758
+ },
1759
+ {
1760
+ "id": "obligation",
1761
+ "op": "obligation",
1762
+ "payload": {
1763
+ "obligationId": "execute",
1764
+ "disposition": "pass",
1765
+ "evidence": "text"
1766
+ },
1767
+ "expectExit": {
1768
+ "off": 2,
1769
+ "on": 2
1770
+ }
1771
+ },
1772
+ {
1773
+ "id": "stop",
1774
+ "op": "stop",
1775
+ "payload": {}
1776
+ },
1777
+ {
1778
+ "id": "stop-generic",
1779
+ "op": "stopGeneric",
1780
+ "payload": {}
1781
+ }
1782
+ ],
1783
+ "expectations": {
1784
+ "off": [
1785
+ {
1786
+ "id": "start-exit",
1787
+ "path": [
1788
+ "actions",
1789
+ "start",
1790
+ "exitCode"
1791
+ ],
1792
+ "operator": "equals",
1793
+ "expected": 2,
1794
+ "s1Kind": "control"
1795
+ },
1796
+ {
1797
+ "id": "step-exit",
1798
+ "path": [
1799
+ "actions",
1800
+ "step",
1801
+ "exitCode"
1802
+ ],
1803
+ "operator": "equals",
1804
+ "expected": 2,
1805
+ "s1Kind": "control"
1806
+ },
1807
+ {
1808
+ "id": "obligation-exit",
1809
+ "path": [
1810
+ "actions",
1811
+ "obligation",
1812
+ "exitCode"
1813
+ ],
1814
+ "operator": "equals",
1815
+ "expected": 2,
1816
+ "s1Kind": "control"
1817
+ },
1818
+ {
1819
+ "id": "stop-exit",
1820
+ "path": [
1821
+ "actions",
1822
+ "stop",
1823
+ "exitCode"
1824
+ ],
1825
+ "operator": "equals",
1826
+ "expected": 0,
1827
+ "s1Kind": "control"
1828
+ },
1829
+ {
1830
+ "id": "pilot-not-credited",
1831
+ "path": [
1832
+ "pilot"
1833
+ ],
1834
+ "operator": "equals",
1835
+ "expected": null,
1836
+ "s1Kind": "control"
1837
+ },
1838
+ {
1839
+ "id": "stop-generic-exit-0",
1840
+ "path": [
1841
+ "actions",
1842
+ "stop-generic",
1843
+ "exitCode"
1844
+ ],
1845
+ "operator": "equals",
1846
+ "expected": 0,
1847
+ "s1Kind": "additional"
1848
+ }
1849
+ ],
1850
+ "on": [
1851
+ {
1852
+ "id": "start-exit",
1853
+ "path": [
1854
+ "actions",
1855
+ "start",
1856
+ "exitCode"
1857
+ ],
1858
+ "operator": "equals",
1859
+ "expected": 2,
1860
+ "s1Kind": "control"
1861
+ },
1862
+ {
1863
+ "id": "step-exit",
1864
+ "path": [
1865
+ "actions",
1866
+ "step",
1867
+ "exitCode"
1868
+ ],
1869
+ "operator": "equals",
1870
+ "expected": 2,
1871
+ "s1Kind": "control"
1872
+ },
1873
+ {
1874
+ "id": "obligation-exit",
1875
+ "path": [
1876
+ "actions",
1877
+ "obligation",
1878
+ "exitCode"
1879
+ ],
1880
+ "operator": "equals",
1881
+ "expected": 2,
1882
+ "s1Kind": "control"
1883
+ },
1884
+ {
1885
+ "id": "stop-exit",
1886
+ "path": [
1887
+ "actions",
1888
+ "stop",
1889
+ "exitCode"
1890
+ ],
1891
+ "operator": "equals",
1892
+ "expected": 0,
1893
+ "s1Kind": "control"
1894
+ },
1895
+ {
1896
+ "id": "stop-generic-exit-0",
1897
+ "path": [
1898
+ "actions",
1899
+ "stop-generic",
1900
+ "exitCode"
1901
+ ],
1902
+ "operator": "equals",
1903
+ "expected": 0,
1904
+ "s1Kind": "additional"
1905
+ }
1906
+ ]
1907
+ }
1908
+ },
1909
+ {
1910
+ "id": "P07u",
1911
+ "family": "P07",
1912
+ "description": "untyped compatibility control: a new single-agent plan with untyped requirements is refused before any credit",
1913
+ "topology": "iterative-single-untyped",
1914
+ "requirements": [
1915
+ {
1916
+ "id": "req-untyped",
1917
+ "summary": "Correct the checkout failure",
1918
+ "acceptance": "the failing scenario succeeds"
1919
+ }
1920
+ ],
1921
+ "input": {
1922
+ "baseFiles": {},
1923
+ "candidateFiles": {},
1924
+ "config": null,
1925
+ "task": null,
1926
+ "hostEvents": []
1927
+ },
1928
+ "actions": [
1929
+ {
1930
+ "id": "route",
1931
+ "op": "route",
1932
+ "payload": {
1933
+ "prompt": "Fix this checkout bug and add a regression test."
1934
+ }
1935
+ },
1936
+ {
1937
+ "id": "plan",
1938
+ "op": "plan",
1939
+ "payload": {
1940
+ "requirements": "$requirements",
1941
+ "strategy": "iterative-single",
1942
+ "evidence": "untyped probe"
1943
+ },
1944
+ "expectExit": {
1945
+ "off": 2,
1946
+ "on": 2
1947
+ }
1948
+ },
1949
+ {
1950
+ "id": "stop",
1951
+ "op": "stop",
1952
+ "payload": {}
1953
+ },
1954
+ {
1955
+ "id": "stop-generic",
1956
+ "op": "stopGeneric",
1957
+ "payload": {}
1958
+ }
1959
+ ],
1960
+ "expectations": {
1961
+ "off": [
1962
+ {
1963
+ "id": "plan-exit",
1964
+ "path": [
1965
+ "actions",
1966
+ "plan",
1967
+ "exitCode"
1968
+ ],
1969
+ "operator": "equals",
1970
+ "expected": 2,
1971
+ "s1Kind": "control"
1972
+ },
1973
+ {
1974
+ "id": "pilot-not-credited",
1975
+ "path": [
1976
+ "pilot"
1977
+ ],
1978
+ "operator": "equals",
1979
+ "expected": null,
1980
+ "s1Kind": "control"
1981
+ },
1982
+ {
1983
+ "id": "stop-generic-exit-0",
1984
+ "path": [
1985
+ "actions",
1986
+ "stop-generic",
1987
+ "exitCode"
1988
+ ],
1989
+ "operator": "equals",
1990
+ "expected": 0,
1991
+ "s1Kind": "additional"
1992
+ }
1993
+ ],
1994
+ "on": [
1995
+ {
1996
+ "id": "plan-exit",
1997
+ "path": [
1998
+ "actions",
1999
+ "plan",
2000
+ "exitCode"
2001
+ ],
2002
+ "operator": "equals",
2003
+ "expected": 2,
2004
+ "s1Kind": "control"
2005
+ },
2006
+ {
2007
+ "id": "pilot-not-credited",
2008
+ "path": [
2009
+ "pilot"
2010
+ ],
2011
+ "operator": "equals",
2012
+ "expected": null,
2013
+ "s1Kind": "control"
2014
+ },
2015
+ {
2016
+ "id": "stop-generic-exit-0",
2017
+ "path": [
2018
+ "actions",
2019
+ "stop-generic",
2020
+ "exitCode"
2021
+ ],
2022
+ "operator": "equals",
2023
+ "expected": 0,
2024
+ "s1Kind": "additional"
2025
+ }
2026
+ ]
2027
+ }
2028
+ },
2029
+ {
2030
+ "id": "S1-GOV-DIRECT-AGG",
2031
+ "family": "S1",
2032
+ "description": "Governed diff with every authored step passed; direct aggregate execute and verify PASS must stay refused under ON.",
2033
+ "topology": "iterative-single-typed",
2034
+ "requirements": [
2035
+ {
2036
+ "id": "req-docs",
2037
+ "stepType": "doc-change",
2038
+ "summary": "Update the ADR text",
2039
+ "acceptance": "normative ADR text is reviewed"
2040
+ },
2041
+ {
2042
+ "id": "req-verify",
2043
+ "stepType": "verification",
2044
+ "summary": "Verify the ADR change",
2045
+ "acceptance": "objective doc checks are recorded"
2046
+ }
2047
+ ],
2048
+ "input": {
2049
+ "baseFiles": {
2050
+ ".agents/harness-everything/project-docs.json": "{\n \"governed\": [\n { \"path\": \"docs/adr/**\", \"role\": \"adr\" }\n ],\n \"domains\": [\"GRPH\"]\n}\n",
2051
+ "docs/adr/GRPH-001.md": "# GRPH-001 Checkout retry\n\nStatus: accepted\n\nCheckout MUST retry once.\n",
2052
+ "src/checkout.js": "export function checkout() {\n return 'v1';\n}\n"
2053
+ },
2054
+ "candidateFiles": {
2055
+ ".agents/harness-everything/project-docs.json": "{\n \"governed\": [\n { \"path\": \"docs/adr/**\", \"role\": \"adr\" }\n ],\n \"domains\": [\"GRPH\"]\n}\n",
2056
+ "docs/adr/GRPH-001.md": "# GRPH-001 Checkout retry\n\nStatus: accepted\n\nCheckout MUST retry twice.\n",
2057
+ "src/checkout.js": "export function checkout() {\n return 'v2';\n}\n"
2058
+ },
2059
+ "config": null,
2060
+ "task": null,
2061
+ "hostEvents": []
2062
+ },
2063
+ "actions": [
2064
+ {
2065
+ "id": "route",
2066
+ "op": "route",
2067
+ "payload": {
2068
+ "prompt": "Fix this checkout bug and update its documentation."
2069
+ }
2070
+ },
2071
+ {
2072
+ "id": "plan",
2073
+ "op": "plan",
2074
+ "payload": {
2075
+ "requirements": "$requirements",
2076
+ "strategy": "iterative-single",
2077
+ "evidence": "two dependent requirements fit a bounded documentation loop"
2078
+ }
2079
+ },
2080
+ {
2081
+ "id": "start",
2082
+ "op": "start",
2083
+ "payload": {}
2084
+ },
2085
+ {
2086
+ "id": "doc-pass",
2087
+ "op": "step",
2088
+ "payload": {
2089
+ "stepId": "req-docs",
2090
+ "disposition": "pass",
2091
+ "evidence": "ADR text updated"
2092
+ }
2093
+ },
2094
+ {
2095
+ "id": "verify-bind",
2096
+ "op": "binding",
2097
+ "payload": {
2098
+ "stepId": "req-verify",
2099
+ "bindingId": "verification-loop",
2100
+ "disposition": "loaded",
2101
+ "evidence": "verification loop skill located"
2102
+ }
2103
+ },
2104
+ {
2105
+ "id": "direct-execute",
2106
+ "op": "obligation",
2107
+ "payload": {
2108
+ "obligationId": "execute",
2109
+ "disposition": "pass",
2110
+ "evidence": "done"
2111
+ }
2112
+ },
2113
+ {
2114
+ "id": "direct-verify",
2115
+ "op": "obligation",
2116
+ "payload": {
2117
+ "obligationId": "verify",
2118
+ "disposition": "pass",
2119
+ "evidence": "done"
2120
+ }
2121
+ },
2122
+ {
2123
+ "id": "stop",
2124
+ "op": "stop",
2125
+ "payload": {}
2126
+ },
2127
+ {
2128
+ "id": "stop-generic",
2129
+ "op": "stopGeneric",
2130
+ "payload": {}
2131
+ }
2132
+ ],
2133
+ "expectations": {
2134
+ "on": [
2135
+ {
2136
+ "id": "doc-pass-exit",
2137
+ "path": [
2138
+ "actions",
2139
+ "doc-pass",
2140
+ "exitCode"
2141
+ ],
2142
+ "operator": "equals",
2143
+ "expected": 0,
2144
+ "s1Kind": "control"
2145
+ },
2146
+ {
2147
+ "id": "stop-exit-0",
2148
+ "path": [
2149
+ "actions",
2150
+ "stop",
2151
+ "exitCode"
2152
+ ],
2153
+ "operator": "equals",
2154
+ "expected": 0,
2155
+ "s1Kind": "additional"
2156
+ },
2157
+ {
2158
+ "id": "stop-generic-exit-0",
2159
+ "path": [
2160
+ "actions",
2161
+ "stop-generic",
2162
+ "exitCode"
2163
+ ],
2164
+ "operator": "equals",
2165
+ "expected": 0,
2166
+ "s1Kind": "additional"
2167
+ }
2168
+ ],
2169
+ "off": [
2170
+ {
2171
+ "id": "direct-execute-accepted",
2172
+ "path": [
2173
+ "actions",
2174
+ "direct-execute",
2175
+ "exitCode"
2176
+ ],
2177
+ "operator": "equals",
2178
+ "expected": 0,
2179
+ "s1Kind": "control"
2180
+ },
2181
+ {
2182
+ "id": "direct-verify-accepted",
2183
+ "path": [
2184
+ "actions",
2185
+ "direct-verify",
2186
+ "exitCode"
2187
+ ],
2188
+ "operator": "equals",
2189
+ "expected": 0,
2190
+ "s1Kind": "control"
2191
+ },
2192
+ {
2193
+ "id": "pilot-not-credited",
2194
+ "path": [
2195
+ "pilot"
2196
+ ],
2197
+ "operator": "equals",
2198
+ "expected": null,
2199
+ "s1Kind": "control"
2200
+ },
2201
+ {
2202
+ "id": "stop-generic-exit-0",
2203
+ "path": [
2204
+ "actions",
2205
+ "stop-generic",
2206
+ "exitCode"
2207
+ ],
2208
+ "operator": "equals",
2209
+ "expected": 0,
2210
+ "s1Kind": "additional"
2211
+ }
2212
+ ]
2213
+ }
2214
+ },
2215
+ {
2216
+ "id": "S1-OFF-SEEDED-PASS",
2217
+ "family": "S1",
2218
+ "description": "Legacy PASS recorded with the switch OFF on a governed diff; the first ON completion withholds credit without resetting authored work.",
2219
+ "topology": "iterative-single-typed",
2220
+ "requirements": [
2221
+ {
2222
+ "id": "req-docs",
2223
+ "stepType": "doc-change",
2224
+ "summary": "Update the ADR text",
2225
+ "acceptance": "normative ADR text is reviewed"
2226
+ },
2227
+ {
2228
+ "id": "req-verify",
2229
+ "stepType": "verification",
2230
+ "summary": "Verify the ADR change",
2231
+ "acceptance": "objective doc checks are recorded"
2232
+ }
2233
+ ],
2234
+ "input": {
2235
+ "baseFiles": {
2236
+ ".agents/harness-everything/project-docs.json": "{\n \"governed\": [\n { \"path\": \"docs/adr/**\", \"role\": \"adr\" }\n ],\n \"domains\": [\"GRPH\"]\n}\n",
2237
+ "docs/adr/GRPH-001.md": "# GRPH-001 Checkout retry\n\nStatus: accepted\n\nCheckout MUST retry once.\n",
2238
+ "src/checkout.js": "export function checkout() {\n return 'v1';\n}\n"
2239
+ },
2240
+ "candidateFiles": {
2241
+ ".agents/harness-everything/project-docs.json": "{\n \"governed\": [\n { \"path\": \"docs/adr/**\", \"role\": \"adr\" }\n ],\n \"domains\": [\"GRPH\"]\n}\n",
2242
+ "docs/adr/GRPH-001.md": "# GRPH-001 Checkout retry\n\nStatus: accepted\n\nCheckout MUST retry twice.\n",
2243
+ "src/checkout.js": "export function checkout() {\n return 'v2';\n}\n"
2244
+ },
2245
+ "config": null,
2246
+ "task": null,
2247
+ "hostEvents": []
2248
+ },
2249
+ "actions": [
2250
+ {
2251
+ "id": "route",
2252
+ "op": "route",
2253
+ "payload": {
2254
+ "prompt": "Fix this checkout bug and update its documentation."
2255
+ }
2256
+ },
2257
+ {
2258
+ "id": "plan",
2259
+ "op": "plan",
2260
+ "payload": {
2261
+ "requirements": "$requirements",
2262
+ "strategy": "iterative-single",
2263
+ "evidence": "two dependent requirements fit a bounded documentation loop"
2264
+ },
2265
+ "pilot": "0"
2266
+ },
2267
+ {
2268
+ "id": "start",
2269
+ "op": "start",
2270
+ "payload": {},
2271
+ "pilot": "0"
2272
+ },
2273
+ {
2274
+ "id": "doc-pass",
2275
+ "op": "step",
2276
+ "payload": {
2277
+ "stepId": "req-docs",
2278
+ "disposition": "pass",
2279
+ "evidence": "ADR text updated"
2280
+ },
2281
+ "pilot": "0"
2282
+ },
2283
+ {
2284
+ "id": "verify-bind",
2285
+ "op": "binding",
2286
+ "payload": {
2287
+ "stepId": "req-verify",
2288
+ "bindingId": "verification-loop",
2289
+ "disposition": "loaded",
2290
+ "evidence": "verification loop skill located"
2291
+ },
2292
+ "pilot": "0"
2293
+ },
2294
+ {
2295
+ "id": "verify-pass",
2296
+ "op": "step",
2297
+ "payload": {
2298
+ "stepId": "req-verify",
2299
+ "disposition": "pass",
2300
+ "evidence": "done"
2301
+ },
2302
+ "expectExit": {
2303
+ "on": 0,
2304
+ "off": 0
2305
+ },
2306
+ "pilot": "0"
2307
+ },
2308
+ {
2309
+ "id": "stop",
2310
+ "op": "stop",
2311
+ "payload": {}
2312
+ },
2313
+ {
2314
+ "id": "stop-generic",
2315
+ "op": "stopGeneric",
2316
+ "payload": {}
2317
+ }
2318
+ ],
2319
+ "expectations": {
2320
+ "on": [
2321
+ {
2322
+ "id": "verify-off-exit",
2323
+ "path": [
2324
+ "actions",
2325
+ "verify-pass",
2326
+ "exitCode"
2327
+ ],
2328
+ "operator": "equals",
2329
+ "expected": 0,
2330
+ "s1Kind": "control"
2331
+ },
2332
+ {
2333
+ "id": "authored-step-retained",
2334
+ "path": [
2335
+ "actions",
2336
+ "stop",
2337
+ "state",
2338
+ "obligations",
2339
+ "requirements",
2340
+ 0,
2341
+ "status"
2342
+ ],
2343
+ "operator": "equals",
2344
+ "expected": "pass",
2345
+ "s1Kind": "additional"
2346
+ },
2347
+ {
2348
+ "id": "stop-exit-0",
2349
+ "path": [
2350
+ "actions",
2351
+ "stop",
2352
+ "exitCode"
2353
+ ],
2354
+ "operator": "equals",
2355
+ "expected": 0,
2356
+ "s1Kind": "additional"
2357
+ },
2358
+ {
2359
+ "id": "stop-generic-exit-0",
2360
+ "path": [
2361
+ "actions",
2362
+ "stop-generic",
2363
+ "exitCode"
2364
+ ],
2365
+ "operator": "equals",
2366
+ "expected": 0,
2367
+ "s1Kind": "additional"
2368
+ }
2369
+ ],
2370
+ "off": [
2371
+ {
2372
+ "id": "verify-exit-accepted",
2373
+ "path": [
2374
+ "actions",
2375
+ "verify-pass",
2376
+ "exitCode"
2377
+ ],
2378
+ "operator": "equals",
2379
+ "expected": 0,
2380
+ "s1Kind": "control"
2381
+ },
2382
+ {
2383
+ "id": "stop-satisfied",
2384
+ "path": [
2385
+ "actions",
2386
+ "stop",
2387
+ "state",
2388
+ "workflow",
2389
+ "state"
2390
+ ],
2391
+ "operator": "equals",
2392
+ "expected": "satisfied",
2393
+ "s1Kind": "control"
2394
+ },
2395
+ {
2396
+ "id": "pilot-not-credited",
2397
+ "path": [
2398
+ "pilot"
2399
+ ],
2400
+ "operator": "equals",
2401
+ "expected": null,
2402
+ "s1Kind": "control"
2403
+ },
2404
+ {
2405
+ "id": "stop-generic-exit-0",
2406
+ "path": [
2407
+ "actions",
2408
+ "stop-generic",
2409
+ "exitCode"
2410
+ ],
2411
+ "operator": "equals",
2412
+ "expected": 0,
2413
+ "s1Kind": "additional"
2414
+ }
2415
+ ]
2416
+ }
2417
+ },
2418
+ {
2419
+ "id": "S1-NONGIT-COLLECTOR-FAILURE",
2420
+ "family": "S1",
2421
+ "description": "Non-git workspace: the baseline is unavailable, scope is treated as governed, and verification is refused while both Stop surfaces still exit 0.",
2422
+ "topology": "iterative-single-typed",
2423
+ "requirements": [
2424
+ {
2425
+ "id": "req-docs",
2426
+ "stepType": "doc-change",
2427
+ "summary": "Update the ADR text",
2428
+ "acceptance": "normative ADR text is reviewed"
2429
+ },
2430
+ {
2431
+ "id": "req-verify",
2432
+ "stepType": "verification",
2433
+ "summary": "Verify the ADR change",
2434
+ "acceptance": "objective doc checks are recorded"
2435
+ }
2436
+ ],
2437
+ "input": {
2438
+ "baseFiles": {},
2439
+ "candidateFiles": {},
2440
+ "config": null,
2441
+ "task": null,
2442
+ "hostEvents": []
2443
+ },
2444
+ "actions": [
2445
+ {
2446
+ "id": "route",
2447
+ "op": "route",
2448
+ "payload": {
2449
+ "prompt": "Fix this checkout bug and update its documentation."
2450
+ }
2451
+ },
2452
+ {
2453
+ "id": "plan",
2454
+ "op": "plan",
2455
+ "payload": {
2456
+ "requirements": "$requirements",
2457
+ "strategy": "iterative-single",
2458
+ "evidence": "two dependent requirements fit a bounded documentation loop"
2459
+ }
2460
+ },
2461
+ {
2462
+ "id": "start",
2463
+ "op": "start",
2464
+ "payload": {}
2465
+ },
2466
+ {
2467
+ "id": "doc-pass",
2468
+ "op": "step",
2469
+ "payload": {
2470
+ "stepId": "req-docs",
2471
+ "disposition": "pass",
2472
+ "evidence": "ADR text updated"
2473
+ }
2474
+ },
2475
+ {
2476
+ "id": "verify-bind",
2477
+ "op": "binding",
2478
+ "payload": {
2479
+ "stepId": "req-verify",
2480
+ "bindingId": "verification-loop",
2481
+ "disposition": "loaded",
2482
+ "evidence": "verification loop skill located"
2483
+ }
2484
+ },
2485
+ {
2486
+ "id": "verify-pass",
2487
+ "op": "step",
2488
+ "payload": {
2489
+ "stepId": "req-verify",
2490
+ "disposition": "pass",
2491
+ "evidence": "done"
2492
+ }
2493
+ },
2494
+ {
2495
+ "id": "stop",
2496
+ "op": "stop",
2497
+ "payload": {}
2498
+ },
2499
+ {
2500
+ "id": "stop-generic",
2501
+ "op": "stopGeneric",
2502
+ "payload": {}
2503
+ }
2504
+ ],
2505
+ "expectations": {
2506
+ "on": [
2507
+ {
2508
+ "id": "stop-exit-0",
2509
+ "path": [
2510
+ "actions",
2511
+ "stop",
2512
+ "exitCode"
2513
+ ],
2514
+ "operator": "equals",
2515
+ "expected": 0,
2516
+ "s1Kind": "additional"
2517
+ },
2518
+ {
2519
+ "id": "stop-generic-exit-0",
2520
+ "path": [
2521
+ "actions",
2522
+ "stop-generic",
2523
+ "exitCode"
2524
+ ],
2525
+ "operator": "equals",
2526
+ "expected": 0,
2527
+ "s1Kind": "additional"
2528
+ }
2529
+ ],
2530
+ "off": [
2531
+ {
2532
+ "id": "verify-pass-exit",
2533
+ "path": [
2534
+ "actions",
2535
+ "verify-pass",
2536
+ "exitCode"
2537
+ ],
2538
+ "operator": "equals",
2539
+ "expected": 0,
2540
+ "s1Kind": "control"
2541
+ },
2542
+ {
2543
+ "id": "stop-state",
2544
+ "path": [
2545
+ "actions",
2546
+ "stop",
2547
+ "state",
2548
+ "workflow",
2549
+ "state"
2550
+ ],
2551
+ "operator": "equals",
2552
+ "expected": "satisfied",
2553
+ "s1Kind": "control"
2554
+ },
2555
+ {
2556
+ "id": "pilot-not-credited",
2557
+ "path": [
2558
+ "pilot"
2559
+ ],
2560
+ "operator": "equals",
2561
+ "expected": null,
2562
+ "s1Kind": "control"
2563
+ },
2564
+ {
2565
+ "id": "stop-generic-exit-0",
2566
+ "path": [
2567
+ "actions",
2568
+ "stop-generic",
2569
+ "exitCode"
2570
+ ],
2571
+ "operator": "equals",
2572
+ "expected": 0,
2573
+ "s1Kind": "additional"
2574
+ }
2575
+ ]
2576
+ }
2577
+ },
2578
+ {
2579
+ "id": "S1-PERSISTED-UNTYPED",
2580
+ "family": "S1",
2581
+ "description": "Persisted untyped record (real untyped fable-staged plan, no stage contract): ON reports the pilot unavailable, never a lock; Stop exits 0.",
2582
+ "topology": "iterative-single-typed",
2583
+ "requirements": [
2584
+ {
2585
+ "id": "req-code",
2586
+ "summary": "Fix the checkout failure",
2587
+ "acceptance": "regression test added"
2588
+ }
2589
+ ],
2590
+ "input": {
2591
+ "baseFiles": {},
2592
+ "candidateFiles": {},
2593
+ "config": null,
2594
+ "task": null,
2595
+ "hostEvents": []
2596
+ },
2597
+ "actions": [
2598
+ {
2599
+ "id": "route",
2600
+ "op": "route",
2601
+ "payload": {
2602
+ "prompt": "Fix this checkout bug and update its documentation."
2603
+ }
2604
+ },
2605
+ {
2606
+ "id": "plan",
2607
+ "op": "plan",
2608
+ "payload": {
2609
+ "requirements": "$requirements",
2610
+ "strategy": "fable-staged",
2611
+ "evidence": "legacy untyped fable plan persists the untyped record"
2612
+ }
2613
+ },
2614
+ {
2615
+ "id": "stop",
2616
+ "op": "stop",
2617
+ "payload": {}
2618
+ },
2619
+ {
2620
+ "id": "stop-generic",
2621
+ "op": "stopGeneric",
2622
+ "payload": {}
2623
+ }
2624
+ ],
2625
+ "expectations": {
2626
+ "on": [
2627
+ {
2628
+ "id": "plan-exit",
2629
+ "path": [
2630
+ "actions",
2631
+ "plan",
2632
+ "exitCode"
2633
+ ],
2634
+ "operator": "equals",
2635
+ "expected": 0,
2636
+ "s1Kind": "control"
2637
+ },
2638
+ {
2639
+ "id": "persisted-record-untyped",
2640
+ "path": [
2641
+ "actions",
2642
+ "plan",
2643
+ "state",
2644
+ "obligations",
2645
+ "requirements",
2646
+ 0,
2647
+ "stepType"
2648
+ ],
2649
+ "operator": "absent",
2650
+ "expected": null,
2651
+ "s1Kind": "control"
2652
+ },
2653
+ {
2654
+ "id": "stop-exit-0",
2655
+ "path": [
2656
+ "actions",
2657
+ "stop",
2658
+ "exitCode"
2659
+ ],
2660
+ "operator": "equals",
2661
+ "expected": 0,
2662
+ "s1Kind": "additional"
2663
+ },
2664
+ {
2665
+ "id": "stop-generic-exit-0",
2666
+ "path": [
2667
+ "actions",
2668
+ "stop-generic",
2669
+ "exitCode"
2670
+ ],
2671
+ "operator": "equals",
2672
+ "expected": 0,
2673
+ "s1Kind": "additional"
2674
+ }
2675
+ ],
2676
+ "off": [
2677
+ {
2678
+ "id": "plan-exit",
2679
+ "path": [
2680
+ "actions",
2681
+ "plan",
2682
+ "exitCode"
2683
+ ],
2684
+ "operator": "equals",
2685
+ "expected": 0,
2686
+ "s1Kind": "control"
2687
+ },
2688
+ {
2689
+ "id": "persisted-record-untyped",
2690
+ "path": [
2691
+ "actions",
2692
+ "plan",
2693
+ "state",
2694
+ "obligations",
2695
+ "requirements",
2696
+ 0,
2697
+ "stepType"
2698
+ ],
2699
+ "operator": "absent",
2700
+ "expected": null,
2701
+ "s1Kind": "control"
2702
+ },
2703
+ {
2704
+ "id": "stop-exit-0",
2705
+ "path": [
2706
+ "actions",
2707
+ "stop",
2708
+ "exitCode"
2709
+ ],
2710
+ "operator": "equals",
2711
+ "expected": 0,
2712
+ "s1Kind": "control"
2713
+ },
2714
+ {
2715
+ "id": "pilot-not-credited",
2716
+ "path": [
2717
+ "pilot"
2718
+ ],
2719
+ "operator": "equals",
2720
+ "expected": null,
2721
+ "s1Kind": "control"
2722
+ },
2723
+ {
2724
+ "id": "stop-generic-exit-0",
2725
+ "path": [
2726
+ "actions",
2727
+ "stop-generic",
2728
+ "exitCode"
2729
+ ],
2730
+ "operator": "equals",
2731
+ "expected": 0,
2732
+ "s1Kind": "additional"
2733
+ }
2734
+ ]
2735
+ }
2736
+ },
2737
+ {
2738
+ "id": "S1-FABLE-CORRELATED-BINDING",
2739
+ "family": "S1",
2740
+ "description": "A correlated loaded Fable stage binding is not document verification credit: ON reports the pilot unavailable with runtime origin, and no pilot credit; Stop exits 0.",
2741
+ "topology": "iterative-single-typed",
2742
+ "requirements": [
2743
+ {
2744
+ "id": "req-docs",
2745
+ "stepType": "doc-change",
2746
+ "summary": "Update the ADR text",
2747
+ "acceptance": "normative ADR text is reviewed"
2748
+ },
2749
+ {
2750
+ "id": "req-verify",
2751
+ "stepType": "verification",
2752
+ "summary": "Verify the ADR change",
2753
+ "acceptance": "objective doc checks are recorded"
2754
+ }
2755
+ ],
2756
+ "input": {
2757
+ "baseFiles": {},
2758
+ "candidateFiles": {},
2759
+ "config": null,
2760
+ "task": null,
2761
+ "hostEvents": []
2762
+ },
2763
+ "actions": [
2764
+ {
2765
+ "id": "route",
2766
+ "op": "route",
2767
+ "payload": {
2768
+ "prompt": "Fix this checkout bug and update its documentation."
2769
+ }
2770
+ },
2771
+ {
2772
+ "id": "plan",
2773
+ "op": "plan",
2774
+ "payload": {
2775
+ "requirements": "$requirements",
2776
+ "strategy": "fable-staged",
2777
+ "evidence": "fable pilot-unavailable probe"
2778
+ }
2779
+ },
2780
+ {
2781
+ "id": "seed-stages",
2782
+ "op": "seedState",
2783
+ "payload": {
2784
+ "file": "workflow-stages.json",
2785
+ "json": [
2786
+ {
2787
+ "stageId": "implement",
2788
+ "goal": "implement a bounded change",
2789
+ "agent": "fable-worker-sonnet",
2790
+ "task": "use declared guidance and verify",
2791
+ "dependsOn": [],
2792
+ "writeSet": [
2793
+ "src/change.js"
2794
+ ],
2795
+ "inputs": [],
2796
+ "expectedOutputs": [
2797
+ "src/change.js"
2798
+ ],
2799
+ "requiredBindings": [
2800
+ {
2801
+ "id": "tdd",
2802
+ "path": "tdd/SKILL.md"
2803
+ }
2804
+ ],
2805
+ "optionalBindings": [],
2806
+ "checkCommand": "node fixture-check.js",
2807
+ "passCondition": "exit 0"
2808
+ },
2809
+ {
2810
+ "stageId": "verify",
2811
+ "goal": "verify the implementation",
2812
+ "agent": "fable-verifier",
2813
+ "task": "independently check the implementation",
2814
+ "dependsOn": [
2815
+ "implement"
2816
+ ],
2817
+ "writeSet": [],
2818
+ "inputs": [
2819
+ "src/change.js"
2820
+ ],
2821
+ "expectedOutputs": [
2822
+ "verification evidence"
2823
+ ],
2824
+ "requiredBindings": [
2825
+ {
2826
+ "id": "verification-loop",
2827
+ "path": "verification-loop/SKILL.md"
2828
+ }
2829
+ ],
2830
+ "optionalBindings": [],
2831
+ "checkCommand": "node verifier-check.js",
2832
+ "passCondition": "exit 0"
2833
+ }
2834
+ ]
2835
+ }
2836
+ },
2837
+ {
2838
+ "id": "start",
2839
+ "op": "start",
2840
+ "payload": {}
2841
+ },
2842
+ {
2843
+ "id": "bind-tdd",
2844
+ "op": "stageBinding",
2845
+ "payload": {
2846
+ "stageId": "implement",
2847
+ "bindingId": "tdd",
2848
+ "disposition": "loaded",
2849
+ "evidence": "Read tdd/SKILL.md before implementation."
2850
+ }
2851
+ },
2852
+ {
2853
+ "id": "stop",
2854
+ "op": "stop",
2855
+ "payload": {}
2856
+ },
2857
+ {
2858
+ "id": "stop-generic",
2859
+ "op": "stopGeneric",
2860
+ "payload": {}
2861
+ }
2862
+ ],
2863
+ "expectations": {
2864
+ "on": [
2865
+ {
2866
+ "id": "start-exit",
2867
+ "path": [
2868
+ "actions",
2869
+ "start",
2870
+ "exitCode"
2871
+ ],
2872
+ "operator": "equals",
2873
+ "expected": 0,
2874
+ "s1Kind": "control"
2875
+ },
2876
+ {
2877
+ "id": "bind-exit",
2878
+ "path": [
2879
+ "actions",
2880
+ "bind-tdd",
2881
+ "exitCode"
2882
+ ],
2883
+ "operator": "equals",
2884
+ "expected": 0,
2885
+ "s1Kind": "control"
2886
+ },
2887
+ {
2888
+ "id": "bind-status-loaded",
2889
+ "path": [
2890
+ "actions",
2891
+ "bind-tdd",
2892
+ "json",
2893
+ "binding",
2894
+ "status"
2895
+ ],
2896
+ "operator": "equals",
2897
+ "expected": "loaded",
2898
+ "s1Kind": "control"
2899
+ },
2900
+ {
2901
+ "id": "stop-exit-0",
2902
+ "path": [
2903
+ "actions",
2904
+ "stop",
2905
+ "exitCode"
2906
+ ],
2907
+ "operator": "equals",
2908
+ "expected": 0,
2909
+ "s1Kind": "additional"
2910
+ },
2911
+ {
2912
+ "id": "stop-generic-exit-0",
2913
+ "path": [
2914
+ "actions",
2915
+ "stop-generic",
2916
+ "exitCode"
2917
+ ],
2918
+ "operator": "equals",
2919
+ "expected": 0,
2920
+ "s1Kind": "additional"
2921
+ }
2922
+ ],
2923
+ "off": [
2924
+ {
2925
+ "id": "start-exit",
2926
+ "path": [
2927
+ "actions",
2928
+ "start",
2929
+ "exitCode"
2930
+ ],
2931
+ "operator": "equals",
2932
+ "expected": 0,
2933
+ "s1Kind": "control"
2934
+ },
2935
+ {
2936
+ "id": "bind-exit",
2937
+ "path": [
2938
+ "actions",
2939
+ "bind-tdd",
2940
+ "exitCode"
2941
+ ],
2942
+ "operator": "equals",
2943
+ "expected": 0,
2944
+ "s1Kind": "control"
2945
+ },
2946
+ {
2947
+ "id": "stop-exit-0",
2948
+ "path": [
2949
+ "actions",
2950
+ "stop",
2951
+ "exitCode"
2952
+ ],
2953
+ "operator": "equals",
2954
+ "expected": 0,
2955
+ "s1Kind": "control"
2956
+ },
2957
+ {
2958
+ "id": "pilot-not-credited",
2959
+ "path": [
2960
+ "pilot"
2961
+ ],
2962
+ "operator": "equals",
2963
+ "expected": null,
2964
+ "s1Kind": "control"
2965
+ },
2966
+ {
2967
+ "id": "stop-generic-exit-0",
2968
+ "path": [
2969
+ "actions",
2970
+ "stop-generic",
2971
+ "exitCode"
2972
+ ],
2973
+ "operator": "equals",
2974
+ "expected": 0,
2975
+ "s1Kind": "additional"
2976
+ }
2977
+ ]
2978
+ }
2979
+ },
2980
+ {
2981
+ "id": "S1-CODE-ONLY-UNKNOWN",
2982
+ "family": "S1",
2983
+ "description": "Typed non-doc plan with a JS code diff and no REQ-citing test: requirement-sync is unknown (a MUST), so ON refuses verification, withholds completion, and reports the unknown in the runtime pilot report.",
2984
+ "topology": "iterative-single-typed",
2985
+ "requirements": [
2986
+ {
2987
+ "id": "req-code",
2988
+ "stepType": "behavior-change",
2989
+ "summary": "Fix the checkout failure",
2990
+ "acceptance": "the failing scenario succeeds"
2991
+ },
2992
+ {
2993
+ "id": "req-verify",
2994
+ "stepType": "verification",
2995
+ "summary": "Verify the checkout change",
2996
+ "acceptance": "objective check evidence is recorded"
2997
+ }
2998
+ ],
2999
+ "input": {
3000
+ "baseFiles": {
3001
+ ".agents/harness-everything/project-docs.json": "{\n \"governed\": [\n { \"path\": \"docs/adr/**\", \"role\": \"adr\" }\n ],\n \"domains\": [\"GRPH\"]\n}\n",
3002
+ "src/checkout.js": "export function checkout() {\n return 'v1';\n}\n"
3003
+ },
3004
+ "candidateFiles": {
3005
+ ".agents/harness-everything/project-docs.json": "{\n \"governed\": [\n { \"path\": \"docs/adr/**\", \"role\": \"adr\" }\n ],\n \"domains\": [\"GRPH\"]\n}\n",
3006
+ "src/checkout.js": "export function checkout() {\n return 'v2';\n}\n"
3007
+ },
3008
+ "config": null,
3009
+ "task": null,
3010
+ "hostEvents": []
3011
+ },
3012
+ "actions": [
3013
+ {
3014
+ "id": "route",
3015
+ "op": "route",
3016
+ "payload": {
3017
+ "prompt": "Fix this checkout bug and add a regression test."
3018
+ }
3019
+ },
3020
+ {
3021
+ "id": "plan",
3022
+ "op": "plan",
3023
+ "payload": {
3024
+ "requirements": "$requirements",
3025
+ "strategy": "iterative-single",
3026
+ "evidence": "two dependent requirements fit a bounded test-fix-verify loop"
3027
+ }
3028
+ },
3029
+ {
3030
+ "id": "start",
3031
+ "op": "start",
3032
+ "payload": {}
3033
+ },
3034
+ {
3035
+ "id": "tdd-bind",
3036
+ "op": "binding",
3037
+ "payload": {
3038
+ "stepId": "req-code",
3039
+ "bindingId": "tdd",
3040
+ "disposition": "loaded",
3041
+ "evidence": "tdd skill located"
3042
+ }
3043
+ },
3044
+ {
3045
+ "id": "code-pass",
3046
+ "op": "step",
3047
+ "payload": {
3048
+ "stepId": "req-code",
3049
+ "disposition": "pass",
3050
+ "evidence": "regression test added"
3051
+ }
3052
+ },
3053
+ {
3054
+ "id": "verify-bind",
3055
+ "op": "binding",
3056
+ "payload": {
3057
+ "stepId": "req-verify",
3058
+ "bindingId": "verification-loop",
3059
+ "disposition": "loaded",
3060
+ "evidence": "verification loop skill located"
3061
+ }
3062
+ },
3063
+ {
3064
+ "id": "verify-pass",
3065
+ "op": "step",
3066
+ "payload": {
3067
+ "stepId": "req-verify",
3068
+ "disposition": "pass",
3069
+ "evidence": "objective check recorded"
3070
+ }
3071
+ },
3072
+ {
3073
+ "id": "stop",
3074
+ "op": "stop",
3075
+ "payload": {}
3076
+ },
3077
+ {
3078
+ "id": "stop-generic",
3079
+ "op": "stopGeneric",
3080
+ "payload": {}
3081
+ }
3082
+ ],
3083
+ "expectations": {
3084
+ "on": [
3085
+ {
3086
+ "id": "code-pass-exit",
3087
+ "path": [
3088
+ "actions",
3089
+ "code-pass",
3090
+ "exitCode"
3091
+ ],
3092
+ "operator": "equals",
3093
+ "expected": 0,
3094
+ "s1Kind": "control"
3095
+ },
3096
+ {
3097
+ "id": "stop-exit-0",
3098
+ "path": [
3099
+ "actions",
3100
+ "stop",
3101
+ "exitCode"
3102
+ ],
3103
+ "operator": "equals",
3104
+ "expected": 0,
3105
+ "s1Kind": "additional"
3106
+ },
3107
+ {
3108
+ "id": "stop-generic-exit-0",
3109
+ "path": [
3110
+ "actions",
3111
+ "stop-generic",
3112
+ "exitCode"
3113
+ ],
3114
+ "operator": "equals",
3115
+ "expected": 0,
3116
+ "s1Kind": "additional"
3117
+ }
3118
+ ],
3119
+ "off": [
3120
+ {
3121
+ "id": "verify-pass-exit",
3122
+ "path": [
3123
+ "actions",
3124
+ "verify-pass",
3125
+ "exitCode"
3126
+ ],
3127
+ "operator": "equals",
3128
+ "expected": 0,
3129
+ "s1Kind": "control"
3130
+ },
3131
+ {
3132
+ "id": "stop-state",
3133
+ "path": [
3134
+ "actions",
3135
+ "stop",
3136
+ "state",
3137
+ "workflow",
3138
+ "state"
3139
+ ],
3140
+ "operator": "equals",
3141
+ "expected": "satisfied",
3142
+ "s1Kind": "control"
3143
+ },
3144
+ {
3145
+ "id": "pilot-not-credited",
3146
+ "path": [
3147
+ "pilot"
3148
+ ],
3149
+ "operator": "equals",
3150
+ "expected": null,
3151
+ "s1Kind": "control"
3152
+ },
3153
+ {
3154
+ "id": "stop-generic-exit-0",
3155
+ "path": [
3156
+ "actions",
3157
+ "stop-generic",
3158
+ "exitCode"
3159
+ ],
3160
+ "operator": "equals",
3161
+ "expected": 0,
3162
+ "s1Kind": "additional"
3163
+ }
3164
+ ]
3165
+ }
3166
+ },
3167
+ {
3168
+ "id": "S1-COMMIT-MID-WORKFLOW",
3169
+ "family": "S1",
3170
+ "description": "Governed doc diff (with a rename endpoint) is committed mid-workflow: the baseline recorded at plan still governs, so verification is refused and both Stop surfaces exit 0.",
3171
+ "topology": "iterative-single-typed",
3172
+ "requirements": [
3173
+ {
3174
+ "id": "req-docs",
3175
+ "stepType": "doc-change",
3176
+ "summary": "Update the ADR text",
3177
+ "acceptance": "normative ADR text is reviewed"
3178
+ },
3179
+ {
3180
+ "id": "req-verify",
3181
+ "stepType": "verification",
3182
+ "summary": "Verify the ADR change",
3183
+ "acceptance": "objective doc checks are recorded"
3184
+ }
3185
+ ],
3186
+ "input": {
3187
+ "baseFiles": {
3188
+ ".agents/harness-everything/project-docs.json": "{\n \"governed\": [\n { \"path\": \"docs/adr/**\", \"role\": \"adr\" }\n ],\n \"domains\": [\"GRPH\"]\n}\n",
3189
+ "docs/adr/GRPH-001.md": "# GRPH-001 Checkout retry\n\nStatus: accepted\n\nCheckout MUST retry once.\n",
3190
+ "docs/adr/a.md": "# GRPH-002 Retry budget\n\nStatus: accepted\n\nRetry budget MUST be three.\n"
3191
+ },
3192
+ "candidateFiles": {
3193
+ ".agents/harness-everything/project-docs.json": "{\n \"governed\": [\n { \"path\": \"docs/adr/**\", \"role\": \"adr\" }\n ],\n \"domains\": [\"GRPH\"]\n}\n",
3194
+ "docs/adr/GRPH-001.md": "# GRPH-001 Checkout retry\n\nStatus: accepted\n\nCheckout MUST retry twice.\n",
3195
+ "docs/adr/a.md": null,
3196
+ "docs/adr/b.md": "# GRPH-002 Retry budget\n\nStatus: accepted\n\nRetry budget MUST be three.\n"
3197
+ },
3198
+ "config": null,
3199
+ "task": null,
3200
+ "hostEvents": []
3201
+ },
3202
+ "actions": [
3203
+ {
3204
+ "id": "route",
3205
+ "op": "route",
3206
+ "payload": {
3207
+ "prompt": "Fix this checkout bug and update its documentation."
3208
+ }
3209
+ },
3210
+ {
3211
+ "id": "plan",
3212
+ "op": "plan",
3213
+ "payload": {
3214
+ "requirements": "$requirements",
3215
+ "strategy": "iterative-single",
3216
+ "evidence": "two dependent requirements fit a bounded documentation loop"
3217
+ }
3218
+ },
3219
+ {
3220
+ "id": "start",
3221
+ "op": "start",
3222
+ "payload": {}
3223
+ },
3224
+ {
3225
+ "id": "doc-pass",
3226
+ "op": "step",
3227
+ "payload": {
3228
+ "stepId": "req-docs",
3229
+ "disposition": "pass",
3230
+ "evidence": "ADR text updated"
3231
+ }
3232
+ },
3233
+ {
3234
+ "id": "commit-mid",
3235
+ "op": "gitCommit",
3236
+ "payload": {
3237
+ "message": "authored docs change, committed mid-workflow"
3238
+ }
3239
+ },
3240
+ {
3241
+ "id": "verify-bind",
3242
+ "op": "binding",
3243
+ "payload": {
3244
+ "stepId": "req-verify",
3245
+ "bindingId": "verification-loop",
3246
+ "disposition": "loaded",
3247
+ "evidence": "verification loop skill located"
3248
+ }
3249
+ },
3250
+ {
3251
+ "id": "verify-pass",
3252
+ "op": "step",
3253
+ "payload": {
3254
+ "stepId": "req-verify",
3255
+ "disposition": "pass",
3256
+ "evidence": "done"
3257
+ }
3258
+ },
3259
+ {
3260
+ "id": "stop",
3261
+ "op": "stop",
3262
+ "payload": {}
3263
+ },
3264
+ {
3265
+ "id": "stop-generic",
3266
+ "op": "stopGeneric",
3267
+ "payload": {}
3268
+ }
3269
+ ],
3270
+ "expectations": {
3271
+ "on": [
3272
+ {
3273
+ "id": "doc-pass-exit",
3274
+ "path": [
3275
+ "actions",
3276
+ "doc-pass",
3277
+ "exitCode"
3278
+ ],
3279
+ "operator": "equals",
3280
+ "expected": 0,
3281
+ "s1Kind": "control"
3282
+ },
3283
+ {
3284
+ "id": "stop-exit-0",
3285
+ "path": [
3286
+ "actions",
3287
+ "stop",
3288
+ "exitCode"
3289
+ ],
3290
+ "operator": "equals",
3291
+ "expected": 0,
3292
+ "s1Kind": "additional"
3293
+ },
3294
+ {
3295
+ "id": "stop-generic-exit-0",
3296
+ "path": [
3297
+ "actions",
3298
+ "stop-generic",
3299
+ "exitCode"
3300
+ ],
3301
+ "operator": "equals",
3302
+ "expected": 0,
3303
+ "s1Kind": "additional"
3304
+ }
3305
+ ],
3306
+ "off": [
3307
+ {
3308
+ "id": "verify-pass-exit",
3309
+ "path": [
3310
+ "actions",
3311
+ "verify-pass",
3312
+ "exitCode"
3313
+ ],
3314
+ "operator": "equals",
3315
+ "expected": 0,
3316
+ "s1Kind": "control"
3317
+ },
3318
+ {
3319
+ "id": "stop-state",
3320
+ "path": [
3321
+ "actions",
3322
+ "stop",
3323
+ "state",
3324
+ "workflow",
3325
+ "state"
3326
+ ],
3327
+ "operator": "equals",
3328
+ "expected": "satisfied",
3329
+ "s1Kind": "control"
3330
+ },
3331
+ {
3332
+ "id": "pilot-not-credited",
3333
+ "path": [
3334
+ "pilot"
3335
+ ],
3336
+ "operator": "equals",
3337
+ "expected": null,
3338
+ "s1Kind": "control"
3339
+ },
3340
+ {
3341
+ "id": "stop-generic-exit-0",
3342
+ "path": [
3343
+ "actions",
3344
+ "stop-generic",
3345
+ "exitCode"
3346
+ ],
3347
+ "operator": "equals",
3348
+ "expected": 0,
3349
+ "s1Kind": "additional"
3350
+ }
3351
+ ]
3352
+ }
3353
+ }
3354
+ ]
3355
+ }