358 lines
17 KiB
JSON
358 lines
17 KiB
JSON
{
|
|
"checks": {
|
|
"all_apply_and_rollback_sql_have_transactions": true,
|
|
"all_phase_files_exist": true,
|
|
"all_phase_files_non_empty": true,
|
|
"apply_order_matches_manifest": true,
|
|
"post_apply_regression_commands_present": true,
|
|
"production_apply_receipt_schema_present": true,
|
|
"readiness_passes": true,
|
|
"readiness_says_not_authorized": true,
|
|
"readiness_says_not_executed": true,
|
|
"rollback_order_matches_manifest": true
|
|
},
|
|
"claim_ceiling": "This runbook is proof that the authorized apply sequence is explicit and ordered. It does not execute SQL, does not mutate production, and does not replace explicit production apply authorization.",
|
|
"expected_after_apply_counts": {
|
|
"claim_concept_map_links": 1,
|
|
"claim_edges": 18,
|
|
"claim_evidence": 34,
|
|
"claim_governance_gate_links": 2,
|
|
"claims": 12,
|
|
"concept_maps": 1,
|
|
"cross_surface_anchor_updates": 1,
|
|
"helmer_ledger_rows_marked_applied": 1,
|
|
"reasoning_tools": 1,
|
|
"rio_strategy_anchors": 5,
|
|
"rio_strategy_nodes": 2,
|
|
"sources": 28
|
|
},
|
|
"generated_at_utc": "2026-07-10T01:25:52.995962+00:00",
|
|
"mode": "operator_runbook_generation_only",
|
|
"operator_environment": {
|
|
"operator_commands_run_sql_if_executed": true,
|
|
"required_env": [
|
|
"TELEO_DATABASE_URL"
|
|
],
|
|
"runbook_generation_runs_sql": false,
|
|
"runbook_only": true
|
|
},
|
|
"phases": {
|
|
"apply_order": [
|
|
{
|
|
"bytes": 38892,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/production-apply-authorized-commit.sql",
|
|
"exists": true,
|
|
"file": "production-apply-authorized-commit.sql",
|
|
"has_transaction_boundary": true,
|
|
"ok": true,
|
|
"packet_id": "mapped-rich-base",
|
|
"path": "docs/reports/leo-working-state-20260709/production-apply-authorized-commit.sql",
|
|
"phase": "apply",
|
|
"sha256": "d7c9d06e77571b9751a94fdf49715c9997421f071dc840e65247ea1a0d5c8088"
|
|
},
|
|
{
|
|
"bytes": 1366,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/cross-surface-apply-authorized-commit.sql",
|
|
"exists": true,
|
|
"file": "cross-surface-apply-authorized-commit.sql",
|
|
"has_transaction_boundary": true,
|
|
"ok": true,
|
|
"packet_id": "cross-surface-anchor",
|
|
"path": "docs/reports/leo-working-state-20260709/cross-surface-apply-authorized-commit.sql",
|
|
"phase": "apply",
|
|
"sha256": "381c6dcf178a419cb588d3e57bb63a1f794a03e9d5ff4a9ff3c2d9735a1bdf3f"
|
|
},
|
|
{
|
|
"bytes": 6579,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/rio-strategy-apply-authorized-commit.sql",
|
|
"exists": true,
|
|
"file": "rio-strategy-apply-authorized-commit.sql",
|
|
"has_transaction_boundary": true,
|
|
"ok": true,
|
|
"packet_id": "rio-strategy-context",
|
|
"path": "docs/reports/leo-working-state-20260709/rio-strategy-apply-authorized-commit.sql",
|
|
"phase": "apply",
|
|
"sha256": "0a219df35db7ea3379c8b232449b5a6b8bd3a0164dd26ee393e55fa997b31463"
|
|
},
|
|
{
|
|
"bytes": 6822,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/governance-concept-apply-authorized-commit.sql",
|
|
"exists": true,
|
|
"file": "governance-concept-apply-authorized-commit.sql",
|
|
"has_transaction_boundary": true,
|
|
"ok": true,
|
|
"packet_id": "governance-concept-schema",
|
|
"path": "docs/reports/leo-working-state-20260709/governance-concept-apply-authorized-commit.sql",
|
|
"phase": "apply",
|
|
"sha256": "63b1ea56180ddd2308d4a4ca0e2d229ba3fe6cce494d5339339a6f62f1962bba"
|
|
},
|
|
{
|
|
"bytes": 42770,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/helmer-7powers-production-apply-authorized-commit.sql",
|
|
"exists": true,
|
|
"file": "helmer-7powers-production-apply-authorized-commit.sql",
|
|
"has_transaction_boundary": true,
|
|
"ok": true,
|
|
"packet_id": "helmer-7powers",
|
|
"path": "docs/reports/leo-working-state-20260709/helmer-7powers-production-apply-authorized-commit.sql",
|
|
"phase": "apply",
|
|
"sha256": "9264baa4249432dcdc96510e67cc694bb5f2b2e485b63a3bfee959d31a89104d"
|
|
}
|
|
],
|
|
"postflight_order": [
|
|
{
|
|
"bytes": 11147,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/production-postflight.sql",
|
|
"exists": true,
|
|
"file": "production-postflight.sql",
|
|
"has_transaction_boundary": false,
|
|
"ok": true,
|
|
"packet_id": "mapped-rich-base",
|
|
"path": "docs/reports/leo-working-state-20260709/production-postflight.sql",
|
|
"phase": "postflight",
|
|
"sha256": "4dec76f0502b08ea2ee3be934f86c6e3557800eda26095d470c7333655ac2287"
|
|
},
|
|
{
|
|
"bytes": 802,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/cross-surface-postflight.sql",
|
|
"exists": true,
|
|
"file": "cross-surface-postflight.sql",
|
|
"has_transaction_boundary": false,
|
|
"ok": true,
|
|
"packet_id": "cross-surface-anchor",
|
|
"path": "docs/reports/leo-working-state-20260709/cross-surface-postflight.sql",
|
|
"phase": "postflight",
|
|
"sha256": "4d9a8adafe5be6777badb714aafdaaa1b502e80695bbe786eff20854d3ae0856"
|
|
},
|
|
{
|
|
"bytes": 2062,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/rio-strategy-postflight.sql",
|
|
"exists": true,
|
|
"file": "rio-strategy-postflight.sql",
|
|
"has_transaction_boundary": false,
|
|
"ok": true,
|
|
"packet_id": "rio-strategy-context",
|
|
"path": "docs/reports/leo-working-state-20260709/rio-strategy-postflight.sql",
|
|
"phase": "postflight",
|
|
"sha256": "135fc640bdf7e6f7239a383be0512449817e0f14d84e8078ef0e0e313112d446"
|
|
},
|
|
{
|
|
"bytes": 1408,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/governance-concept-postflight.sql",
|
|
"exists": true,
|
|
"file": "governance-concept-postflight.sql",
|
|
"has_transaction_boundary": false,
|
|
"ok": true,
|
|
"packet_id": "governance-concept-schema",
|
|
"path": "docs/reports/leo-working-state-20260709/governance-concept-postflight.sql",
|
|
"phase": "postflight",
|
|
"sha256": "166a78048433a95e1d5a09dba795b4ec1a1ecfc3f1a50fc1af1d3ba87c50dfcc"
|
|
},
|
|
{
|
|
"bytes": 10217,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/helmer-7powers-production-postflight.sql",
|
|
"exists": true,
|
|
"file": "helmer-7powers-production-postflight.sql",
|
|
"has_transaction_boundary": false,
|
|
"ok": true,
|
|
"packet_id": "helmer-7powers",
|
|
"path": "docs/reports/leo-working-state-20260709/helmer-7powers-production-postflight.sql",
|
|
"phase": "postflight",
|
|
"sha256": "dff8164c75f5465f77f931dc3e956935fb7fd4f621e1983ccaf464e9aa366593"
|
|
}
|
|
],
|
|
"preflight_order": [
|
|
{
|
|
"bytes": 6263,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/production-preflight.sql",
|
|
"exists": true,
|
|
"file": "production-preflight.sql",
|
|
"has_transaction_boundary": false,
|
|
"ok": true,
|
|
"packet_id": "mapped-rich-base",
|
|
"path": "docs/reports/leo-working-state-20260709/production-preflight.sql",
|
|
"phase": "preflight",
|
|
"sha256": "2d1eb113b1ea2f4c16096f432cca254c5edc259c9c5c27fcec01a98fe54014ff"
|
|
},
|
|
{
|
|
"bytes": 1456,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/cross-surface-preflight.sql",
|
|
"exists": true,
|
|
"file": "cross-surface-preflight.sql",
|
|
"has_transaction_boundary": false,
|
|
"ok": true,
|
|
"packet_id": "cross-surface-anchor",
|
|
"path": "docs/reports/leo-working-state-20260709/cross-surface-preflight.sql",
|
|
"phase": "preflight",
|
|
"sha256": "dde19cddf80819145f755a028ed1b7a0c975b8e59a055e274843e21109dfff55"
|
|
},
|
|
{
|
|
"bytes": 2202,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/rio-strategy-preflight.sql",
|
|
"exists": true,
|
|
"file": "rio-strategy-preflight.sql",
|
|
"has_transaction_boundary": false,
|
|
"ok": true,
|
|
"packet_id": "rio-strategy-context",
|
|
"path": "docs/reports/leo-working-state-20260709/rio-strategy-preflight.sql",
|
|
"phase": "preflight",
|
|
"sha256": "5ca341ac6cd599736d79718cc8c8de0ae064197159b361a46f5df2174aa713c9"
|
|
},
|
|
{
|
|
"bytes": 1015,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/governance-concept-preflight.sql",
|
|
"exists": true,
|
|
"file": "governance-concept-preflight.sql",
|
|
"has_transaction_boundary": false,
|
|
"ok": true,
|
|
"packet_id": "governance-concept-schema",
|
|
"path": "docs/reports/leo-working-state-20260709/governance-concept-preflight.sql",
|
|
"phase": "preflight",
|
|
"sha256": "05a08080dc80bc7e131b8ee225cd5e58079bcd8fc5bcb5d85b0884077423718f"
|
|
},
|
|
{
|
|
"bytes": 5870,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/helmer-7powers-production-preflight.sql",
|
|
"exists": true,
|
|
"file": "helmer-7powers-production-preflight.sql",
|
|
"has_transaction_boundary": false,
|
|
"ok": true,
|
|
"packet_id": "helmer-7powers",
|
|
"path": "docs/reports/leo-working-state-20260709/helmer-7powers-production-preflight.sql",
|
|
"phase": "preflight",
|
|
"sha256": "415b73ffe0453325a289c7128cd461509536406a32bbea6a75c6e6386b4840d4"
|
|
}
|
|
],
|
|
"rollback_order": [
|
|
{
|
|
"bytes": 5702,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/helmer-7powers-production-delete-rollback.sql",
|
|
"exists": true,
|
|
"file": "helmer-7powers-production-delete-rollback.sql",
|
|
"has_transaction_boundary": true,
|
|
"ok": true,
|
|
"packet_id": "helmer-7powers",
|
|
"path": "docs/reports/leo-working-state-20260709/helmer-7powers-production-delete-rollback.sql",
|
|
"phase": "rollback",
|
|
"sha256": "77579ea3efbb3f3a06666f645a2bc662a501c8a3e92d9b389fca044dfef06a2d"
|
|
},
|
|
{
|
|
"bytes": 1160,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/governance-concept-delete-rollback.sql",
|
|
"exists": true,
|
|
"file": "governance-concept-delete-rollback.sql",
|
|
"has_transaction_boundary": true,
|
|
"ok": true,
|
|
"packet_id": "governance-concept-schema",
|
|
"path": "docs/reports/leo-working-state-20260709/governance-concept-delete-rollback.sql",
|
|
"phase": "rollback",
|
|
"sha256": "786e107134a7c502130af9d92f19109184ac936399ac90d62b3b8c07f3e90f65"
|
|
},
|
|
{
|
|
"bytes": 1185,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/rio-strategy-delete-rollback.sql",
|
|
"exists": true,
|
|
"file": "rio-strategy-delete-rollback.sql",
|
|
"has_transaction_boundary": true,
|
|
"ok": true,
|
|
"packet_id": "rio-strategy-context",
|
|
"path": "docs/reports/leo-working-state-20260709/rio-strategy-delete-rollback.sql",
|
|
"phase": "rollback",
|
|
"sha256": "f7c6896018ac785fe8214bb4dfbdbf936cb3f91d92dcf877aee80b682dae2d93"
|
|
},
|
|
{
|
|
"bytes": 823,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/cross-surface-delete-rollback.sql",
|
|
"exists": true,
|
|
"file": "cross-surface-delete-rollback.sql",
|
|
"has_transaction_boundary": true,
|
|
"ok": true,
|
|
"packet_id": "cross-surface-anchor",
|
|
"path": "docs/reports/leo-working-state-20260709/cross-surface-delete-rollback.sql",
|
|
"phase": "rollback",
|
|
"sha256": "41d10138e6d668426f8601ea5f528d70335ed4d30aae23830a55c0f068f046a8"
|
|
},
|
|
{
|
|
"bytes": 5803,
|
|
"command_template": "psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/production-delete-rollback.sql",
|
|
"exists": true,
|
|
"file": "production-delete-rollback.sql",
|
|
"has_transaction_boundary": true,
|
|
"ok": true,
|
|
"packet_id": "mapped-rich-base",
|
|
"path": "docs/reports/leo-working-state-20260709/production-delete-rollback.sql",
|
|
"phase": "rollback",
|
|
"sha256": "297bd9e8b5246e6d9cb4883b15ad9e11e745b220508305f223985be38506bc36"
|
|
}
|
|
]
|
|
},
|
|
"post_apply_regression_commands": [
|
|
{
|
|
"command_template": ".venv/bin/python scripts/run_leo_direct_claim_handler_suite.py",
|
|
"description": "Re-run the non-posting VPS GatewayRunner direct-claim suite after production postflight.",
|
|
"expected_artifact": "docs/reports/leo-working-state-20260709/telegram-handler-direct-claim-suite-current.json",
|
|
"id": "direct_claim_handler_suite",
|
|
"mutates_production_db": false,
|
|
"posts_to_telegram": false
|
|
},
|
|
{
|
|
"command_template": ".venv/bin/python scripts/working_leo_open_ended_benchmark.py --results-json docs/reports/leo-working-state-20260709/telegram-handler-direct-claim-suite-current.json --include-direct-claim-followups --out docs/reports/leo-working-state-20260709/telegram-handler-direct-claim-suite-score-current.json --markdown-out docs/reports/leo-working-state-20260709/telegram-handler-direct-claim-suite-score-current.md",
|
|
"description": "Strict-score the retained direct-claim replies; expected score is 6/6.",
|
|
"expected_artifact": "docs/reports/leo-working-state-20260709/telegram-handler-direct-claim-suite-score-current.md",
|
|
"id": "direct_claim_strict_score",
|
|
"mutates_production_db": false,
|
|
"posts_to_telegram": false
|
|
},
|
|
{
|
|
"command_template": ".venv/bin/python -m pytest tests/test_working_leo_open_ended_benchmark.py tests/test_hermes_leoclean_skill_surfaces.py tests/test_build_working_leo_authorized_apply_runbook.py -q",
|
|
"description": "Verify benchmark scoring, bridge skill surfaces, and runbook invariants after artifact refresh.",
|
|
"expected_artifact": "terminal pytest output",
|
|
"id": "focused_local_regression_tests",
|
|
"mutates_production_db": false,
|
|
"posts_to_telegram": false
|
|
},
|
|
{
|
|
"command_template": "systemctl show leoclean-gateway.service -p ActiveState -p SubState -p MainPID -p NRestarts -p ExecMainStartTimestamp --no-pager",
|
|
"description": "Read back the VPS Leo gateway service state after postflight and regressions.",
|
|
"expected_artifact": "retained service readback with ActiveState=active and NRestarts reviewed",
|
|
"id": "gateway_service_readback",
|
|
"mutates_production_db": false,
|
|
"posts_to_telegram": false
|
|
},
|
|
{
|
|
"command_template": ".venv/bin/python scripts/validate_working_leo_production_receipt.py --receipt docs/reports/leo-working-state-20260709/working-leo-production-apply-receipt-current.json",
|
|
"description": "Validate the retained production-apply receipt against the authorized runbook requirements.",
|
|
"expected_artifact": "docs/reports/leo-working-state-20260709/working-leo-production-apply-receipt-validation-current.md",
|
|
"id": "production_receipt_validator",
|
|
"mutates_production_db": false,
|
|
"posts_to_telegram": false
|
|
}
|
|
],
|
|
"post_apply_required_actions": [
|
|
"Run every postflight SQL file and retain output.",
|
|
"Run the post-apply regression command bundle and retain every artifact.",
|
|
"Record production apply receipt, row counts, service MainPID/NRestarts, and cleanup readback."
|
|
],
|
|
"production_apply_authorization_present": false,
|
|
"production_apply_executed": false,
|
|
"production_apply_receipt_required_fields": [
|
|
"explicit_authorization_record",
|
|
"operator_identity",
|
|
"git_commit_sha",
|
|
"preflight_output_paths",
|
|
"apply_output_paths",
|
|
"postflight_output_paths",
|
|
"expected_after_apply_counts",
|
|
"actual_after_apply_counts",
|
|
"telegram_or_handler_regression_paths",
|
|
"direct_claim_score_path",
|
|
"service_readback",
|
|
"cleanup_readback",
|
|
"rollback_packet_paths",
|
|
"known_residual_risks"
|
|
],
|
|
"ready_for_authorized_operator": true,
|
|
"report_dir": "docs/reports/leo-working-state-20260709",
|
|
"required_authorization_boundary": "Do not run apply commands unless the operator explicitly authorizes production DB apply for the integrated Working Leo packet set in dependency order.",
|
|
"status": "ready_not_executed"
|
|
}
|