7.9 KiB
7.9 KiB
Working Leo Authorized Apply Runbook
Generated UTC: 2026-07-10T01:16:00.171472+00:00
Mode: operator_runbook_generation_only
Status: ready_not_executed
Ready for authorized operator: True
Production apply executed: False
Production apply authorization present: False
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.
Checks
readiness_passes:Truereadiness_says_not_executed:Truereadiness_says_not_authorized:Trueapply_order_matches_manifest:Truerollback_order_matches_manifest:Trueall_phase_files_exist:Trueall_phase_files_non_empty:Trueall_apply_and_rollback_sql_have_transactions:Truepost_apply_regression_commands_present:Trueproduction_apply_receipt_schema_present:True
Preflight Order
mapped-rich-base->production-preflight.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/production-preflight.sql
cross-surface-anchor->cross-surface-preflight.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/cross-surface-preflight.sql
rio-strategy-context->rio-strategy-preflight.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/rio-strategy-preflight.sql
governance-concept-schema->governance-concept-preflight.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/governance-concept-preflight.sql
helmer-7powers->helmer-7powers-production-preflight.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/helmer-7powers-production-preflight.sql
Apply Order
mapped-rich-base->production-apply-authorized-commit.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/production-apply-authorized-commit.sql
cross-surface-anchor->cross-surface-apply-authorized-commit.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/cross-surface-apply-authorized-commit.sql
rio-strategy-context->rio-strategy-apply-authorized-commit.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/rio-strategy-apply-authorized-commit.sql
governance-concept-schema->governance-concept-apply-authorized-commit.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/governance-concept-apply-authorized-commit.sql
helmer-7powers->helmer-7powers-production-apply-authorized-commit.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/helmer-7powers-production-apply-authorized-commit.sql
Postflight Order
mapped-rich-base->production-postflight.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/production-postflight.sql
cross-surface-anchor->cross-surface-postflight.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/cross-surface-postflight.sql
rio-strategy-context->rio-strategy-postflight.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/rio-strategy-postflight.sql
governance-concept-schema->governance-concept-postflight.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/governance-concept-postflight.sql
helmer-7powers->helmer-7powers-production-postflight.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/helmer-7powers-production-postflight.sql
Rollback Order
helmer-7powers->helmer-7powers-production-delete-rollback.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/helmer-7powers-production-delete-rollback.sql
governance-concept-schema->governance-concept-delete-rollback.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/governance-concept-delete-rollback.sql
rio-strategy-context->rio-strategy-delete-rollback.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/rio-strategy-delete-rollback.sql
cross-surface-anchor->cross-surface-delete-rollback.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/cross-surface-delete-rollback.sql
mapped-rich-base->production-delete-rollback.sqlpsql "$TELEO_DATABASE_URL" -v ON_ERROR_STOP=1 -f docs/reports/leo-working-state-20260709/production-delete-rollback.sql
Expected Counts After Apply
claim_concept_map_links:1claim_edges:18claim_evidence:34claim_governance_gate_links:2claims:12concept_maps:1cross_surface_anchor_updates:1helmer_ledger_rows_marked_applied:1reasoning_tools:1rio_strategy_anchors:5rio_strategy_nodes:2sources:28
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.
Post-Apply Regression Commands
direct_claim_handler_suite: Re-run the non-posting VPS GatewayRunner direct-claim suite after production postflight.- command:
.venv/bin/python scripts/run_leo_direct_claim_handler_suite.py - artifact:
docs/reports/leo-working-state-20260709/telegram-handler-direct-claim-suite-current.json - mutates production DB:
False - posts to Telegram:
False
- command:
direct_claim_strict_score: Strict-score the retained direct-claim replies; expected score is 6/6.- command:
.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 - artifact:
docs/reports/leo-working-state-20260709/telegram-handler-direct-claim-suite-score-current.md - mutates production DB:
False - posts to Telegram:
False
- command:
focused_local_regression_tests: Verify benchmark scoring, bridge skill surfaces, and runbook invariants after artifact refresh.- command:
.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 - artifact:
terminal pytest output - mutates production DB:
False - posts to Telegram:
False
- command:
gateway_service_readback: Read back the VPS Leo gateway service state after postflight and regressions.- command:
systemctl show leoclean-gateway.service -p ActiveState -p SubState -p MainPID -p NRestarts -p ExecMainStartTimestamp --no-pager - artifact:
retained service readback with ActiveState=active and NRestarts reviewed - mutates production DB:
False - posts to Telegram:
False
- command:
Production Apply Receipt Required Fields
explicit_authorization_recordoperator_identitygit_commit_shapreflight_output_pathsapply_output_pathspostflight_output_pathsexpected_after_apply_countsactual_after_apply_countstelegram_or_handler_regression_pathsdirect_claim_score_pathservice_readbackcleanup_readbackrollback_packet_pathsknown_residual_risks
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.