{
  "sqlite_version": "3.53.1",
  "authored_history": [
    [
      1,
      "A",
      10,
      "old-A"
    ],
    [
      2,
      "A",
      20,
      "candidate-A2"
    ],
    [
      3,
      "A",
      20,
      "candidate-A3"
    ],
    [
      4,
      "B",
      5,
      "old-B"
    ],
    [
      5,
      "B",
      8,
      "candidate-B5"
    ],
    [
      6,
      "B",
      8,
      "candidate-B6"
    ]
  ],
  "bare_columns_single_builtin_max_observed": [
    [
      "A",
      2,
      "candidate-A2",
      20
    ],
    [
      "B",
      5,
      "candidate-B5",
      8
    ]
  ],
  "deterministic_query": "WITH ranked AS(SELECT *,ROW_NUMBER() OVER(PARTITION BY entity ORDER BY t DESC,id DESC) AS rn FROM history) SELECT id,entity,t,payload FROM ranked WHERE rn=1 ORDER BY entity ASC",
  "selected": [
    [
      3,
      "A",
      20,
      "candidate-A3"
    ],
    [
      6,
      "B",
      8,
      "candidate-B6"
    ]
  ],
  "python_tie_policy_oracle": [
    [
      3,
      "A",
      20,
      "candidate-A3"
    ],
    [
      6,
      "B",
      8,
      "candidate-B6"
    ]
  ],
  "same_window_different_final_order": [
    [
      6,
      "B",
      8,
      "candidate-B6"
    ],
    [
      3,
      "A",
      20,
      "candidate-A3"
    ]
  ],
  "history_rows_retained": 6,
  "scope": "t is authored non-NULL integer ordering key; max id at tied t is declared selection policy, not proof of later real event. SQLite single built-in MIN/MAX bare-column exception acknowledged; tied row selection not guaranteed. No RAG validity filter, server DB or chronology truth verified."
}
