Skip to content

Action Outcome Vendor SQL Replay 010 - Raw Research Artifact

Generated at: 2026-06-18T15:03:38Z Endpoint: http://127.0.0.1:19343/ SQL seed: docs/research/results/action_outcome_sql_replay_006.sql

  • Seed statements attempted: 203
  • Seed statements succeeded: 203
  • Seed statements failed: 0
  • Seed row-count status: pass
  • Vendor table row-count status: pass
  • Failed-repeat JOIN status: pass
  • Context top-action JOIN status: pass
  • Suppression JOIN status: pass
  • Misleading retrieval JOIN status: pass
  • Window ROW_NUMBER status: pass
  • Window LAG status: pass
  • Overall SQL/JOIN/window status: pass
TableExpected InsertsLive RowsStatus
action_outcome_episode_metrics101101pass
action_outcome_episodes3232pass
action_outcome_gate_suppressions2121pass
action_outcome_replay_recommendations1818pass
action_outcome_retrieval_quality_labels2626pass
TableExpected RowsLive RowsStatus
action_outcome_vendor_queries_01066pass
action_outcome_vendor_recommendations_0107272pass
action_outcome_vendor_retrieval_0107272pass
action_outcome_vendor_suppressions_0102121pass

This query joins top recommendations to query episodes and uses alias-qualified WHERE predicates on the joined result:

SELECT r.variant, r.query_id, r.action_class, q.true_failed_action
FROM action_outcome_vendor_recommendations_010 r
JOIN action_outcome_vendor_queries_010 q ON r.query_id = q.query_id
WHERE r.recommendation_rank = 1 AND r.avoids_failed = 0
  • Status: pass
VariantQueryRecommended ActionHistorical Failed Action
reflection_only_memoryaoe_cache_002restartrestart
runbook_action_prioraoe_cache_002restartrestart
runbook_action_prioraoe_queue_003restartrestart
similar_incidentaoe_cache_002restartrestart
similar_incidentaoe_payment_002scale_outscale_out
  • Status: pass
QueryContext-Gated Top ActionHistorical Failed Action
aoe_cache_002cache_purgerestart
aoe_checkout_002rollbackrestart
aoe_inventory_002config_revertscale_out
aoe_payment_002traffic_drainscale_out
aoe_queue_003scale_outrestart
aoe_search_003rollbackscale_out
  • Suppression JOIN rows: 21
  • Suppression JOIN status: pass
  • Misleading retrieval JOIN rows: 23
  • Misleading retrieval JOIN status: pass
  • ROW_NUMBER rows: 72
  • ROW_NUMBER status: pass
  • LAG rows: 72
  • LAG status: pass

Experiment 010 now has a live ZeptoDB SQL acceptance path. The comparison is no longer only a Python fixture report: recommendations, retrieval evidence, query controls, and context suppressions are materialized into declared ZeptoDB tables and audited with native hash JOIN plus window queries.

The key product result remains intact: vendor-inspired baselines have failed-repeat top actions, while context_gated_action_outcome returns six safe top actions and uses suppressions to keep mismatched historical outcomes from dominating the ranking.

Port this SQL/JOIN/window replay into the two-node live harness to record which parts are single-node SQL-complete and which parts still depend on distributed JOIN/window planner work.