Repository navigation
Description
Part of #2560 — per-language tracking for the keyword-rosetta control corpus (built for #1096). Planted intent is identical in every language, so every deviation below is measured bias vs. the 46-language median, validated in the corpus's deviation ledger. 🔴 = beyond ±50% of the cross-language median, 🟡 = ±25–50%.
Triage order (per the epic): structure detection first, then signal/keyword rules, then risk-score consequences — §3's numbers are downstream of §1–§2 and re-baseline as those fix. Cross-cutting engine issues (e.g. #2535/#2546) fix many languages at once; this issue tracks this language's residual after each cross-cutting fix lands, and closes when the language sits inside the ±25% band on every comparable metric (or every remaining deviation is ledgered as intended morphology).
1. Structure detection (fix first)
In band — no structure-level deviations.
2. Signal / keyword deviations
- 🔴
safety: 4 vs median 2 (+100%) - 🔴
safety_bypasses: 4 vs median 2 (+100%) - 🟡
keyword_hits: 146 vs median 247.5 (-41%) - 🟡
state_mutation: 8 vs median 6 (+33%)
3. Risk-exposure consequences (downstream)
- 🔴
risk_api_exposure: 0 vs median 5.31104 (-100%) - 🔴
risk_cognitive_load: 5.53524 vs median 15.1444 (-63%) - 🔴
risk_safety_score: 56.3515 vs median 37.297 (+51%) - 🔴
risk_state_flux: 39.8873 vs median 19.9999 (+99%) - 🟡
risk_spec_match: 65.3333 vs median 96 (-32%) - 🟡
risk_tech_debt: 20 vs median 39.9576 (-50%)
Ledgered shapes touching haskell
| defect | type | issue | evidence | summary |
|---|---|---|---|---|
census-requires-git-tracked |
engine-semantic | — | — | GalaxyScope's census enumerates git-tracked files only; an untracked folder scans as '0 files mapped' with no per-file warning |
haskell-caf-bindings-count-as-functions |
engine-semantic | — | (notes) | Top-level value bindings (CAFs like 'region = unsafePerformIO ...') count func_start/args like any function binding — morphologically correct for haskell, where top-leve… |
haskell-finally-dual-cleanup-safety |
keyword-overlap | — | (notes) | finally is in both haskell's cleanup and safety rules (finditer-confirmed on c.hs) — one planted finally counts both. |
string-literal-selective-shielding |
upstream-question | #2535 | b.hs | Keywords inside one string literal ('if eval fails, try open') count toward branch (+2), safety (+1), io (+1) but eval does NOT count toward high_risk_execution (routes … |
Decoy outcomes (file-level evidence)
- main.hs ·
never dies and the exit words stay in prose(comment): stripped: contributed 0 - b.hs ·
message = "if eval fails, try open"(string): if (branch +1) and try (safety +1) COUNT — python/js profile; eval/open inert in haskell's rules. Phantom branch context triples state: modifyIORef+writeIORef 2 raw -> 6. Ledger: string-literal-selective-shielding, state-flux-branch-weighting - c.hs ·
hackLevel where hackLevel = level(code): inert (camelCase lowercase vs case-sensitive \bHACK\b)
Reproduce / evidence
- Corpus folder:
data/haskell/—expected_signals.jsoncarries the shape-by-shape accounting - Gate:
GALAXYSCOPE_BIN=<venv>/bin/galaxyscope python tools/verify_language.py haskellin the corpus repo - Full context: findings_by_language.md#haskell · bias_report.md · bias chart
Activity
squid-protocol commentedon Sep 3, 2026
Status: 4🔴 / 4🟡 unexplained, 7 further out-of-band cell(s) accounted for
Generated from
docs/bias_data.json+deviation_ledger.jsonbytools/issue_status.py, using the same verdict machinerybias_report.py --gateruns on (gitgalaxy#2669 E.1), so this comment and the gate cannot disagree about what is left.Still unexplained — the work this issue tracks
keyword_hitscoding_loctotal_locrisk_api_exposurerisk_documentationrisk_safety_scorerisk_state_fluxrisk_tech_debtOut of band, but accounted for
derived — the deviation entered through an input that is itself out of band -- the same finding counted twice
structural_mass— inherits total_loc, coding_locledgered — a validated ledger entry names this language and this metric
avg_func_loc— function-body-length-morphologycontrol_flow_ratio— control-flow-ratio-denominator-is-a-vocabulary-tallyfunc_internal_density— function-body-length-morphologysafety— string-literal-selective-shielding, haskell-finally-dual-cleanup-safetysafety_bypasses— string-literal-selective-shielding, probe-idiom-collides-with-measured-signalstate_mutation— string-literal-selective-shieldingClose criterion (gitgalaxy#2669 Batch E.4)
python tools/language_deviations.py haskellexits 1: 8 unexplained cell(s) remain. Each needs a fix, or a validated ledger entry saying why it is correct, before this issue can close.squid-protocol commentedon Sep 6, 2026
Closed 2026-09-06 as superseded by #2812 (
docs/contract_roadmap.md, decision D2). Every out-of-band cell for haskell is accounted for (the gate reads 0 unexplained) and is now tracked by cause family, not by language: the ledger entry that explains it, its cause category in keyword-rosetta'sdocs/bias_data.json["cell_categories"](echo / inherency / extraction / correlation / scoring), and the family issue #2812 lists for that cause. Live standing at any time:python tools/language_deviations.py haskellin keyword-rosetta, ordocs/findings_by_language.md#haskell.This is a change of axis, not a claim that haskell is green. The §10 capstone in
docs/language_status/haskell.mdis written when the language reads clean bylanguage_deviations.py, by whichever family PR gets it there — no longer tied to this issue.