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
- 🔴
state_mutation: 2 vs median 6 (-67%) - 🟡
comment_lines: 42 vs median 30 (+40%) - 🟡
io: 4 vs median 3 (+33%) - 🟡
safety: 3 vs median 2 (+50%)
3. Risk-exposure consequences (downstream)
- 🟡
risk_cognitive_load: 8.40777 vs median 15.1444 (-44%) - 🟡
risk_state_flux: 13.551 vs median 19.9999 (-32%)
Ledgered shapes touching javascript
| 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 |
identifier-name-token-collision |
keyword-overlap | — | (notes) | Token signals match ordinary identifiers that happen to spell a keyword: js probeIo's parameter named 'path' counts io +1 (path is a js io keyword) |
js-with-statement-func-start-fp |
upstream-bug | #2539 | (notes) | 'with (shape) {}' is parsed as a function named 'with' by the identifier(args){ alternation: the keyword exclusion list has if/for/while/switch/catch/return but not with |
string-literal-selective-shielding |
upstream-question | #2535 | a.js | 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.js ·
never calls eval and no while loop(comment): stripped: contributed 0 - a.js ·
MESSAGE = "if eval fails, try open"(string): same sentence as python, same result: if/try COUNT (branch +2 — js branch includes try; safety +1) but eval does NOT (high_risk 0); open is inert in js (not an io keyword). Ledger: string-literal-selective-shielding; gitgalaxy#2535 - b.js ·
the try keyword stays in prose(comment): stripped: contributed 0 - c.js ·
const HACK_LEVEL = level(code): inert as in python — underscore is a word character so \bHACK\b cannot match; note this inertness is tokenization luck, not surface anchoring (see cobol + gitgalaxy#2537)
Reproduce / evidence
- Corpus folder:
data/javascript/—expected_signals.jsoncarries the shape-by-shape accounting - Gate:
GALAXYSCOPE_BIN=<venv>/bin/galaxyscope python tools/verify_language.py javascriptin the corpus repo - Full context: findings_by_language.md#javascript · bias_report.md · bias chart
Activity
squid-protocol commentedon Sep 3, 2026
Status: 0🔴 / 2🟡 unexplained, 5 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
betweenness_scoreencapsulation_ratioOut of band, but accounted for
ledgered — a validated ledger entry names this language and this metric
cog_raw— composite-nonlinearity-amplifies-in-band-inputsio— string-literal-selective-shielding, identifier-name-token-collisionrisk_cognitive_load— path-and-extension-modifiersrisk_documentation— path-and-extension-modifiersrisk_state_flux— path-and-extension-modifiersClose criterion (gitgalaxy#2669 Batch E.4)
python tools/language_deviations.py javascriptexits 1: 2 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 javascript 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 javascriptin keyword-rosetta, ordocs/findings_by_language.md#javascript.This is a change of axis, not a claim that javascript is green. The §10 capstone in
docs/language_status/javascript.mdis written when the language reads clean bylanguage_deviations.py, by whichever family PR gets it there — no longer tied to this issue.