398 lines
28 KiB
JSON
398 lines
28 KiB
JSON
{
|
|
"all_apply_steps_require_authorization": true,
|
|
"all_rollback_steps_require_authorization": true,
|
|
"apply_steps": [
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/production-apply-authorized-commit.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/01-apply-mapped-rich-base.log",
|
|
"id": "apply:mapped-rich-base",
|
|
"index": 1,
|
|
"mutates_production_db": true,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/01-apply-mapped-rich-base.log",
|
|
"packet_id": "mapped-rich-base",
|
|
"phase": "apply",
|
|
"requires_authorization": true,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/production-apply-authorized-commit.sql"
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/cross-surface-apply-authorized-commit.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/02-apply-cross-surface-anchor.log",
|
|
"id": "apply:cross-surface-anchor",
|
|
"index": 2,
|
|
"mutates_production_db": true,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/02-apply-cross-surface-anchor.log",
|
|
"packet_id": "cross-surface-anchor",
|
|
"phase": "apply",
|
|
"requires_authorization": true,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/cross-surface-apply-authorized-commit.sql"
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/rio-strategy-apply-authorized-commit.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/03-apply-rio-strategy-context.log",
|
|
"id": "apply:rio-strategy-context",
|
|
"index": 3,
|
|
"mutates_production_db": true,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/03-apply-rio-strategy-context.log",
|
|
"packet_id": "rio-strategy-context",
|
|
"phase": "apply",
|
|
"requires_authorization": true,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/rio-strategy-apply-authorized-commit.sql"
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/governance-concept-apply-authorized-commit.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/04-apply-governance-concept-schema.log",
|
|
"id": "apply:governance-concept-schema",
|
|
"index": 4,
|
|
"mutates_production_db": true,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/04-apply-governance-concept-schema.log",
|
|
"packet_id": "governance-concept-schema",
|
|
"phase": "apply",
|
|
"requires_authorization": true,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/governance-concept-apply-authorized-commit.sql"
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/helmer-7powers-production-apply-authorized-commit.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/05-apply-helmer-7powers.log",
|
|
"id": "apply:helmer-7powers",
|
|
"index": 5,
|
|
"mutates_production_db": true,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/05-apply-helmer-7powers.log",
|
|
"packet_id": "helmer-7powers",
|
|
"phase": "apply",
|
|
"requires_authorization": true,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/helmer-7powers-production-apply-authorized-commit.sql"
|
|
}
|
|
],
|
|
"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.",
|
|
"authorization_required_before_apply_steps": true,
|
|
"claim_ceiling": "This is an apply-session plan only. It does not execute SQL, does not authorize production apply, and does not prove canonical rows were changed.",
|
|
"cleanup_readback_step": {
|
|
"command": "docker exec -i teleo-pg psql -U postgres -d teleo -At -q -c \"select datname from pg_database where datname ~ '(rehearsal|clone|staging)' order by datname\" | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-cleanup-readback.log",
|
|
"id": "cleanup_readback",
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-cleanup-readback.log",
|
|
"phase": "post_apply_cleanup_readback",
|
|
"requires_authorization": false
|
|
},
|
|
"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:49:46.485415+00:00",
|
|
"mode": "authorized_apply_session_plan_not_executed",
|
|
"non_apply_steps_do_not_mutate_db": true,
|
|
"output_dir": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts",
|
|
"post_apply_regression_steps": [
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && .venv/bin/python scripts/run_leo_direct_claim_handler_suite.py | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-regression-01-direct_claim_handler_suite.log",
|
|
"expected_artifact": "docs/reports/leo-working-state-20260709/telegram-handler-direct-claim-suite-current.json",
|
|
"id": "direct_claim_handler_suite",
|
|
"index": 1,
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-regression-01-direct_claim_handler_suite.log",
|
|
"phase": "post_apply_regression",
|
|
"posts_to_telegram": false,
|
|
"requires_authorization": false
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && .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 | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-regression-02-direct_claim_strict_score.log",
|
|
"expected_artifact": "docs/reports/leo-working-state-20260709/telegram-handler-direct-claim-suite-score-current.md",
|
|
"id": "direct_claim_strict_score",
|
|
"index": 2,
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-regression-02-direct_claim_strict_score.log",
|
|
"phase": "post_apply_regression",
|
|
"posts_to_telegram": false,
|
|
"requires_authorization": false
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && .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 | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-regression-03-focused_local_regression_tests.log",
|
|
"expected_artifact": "terminal pytest output",
|
|
"id": "focused_local_regression_tests",
|
|
"index": 3,
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-regression-03-focused_local_regression_tests.log",
|
|
"phase": "post_apply_regression",
|
|
"posts_to_telegram": false,
|
|
"requires_authorization": false
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && systemctl show leoclean-gateway.service -p ActiveState -p SubState -p MainPID -p NRestarts -p ExecMainStartTimestamp --no-pager | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-regression-04-gateway_service_readback.log",
|
|
"expected_artifact": "retained service readback with ActiveState=active and NRestarts reviewed",
|
|
"id": "gateway_service_readback",
|
|
"index": 4,
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-regression-04-gateway_service_readback.log",
|
|
"phase": "post_apply_regression",
|
|
"posts_to_telegram": false,
|
|
"requires_authorization": false
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && .venv/bin/python scripts/validate_working_leo_production_receipt.py --receipt docs/reports/leo-working-state-20260709/working-leo-production-apply-receipt-current.json | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-regression-05-production_receipt_validator.log",
|
|
"expected_artifact": "docs/reports/leo-working-state-20260709/working-leo-production-apply-receipt-validation-current.md",
|
|
"id": "production_receipt_validator",
|
|
"index": 5,
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-regression-05-production_receipt_validator.log",
|
|
"phase": "post_apply_regression",
|
|
"posts_to_telegram": false,
|
|
"requires_authorization": false
|
|
}
|
|
],
|
|
"postflight_steps": [
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/production-postflight.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/01-postflight-mapped-rich-base.log",
|
|
"id": "postflight:mapped-rich-base",
|
|
"index": 1,
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/01-postflight-mapped-rich-base.log",
|
|
"packet_id": "mapped-rich-base",
|
|
"phase": "postflight",
|
|
"requires_authorization": false,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/production-postflight.sql"
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/cross-surface-postflight.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/02-postflight-cross-surface-anchor.log",
|
|
"id": "postflight:cross-surface-anchor",
|
|
"index": 2,
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/02-postflight-cross-surface-anchor.log",
|
|
"packet_id": "cross-surface-anchor",
|
|
"phase": "postflight",
|
|
"requires_authorization": false,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/cross-surface-postflight.sql"
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/rio-strategy-postflight.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/03-postflight-rio-strategy-context.log",
|
|
"id": "postflight:rio-strategy-context",
|
|
"index": 3,
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/03-postflight-rio-strategy-context.log",
|
|
"packet_id": "rio-strategy-context",
|
|
"phase": "postflight",
|
|
"requires_authorization": false,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/rio-strategy-postflight.sql"
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/governance-concept-postflight.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/04-postflight-governance-concept-schema.log",
|
|
"id": "postflight:governance-concept-schema",
|
|
"index": 4,
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/04-postflight-governance-concept-schema.log",
|
|
"packet_id": "governance-concept-schema",
|
|
"phase": "postflight",
|
|
"requires_authorization": false,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/governance-concept-postflight.sql"
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/helmer-7powers-production-postflight.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/05-postflight-helmer-7powers.log",
|
|
"id": "postflight:helmer-7powers",
|
|
"index": 5,
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/05-postflight-helmer-7powers.log",
|
|
"packet_id": "helmer-7powers",
|
|
"phase": "postflight",
|
|
"requires_authorization": false,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/helmer-7powers-production-postflight.sql"
|
|
}
|
|
],
|
|
"pre_apply_validation_steps": [
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && .venv/bin/python scripts/collect_working_leo_production_preflight.py --execute --transport ssh --out docs/reports/leo-working-state-20260709/working-leo-production-preflight-current.json --markdown-out docs/reports/leo-working-state-20260709/working-leo-production-preflight-current.md | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/pre-apply-validation-01-readonly_production_preflight_collector.log",
|
|
"expected_artifact": "docs/reports/leo-working-state-20260709/working-leo-production-preflight-current.md",
|
|
"id": "readonly_production_preflight_collector",
|
|
"index": 1,
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/pre-apply-validation-01-readonly_production_preflight_collector.log",
|
|
"phase": "pre_apply_validation",
|
|
"requires_authorization": false
|
|
}
|
|
],
|
|
"preflight_steps": [
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/production-preflight.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/01-preflight-mapped-rich-base.log",
|
|
"id": "preflight:mapped-rich-base",
|
|
"index": 1,
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/01-preflight-mapped-rich-base.log",
|
|
"packet_id": "mapped-rich-base",
|
|
"phase": "preflight",
|
|
"requires_authorization": false,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/production-preflight.sql"
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/cross-surface-preflight.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/02-preflight-cross-surface-anchor.log",
|
|
"id": "preflight:cross-surface-anchor",
|
|
"index": 2,
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/02-preflight-cross-surface-anchor.log",
|
|
"packet_id": "cross-surface-anchor",
|
|
"phase": "preflight",
|
|
"requires_authorization": false,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/cross-surface-preflight.sql"
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/rio-strategy-preflight.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/03-preflight-rio-strategy-context.log",
|
|
"id": "preflight:rio-strategy-context",
|
|
"index": 3,
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/03-preflight-rio-strategy-context.log",
|
|
"packet_id": "rio-strategy-context",
|
|
"phase": "preflight",
|
|
"requires_authorization": false,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/rio-strategy-preflight.sql"
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/governance-concept-preflight.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/04-preflight-governance-concept-schema.log",
|
|
"id": "preflight:governance-concept-schema",
|
|
"index": 4,
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/04-preflight-governance-concept-schema.log",
|
|
"packet_id": "governance-concept-schema",
|
|
"phase": "preflight",
|
|
"requires_authorization": false,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/governance-concept-preflight.sql"
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/helmer-7powers-production-preflight.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/05-preflight-helmer-7powers.log",
|
|
"id": "preflight:helmer-7powers",
|
|
"index": 5,
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/05-preflight-helmer-7powers.log",
|
|
"packet_id": "helmer-7powers",
|
|
"phase": "preflight",
|
|
"requires_authorization": false,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/helmer-7powers-production-preflight.sql"
|
|
}
|
|
],
|
|
"production_apply_executed": false,
|
|
"receipt_field_sources_after_execution": {
|
|
"apply_output_paths": [
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/01-apply-mapped-rich-base.log",
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/02-apply-cross-surface-anchor.log",
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/03-apply-rio-strategy-context.log",
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/04-apply-governance-concept-schema.log",
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/05-apply-helmer-7powers.log"
|
|
],
|
|
"cleanup_readback": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-cleanup-readback.log",
|
|
"postflight_output_paths": [
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/01-postflight-mapped-rich-base.log",
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/02-postflight-cross-surface-anchor.log",
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/03-postflight-rio-strategy-context.log",
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/04-postflight-governance-concept-schema.log",
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/05-postflight-helmer-7powers.log"
|
|
],
|
|
"preflight_output_paths": [
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/01-preflight-mapped-rich-base.log",
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/02-preflight-cross-surface-anchor.log",
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/03-preflight-rio-strategy-context.log",
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/04-preflight-governance-concept-schema.log",
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/05-preflight-helmer-7powers.log"
|
|
],
|
|
"rollback_packet_paths": [
|
|
"docs/reports/leo-working-state-20260709/helmer-7powers-production-delete-rollback.sql",
|
|
"docs/reports/leo-working-state-20260709/governance-concept-delete-rollback.sql",
|
|
"docs/reports/leo-working-state-20260709/rio-strategy-delete-rollback.sql",
|
|
"docs/reports/leo-working-state-20260709/cross-surface-delete-rollback.sql",
|
|
"docs/reports/leo-working-state-20260709/production-delete-rollback.sql"
|
|
],
|
|
"service_readback": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-service-readback.log",
|
|
"telegram_or_handler_regression_paths": [
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-regression-01-direct_claim_handler_suite.log",
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-regression-02-direct_claim_strict_score.log",
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-regression-03-focused_local_regression_tests.log",
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-regression-04-gateway_service_readback.log",
|
|
"docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-regression-05-production_receipt_validator.log"
|
|
]
|
|
},
|
|
"receipt_template_must_fill_after_authorized_apply": [
|
|
"explicit_authorization_record",
|
|
"operator_identity",
|
|
"apply_output_paths",
|
|
"postflight_output_paths",
|
|
"actual_after_apply_counts",
|
|
"telegram_or_handler_regression_paths",
|
|
"service_readback",
|
|
"cleanup_readback"
|
|
],
|
|
"receipt_template_path": "docs/reports/leo-working-state-20260709/working-leo-production-apply-receipt-template-current.json",
|
|
"receipt_validation_step": {
|
|
"command": ".venv/bin/python scripts/validate_working_leo_production_receipt.py --receipt docs/reports/leo-working-state-20260709/working-leo-production-apply-receipt-current.json | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/receipt-validation.log",
|
|
"id": "receipt_validation",
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/receipt-validation.log",
|
|
"phase": "receipt_validation",
|
|
"requires_authorization": false
|
|
},
|
|
"rollback_steps": [
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/helmer-7powers-production-delete-rollback.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/01-rollback-helmer-7powers.log",
|
|
"id": "rollback:helmer-7powers",
|
|
"index": 1,
|
|
"mutates_production_db": true,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/01-rollback-helmer-7powers.log",
|
|
"packet_id": "helmer-7powers",
|
|
"phase": "rollback",
|
|
"requires_authorization": true,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/helmer-7powers-production-delete-rollback.sql"
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/governance-concept-delete-rollback.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/02-rollback-governance-concept-schema.log",
|
|
"id": "rollback:governance-concept-schema",
|
|
"index": 2,
|
|
"mutates_production_db": true,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/02-rollback-governance-concept-schema.log",
|
|
"packet_id": "governance-concept-schema",
|
|
"phase": "rollback",
|
|
"requires_authorization": true,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/governance-concept-delete-rollback.sql"
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/rio-strategy-delete-rollback.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/03-rollback-rio-strategy-context.log",
|
|
"id": "rollback:rio-strategy-context",
|
|
"index": 3,
|
|
"mutates_production_db": true,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/03-rollback-rio-strategy-context.log",
|
|
"packet_id": "rio-strategy-context",
|
|
"phase": "rollback",
|
|
"requires_authorization": true,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/rio-strategy-delete-rollback.sql"
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/cross-surface-delete-rollback.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/04-rollback-cross-surface-anchor.log",
|
|
"id": "rollback:cross-surface-anchor",
|
|
"index": 4,
|
|
"mutates_production_db": true,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/04-rollback-cross-surface-anchor.log",
|
|
"packet_id": "cross-surface-anchor",
|
|
"phase": "rollback",
|
|
"requires_authorization": true,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/cross-surface-delete-rollback.sql"
|
|
},
|
|
{
|
|
"command": "mkdir -p docs/reports/leo-working-state-20260709/production-apply-session-artifacts && psql \"$TELEO_DATABASE_URL\" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/production-delete-rollback.sql | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/05-rollback-mapped-rich-base.log",
|
|
"id": "rollback:mapped-rich-base",
|
|
"index": 5,
|
|
"mutates_production_db": true,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/05-rollback-mapped-rich-base.log",
|
|
"packet_id": "mapped-rich-base",
|
|
"phase": "rollback",
|
|
"requires_authorization": true,
|
|
"source_sql": "docs/reports/leo-working-state-20260709/production-delete-rollback.sql"
|
|
}
|
|
],
|
|
"runbook_path": "docs/reports/leo-working-state-20260709/working-leo-authorized-apply-runbook-current.json",
|
|
"service_readback_step": {
|
|
"command": "systemctl show leoclean-gateway.service -p ActiveState -p SubState -p MainPID -p NRestarts -p ExecMainStartTimestamp --no-pager | tee docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-service-readback.log",
|
|
"id": "service_readback",
|
|
"mutates_production_db": false,
|
|
"output_path": "docs/reports/leo-working-state-20260709/production-apply-session-artifacts/post-apply-service-readback.log",
|
|
"phase": "post_apply_service_readback",
|
|
"requires_authorization": false
|
|
}
|
|
}
|