Skip to content

scheme: no _dependency_capture — whole DAG missing, and orphan->api conversion can never fire (tech-debt systematically inflated) #2652

Closed

Description

@squid-protocol

Found by the #2560 rosetta classification sweep (scheme #2598). The corpus ledger entry no-dependency-capture-languages (m4/markdown/scheme/yacc) is validated but had no upstream issue — this is it, with a newly-traced scoring consequence.

What happens

scheme.py has no _dependency_capture at all (one of the languages missing from the 43/60 that have one). Its import regex feeds the import signal but never produces a DAG edge. The rosetta corpus genuinely plants resolvable R7RS (import ...) forms in 3 of 4 shells — real, common morphology (R7RS libraries, Guile modules), not an inexpressible concept. Markdown has since gained link-edge capture (#2638/#2639), leaving scheme (and m4/yacc via their own ledgered gaps) DAG-less.

Newly-traced consequence (why this matters more than a missing edge)

Because scheme's popularity is structurally always 0, galaxyscope's Contextual Baseline Fix can never fire for any scheme file — orphaned_logic stays raw and feeds _calc_tech_debt's slop_stress (orphans * 2.0, plus the 1.5x both-debt-types multiplier) uncorrected. Corpus-measured: scheme risk_tech_debt +100% (80 vs median 39.9) and risk_api_exposure −100%, both downstream of the missing capture. Every real-world scheme repo gets the same systematic tech-debt inflation and zero blast-radius data.

Fix shape

Add a _dependency_capture for scheme anchored on (import (scheme ...)) / (import (lib)) / Guile (use-modules (...)) forms, following how sibling lisps capture (check racket/clojure if wired). Consider m4 (m4_include) and yacc (%include) in the same pass or leave them to their own ledger entries. Golden-master re-bless: scheme corpora gain DAG edges + orphan reclassification.

Found via keyword-rosetta classification; ledger no-dependency-capture-languages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    core-engineenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions