Skip to content

rosetta[jcl]: cross-language consistency — 13 red / 7 amber metrics, 2 ledgered shapes #2581

Description

@squid-protocol

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)

  • 🔴 args: 1 vs median 13 (-92%)
  • 🟡 dependency_links: 4 vs median 3 (+33%)

2. Signal / keyword deviations

  • 🔴 cleanup: 0 vs median 2 (-100%)
  • 🔴 comment_lines: 5 vs median 30 (-83%)
  • 🔴 doc: 0 vs median 1 (-100%)
  • 🔴 fragile_debt: 0 vs median 1 (-100%)
  • 🔴 globals: 0 vs median 2 (-100%)
  • 🔴 planned_debt: 0 vs median 1 (-100%)
  • 🔴 safety: 0 vs median 2 (-100%)
  • 🔴 safety_bypasses: 0 vs median 2 (-100%)
  • 🔴 state_mutation: 2 vs median 6 (-67%)
  • 🔴 telemetry: 0 vs median 2 (-100%)
  • 🔴 test: 0 vs median 2 (-100%)
  • 🟡 branch: 3 vs median 5 (-40%)
  • 🟡 keyword_hits: 158 vs median 247.5 (-36%)

3. Risk-exposure consequences (downstream)

  • 🔴 risk_cognitive_load: 4 vs median 15.1444 (-74%)
  • 🟡 risk_api_exposure: 6.93756 vs median 5.31104 (+31%)
  • 🟡 risk_spec_match: 64 vs median 96 (-33%)
  • 🟡 risk_tech_debt: 20 vs median 39.9576 (-50%)
  • 🟡 risk_verification: 1.70246 vs median 2.3628 (-28%)

Ledgered shapes touching jcl

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
batch5-tier2-morphology-shapes keyword-overlap Collective entry for Tier-2 finditer/report-confirmed shapes, detailed per-manifest: css at-rules triple-count (func+branch, @supports also safety; args tracks @import u…

Reproduce / evidence

Metadata

Metadata

Assignees

No one assigned

    Labels

    core-engineModifications to the central physics and parsing enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingmetricsHeuristics, risk exposures, and topological math updatespriority: highCore feature broken, but workarounds exist

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions