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,560 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "phase": "workflow-contract-wiring",
4
+ "description": "Surviving wiring workflow replay controls migrated from reconciliation-s2b/wiring/cases.json (Issue #553 T2-W). Replayed by ci/mechanism-2an-workflow-replay.test.js through real source and packaged entry points with frozen legacy-off-golden.json.",
5
+ "cases": [
6
+ {
7
+ "id": "W-off-legacy",
8
+ "family": "WCTRL",
9
+ "description": "OFF early-return and legacy byte-equivalence pin: the S1 trio replays to its legacy completion, no pilot runtime report is written and no baseline is captured or persisted.",
10
+ "topology": "iterative-single-typed",
11
+ "requirements": [
12
+ {
13
+ "id": "req-docs",
14
+ "stepType": "doc-change",
15
+ "summary": "Update the PRD REQ text",
16
+ "acceptance": "normative PRD text is reviewed"
17
+ },
18
+ {
19
+ "id": "req-review",
20
+ "stepType": "review",
21
+ "summary": "Review the PRD change",
22
+ "acceptance": "reviewed scope and findings are recorded"
23
+ },
24
+ {
25
+ "id": "req-verify",
26
+ "stepType": "verification",
27
+ "summary": "Verify the PRD change",
28
+ "acceptance": "objective doc checks are recorded"
29
+ }
30
+ ],
31
+ "input": {
32
+ "baseFiles": {
33
+ ".agents/harness-everything/project-docs.json": "{\n \"governed\": [\n {\n \"path\": \"docs/prd/**\",\n \"role\": \"prd\"\n },\n {\n \"path\": \"docs/adr/**\",\n \"role\": \"adr\"\n },\n {\n \"path\": \"docs/reference/**\",\n \"role\": \"reference\"\n }\n ],\n \"domains\": [\n \"GRPH\"\n ],\n \"legacy\": [\n \"docs/adr/legacy/**\"\n ],\n \"derived\": [\n {\n \"path\": \"docs/roadmap/index.md\",\n \"generator\": \"npm run docs:index\"\n }\n ],\n \"tickets\": \"tracker\"\n}\n",
34
+ "docs/prd/graph.md": "---\nid: \"PRD-GRPH-001\"\nrevision: 1\nstatus: \"effective\"\ndrafted_by: \"Alice Example\"\neffective_at: \"2026-10-17T00:01:00Z\"\napproval:\n by: \"Bob Independent\"\n at: \"2026-10-17T00:00:00Z\"\n ref: \"https://approvals.example.invalid/PRD-GRPH-001\"\n role: \"human\"\n content_digest: \"sha256:a103bf860ed9d2cf7100d93eb8f0e3c3bce322d47e0f9fd83914b5bcc264ef70\"\n---\n# Graph\n\n### REQ-GRPH-001\n\nThe router records one topology per task.\n\nAcceptance: exactly one topology is recorded.\n"
35
+ },
36
+ "candidateFiles": {
37
+ "docs/prd/graph.md": "---\nid: \"PRD-GRPH-001\"\nrevision: 1\nstatus: \"effective\"\ndrafted_by: \"Alice Example\"\neffective_at: \"2026-10-17T00:01:00Z\"\napproval:\n by: \"Bob Independent\"\n at: \"2026-10-17T00:00:00Z\"\n ref: \"https://approvals.example.invalid/PRD-GRPH-001\"\n role: \"human\"\n content_digest: \"sha256:c5bc6c8aa29b39198eec91b7af210a946896d9b7975b9c72540ddd4a4bfb37ea\"\n---\n# Graph\n\n### REQ-GRPH-001\n\nThe router records one or more topologies per task.\n\nAcceptance: one or more topologies are recorded.\n"
38
+ }
39
+ },
40
+ "actions": [
41
+ {
42
+ "id": "route",
43
+ "op": "route",
44
+ "payload": {
45
+ "prompt": "Update the PRD REQ text, review it, and verify it."
46
+ }
47
+ },
48
+ {
49
+ "id": "plan",
50
+ "op": "plan",
51
+ "payload": {
52
+ "requirements": "$requirements",
53
+ "strategy": "iterative-single",
54
+ "evidence": "three dependent requirements fit a bounded documentation loop"
55
+ }
56
+ },
57
+ {
58
+ "id": "start",
59
+ "op": "start",
60
+ "payload": {}
61
+ },
62
+ {
63
+ "id": "doc-pass",
64
+ "op": "step",
65
+ "payload": {
66
+ "stepId": "req-docs",
67
+ "disposition": "pass",
68
+ "evidence": "PRD REQ text updated"
69
+ }
70
+ },
71
+ {
72
+ "id": "review-pass",
73
+ "op": "step",
74
+ "payload": {
75
+ "stepId": "req-review",
76
+ "disposition": "pass",
77
+ "evidence": "review scope recorded"
78
+ }
79
+ },
80
+ {
81
+ "id": "verify-bind",
82
+ "op": "binding",
83
+ "payload": {
84
+ "stepId": "req-verify",
85
+ "bindingId": "verification-loop",
86
+ "disposition": "loaded",
87
+ "evidence": "verification loop skill located"
88
+ }
89
+ },
90
+ {
91
+ "id": "verify-pass",
92
+ "op": "step",
93
+ "payload": {
94
+ "stepId": "req-verify",
95
+ "disposition": "pass",
96
+ "evidence": "objective doc checks recorded"
97
+ }
98
+ },
99
+ {
100
+ "id": "stop",
101
+ "op": "stop",
102
+ "payload": {}
103
+ },
104
+ {
105
+ "id": "stop-generic",
106
+ "op": "stopGeneric",
107
+ "payload": {}
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "id": "W-ctrl-nondoc-on",
113
+ "family": "WCTRL",
114
+ "description": "Ordinary non-document workflow: the complete action chain reaches its legacy satisfied state and both Stop surfaces exit 0 under the legacy switch value.",
115
+ "topology": "iterative-single-typed",
116
+ "requirements": [
117
+ {
118
+ "id": "req-code",
119
+ "stepType": "behavior-change",
120
+ "summary": "Fix the checkout failure",
121
+ "acceptance": "the failing scenario succeeds"
122
+ },
123
+ {
124
+ "id": "req-verify",
125
+ "stepType": "verification",
126
+ "summary": "Verify the checkout change",
127
+ "acceptance": "objective check evidence is recorded"
128
+ }
129
+ ],
130
+ "input": {
131
+ "baseFiles": {
132
+ ".agents/harness-everything/project-docs.json": "{\n \"governed\": [\n {\n \"path\": \"docs/prd/**\",\n \"role\": \"prd\"\n },\n {\n \"path\": \"docs/adr/**\",\n \"role\": \"adr\"\n },\n {\n \"path\": \"docs/reference/**\",\n \"role\": \"reference\"\n }\n ],\n \"domains\": [\n \"GRPH\"\n ],\n \"legacy\": [\n \"docs/adr/legacy/**\"\n ],\n \"derived\": [\n {\n \"path\": \"docs/roadmap/index.md\",\n \"generator\": \"npm run docs:index\"\n }\n ],\n \"tickets\": \"tracker\"\n}\n",
133
+ "assets/notes.txt": "Release notes draft.\n"
134
+ },
135
+ "candidateFiles": {
136
+ "assets/notes.txt": "Release notes draft, revised.\n"
137
+ }
138
+ },
139
+ "actions": [
140
+ {
141
+ "id": "route",
142
+ "op": "route",
143
+ "payload": {
144
+ "prompt": "Fix this checkout bug and add a regression test."
145
+ }
146
+ },
147
+ {
148
+ "id": "plan",
149
+ "op": "plan",
150
+ "payload": {
151
+ "requirements": "$requirements",
152
+ "strategy": "iterative-single",
153
+ "evidence": "two dependent requirements fit a bounded test-fix-verify loop"
154
+ }
155
+ },
156
+ {
157
+ "id": "start",
158
+ "op": "start",
159
+ "payload": {}
160
+ },
161
+ {
162
+ "id": "direct-execute",
163
+ "op": "obligation",
164
+ "payload": {
165
+ "obligationId": "execute",
166
+ "disposition": "pass",
167
+ "evidence": "typed execution steps are underway"
168
+ }
169
+ },
170
+ {
171
+ "id": "tdd-bind",
172
+ "op": "binding",
173
+ "payload": {
174
+ "stepId": "req-code",
175
+ "bindingId": "tdd",
176
+ "disposition": "loaded",
177
+ "evidence": "tdd skill located"
178
+ }
179
+ },
180
+ {
181
+ "id": "code-pass",
182
+ "op": "step",
183
+ "payload": {
184
+ "stepId": "req-code",
185
+ "disposition": "pass",
186
+ "evidence": "regression test added"
187
+ }
188
+ },
189
+ {
190
+ "id": "verify-bind",
191
+ "op": "binding",
192
+ "payload": {
193
+ "stepId": "req-verify",
194
+ "bindingId": "verification-loop",
195
+ "disposition": "loaded",
196
+ "evidence": "verification loop skill located"
197
+ }
198
+ },
199
+ {
200
+ "id": "verify-pass",
201
+ "op": "step",
202
+ "payload": {
203
+ "stepId": "req-verify",
204
+ "disposition": "pass",
205
+ "evidence": "objective check recorded"
206
+ }
207
+ },
208
+ {
209
+ "id": "stop",
210
+ "op": "stop",
211
+ "payload": {}
212
+ },
213
+ {
214
+ "id": "stop-generic",
215
+ "op": "stopGeneric",
216
+ "payload": {}
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "id": "W-strict-oldpass-governed",
222
+ "family": "WSTRICT",
223
+ "description": "Retained controls: the initial non-document decision is satisfied, later actions complete, and the earlier authored code PASS remains in workflow history. E1 scope-recheck assertions are retired.",
224
+ "topology": "iterative-single-typed",
225
+ "requirements": [
226
+ {
227
+ "id": "req-code",
228
+ "stepType": "behavior-change",
229
+ "summary": "Fix the checkout failure",
230
+ "acceptance": "the failing scenario succeeds"
231
+ },
232
+ {
233
+ "id": "req-verify",
234
+ "stepType": "verification",
235
+ "summary": "Verify the checkout change",
236
+ "acceptance": "objective check evidence is recorded"
237
+ }
238
+ ],
239
+ "input": {
240
+ "baseFiles": {
241
+ ".agents/harness-everything/project-docs.json": "{\n \"governed\": [\n {\n \"path\": \"docs/prd/**\",\n \"role\": \"prd\"\n },\n {\n \"path\": \"docs/adr/**\",\n \"role\": \"adr\"\n },\n {\n \"path\": \"docs/reference/**\",\n \"role\": \"reference\"\n }\n ],\n \"domains\": [\n \"GRPH\"\n ],\n \"legacy\": [\n \"docs/adr/legacy/**\"\n ],\n \"derived\": [\n {\n \"path\": \"docs/roadmap/index.md\",\n \"generator\": \"npm run docs:index\"\n }\n ],\n \"tickets\": \"tracker\"\n}\n",
242
+ "assets/notes.txt": "Release notes draft.\n",
243
+ "docs/adr/GRPH-001.md": "# GRPH-001 Checkout retry\n\nStatus: accepted\n\nCheckout MUST retry once.\n"
244
+ },
245
+ "candidateFiles": {}
246
+ },
247
+ "actions": [
248
+ {
249
+ "id": "route",
250
+ "op": "route",
251
+ "payload": {
252
+ "prompt": "Fix this checkout bug and add a regression test."
253
+ }
254
+ },
255
+ {
256
+ "id": "plan",
257
+ "op": "plan",
258
+ "payload": {
259
+ "requirements": "$requirements",
260
+ "strategy": "iterative-single",
261
+ "evidence": "two dependent requirements fit a bounded test-fix-verify loop"
262
+ }
263
+ },
264
+ {
265
+ "id": "start",
266
+ "op": "start",
267
+ "payload": {}
268
+ },
269
+ {
270
+ "id": "tdd-bind",
271
+ "op": "binding",
272
+ "payload": {
273
+ "stepId": "req-code",
274
+ "bindingId": "tdd",
275
+ "disposition": "loaded",
276
+ "evidence": "tdd skill located"
277
+ }
278
+ },
279
+ {
280
+ "id": "code-pass",
281
+ "op": "step",
282
+ "payload": {
283
+ "stepId": "req-code",
284
+ "disposition": "pass",
285
+ "evidence": "regression test added"
286
+ }
287
+ },
288
+ {
289
+ "id": "verify-bind",
290
+ "op": "binding",
291
+ "payload": {
292
+ "stepId": "req-verify",
293
+ "bindingId": "verification-loop",
294
+ "disposition": "loaded",
295
+ "evidence": "verification loop skill located"
296
+ }
297
+ },
298
+ {
299
+ "id": "verify-pass",
300
+ "op": "step",
301
+ "payload": {
302
+ "stepId": "req-verify",
303
+ "disposition": "pass",
304
+ "evidence": "objective check recorded"
305
+ }
306
+ },
307
+ {
308
+ "id": "stop-satisfied",
309
+ "op": "stop",
310
+ "payload": {}
311
+ },
312
+ {
313
+ "id": "add-governed-adr",
314
+ "op": "mutateIdentity",
315
+ "payload": {
316
+ "kind": "candidate",
317
+ "path": "docs/adr/GRPH-020.md",
318
+ "content": "# GRPH-020 Operator record\n\nStatus: accepted\n\nHandling MUST record the operator.\n"
319
+ }
320
+ },
321
+ {
322
+ "id": "stop-recheck",
323
+ "op": "stop",
324
+ "payload": {}
325
+ }
326
+ ]
327
+ },
328
+ {
329
+ "id": "W-strict-f3-pin",
330
+ "family": "WSTRICT",
331
+ "description": "Retained controls: authored document/review actions, a mid-workflow commit, and Stop complete through both real layouts. E1 baseline-pin and assessment assertions are retired.",
332
+ "topology": "iterative-single-typed",
333
+ "requirements": [
334
+ {
335
+ "id": "req-docs",
336
+ "stepType": "doc-change",
337
+ "summary": "Update the PRD REQ text",
338
+ "acceptance": "normative PRD text is reviewed"
339
+ },
340
+ {
341
+ "id": "req-review",
342
+ "stepType": "review",
343
+ "summary": "Review the PRD change",
344
+ "acceptance": "reviewed scope and findings are recorded"
345
+ },
346
+ {
347
+ "id": "req-verify",
348
+ "stepType": "verification",
349
+ "summary": "Verify the PRD change",
350
+ "acceptance": "objective doc checks are recorded"
351
+ }
352
+ ],
353
+ "input": {
354
+ "baseFiles": {
355
+ ".agents/harness-everything/project-docs.json": "{\n \"governed\": [\n {\n \"path\": \"docs/prd/**\",\n \"role\": \"prd\"\n },\n {\n \"path\": \"docs/adr/**\",\n \"role\": \"adr\"\n },\n {\n \"path\": \"docs/reference/**\",\n \"role\": \"reference\"\n }\n ],\n \"domains\": [\n \"GRPH\"\n ],\n \"legacy\": [\n \"docs/adr/legacy/**\"\n ],\n \"derived\": [\n {\n \"path\": \"docs/roadmap/index.md\",\n \"generator\": \"npm run docs:index\"\n }\n ],\n \"tickets\": \"tracker\"\n}\n",
356
+ "docs/prd/graph.md": "---\nid: \"PRD-GRPH-001\"\nrevision: 1\nstatus: \"effective\"\ndrafted_by: \"Alice Example\"\neffective_at: \"2026-10-17T00:01:00Z\"\napproval:\n by: \"Bob Independent\"\n at: \"2026-10-17T00:00:00Z\"\n ref: \"https://approvals.example.invalid/PRD-GRPH-001\"\n role: \"human\"\n content_digest: \"sha256:a103bf860ed9d2cf7100d93eb8f0e3c3bce322d47e0f9fd83914b5bcc264ef70\"\n---\n# Graph\n\n### REQ-GRPH-001\n\nThe router records one topology per task.\n\nAcceptance: exactly one topology is recorded.\n"
357
+ },
358
+ "candidateFiles": {
359
+ "docs/prd/graph.md": null,
360
+ "docs/prd/graph-renamed.md": "---\nid: \"PRD-GRPH-001\"\nrevision: 1\nstatus: \"effective\"\ndrafted_by: \"Alice Example\"\neffective_at: \"2026-10-17T00:01:00Z\"\napproval:\n by: \"Bob Independent\"\n at: \"2026-10-17T00:00:00Z\"\n ref: \"https://approvals.example.invalid/PRD-GRPH-001\"\n role: \"human\"\n content_digest: \"sha256:c5bc6c8aa29b39198eec91b7af210a946896d9b7975b9c72540ddd4a4bfb37ea\"\n---\n# Graph\n\n### REQ-GRPH-001\n\nThe router records one or more topologies per task.\n\nAcceptance: one or more topologies are recorded.\n"
361
+ }
362
+ },
363
+ "actions": [
364
+ {
365
+ "id": "route",
366
+ "op": "route",
367
+ "payload": {
368
+ "prompt": "Update the PRD REQ text, review it, and verify it."
369
+ }
370
+ },
371
+ {
372
+ "id": "plan",
373
+ "op": "plan",
374
+ "payload": {
375
+ "requirements": "$requirements",
376
+ "strategy": "iterative-single",
377
+ "evidence": "three dependent requirements fit a bounded documentation loop"
378
+ }
379
+ },
380
+ {
381
+ "id": "start",
382
+ "op": "start",
383
+ "payload": {}
384
+ },
385
+ {
386
+ "id": "doc-pass",
387
+ "op": "step",
388
+ "payload": {
389
+ "stepId": "req-docs",
390
+ "disposition": "pass",
391
+ "evidence": "PRD REQ content moved to the renamed path"
392
+ }
393
+ },
394
+ {
395
+ "id": "reviewer-agent-result",
396
+ "op": "hookDeliver",
397
+ "payload": {
398
+ "event": "PostToolUse",
399
+ "toolName": "Agent",
400
+ "command": "Agent: repo-docs-reviewer",
401
+ "toolUseId": "toolu_f4_reviewer_agent_W-strict-f3-pin",
402
+ "response": {
403
+ "agentId": "agent-f4-reviewer",
404
+ "status": "completed"
405
+ }
406
+ }
407
+ },
408
+ {
409
+ "id": "reviewer-stop",
410
+ "op": "hookDeliver",
411
+ "payload": {
412
+ "event": "SubagentStop",
413
+ "agentId": "agent-f4-reviewer",
414
+ "agentType": "repo-docs-reviewer",
415
+ "lastAssistantMessage": "Review verdict: approve. The PRD change keeps its acceptance criteria consistent.\nReviewed artifact: docs/prd/graph-renamed.md sha256:4d2b4ef924ba492f4de058d00eb7a27c91f0bad64f5fcb2eab28fb36e048ec6b"
416
+ }
417
+ },
418
+ {
419
+ "id": "review-pass",
420
+ "op": "step",
421
+ "payload": {
422
+ "stepId": "req-review",
423
+ "disposition": "pass",
424
+ "evidence": "independent host review approved the renamed PRD change"
425
+ }
426
+ },
427
+ {
428
+ "id": "verify-bind",
429
+ "op": "binding",
430
+ "payload": {
431
+ "stepId": "req-verify",
432
+ "bindingId": "verification-loop",
433
+ "disposition": "loaded",
434
+ "evidence": "verification loop skill located"
435
+ }
436
+ },
437
+ {
438
+ "id": "verify-pass",
439
+ "op": "step",
440
+ "payload": {
441
+ "stepId": "req-verify",
442
+ "disposition": "pass",
443
+ "evidence": "objective doc checks recorded"
444
+ }
445
+ },
446
+ {
447
+ "id": "commit-mid",
448
+ "op": "gitCommit",
449
+ "payload": {
450
+ "message": "commit the rename mid-workflow"
451
+ }
452
+ },
453
+ {
454
+ "id": "stop",
455
+ "op": "stop",
456
+ "payload": {}
457
+ }
458
+ ]
459
+ },
460
+ {
461
+ "id": "W-strict-f5-gitdiag",
462
+ "family": "WSTRICT",
463
+ "description": "Retained controls: OFF and legacy-switch ON route/Stop paths run in a deliberately broken-git workspace. E1 baseline-unavailable diagnosis assertions are retired.",
464
+ "topology": "iterative-single-typed",
465
+ "requirements": [
466
+ {
467
+ "id": "req-docs",
468
+ "stepType": "doc-change",
469
+ "summary": "Update the PRD REQ text",
470
+ "acceptance": "normative PRD text is reviewed"
471
+ },
472
+ {
473
+ "id": "req-verify",
474
+ "stepType": "verification",
475
+ "summary": "Verify the PRD change",
476
+ "acceptance": "objective doc checks are recorded"
477
+ }
478
+ ],
479
+ "input": {
480
+ "baseFiles": {
481
+ ".agents/harness-everything/project-docs.json": "{\n \"governed\": [\n {\n \"path\": \"docs/prd/**\",\n \"role\": \"prd\"\n },\n {\n \"path\": \"docs/adr/**\",\n \"role\": \"adr\"\n },\n {\n \"path\": \"docs/reference/**\",\n \"role\": \"reference\"\n }\n ],\n \"domains\": [\n \"GRPH\"\n ],\n \"legacy\": [\n \"docs/adr/legacy/**\"\n ],\n \"derived\": [\n {\n \"path\": \"docs/roadmap/index.md\",\n \"generator\": \"npm run docs:index\"\n }\n ],\n \"tickets\": \"tracker\"\n}\n",
482
+ "docs/prd/graph.md": "---\nid: \"PRD-GRPH-001\"\nrevision: 1\nstatus: \"effective\"\ndrafted_by: \"Alice Example\"\neffective_at: \"2026-10-17T00:01:00Z\"\napproval:\n by: \"Bob Independent\"\n at: \"2026-10-17T00:00:00Z\"\n ref: \"https://approvals.example.invalid/PRD-GRPH-001\"\n role: \"human\"\n content_digest: \"sha256:a103bf860ed9d2cf7100d93eb8f0e3c3bce322d47e0f9fd83914b5bcc264ef70\"\n---\n# Graph\n\n### REQ-GRPH-001\n\nThe router records one topology per task.\n\nAcceptance: exactly one topology is recorded.\n"
483
+ },
484
+ "candidateFiles": {
485
+ "docs/prd/graph.md": "---\nid: \"PRD-GRPH-001\"\nrevision: 1\nstatus: \"effective\"\ndrafted_by: \"Alice Example\"\neffective_at: \"2026-10-17T00:01:00Z\"\napproval:\n by: \"Bob Independent\"\n at: \"2026-10-17T00:00:00Z\"\n ref: \"https://approvals.example.invalid/PRD-GRPH-001\"\n role: \"human\"\n content_digest: \"sha256:c5bc6c8aa29b39198eec91b7af210a946896d9b7975b9c72540ddd4a4bfb37ea\"\n---\n# Graph\n\n### REQ-GRPH-001\n\nThe router records one or more topologies per task.\n\nAcceptance: one or more topologies are recorded.\n"
486
+ }
487
+ },
488
+ "actions": [
489
+ {
490
+ "id": "route",
491
+ "op": "route",
492
+ "payload": {
493
+ "prompt": "Update the PRD REQ text and verify it."
494
+ }
495
+ },
496
+ {
497
+ "id": "plan",
498
+ "op": "plan",
499
+ "payload": {
500
+ "requirements": "$requirements",
501
+ "strategy": "iterative-single",
502
+ "evidence": "two dependent requirements fit a bounded documentation loop"
503
+ }
504
+ },
505
+ {
506
+ "id": "start",
507
+ "op": "start",
508
+ "payload": {}
509
+ },
510
+ {
511
+ "id": "doc-pass",
512
+ "op": "step",
513
+ "payload": {
514
+ "stepId": "req-docs",
515
+ "disposition": "pass",
516
+ "evidence": "PRD REQ text updated"
517
+ }
518
+ },
519
+ {
520
+ "id": "corrupt-git",
521
+ "op": "mutateIdentity",
522
+ "payload": {
523
+ "kind": "candidate",
524
+ "path": ".git/HEAD",
525
+ "content": "corrupted"
526
+ }
527
+ },
528
+ {
529
+ "id": "verify-bind",
530
+ "op": "binding",
531
+ "payload": {
532
+ "stepId": "req-verify",
533
+ "bindingId": "verification-loop",
534
+ "disposition": "loaded",
535
+ "evidence": "verification loop skill located"
536
+ }
537
+ },
538
+ {
539
+ "id": "verify-pass",
540
+ "op": "step",
541
+ "payload": {
542
+ "stepId": "req-verify",
543
+ "disposition": "pass",
544
+ "evidence": "objective doc checks recorded"
545
+ },
546
+ "expectExit": {
547
+ "off": [
548
+ 0
549
+ ]
550
+ }
551
+ },
552
+ {
553
+ "id": "stop",
554
+ "op": "stop",
555
+ "payload": {}
556
+ }
557
+ ]
558
+ }
559
+ ]
560
+ }
@@ -31,8 +31,6 @@ const CONTROLLER_OPS = new Set(['plan', 'start', 'binding', 'stageBinding', 'ste
31
31
  // host payload through the real hook entry (state-persist.js). Neither writes a journal or accepted record itself.
32
32
  const HOST_OPS = new Set(['hostRun', 'hookDeliver']);
33
33
  const ALL_OPS = new Set(['route', 'stop', 'stopGeneric', ...CONTROLLER_OPS, ...FIXTURE_OPS, ...HOST_OPS]);
34
- // CI-only qualification preloader. Passed as `node --require <file>` to every child of a replay that asks for it.
35
- const QUALIFICATION_PRELOAD = path.join(__dirname, 'doc-reconciliation-qualification-preload.js');
36
34
  const CAPTURE_JOURNAL_FILE = 'doc-reconciliation-capture.json';
37
35
  // The only session files a case may seed, and only inside its own temporary state home.
38
36
  const SEEDABLE_FILES = new Set(['workflow-stages.json']);
@@ -137,11 +135,9 @@ function disposeSession(handle) {
137
135
  fs.rmSync(handle.stateHome, { recursive: true, force: true });
138
136
  }
139
137
 
140
- // The preloader is a test-driver argument only: a replay with `preload: true` adds it to every child it launches.
141
138
  function runScript(handle, script, args, stdin, pilot) {
142
- const preload = handle.preload ? ['--require', QUALIFICATION_PRELOAD] : [];
143
- // Test-only extra arguments (for example a file-access spy). They come before the preloader, so the spy sees everything.
144
- return spawnSync(process.execPath, [...(handle.nodeArgs || []), ...preload, script, ...args], {
139
+ // Test-only extra arguments (for example a file-access spy).
140
+ return spawnSync(process.execPath, [...(handle.nodeArgs || []), script, ...args], {
145
141
  cwd: handle.workspace,
146
142
  encoding: 'utf8',
147
143
  input: stdin === undefined ? undefined : JSON.stringify(stdin),
@@ -499,12 +495,11 @@ function runtimePilotOf(handle) {
499
495
  // Replays one case through one distribution. Actions run in order and the replay stops at its first infrastructure
500
496
  // fault: the faulted action is recorded, no later action runs, and the temporary directories are still removed.
501
497
  // A crash is recorded, not hidden.
502
- // `options.preload: true` adds the CI-only qualification preloader to every child (F4 test transport). Production
503
- // replays never set it, so the production gate stays unmet.
498
+ // Test-only `options.nodeArgs` lets a file-access spy run before the child's entry.
504
499
  function replayCase(caseDef, distribution, options = {}) {
505
500
  const limits = limitsFor(caseDef);
506
501
  const mode = options.pilot === undefined ? 'off' : 'on';
507
- const handle = { ...createSession(distribution, caseDef.id, options.pilot), limits, preload: options.preload === true, nodeArgs: Array.isArray(options.nodeArgs) ? options.nodeArgs : [] };
502
+ const handle = { ...createSession(distribution, caseDef.id, options.pilot), limits, nodeArgs: Array.isArray(options.nodeArgs) ? options.nodeArgs : [] };
508
503
  try {
509
504
  materialiseInput(handle, caseDef.input);
510
505
  const actions = {};