forked from Dicklesworthstone/pi_agent_rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswarm-progress-slo-closeout-gate.json
More file actions
541 lines (541 loc) · 19.4 KB
/
Copy pathswarm-progress-slo-closeout-gate.json
File metadata and controls
541 lines (541 loc) · 19.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
{
"schema": "pi.swarm.progress_slo.closeout_gate.v1",
"generated_at": "2026-05-15T07:15:35Z",
"status": "pass",
"purpose": "prompt_to_artifact_swarm_progress_slo_closeout_gate_not_source_of_truth",
"parent_epic": {
"id": "bd-wzri8",
"title": "[IDEA-WIZARD] Swarm progress SLO and saturation convergence program",
"status_before_closeout": "open"
},
"final_gate_bead": {
"id": "bd-wzri8.8",
"title": "SPROG-T8: Add progress SLO closeout gate",
"status_before_closeout": "in_progress"
},
"required_checks": [
"child_beads_closed",
"contract_and_source_inventory",
"deterministic_evaluator",
"cli_surface",
"doctor_runpack_projection",
"no_mock_e2e",
"stress_budgets",
"operator_docs_privacy",
"readme_freshness",
"source_boundaries",
"pushed_commits",
"quality_gates"
],
"child_artifact_map": [
{
"bead_id": "bd-wzri8.1",
"status": "closed",
"title": "SPROG-T1: Define swarm progress SLO contract and source inventory",
"close_reason": "Completed: added pi.swarm.progress_slo.v1 contract and focused contract tests covering source inventory, authority boundaries, fail-closed degraded behavior, redaction, and read-only/no-replacement guards. Verified with jq, cargo fmt --check, RCH focused test, RCH cargo check --all-targets, and RCH cargo clippy --all-targets -- -D warnings.",
"commit": "083c3c8e67e49ad3a2fa109bc32c329bdb2aaa5c",
"code_paths": [
"docs/contracts/swarm-progress-slo-contract.json"
],
"test_paths": [
"tests/swarm_progress_slo_contract.rs"
],
"docs_or_evidence_paths": [
"docs/contracts/swarm-progress-slo-contract.json"
],
"validation_commands": [
"rch exec -- cargo test --test swarm_progress_slo_contract -- --nocapture"
]
},
{
"bead_id": "bd-wzri8.2",
"status": "closed",
"title": "SPROG-T2: Implement deterministic progress SLO evaluator",
"close_reason": "Implemented deterministic read-only progress SLO evaluator with focused unit coverage",
"commit": "b6e5f5ff8b54bbfb0ac129b7ace73fa9f75e2bbf",
"code_paths": [
"src/lib.rs",
"src/swarm_progress_slo.rs"
],
"test_paths": [
"src/swarm_progress_slo.rs"
],
"docs_or_evidence_paths": [
"docs/contracts/swarm-progress-slo-contract.json"
],
"validation_commands": [
"rch exec -- cargo test swarm_progress_slo::tests --lib -- --nocapture"
]
},
{
"bead_id": "bd-wzri8.3",
"status": "closed",
"title": "SPROG-T3: Expose read-only pi swarm-progress CLI",
"close_reason": "Implemented read-only pi swarm-progress CLI with JSON/text output, overwrite refusal, malformed-input failures, advisory authority boundaries, and focused CLI coverage.",
"commit": "44aa72036ed0f098492025290be6a6197f626b8f",
"code_paths": [
"src/cli.rs",
"src/main.rs"
],
"test_paths": [
"tests/conformance/fixture_runner.rs",
"tests/swarm_progress_cli.rs"
],
"docs_or_evidence_paths": [
"README.md"
],
"validation_commands": [
"rch exec -- cargo test --test swarm_progress_cli -- --nocapture"
]
},
{
"bead_id": "bd-wzri8.4",
"status": "closed",
"title": "SPROG-T4: Project progress SLO into Doctor and runpack",
"close_reason": "Projected progress SLO posture into Doctor and runpack with advisory schema coverage",
"commit": "0f8cb0a3bcd117ee7b6f06f88fd60869e826ae6b",
"code_paths": [
"scripts/build_swarm_operator_runpack.py",
"src/doctor.rs"
],
"test_paths": [
"tests/golden_corpus/swarm_operator_runpack/complete_runpack_projection.json"
],
"docs_or_evidence_paths": [
"docs/contracts/swarm-operator-runpack-contract.json",
"tests/golden_corpus/swarm_operator_runpack/complete_runpack_projection.json"
],
"validation_commands": [
"python3 scripts/build_swarm_operator_runpack.py --self-test",
"rch exec -- cargo test --test doctor_swarm_temp_dir_json -- --nocapture"
]
},
{
"bead_id": "bd-wzri8.5",
"status": "closed",
"title": "SPROG-T5: Add no-mock progress SLO E2E and JSONL event evidence",
"close_reason": "Added no-mock progress SLO E2E harness with JSONL event evidence",
"commit": "91dbd602e8f9b1941081b64cf199b0725e471f56",
"code_paths": [
"tests/swarm_progress_slo_e2e.rs"
],
"test_paths": [
"tests/swarm_progress_slo_e2e.rs"
],
"docs_or_evidence_paths": [
"tests/swarm_progress_slo_e2e.rs"
],
"validation_commands": [
"rch exec -- cargo test --test swarm_progress_slo_e2e -- --nocapture"
]
},
{
"bead_id": "bd-wzri8.6",
"status": "closed",
"title": "SPROG-T6: Define large-host progress SLO stress budgets",
"close_reason": "Implemented deterministic large-host progress SLO stress budget profiles, fail-closed budget verdicts, cache/provenance/caveat evidence, and regression coverage.",
"commit": "df99fa1c95bda3a1cf90ea2365e92b6447e42e0b",
"code_paths": [
"src/swarm_progress_slo.rs"
],
"test_paths": [
"src/swarm_progress_slo.rs"
],
"docs_or_evidence_paths": [
"src/swarm_progress_slo.rs"
],
"validation_commands": [
"rch exec -- cargo test swarm_progress_slo::tests --lib -- --nocapture"
]
},
{
"bead_id": "bd-wzri8.7",
"status": "closed",
"title": "SPROG-T7: Document operator workflow and privacy posture",
"close_reason": "Documented progress SLO operator workflow and privacy posture",
"commit": "983bca678f4acbb11098f4b875bd2c4420205235",
"code_paths": [
"README.md",
"docs/swarm-operations-runbook.md"
],
"test_paths": [
"docs/swarm-operations-runbook.md"
],
"docs_or_evidence_paths": [
"README.md",
"docs/swarm-operations-runbook.md"
],
"validation_commands": [
"cargo fmt --check",
"git diff --check"
]
}
],
"source_boundary_checks": [
{
"id": "beads_soft_lock",
"status": "pass",
"evidence": [
"bd-wzri8.8 was claimed in Beads; Agent Mail schema health was corrupt, so Beads assignee and comments are the soft lock."
]
},
{
"id": "agent_mail_degraded",
"status": "pass",
"evidence": [
"Agent Mail health returned recovery_mode=corrupt with missing projects/agents/messages/message_recipients tables; closeout does not infer missing reservations as absence of ownership."
]
},
{
"id": "normalized_sources_only",
"status": "pass",
"evidence": [
"pi swarm-progress consumes normalized ProgressSloEvaluationInput snapshots and does not scrape live Beads, Agent Mail, RCH, git, Doctor, runpack, or source files."
]
},
{
"id": "read_only_no_live_mutation",
"status": "pass",
"evidence": [
"Progress SLO evaluator, CLI, Doctor/runpack projection, E2E fixture, and stress budgets are advisory read-only surfaces with overwrite refusal and no live mutation authority."
]
},
{
"id": "doctor_runpack_advisory",
"status": "pass",
"evidence": [
"Doctor and runpack progress-SLO posture remains advisory handoff data and does not replace Beads, Agent Mail, RCH, validation broker, CI, UBS, or source artifacts."
]
},
{
"id": "rch_required",
"status": "pass",
"evidence": [
"Every heavy Cargo gate in quality_gate_results records an rch exec -- command with isolated CARGO_TARGET_DIR and TMPDIR."
]
},
{
"id": "cargo_headroom",
"status": "pass",
"evidence": [
"Validation commands use /data/tmp/pi_agent_rust_cargo/amberosprey target and tmp directories instead of repo-local target output."
]
},
{
"id": "staged_ubs_required",
"status": "pass",
"evidence": [
"The staged UBS gate remains mandatory before the closeout commit; the changed-line fallback is valid only for whole-file baseline noise."
]
},
{
"id": "beads_ledger_required",
"status": "pass",
"evidence": [
"The Beads ledger reconciliation gate remains mandatory before the closeout commit."
]
},
{
"id": "no_release_claims",
"status": "pass",
"evidence": [
"Progress-SLO closeout evidence does not make strict drop-in, release performance, capacity, benchmark, CI-success, or global speed claims."
]
},
{
"id": "advisory_closeout_only",
"status": "pass",
"evidence": [
"The progress-SLO closeout gate is prompt-to-artifact evidence, not a new authority over Beads, git, RCH, Doctor, runpacks, Agent Mail, CI, UBS, or source files."
]
},
{
"id": "claim_integrity",
"status": "pass",
"evidence": [
"Release-facing claims still require independent claim-integrity artifacts; this gate only audits bd-wzri8 prompt-to-artifact completion."
]
},
{
"id": "not_permission_to_skip_gates",
"status": "pass",
"evidence": [
"A passing closeout gate is not permission to skip source-specific tests, staged UBS, Beads ledger reconciliation, RCH gates, or push verification."
]
}
],
"quality_gate_results": [
{
"id": "json_contracts",
"status": "pass",
"command": "python3 -m json.tool docs/contracts/swarm-progress-slo-closeout-gate-contract.json"
},
{
"id": "cargo_fmt",
"status": "pass",
"command": "cargo fmt --check"
},
{
"id": "git_diff_check",
"status": "pass",
"command": "git diff --check"
},
{
"id": "progress_slo_contract_rch",
"status": "pass",
"command": "rch exec -- env CARGO_TARGET_DIR=/data/tmp/pi_agent_rust_cargo/amberosprey/target TMPDIR=/data/tmp/pi_agent_rust_cargo/amberosprey/tmp cargo test --test swarm_progress_slo_contract -- --nocapture"
},
{
"id": "progress_slo_cli_rch",
"status": "pass",
"command": "rch exec -- env CARGO_TARGET_DIR=/data/tmp/pi_agent_rust_cargo/amberosprey/target TMPDIR=/data/tmp/pi_agent_rust_cargo/amberosprey/tmp cargo test --test swarm_progress_cli -- --nocapture"
},
{
"id": "progress_slo_doctor_runpack_rch",
"status": "pass",
"command": "rch exec -- env CARGO_TARGET_DIR=/data/tmp/pi_agent_rust_cargo/amberosprey/target TMPDIR=/data/tmp/pi_agent_rust_cargo/amberosprey/tmp cargo test --test doctor_swarm_temp_dir_json -- --nocapture"
},
{
"id": "progress_slo_e2e_rch",
"status": "pass",
"command": "rch exec -- env CARGO_TARGET_DIR=/data/tmp/pi_agent_rust_cargo/amberosprey/target TMPDIR=/data/tmp/pi_agent_rust_cargo/amberosprey/tmp cargo test --test swarm_progress_slo_e2e -- --nocapture"
},
{
"id": "progress_slo_stress_rch",
"status": "pass",
"command": "rch exec -- env CARGO_TARGET_DIR=/data/tmp/pi_agent_rust_cargo/amberosprey/target TMPDIR=/data/tmp/pi_agent_rust_cargo/amberosprey/tmp cargo test swarm_progress_slo::tests --lib -- --nocapture"
},
{
"id": "progress_slo_closeout_gate_contract_rch",
"status": "pass",
"command": "rch exec -- env CARGO_TARGET_DIR=/data/tmp/pi_agent_rust_cargo/amberosprey/target TMPDIR=/data/tmp/pi_agent_rust_cargo/amberosprey/tmp cargo test --test swarm_progress_slo_closeout_gate_contract -- --nocapture"
},
{
"id": "cargo_check_all_targets_rch",
"status": "pass",
"command": "rch exec -- env CARGO_TARGET_DIR=/data/tmp/pi_agent_rust_cargo/amberosprey/target TMPDIR=/data/tmp/pi_agent_rust_cargo/amberosprey/tmp cargo check --all-targets"
},
{
"id": "cargo_clippy_all_targets_rch",
"status": "pass",
"command": "rch exec -- env CARGO_TARGET_DIR=/data/tmp/pi_agent_rust_cargo/amberosprey/target TMPDIR=/data/tmp/pi_agent_rust_cargo/amberosprey/tmp cargo clippy --all-targets -- -D warnings"
},
{
"id": "staged_ubs",
"status": "pass",
"command": "timeout 180s ubs --staged --only=rust ."
},
{
"id": "beads_ledger_reconcile",
"status": "pass",
"command": "./scripts/reconcile_beads_ledger.sh"
}
],
"checklist": [
{
"id": "child_beads_closed",
"status": "pass",
"requirement": "All progress-SLO implementation child Beads are closed and mapped to artifacts.",
"issue": null,
"evidence": [
{
"path": ".beads/issues.jsonl",
"child_statuses": {
"bd-wzri8.1": "closed",
"bd-wzri8.2": "closed",
"bd-wzri8.3": "closed",
"bd-wzri8.4": "closed",
"bd-wzri8.5": "closed",
"bd-wzri8.6": "closed",
"bd-wzri8.7": "closed"
},
"artifact_path_count": 17,
"commits": [
"083c3c8e67e49ad3a2fa109bc32c329bdb2aaa5c",
"b6e5f5ff8b54bbfb0ac129b7ace73fa9f75e2bbf",
"44aa72036ed0f098492025290be6a6197f626b8f",
"0f8cb0a3bcd117ee7b6f06f88fd60869e826ae6b",
"91dbd602e8f9b1941081b64cf199b0725e471f56",
"df99fa1c95bda3a1cf90ea2365e92b6447e42e0b",
"983bca678f4acbb11098f4b875bd2c4420205235"
]
}
]
},
{
"id": "contract_and_source_inventory",
"status": "pass",
"requirement": "The progress SLO contract defines source inventory, statuses, reason IDs, redaction posture, and read-only authority boundaries.",
"issue": null,
"evidence": [
{
"path": "docs/contracts/swarm-progress-slo-contract.json"
},
{
"path": "tests/swarm_progress_slo_contract.rs"
}
]
},
{
"id": "deterministic_evaluator",
"status": "pass",
"requirement": "The evaluator classifies progress states deterministically from normalized source snapshots without live mutation.",
"issue": null,
"evidence": [
{
"path": "src/swarm_progress_slo.rs"
}
]
},
{
"id": "cli_surface",
"status": "pass",
"requirement": "pi swarm-progress exposes JSON/text output, malformed-input failure, output overwrite refusal, and no live Beads/git mutation.",
"issue": null,
"evidence": [
{
"path": "src/main.rs"
},
{
"path": "tests/swarm_progress_cli.rs"
}
]
},
{
"id": "doctor_runpack_projection",
"status": "pass",
"requirement": "Doctor and swarm operator runpacks project progress-SLO posture as advisory handoff evidence.",
"issue": null,
"evidence": [
{
"path": "src/doctor.rs"
},
{
"path": "scripts/build_swarm_operator_runpack.py"
},
{
"path": "tests/golden_corpus/swarm_operator_runpack/complete_runpack_projection.json"
}
]
},
{
"id": "no_mock_e2e",
"status": "pass",
"requirement": "No-mock E2E coverage exercises temp Beads and git seams plus fixture-captured degraded Agent Mail/RCH inputs.",
"issue": null,
"evidence": [
{
"path": "tests/swarm_progress_slo_e2e.rs"
}
]
},
{
"id": "stress_budgets",
"status": "pass",
"requirement": "Large-host synthetic stress budgets fail closed on missing measurements, missing provenance, missing caveats, and exceeded budgets.",
"issue": null,
"evidence": [
{
"path": "src/swarm_progress_slo.rs",
"schema": "pi.swarm.progress_slo.stress_budget.v1",
"caveat": "synthetic_engineering_signal_not_release_performance_evidence"
}
]
},
{
"id": "operator_docs_privacy",
"status": "pass",
"requirement": "Operator docs cover workflow, privacy, degraded Agent Mail, RCH pressure, stale Beads, and convergence behavior.",
"issue": null,
"evidence": [
{
"path": "docs/swarm-operations-runbook.md"
},
{
"path": "README.md"
}
]
},
{
"id": "readme_freshness",
"status": "pass",
"requirement": "README documentation links identify the progress-SLO closeout contract and evidence artifact.",
"issue": null,
"evidence": [
{
"path": "README.md"
},
{
"path": "docs/contracts/swarm-progress-slo-closeout-gate-contract.json"
},
{
"path": "docs/evidence/swarm-progress-slo-closeout-gate.json"
}
]
},
{
"id": "source_boundaries",
"status": "pass",
"requirement": "Source-boundary checks preserve read-only, advisory, RCH, UBS, Beads-ledger, Agent Mail, and no-claim boundaries.",
"issue": null,
"evidence": [
{
"path": "docs/evidence/swarm-progress-slo-closeout-gate.json",
"source_boundary_count": 13
}
]
},
{
"id": "pushed_commits",
"status": "pass",
"requirement": "All implementation child commits were pushed to origin/main and mirrored to origin/master before closeout artifact generation.",
"issue": null,
"evidence": [
{
"head_before_closeout_commit": "df99fa1c95bda3a1cf90ea2365e92b6447e42e0b",
"origin_main_before_closeout_commit": "df99fa1c95bda3a1cf90ea2365e92b6447e42e0b",
"origin_legacy_mirror_before_closeout_commit": "df99fa1c95bda3a1cf90ea2365e92b6447e42e0b",
"pushed_remote_refs_equal_head": true,
"child_commits": [
"083c3c8e67e49ad3a2fa109bc32c329bdb2aaa5c",
"b6e5f5ff8b54bbfb0ac129b7ace73fa9f75e2bbf",
"44aa72036ed0f098492025290be6a6197f626b8f",
"0f8cb0a3bcd117ee7b6f06f88fd60869e826ae6b",
"91dbd602e8f9b1941081b64cf199b0725e471f56",
"df99fa1c95bda3a1cf90ea2365e92b6447e42e0b",
"983bca678f4acbb11098f4b875bd2c4420205235"
]
}
]
},
{
"id": "quality_gates",
"status": "pass",
"requirement": "Focused progress-SLO gates, broad Cargo gates, staged UBS, Beads ledger reconciliation, and diff checks are recorded and remain mandatory before commit.",
"issue": null,
"evidence": [
{
"heavy_cargo_uses_rch": true,
"provided_quality_gate_count": 13
}
]
}
],
"missing_checks": [],
"remaining_follow_ups": [],
"known_limitations": [
"Agent Mail was schema-corrupt during closeout; Beads assignment/comments were used as the soft lock and this artifact does not prove reservations were absent.",
"Progress SLO and synthetic stress-budget evidence are not release performance evidence, benchmark support, capacity claims, strict drop-in certification evidence, or CI-success claims.",
"This gate is not permission to skip source artifacts, source-specific tests, RCH verification, staged UBS, Beads ledger reconciliation, git push verification, or future claim-integrity gates."
],
"claim_boundaries": {
"strict_dropin_or_release_claim_authorized": false,
"progress_slo_is_release_performance_evidence": false,
"closeout_replaces_source_artifacts": false,
"allowed_claim": "advisory prompt-to-artifact closeout evidence only"
},
"follow_up_required": false,
"follow_up_beads": [],
"decision": "close_final_gate_and_parent_epic",
"epic_can_close_after_this_commit": true
}