@kontourai/flow-agents 3.3.0 → 3.4.0

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 (256) hide show
  1. package/.github/workflows/add-to-project.yml +15 -0
  2. package/.github/workflows/ci.yml +161 -0
  3. package/CHANGELOG.md +41 -0
  4. package/CONTEXT.md +5 -1
  5. package/README.md +19 -8
  6. package/build/src/builder-flow-run-adapter.d.ts +80 -0
  7. package/build/src/builder-flow-run-adapter.js +241 -0
  8. package/build/src/builder-flow-runtime.d.ts +16 -0
  9. package/build/src/builder-flow-runtime.js +290 -0
  10. package/build/src/cli/builder-run.d.ts +1 -0
  11. package/build/src/cli/builder-run.js +27 -0
  12. package/build/src/cli/effective-backlog-settings.js +70 -2
  13. package/build/src/cli/init.d.ts +34 -0
  14. package/build/src/cli/init.js +341 -61
  15. package/build/src/cli/kit.js +55 -12
  16. package/build/src/cli/pull-work-provider.js +346 -5
  17. package/build/src/cli/skill-drift-check.d.ts +1 -0
  18. package/build/src/cli/skill-drift-check.js +165 -0
  19. package/build/src/cli/telemetry-doctor.d.ts +37 -0
  20. package/build/src/cli/telemetry-doctor.js +53 -6
  21. package/build/src/cli/validate-hook-influence.js +37 -7
  22. package/build/src/cli/workflow-sidecar.d.ts +93 -8
  23. package/build/src/cli/workflow-sidecar.js +1175 -158
  24. package/build/src/cli.js +5 -0
  25. package/build/src/flow-kit/validate.d.ts +54 -34
  26. package/build/src/flow-kit/validate.js +237 -26
  27. package/build/src/index.d.ts +2 -0
  28. package/build/src/index.js +1 -0
  29. package/build/src/lib/console-connect-options.d.ts +97 -0
  30. package/build/src/lib/console-connect-options.js +199 -0
  31. package/build/src/lib/console-telemetry-validate.d.ts +49 -0
  32. package/build/src/lib/console-telemetry-validate.js +91 -0
  33. package/build/src/lib/flow-resolver.d.ts +54 -1
  34. package/build/src/lib/flow-resolver.js +112 -5
  35. package/build/src/lib/fs.d.ts +17 -0
  36. package/build/src/lib/fs.js +172 -0
  37. package/build/src/lib/local-artifact-root.d.ts +44 -1
  38. package/build/src/lib/local-artifact-root.js +131 -3
  39. package/build/src/runtime-adapters.d.ts +39 -3
  40. package/build/src/runtime-adapters.js +77 -31
  41. package/build/src/tools/build-universal-bundles.js +40 -2
  42. package/build/src/tools/codex-agent-routing.d.ts +2 -0
  43. package/build/src/tools/codex-agent-routing.js +49 -0
  44. package/build/src/tools/generate-context-map.js +1 -0
  45. package/build/src/tools/validate-source-tree.js +27 -1
  46. package/context/scripts/hooks/lib/kit-catalog.js +235 -0
  47. package/context/scripts/hooks/lib/runnable-command.js +177 -0
  48. package/context/scripts/hooks/stop-goal-fit.js +278 -48
  49. package/context/scripts/hooks/workflow-steering.js +121 -21
  50. package/context/scripts/package.json +3 -0
  51. package/context/scripts/telemetry/install-console-config.sh +25 -4
  52. package/context/scripts/telemetry/lib/config.sh +102 -12
  53. package/context/scripts/telemetry/lib/pricing.sh +50 -0
  54. package/context/scripts/telemetry/lib/session.sh +3 -0
  55. package/context/scripts/telemetry/lib/transport.sh +87 -0
  56. package/context/scripts/telemetry/lib/usage.sh +205 -4
  57. package/context/scripts/telemetry/telemetry.conf +6 -0
  58. package/context/scripts/telemetry/telemetry.sh +48 -0
  59. package/context/settings/workspace-backlog-provider-settings.example.json +48 -0
  60. package/docs/agent-usage-feedback-loop.md +35 -0
  61. package/docs/architecture-engine-and-kits.md +110 -0
  62. package/docs/context-map.md +2 -0
  63. package/docs/decisions/embeddable-engine.md +152 -0
  64. package/docs/decisions/index.md +3 -1
  65. package/docs/decisions/trust-ledger-retention.md +88 -0
  66. package/docs/decisions/workflow-enforcement.md +31 -9
  67. package/docs/fixture-ownership.md +3 -0
  68. package/docs/implementing-trust-reconciliation.md +129 -0
  69. package/docs/index.md +19 -9
  70. package/docs/integrations/flow-agents-console.md +167 -0
  71. package/docs/kit-authoring-guide.md +52 -21
  72. package/docs/spec/builder-flow-runtime.md +80 -0
  73. package/docs/spec/runtime-hook-surface.md +45 -1
  74. package/docs/specs/economics-record-contract.md +270 -0
  75. package/docs/specs/harness-capability-matrix.md +74 -0
  76. package/docs/specs/learning-review-proposals-contract.md +340 -0
  77. package/docs/specs/routing-efficiency-review.md +59 -0
  78. package/docs/verifiable-trust.md +74 -25
  79. package/docs/workflow-usage-guide.md +10 -0
  80. package/evals/acceptance/prove-capture-teeth.sh +132 -0
  81. package/evals/ci/antigaming-suite.sh +1 -0
  82. package/evals/ci/run-baseline.sh +72 -4
  83. package/evals/fixtures/economics/acceptance.json +12 -0
  84. package/evals/fixtures/economics/agents/tool-worker-1/events.jsonl +2 -0
  85. package/evals/fixtures/economics/agents/tool-worker-2/events.jsonl +2 -0
  86. package/evals/fixtures/economics/agents/tool-worker-3/events.jsonl +2 -0
  87. package/evals/fixtures/economics/agents/tool-worker-4/events.jsonl +1 -0
  88. package/evals/fixtures/economics/agents/tool-worker-5/events.jsonl +2 -0
  89. package/evals/fixtures/economics/critique.json +22 -0
  90. package/evals/fixtures/economics/expected-record.json +71 -0
  91. package/evals/fixtures/economics/session-usage-event.json +1 -0
  92. package/evals/fixtures/economics/state.json +11 -0
  93. package/evals/fixtures/economics/transcript.jsonl +3 -0
  94. package/evals/fixtures/hook-influence/cases.json +7 -7
  95. package/evals/fixtures/learning-review-proposals/balanced/economics.jsonl +6 -0
  96. package/evals/fixtures/learning-review-proposals/effect-follow-up/economics.jsonl +5 -0
  97. package/evals/fixtures/learning-review-proposals/effect-follow-up/sessions/task-lr-ef-1/trust.bundle +21 -0
  98. package/evals/fixtures/learning-review-proposals/effect-follow-up/sessions/task-lr-ef-2/trust.bundle +21 -0
  99. package/evals/fixtures/learning-review-proposals/effect-follow-up/sessions/task-lr-ef-3/trust.bundle +21 -0
  100. package/evals/fixtures/learning-review-proposals/effect-follow-up/sessions/task-lr-ef-4/trust.bundle +21 -0
  101. package/evals/fixtures/learning-review-proposals/effect-follow-up/sessions/task-lr-ef-5/trust.bundle +21 -0
  102. package/evals/fixtures/learning-review-proposals/pattern-present/economics.jsonl +6 -0
  103. package/evals/fixtures/learning-review-proposals/pattern-present/expected-aggregates.json +30 -0
  104. package/evals/fixtures/learning-review-proposals/pattern-present/expected-aggregates.md +66 -0
  105. package/evals/fixtures/learning-review-proposals/pattern-present/sessions/task-lr-pp-1/gate-review.inquiries.json +26 -0
  106. package/evals/fixtures/learning-review-proposals/pattern-present/sessions/task-lr-pp-1/trust.bundle +21 -0
  107. package/evals/fixtures/learning-review-proposals/pattern-present/sessions/task-lr-pp-2/gate-review.inquiries.json +26 -0
  108. package/evals/fixtures/learning-review-proposals/pattern-present/sessions/task-lr-pp-2/trust.bundle +21 -0
  109. package/evals/fixtures/learning-review-proposals/pattern-present/sessions/task-lr-pp-3/gate-review.inquiries.json +26 -0
  110. package/evals/fixtures/learning-review-proposals/pattern-present/sessions/task-lr-pp-3/trust.bundle +21 -0
  111. package/evals/fixtures/learning-review-proposals/pattern-present/sessions/task-lr-pp-4/gate-review.inquiries.json +26 -0
  112. package/evals/fixtures/learning-review-proposals/pattern-present/sessions/task-lr-pp-4/trust.bundle +21 -0
  113. package/evals/fixtures/learning-review-proposals/pattern-present/sessions/task-lr-pp-5/trust.bundle +21 -0
  114. package/evals/fixtures/learning-review-proposals/pattern-present/sessions/task-lr-pp-6/trust.bundle +21 -0
  115. package/evals/fixtures/learning-review-proposals/repeat-window/economics.jsonl +6 -0
  116. package/evals/fixtures/learning-review-proposals/under-threshold/economics.jsonl +3 -0
  117. package/evals/fixtures/telemetry/usage-transcript-sample.jsonl +4 -0
  118. package/evals/fixtures/trust-reconcile-exploits/mcp-degrade.json +42 -0
  119. package/evals/integration/test_builder_entry_enforcement.sh +241 -0
  120. package/evals/integration/test_builder_step_producers.sh +18 -10
  121. package/evals/integration/test_bundle_install.sh +172 -0
  122. package/evals/integration/test_console_tenant_isolation.sh +167 -0
  123. package/evals/integration/test_critique_supersession_roundtrip.sh +4 -1
  124. package/evals/integration/test_dual_emit_flow_step.sh +10 -4
  125. package/evals/integration/test_economics_record.sh +674 -0
  126. package/evals/integration/test_effective_backlog_settings.sh +1 -1
  127. package/evals/integration/test_evidence_capture_hook.sh +17 -2
  128. package/evals/integration/test_exemption_usage_review.sh +198 -0
  129. package/evals/integration/test_fixture_retirement_audit.sh +2 -2
  130. package/evals/integration/test_flow_kit_install_git.sh +83 -0
  131. package/evals/integration/test_flowdef_session_activation.sh +0 -1
  132. package/evals/integration/test_flowdef_session_history_preservation.sh +13 -3
  133. package/evals/integration/test_gate_lockdown.sh +7 -0
  134. package/evals/integration/test_gate_review_inquiry_records.sh +9 -1
  135. package/evals/integration/test_goal_fit_hook.sh +2031 -0
  136. package/evals/integration/test_hook_category_behaviors.sh +8 -1
  137. package/evals/integration/test_hook_influence_cases.sh +25 -1
  138. package/evals/integration/test_install_merge.sh +227 -2
  139. package/evals/integration/test_kit_conformance_levels.sh +6 -6
  140. package/evals/integration/test_learning_review_proposals.sh +329 -0
  141. package/evals/integration/test_liveness_conflict_injection.sh +26 -22
  142. package/evals/integration/test_liveness_console_relay.sh +166 -0
  143. package/evals/integration/test_liveness_heartbeat.sh +17 -17
  144. package/evals/integration/test_liveness_worktree_root.sh +575 -0
  145. package/evals/integration/test_phase_map_and_gate_claim.sh +6 -1
  146. package/evals/integration/test_publish_delivery.sh +331 -1
  147. package/evals/integration/test_pull_work_board.sh +200 -0
  148. package/evals/integration/test_pull_work_provider.sh +1 -1
  149. package/evals/integration/test_record_check.sh +378 -0
  150. package/evals/integration/test_routing_efficiency.sh +71 -0
  151. package/evals/integration/test_runtime_adapter_activation.sh +28 -0
  152. package/evals/integration/test_session_resume_roundtrip.sh +16 -19
  153. package/evals/integration/test_skill_drift_check.sh +870 -0
  154. package/evals/integration/test_telemetry.sh +445 -0
  155. package/evals/integration/test_telemetry_doctor.sh +66 -0
  156. package/evals/integration/test_telemetry_usage_pipeline.sh +228 -0
  157. package/evals/integration/test_trust_reconcile_negatives.sh +30 -13
  158. package/evals/integration/test_trust_reconcile_trailer_diagnostic.sh +247 -0
  159. package/evals/integration/test_usage_cost.sh +61 -0
  160. package/evals/integration/test_workflow_sidecar_writer.sh +1395 -0
  161. package/evals/integration/test_workflow_steering_hook.sh +157 -16
  162. package/evals/integration/test_workspace_settings.sh +176 -0
  163. package/evals/lib/env.sh +26 -0
  164. package/evals/lib/node.sh +8 -0
  165. package/evals/run.sh +29 -0
  166. package/evals/static/test_ci_integration_coverage.sh +115 -0
  167. package/evals/static/test_declared_scope_forms_documented.sh +114 -0
  168. package/evals/static/test_universal_bundles.sh +34 -0
  169. package/evals/static/test_validate_source_kit_asset_scope.sh +259 -0
  170. package/evals/static/test_workflow_skills.sh +1 -1
  171. package/kits/builder/flows/build.flow.json +9 -18
  172. package/kits/builder/flows/publish-learn.flow.json +5 -1
  173. package/kits/builder/kit.json +120 -0
  174. package/kits/builder/skills/deliver/SKILL.md +42 -0
  175. package/kits/builder/skills/evidence-gate/SKILL.md +12 -0
  176. package/kits/builder/skills/execute-plan/SKILL.md +9 -0
  177. package/kits/builder/skills/learning-review/SKILL.md +51 -0
  178. package/kits/builder/skills/plan-work/SKILL.md +17 -20
  179. package/kits/builder/skills/pull-work/SKILL.md +21 -0
  180. package/kits/builder/skills/release-readiness/SKILL.md +12 -0
  181. package/kits/knowledge/kit.json +9 -0
  182. package/kits/veritas-governance/docs/README.md +35 -7
  183. package/kits/veritas-governance/fixtures/exemption-review/mixed-fresh-stale.DECLARED.json +14 -0
  184. package/kits/veritas-governance/kit.json +14 -0
  185. package/kits/veritas-governance/skills/exemption-usage-review/SKILL.md +128 -0
  186. package/kits/veritas-governance/skills/exemption-usage-review/review-exemptions.mjs +231 -0
  187. package/package.json +2 -2
  188. package/packaging/manifest.json +29 -0
  189. package/schemas/backlog-provider-settings.schema.json +13 -0
  190. package/schemas/workflow-state.schema.json +44 -0
  191. package/scripts/README.md +4 -0
  192. package/scripts/check-content-boundary.cjs +8 -1
  193. package/scripts/ci/trust-reconcile.js +136 -0
  194. package/scripts/hooks/codex-hook-adapter.js +77 -2
  195. package/scripts/hooks/evidence-capture.js +38 -5
  196. package/scripts/hooks/lib/codex-exit-code.js +316 -0
  197. package/scripts/hooks/lib/kit-catalog.js +235 -0
  198. package/scripts/hooks/lib/liveness-write.js +28 -1
  199. package/scripts/hooks/lib/local-artifact-paths.js +97 -1
  200. package/scripts/hooks/lib/runnable-command.js +177 -0
  201. package/scripts/hooks/lib/skill-drift.js +350 -0
  202. package/scripts/hooks/stop-goal-fit.js +278 -48
  203. package/scripts/hooks/workflow-steering.js +121 -21
  204. package/scripts/install-codex-home.sh +97 -47
  205. package/scripts/install-merge.js +72 -14
  206. package/scripts/install-owned-files.js +178 -0
  207. package/scripts/liveness/relay.sh +84 -0
  208. package/scripts/telemetry/economics-record.schema.json +145 -0
  209. package/scripts/telemetry/economics-record.sh +331 -0
  210. package/scripts/telemetry/install-console-config.sh +25 -4
  211. package/scripts/telemetry/learning-review-decide.sh +124 -0
  212. package/scripts/telemetry/learning-review-proposals.schema.json +161 -0
  213. package/scripts/telemetry/learning-review-proposals.sh +484 -0
  214. package/scripts/telemetry/lib/config.sh +102 -12
  215. package/scripts/telemetry/lib/pricing.sh +14 -6
  216. package/scripts/telemetry/lib/session.sh +3 -0
  217. package/scripts/telemetry/lib/transport.sh +133 -15
  218. package/scripts/telemetry/lib/usage.sh +121 -28
  219. package/scripts/telemetry/routing-efficiency.sh +0 -0
  220. package/scripts/telemetry/telemetry.conf +6 -0
  221. package/scripts/telemetry/telemetry.sh +48 -0
  222. package/src/builder-flow-run-adapter.ts +357 -0
  223. package/src/builder-flow-runtime.ts +348 -0
  224. package/src/cli/builder-flow-run-adapter.test.mjs +495 -0
  225. package/src/cli/builder-flow-runtime.test.mjs +213 -0
  226. package/src/cli/builder-run.ts +28 -0
  227. package/src/cli/codex-agent-routing.test.mjs +44 -0
  228. package/src/cli/codex-exit-code.test.mjs +207 -0
  229. package/src/cli/console-connect-options.test.mjs +329 -0
  230. package/src/cli/console-telemetry-validate.test.mjs +157 -0
  231. package/src/cli/effective-backlog-settings.ts +68 -2
  232. package/src/cli/flow-resolver-composition.test.mjs +72 -0
  233. package/src/cli/init.test.mjs +161 -0
  234. package/src/cli/init.ts +407 -62
  235. package/src/cli/kit-metadata-security.test.mjs +443 -0
  236. package/src/cli/kit.ts +50 -12
  237. package/src/cli/pull-work-provider.ts +377 -3
  238. package/src/cli/sidecar-pure-helpers.test.mjs +64 -0
  239. package/src/cli/skill-drift-check.ts +196 -0
  240. package/src/cli/telemetry-doctor.test.mjs +53 -0
  241. package/src/cli/telemetry-doctor.ts +50 -7
  242. package/src/cli/validate-hook-influence.ts +37 -6
  243. package/src/cli/workflow-sidecar.ts +1150 -151
  244. package/src/cli.ts +5 -0
  245. package/src/flow-kit/validate.ts +277 -38
  246. package/src/index.ts +19 -0
  247. package/src/lib/console-connect-options.ts +261 -0
  248. package/src/lib/console-telemetry-validate.ts +88 -0
  249. package/src/lib/flow-resolver.ts +117 -4
  250. package/src/lib/fs.ts +160 -0
  251. package/src/lib/local-artifact-root.ts +129 -3
  252. package/src/runtime-adapters.ts +113 -33
  253. package/src/tools/build-universal-bundles.ts +36 -2
  254. package/src/tools/codex-agent-routing.ts +48 -0
  255. package/src/tools/generate-context-map.ts +1 -0
  256. package/src/tools/validate-source-tree.ts +26 -1
