You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v_script_summary joins artifact_files, highlight_snapshots, and parseil_results before summing parse capture outcomes. These one-to-many joins multiply the parse rows. The distinct counters survive, but SUM(CASE WHEN p.ok ...) does not.
edge-cases/oversize-32k.rsc has six failed capture rows, but the view reports parseil_error_count=36.
Reproduction
Run against that pinned database:
SELECTs.id, s.path, v.parseil_version_count,
v.parseil_ok_count, v.parseil_error_count,
(SELECTCOUNT(*) FROM parseil_results p
WHEREp.script_id=s.idANDp.ok=1) AS actual_capture_ok,
(SELECTCOUNT(*) FROM parseil_results p
WHEREp.script_id=s.idANDp.ok=0) AS actual_capture_error
FROM v_script_summary v
JOIN source_scripts s ONs.id=v.idWHEREs.idIN (3,4,6,228);
This finding affects this summary view. It does not explain the Glossema comparison's direct-join counts; those have separate classification problems in #37.
Independent offline review by Codex, 2026-09-21; filed with maintainer authorization.
Problem
v_script_summaryjoinsartifact_files,highlight_snapshots, andparseil_resultsbefore summing parse capture outcomes. These one-to-many joins multiply the parse rows. The distinct counters survive, butSUM(CASE WHEN p.ok ...)does not.Reproduced on the pinned schema-v4 corpus:
7d623557d257e0a4d50f47c87d6a842ff26994014f1560f757265570b5b04c9f93d6d57b432064cf655ce2d1852da95536e313a9edge-cases/empty.rscedge-cases/unicode-heavy.rscedge-cases/oversize-32k.rschas six failed capture rows, but the view reportsparseil_error_count=36.Reproduction
Run against that pinned database:
Source: scripts/build-corpus-db.ts,
CREATE VIEW v_script_summary.Scope and acceptance
parseil_results, including failures and missing captures.ok=1means capture succeeded, even when its response is a diagnostic.This finding affects this summary view. It does not explain the Glossema comparison's direct-join counts; those have separate classification problems in #37.
Independent offline review by Codex, 2026-09-21; filed with maintainer authorization.