@@ -0,0 +1,21 @@
1
+ {
2
+ "schemaVersion": 3,
3
+ "source": "flow-agents/workflow-sidecar;statusFunctionVersion=1",
4
+ "claims": [
5
+ {
6
+ "id": "task-lr-ef-4-gate-claim-unit-tests.flow-agents-workflow.unit-tests-pass",
7
+ "subjectType": "workflow-check",
8
+ "subjectId": "task-lr-ef-4/unit-tests",
9
+ "facet": "flow-agents.workflow",
10
+ "claimType": "builder.verify.tests",
11
+ "fieldOrBehavior": "unit tests pass",
12
+ "value": "pass",
13
+ "createdAt": "2026-07-04T00:00:00Z",
14
+ "updatedAt": "2026-07-04T00:00:00Z",
15
+ "status": "verified"
16
+ }
17
+ ],
18
+ "evidence": [],
19
+ "events": [],
20
+ "policies": []
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "schemaVersion": 3,
3
+ "source": "flow-agents/workflow-sidecar;statusFunctionVersion=1",
4
+ "claims": [
5
+ {
6
+ "id": "task-lr-ef-5-gate-claim-unit-tests.flow-agents-workflow.unit-tests-pass",
7
+ "subjectType": "workflow-check",
8
+ "subjectId": "task-lr-ef-5/unit-tests",
9
+ "facet": "flow-agents.workflow",
10
+ "claimType": "builder.verify.tests",
11
+ "fieldOrBehavior": "unit tests pass",
12
+ "value": "pass",
13
+ "createdAt": "2026-07-04T00:00:00Z",
14
+ "updatedAt": "2026-07-04T00:00:00Z",
15
+ "status": "verified"
16
+ }
17
+ ],
18
+ "evidence": [],
19
+ "events": [],
20
+ "policies": []
21
+ }
@@ -0,0 +1,6 @@
1
+ {"schema":"kontour.console.economics","version":"0.1","run_id":"pp-r1","at":1751500000000,"task_slug":"task-lr-pp-1","model":"claude-opus-4-8","cost":{"input_tokens":1000,"output_tokens":500,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"estimated_cost_usd":0.1,"by_model":[]},"time":{"wall_clock_s":100,"human_wait_s":10},"iterations":{"count":2,"route_backs":1},"defects":{"gate_fires":1,"findings_by_severity":{"critical":0,"high":1,"medium":0,"low":1},"caught_false_completions":1,"verification_verdict":"PASS"}}
2
+ {"schema":"kontour.console.economics","version":"0.1","run_id":"pp-r2","at":1751500001000,"task_slug":"task-lr-pp-2","model":"claude-opus-4-8","cost":{"input_tokens":1000,"output_tokens":500,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"estimated_cost_usd":0.1,"by_model":[]},"time":{"wall_clock_s":100,"human_wait_s":10},"iterations":{"count":2,"route_backs":1},"defects":{"gate_fires":1,"findings_by_severity":{"critical":0,"high":1,"medium":0,"low":1},"caught_false_completions":1,"verification_verdict":"PASS"}}
3
+ {"schema":"kontour.console.economics","version":"0.1","run_id":"pp-r3","at":1751500002000,"task_slug":"task-lr-pp-3","model":"claude-opus-4-8","cost":{"input_tokens":1000,"output_tokens":500,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"estimated_cost_usd":0.1,"by_model":[]},"time":{"wall_clock_s":100,"human_wait_s":10},"iterations":{"count":2,"route_backs":1},"defects":{"gate_fires":1,"findings_by_severity":{"critical":0,"high":1,"medium":0,"low":1},"caught_false_completions":1,"verification_verdict":"PASS"}}
4
+ {"schema":"kontour.console.economics","version":"0.1","run_id":"pp-r4","at":1751500003000,"task_slug":"task-lr-pp-4","model":"claude-opus-4-8","cost":{"input_tokens":1000,"output_tokens":500,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"estimated_cost_usd":0.2,"by_model":[]},"time":{"wall_clock_s":100,"human_wait_s":10},"iterations":{"count":2,"route_backs":1},"defects":{"gate_fires":1,"findings_by_severity":{"critical":0,"high":1,"medium":0,"low":1},"caught_false_completions":1,"verification_verdict":"PASS"}}
5
+ {"schema":"kontour.console.economics","version":"0.1","run_id":"pp-r5","at":1751500004000,"task_slug":"task-lr-pp-5","model":"claude-opus-4-8","cost":{"input_tokens":1000,"output_tokens":500,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"estimated_cost_usd":0.2,"by_model":[]},"time":{"wall_clock_s":100,"human_wait_s":10},"iterations":{"count":2,"route_backs":1},"defects":{"gate_fires":1,"findings_by_severity":{"critical":0,"high":1,"medium":0,"low":1},"caught_false_completions":1,"verification_verdict":"PASS"}}
6
+ {"schema":"kontour.console.economics","version":"0.1","run_id":"pp-r6","at":1751500005000,"task_slug":"task-lr-pp-6","model":"claude-opus-4-8","cost":{"input_tokens":1000,"output_tokens":500,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"estimated_cost_usd":0.2,"by_model":[]},"time":{"wall_clock_s":100,"human_wait_s":10},"iterations":{"count":2,"route_backs":1},"defects":{"gate_fires":1,"findings_by_severity":{"critical":0,"high":1,"medium":0,"low":1},"caught_false_completions":1,"verification_verdict":"PASS"}}
@@ -0,0 +1,30 @@
1
+ {
2
+ "by_kit": [
3
+ {
4
+ "kit_id": "builder",
5
+ "runs": 6,
6
+ "first_half_avg_cost_usd": 0.1,
7
+ "second_half_avg_cost_usd": 0.2,
8
+ "cost_trend_pct": 100,
9
+ "first_half_findings_total": 6,
10
+ "second_half_findings_total": 6,
11
+ "findings_delta_pct": 0,
12
+ "avg_wall_clock_s": 100,
13
+ "avg_human_wait_s": 10,
14
+ "route_back_rate": 0.5,
15
+ "caught_false_completions_total": 6
16
+ }
17
+ ],
18
+ "by_gate": [
19
+ {
20
+ "gate_id": "unit tests pass",
21
+ "fire_count": 4,
22
+ "correct_count": 1,
23
+ "false_block_count": 3,
24
+ "missed_block_count": 0,
25
+ "false_block_rate": 0.75,
26
+ "avg_wall_clock_s_when_fired": 100,
27
+ "avg_human_wait_s_when_fired": 10
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,66 @@
1
+ # `pattern-present` — hand-computed aggregate arithmetic (AC1)
2
+
3
+ Six `kontour.console.economics` records in `economics.jsonl`, ordered ascending by `.at`
4
+ (`pp-r1` .. `pp-r6`), all joined (via `sessions/<task_slug>/trust.bundle`, one `builder.verify.tests`
5
+ claim each) to `kit_id = "builder"`. Four of the six sessions (`task-lr-pp-1..4`) also carry a
6
+ `gate-review.inquiries.json` with one `InquiryRecord` each for gate `"unit tests pass"`; the
7
+ remaining two (`task-lr-pp-5`, `task-lr-pp-6`) have no gate-review join (counted in `notes`).
8
+
9
+ Raw per-record inputs (identical across records except `cost` and — for the first four — the
10
+ gate calibration):
11
+
12
+ | run_id | at | cost.estimated_cost_usd | findings (high+low) | time.wall_clock_s | time.human_wait_s | iterations.count | iterations.route_backs | defects.caught_false_completions | gate calibration |
13
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
14
+ | pp-r1 | 1751500000000 | 0.10 | 1+1=2 | 100 | 10 | 2 | 1 | 1 | correct |
15
+ | pp-r2 | 1751500001000 | 0.10 | 1+1=2 | 100 | 10 | 2 | 1 | 1 | false_block |
16
+ | pp-r3 | 1751500002000 | 0.10 | 1+1=2 | 100 | 10 | 2 | 1 | 1 | false_block |
17
+ | pp-r4 | 1751500003000 | 0.20 | 1+1=2 | 100 | 10 | 2 | 1 | 1 | false_block |
18
+ | pp-r5 | 1751500004000 | 0.20 | 1+1=2 | 100 | 10 | 2 | 1 | 1 | (no gate join) |
19
+ | pp-r6 | 1751500005000 | 0.20 | 1+1=2 | 100 | 10 | 2 | 1 | 1 | (no gate join) |
20
+
21
+ ## `by_kit[]` — `kit_id: "builder"` (runs = 6)
22
+
23
+ `half_point = floor(6 / 2) = 3` → first half = {pp-r1, pp-r2, pp-r3} (oldest 3 by `.at`), second
24
+ half = {pp-r4, pp-r5, pp-r6} (newest 3).
25
+
26
+ - `first_half_avg_cost_usd` = (0.10 + 0.10 + 0.10) / 3 = **0.10**
27
+ - `second_half_avg_cost_usd` = (0.20 + 0.20 + 0.20) / 3 = **0.20**
28
+ - `cost_trend_pct` = ((0.20 − 0.10) / 0.10) × 100 = **100** ( ≥ `LR_COST_RISE_PCT` default 25 )
29
+ - `first_half_findings_total` = 2 + 2 + 2 = **6**
30
+ - `second_half_findings_total` = 2 + 2 + 2 = **6**
31
+ - `findings_delta_pct` = first half is non-zero (6), so `((6 − 6) / 6) × 100` = **0** ( ≤
32
+ `LR_FLAT_FINDINGS_PCT` default 10 — flat, not rising )
33
+ - `avg_wall_clock_s` = (100 × 6) / 6 = **100** (all six records, not half-split)
34
+ - `avg_human_wait_s` = (10 × 6) / 6 = **10**
35
+ - `route_back_rate` = sum(route_backs) / sum(count) = (1×6) / (2×6) = 6 / 12 = **0.5**
36
+ - `caught_false_completions_total` = 1 × 6 = **6**
37
+
38
+ `runs (6) >= LR_MIN_KIT_SAMPLE (6)` AND `cost_trend_pct (100) >= LR_COST_RISE_PCT (25)` AND
39
+ `findings_delta_pct (0) <= LR_FLAT_FINDINGS_PCT (10)` → **`kit-review-cost-inflation` fires** for
40
+ `{kind:"kit", id:"builder"}` (AC2).
41
+
42
+ ## `by_gate[]` — `gate_id: "unit tests pass"` (fire_count = 4)
43
+
44
+ Gate rows come only from `task-lr-pp-1..4`'s `gate-review.inquiries.json` (one row each);
45
+ `task-lr-pp-5`/`-6` contribute none (2 sessions without a gate-review join, per `notes`).
46
+
47
+ - `fire_count` = 4 (pp-r1 correct, pp-r2/pp-r3/pp-r4 false_block)
48
+ - `correct_count` = 1 (pp-r1)
49
+ - `false_block_count` = 3 (pp-r2, pp-r3, pp-r4)
50
+ - `missed_block_count` = 0
51
+ - `false_block_rate` = 3 / 4 = **0.75** ( ≥ `LR_GATE_FALSE_BLOCK_RATE` default 0.5 )
52
+ - `avg_wall_clock_s_when_fired` = mean of the parent record's `time.wall_clock_s` over the 4
53
+ distinct records with a `fired:true` row for this gate (pp-r1..pp-r4, all 100) = **100**
54
+ - `avg_human_wait_s_when_fired` = same, `time.human_wait_s` (all 10) = **10**
55
+
56
+ `fire_count (4) >= LR_MIN_GATE_SAMPLE (3)` AND `false_block_rate (0.75) >= LR_GATE_FALSE_BLOCK_RATE
57
+ (0.5)` → **`gate-false-block-review` fires** for `{kind:"gate", id:"unit tests pass"}` (AC2).
58
+ `gate-well-calibrated` does NOT fire (`false_block_count` is 3, not 0).
59
+
60
+ These are the exact numbers asserted (4-decimal-rounded per the contract's `round4`, though every
61
+ value here is already exact at 0–2 decimal places) in
62
+ `evals/integration/test_learning_review_proposals.sh` and recorded verbatim in
63
+ `expected-aggregates.json` — computed from the formulas in
64
+ `docs/specs/learning-review-proposals-contract.md`, independently of running
65
+ `scripts/telemetry/learning-review-proposals.sh` (then cross-checked against the script's actual
66
+ output as a confirmation, not a derivation).
@@ -0,0 +1,26 @@
1
+ [
2
+ {
3
+ "id": "task-lr-pp-1-gr-1",
4
+ "inquiry": {
5
+ "id": "task-lr-pp-1-gr-1",
6
+ "question": "Was gate action on claim task-lr-pp-1/unit-tests justified?",
7
+ "askedBy": "gate-review",
8
+ "askedAt": "2026-07-03T00:05:00Z",
9
+ "target": { "subjectType": "workflow-check", "subjectId": "task-lr-pp-1/unit-tests", "fieldOrBehavior": "unit tests pass" }
10
+ },
11
+ "outcome": "matched",
12
+ "resolutionPath": { "claimIds": ["task-lr-pp-1-gate-claim-unit-tests.flow-agents-workflow.unit-tests-pass"] },
13
+ "answer": {
14
+ "status": "disputed",
15
+ "value": {
16
+ "calibration": "correct",
17
+ "advisoryFix": "No action needed; gate correctly blocked on a disputed claim.",
18
+ "gateFired": true,
19
+ "sessionSlug": "task-lr-pp-1"
20
+ }
21
+ },
22
+ "inputSnapshot": [{ "claimId": "task-lr-pp-1-gate-claim-unit-tests.flow-agents-workflow.unit-tests-pass", "status": "disputed" }],
23
+ "statusFunctionVersion": "1",
24
+ "resolvedAt": "2026-07-03T00:05:00Z"
25
+ }
26
+ ]
@@ -0,0 +1,21 @@
1
+ {
2
+ "schemaVersion": 3,
3
+ "source": "flow-agents/workflow-sidecar;statusFunctionVersion=1",
4
+ "claims": [
5
+ {
6
+ "id": "task-lr-pp-1-gate-claim-unit-tests.flow-agents-workflow.unit-tests-pass",
7
+ "subjectType": "workflow-check",
8
+ "subjectId": "task-lr-pp-1/unit-tests",
9
+ "facet": "flow-agents.workflow",
10
+ "claimType": "builder.verify.tests",
11
+ "fieldOrBehavior": "unit tests pass",
12
+ "value": "pass",
13
+ "createdAt": "2026-07-03T00:00:00Z",
14
+ "updatedAt": "2026-07-03T00:00:00Z",
15
+ "status": "disputed"
16
+ }
17
+ ],
18
+ "evidence": [],
19
+ "events": [],
20
+ "policies": []
21
+ }
@@ -0,0 +1,26 @@
1
+ [
2
+ {
3
+ "id": "task-lr-pp-2-gr-1",
4
+ "inquiry": {
5
+ "id": "task-lr-pp-2-gr-1",
6
+ "question": "Was gate action on claim task-lr-pp-2/unit-tests justified?",
7
+ "askedBy": "gate-review",
8
+ "askedAt": "2026-07-03T00:05:00Z",
9
+ "target": { "subjectType": "workflow-check", "subjectId": "task-lr-pp-2/unit-tests", "fieldOrBehavior": "unit tests pass" }
10
+ },
11
+ "outcome": "matched",
12
+ "resolutionPath": { "claimIds": ["task-lr-pp-2-gate-claim-unit-tests.flow-agents-workflow.unit-tests-pass"] },
13
+ "answer": {
14
+ "status": "verified",
15
+ "value": {
16
+ "calibration": "false_block",
17
+ "advisoryFix": "Investigate why the gate blocked when the claim was already verified passing.",
18
+ "gateFired": true,
19
+ "sessionSlug": "task-lr-pp-2"
20
+ }
21
+ },
22
+ "inputSnapshot": [{ "claimId": "task-lr-pp-2-gate-claim-unit-tests.flow-agents-workflow.unit-tests-pass", "status": "verified" }],
23
+ "statusFunctionVersion": "1",
24
+ "resolvedAt": "2026-07-03T00:05:00Z"
25
+ }
26
+ ]
@@ -0,0 +1,21 @@
1
+ {
2
+ "schemaVersion": 3,
3
+ "source": "flow-agents/workflow-sidecar;statusFunctionVersion=1",
4
+ "claims": [
5
+ {
6
+ "id": "task-lr-pp-2-gate-claim-unit-tests.flow-agents-workflow.unit-tests-pass",
7
+ "subjectType": "workflow-check",
8
+ "subjectId": "task-lr-pp-2/unit-tests",
9
+ "facet": "flow-agents.workflow",
10
+ "claimType": "builder.verify.tests",
11
+ "fieldOrBehavior": "unit tests pass",
12
+ "value": "pass",
13
+ "createdAt": "2026-07-03T00:00:00Z",
14
+ "updatedAt": "2026-07-03T00:00:00Z",
15
+ "status": "verified"
16
+ }
17
+ ],
18
+ "evidence": [],
19
+ "events": [],
20
+ "policies": []
21
+ }
@@ -0,0 +1,26 @@
1
+ [
2
+ {
3
+ "id": "task-lr-pp-3-gr-1",
4
+ "inquiry": {
5
+ "id": "task-lr-pp-3-gr-1",
6
+ "question": "Was gate action on claim task-lr-pp-3/unit-tests justified?",
7
+ "askedBy": "gate-review",
8
+ "askedAt": "2026-07-03T00:05:00Z",
9
+ "target": { "subjectType": "workflow-check", "subjectId": "task-lr-pp-3/unit-tests", "fieldOrBehavior": "unit tests pass" }
10
+ },
11
+ "outcome": "matched",
12
+ "resolutionPath": { "claimIds": ["task-lr-pp-3-gate-claim-unit-tests.flow-agents-workflow.unit-tests-pass"] },
13
+ "answer": {
14
+ "status": "verified",
15
+ "value": {
16
+ "calibration": "false_block",
17
+ "advisoryFix": "Investigate why the gate blocked when the claim was already verified passing.",
18
+ "gateFired": true,
19
+ "sessionSlug": "task-lr-pp-3"
20
+ }
21
+ },
22
+ "inputSnapshot": [{ "claimId": "task-lr-pp-3-gate-claim-unit-tests.flow-agents-workflow.unit-tests-pass", "status": "verified" }],
23
+ "statusFunctionVersion": "1",
24
+ "resolvedAt": "2026-07-03T00:05:00Z"
25
+ }
26
+ ]
@@ -0,0 +1,21 @@
1
+ {
2
+ "schemaVersion": 3,
3
+ "source": "flow-agents/workflow-sidecar;statusFunctionVersion=1",
4
+ "claims": [
5
+ {
6
+ "id": "task-lr-pp-3-gate-claim-unit-tests.flow-agents-workflow.unit-tests-pass",
7
+ "subjectType": "workflow-check",
8
+ "subjectId": "task-lr-pp-3/unit-tests",
9
+ "facet": "flow-agents.workflow",
10
+ "claimType": "builder.verify.tests",
11
+ "fieldOrBehavior": "unit tests pass",
12
+ "value": "pass",
13
+ "createdAt": "2026-07-03T00:00:00Z",
14
+ "updatedAt": "2026-07-03T00:00:00Z",
15
+ "status": "verified"
16
+ }
17
+ ],
18
+ "evidence": [],
19
+ "events": [],
20
+ "policies": []
21
+ }
@@ -0,0 +1,26 @@
1
+ [
2
+ {
3
+ "id": "task-lr-pp-4-gr-1",
4
+ "inquiry": {
5
+ "id": "task-lr-pp-4-gr-1",
6
+ "question": "Was gate action on claim task-lr-pp-4/unit-tests justified?",
7
+ "askedBy": "gate-review",
8
+ "askedAt": "2026-07-03T00:05:00Z",
9
+ "target": { "subjectType": "workflow-check", "subjectId": "task-lr-pp-4/unit-tests", "fieldOrBehavior": "unit tests pass" }
10
+ },
11
+ "outcome": "matched",
12
+ "resolutionPath": { "claimIds": ["task-lr-pp-4-gate-claim-unit-tests.flow-agents-workflow.unit-tests-pass"] },
13
+ "answer": {
14
+ "status": "verified",
15
+ "value": {
16
+ "calibration": "false_block",
17
+ "advisoryFix": "Investigate why the gate blocked when the claim was already verified passing.",
18
+ "gateFired": true,
19
+ "sessionSlug": "task-lr-pp-4"
20
+ }
21
+ },
22
+ "inputSnapshot": [{ "claimId": "task-lr-pp-4-gate-claim-unit-tests.flow-agents-workflow.unit-tests-pass", "status": "verified" }],
23
+ "statusFunctionVersion": "1",
24
+ "resolvedAt": "2026-07-03T00:05:00Z"
25
+ }
26
+ ]
@@ -0,0 +1,21 @@
1
+ {
2
+ "schemaVersion": 3,
3
+ "source": "flow-agents/workflow-sidecar;statusFunctionVersion=1",
4
+ "claims": [
5
+ {
6
+ "id": "task-lr-pp-4-gate-claim-unit-tests.flow-agents-workflow.unit-tests-pass",
7
+ "subjectType": "workflow-check",
8
+ "subjectId": "task-lr-pp-4/unit-tests",
9
+ "facet": "flow-agents.workflow",
10
+ "claimType": "builder.verify.tests",
11
+ "fieldOrBehavior": "unit tests pass",
12
+ "value": "pass",
13
+ "createdAt": "2026-07-03T00:00:00Z",
14
+ "updatedAt": "2026-07-03T00:00:00Z",
15
+ "status": "verified"
16
+ }
17
+ ],
18
+ "evidence": [],
19
+ "events": [],
20
+ "policies": []
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "schemaVersion": 3,
3
+ "source": "flow-agents/workflow-sidecar;statusFunctionVersion=1",
4
+ "claims": [
5
+ {
6
+ "id": "task-lr-pp-5-gate-claim-unit-tests.flow-agents-workflow.unit-tests-pass",
7
+ "subjectType": "workflow-check",
8
+ "subjectId": "task-lr-pp-5/unit-tests",
9
+ "facet": "flow-agents.workflow",
10
+ "claimType": "builder.verify.tests",
11
+ "fieldOrBehavior": "unit tests pass",
12
+ "value": "pass",
13
+ "createdAt": "2026-07-03T00:00:00Z",
14
+ "updatedAt": "2026-07-03T00:00:00Z",
15
+ "status": "verified"
16
+ }
17
+ ],
18
+ "evidence": [],
19
+ "events": [],
20
+ "policies": []
21
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "schemaVersion": 3,
3
+ "source": "flow-agents/workflow-sidecar;statusFunctionVersion=1",
4
+ "claims": [
5
+ {
6
+ "id": "task-lr-pp-6-gate-claim-unit-tests.flow-agents-workflow.unit-tests-pass",
7
+ "subjectType": "workflow-check",
8
+ "subjectId": "task-lr-pp-6/unit-tests",
9
+ "facet": "flow-agents.workflow",
10
+ "claimType": "builder.verify.tests",
11
+ "fieldOrBehavior": "unit tests pass",
12
+ "value": "pass",
13
+ "createdAt": "2026-07-03T00:00:00Z",
14
+ "updatedAt": "2026-07-03T00:00:00Z",
15
+ "status": "verified"
16
+ }
17
+ ],
18
+ "evidence": [],
19
+ "events": [],
20
+ "policies": []
21
+ }
@@ -0,0 +1,6 @@
1
+ {"schema":"kontour.console.economics","version":"0.1","run_id":"rw-r1","at":1751800000000,"task_slug":null,"cost":{"input_tokens":1000,"output_tokens":500,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"estimated_cost_usd":0.10,"by_model":[]},"time":{"wall_clock_s":100,"human_wait_s":10},"iterations":{"count":2,"route_backs":1},"defects":{"gate_fires":1,"findings_by_severity":{"critical":0,"high":1,"medium":0,"low":1},"caught_false_completions":0,"verification_verdict":"PASS"}}
2
+ {"schema":"kontour.console.economics","version":"0.1","run_id":"rw-r2","at":1751800001000,"task_slug":null,"cost":{"input_tokens":1000,"output_tokens":500,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"estimated_cost_usd":0.10,"by_model":[]},"time":{"wall_clock_s":100,"human_wait_s":10},"iterations":{"count":2,"route_backs":1},"defects":{"gate_fires":1,"findings_by_severity":{"critical":0,"high":1,"medium":0,"low":1},"caught_false_completions":0,"verification_verdict":"PASS"}}
3
+ {"schema":"kontour.console.economics","version":"0.1","run_id":"rw-r3","at":1751800002000,"task_slug":null,"cost":{"input_tokens":1000,"output_tokens":500,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"estimated_cost_usd":0.10,"by_model":[]},"time":{"wall_clock_s":100,"human_wait_s":10},"iterations":{"count":2,"route_backs":1},"defects":{"gate_fires":1,"findings_by_severity":{"critical":0,"high":1,"medium":0,"low":1},"caught_false_completions":0,"verification_verdict":"PASS"}}
4
+ {"schema":"kontour.console.economics","version":"0.1","run_id":"rw-r4","at":1751800003000,"task_slug":null,"cost":{"input_tokens":1000,"output_tokens":500,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"estimated_cost_usd":0.30,"by_model":[]},"time":{"wall_clock_s":100,"human_wait_s":10},"iterations":{"count":2,"route_backs":1},"defects":{"gate_fires":1,"findings_by_severity":{"critical":0,"high":1,"medium":0,"low":1},"caught_false_completions":0,"verification_verdict":"PASS"}}
5
+ {"schema":"kontour.console.economics","version":"0.1","run_id":"rw-r5","at":1751800004000,"task_slug":null,"cost":{"input_tokens":1000,"output_tokens":500,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"estimated_cost_usd":0.30,"by_model":[]},"time":{"wall_clock_s":100,"human_wait_s":10},"iterations":{"count":2,"route_backs":1},"defects":{"gate_fires":1,"findings_by_severity":{"critical":0,"high":1,"medium":0,"low":1},"caught_false_completions":0,"verification_verdict":"PASS"}}
6
+ {"schema":"kontour.console.economics","version":"0.1","run_id":"rw-r6","at":1751800005000,"task_slug":null,"cost":{"input_tokens":1000,"output_tokens":500,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"estimated_cost_usd":0.30,"by_model":[]},"time":{"wall_clock_s":100,"human_wait_s":10},"iterations":{"count":2,"route_backs":1},"defects":{"gate_fires":1,"findings_by_severity":{"critical":0,"high":1,"medium":0,"low":1},"caught_false_completions":0,"verification_verdict":"PASS"}}
@@ -0,0 +1,3 @@
1
+ {"schema":"kontour.console.economics","version":"0.1","run_id":"ut-r1","at":1751700000000,"task_slug":null,"cost":{"input_tokens":1000,"output_tokens":500,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"estimated_cost_usd":0.10,"by_model":[]},"time":{"wall_clock_s":100,"human_wait_s":10},"iterations":{"count":2,"route_backs":1},"defects":{"gate_fires":1,"findings_by_severity":{"critical":0,"high":1,"medium":0,"low":1},"caught_false_completions":0,"verification_verdict":"PASS"}}
2
+ {"schema":"kontour.console.economics","version":"0.1","run_id":"ut-r2","at":1751700001000,"task_slug":null,"cost":{"input_tokens":1000,"output_tokens":500,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"estimated_cost_usd":0.20,"by_model":[]},"time":{"wall_clock_s":100,"human_wait_s":10},"iterations":{"count":2,"route_backs":1},"defects":{"gate_fires":1,"findings_by_severity":{"critical":0,"high":1,"medium":0,"low":1},"caught_false_completions":0,"verification_verdict":"PASS"}}
3
+ {"schema":"kontour.console.economics","version":"0.1","run_id":"ut-r3","at":1751700002000,"task_slug":null,"cost":{"input_tokens":1000,"output_tokens":500,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"estimated_cost_usd":0.30,"by_model":[]},"time":{"wall_clock_s":100,"human_wait_s":10},"iterations":{"count":2,"route_backs":1},"defects":{"gate_fires":1,"findings_by_severity":{"critical":0,"high":1,"medium":0,"low":1},"caught_false_completions":0,"verification_verdict":"PASS"}}
@@ -0,0 +1,4 @@
1
+ {"type":"user","message":{"role":"user","content":[{"type":"text","text":"hermetic fixture prompt"}]}}
2
+ {"type":"assistant","message":{"model":"claude-opus-4-8","usage":{"input_tokens":1200,"output_tokens":3400,"cache_creation_input_tokens":500,"cache_read_input_tokens":600000}}}
3
+ {"type":"assistant","message":{"model":"claude-opus-4-8","usage":{"input_tokens":300,"output_tokens":900,"cache_creation_input_tokens":0,"cache_read_input_tokens":0}}}
4
+ {"type":"assistant","message":{"model":"claude-fable-5","usage":{"input_tokens":50,"output_tokens":200,"cache_creation_input_tokens":0,"cache_read_input_tokens":0}}}
@@ -0,0 +1,42 @@
1
+ {
2
+ "schemaVersion": 5,
3
+ "source": "ws8-exploit-fixture:mcp-degrade",
4
+ "note": "ISSUE 492 DELIVERABLE 2: an MCP-shaped self-reported pass must not launder into a CI-verified kind:'command' check. The evidence deliberately carries a test_output execution.label that names an MCP tool, not a run-baseline.sh manifest command. CI must reject it as not-run / not-in-manifest; at most this kind of non-native pass can remain a session-local external attestation, never RECONCILED.",
5
+ "claims": [
6
+ {
7
+ "id": "c-mcp-degrade-test",
8
+ "claimType": "workflow.check.test",
9
+ "value": "pass",
10
+ "status": "verified",
11
+ "subjectId": "mcp/unit-tests",
12
+ "facet": "flow-agents.workflow",
13
+ "subjectType": "workflow-check",
14
+ "fieldOrBehavior": "unit tests passed via MCP runner",
15
+ "createdAt": "2026-07-07T00:00:00Z",
16
+ "updatedAt": "2026-07-07T00:00:00Z",
17
+ "impactLevel": "high",
18
+ "verificationPolicyId": "policy:workflow.check.test"
19
+ }
20
+ ],
21
+ "evidence": [
22
+ {
23
+ "id": "ev-mcp-degrade-test",
24
+ "claimId": "c-mcp-degrade-test",
25
+ "evidenceType": "test_output",
26
+ "method": "validation",
27
+ "sourceRef": "mcp://runner/run_tests",
28
+ "excerptOrSummary": "MCP runner reported tests passed",
29
+ "observedAt": "2026-07-07T00:00:00Z",
30
+ "collectedBy": "mcp__runner__run_tests",
31
+ "passing": true,
32
+ "execution": {
33
+ "runner": "mcp",
34
+ "label": "mcp__runner__run_tests",
35
+ "isError": false,
36
+ "exitCode": 0
37
+ }
38
+ }
39
+ ],
40
+ "policies": [],
41
+ "events": []
42
+ }