Skip to content

Delete unwired grading modules + prune orphan error-code prefixes (Memo 152 G-08/G-09/G-10/F-09) #71

Description

@a6b8

Phase 6 of Memo 152 (v4-only maturity cleanup, decision F5=A). Delete the still-dead, unwired modules and their test suites; recoverable from git.

G-08 — delete unwired classes: LegalAssessment, ImprovementLoop, Veto, ModuleApi, SkillComposition, SharedLists, StablePromotion. Remove their imports/exports/API-table rows in src/index.mjs.

  • The LIVE inline categoricalVeto logic (src/Grading.mjs) is UNTOUCHED — the dead Veto class only shared its name.
  • shared-list resolution is owned by core (SharedListResolver); the grading-local SharedLists loader was unwired duplication.

G-09 — remove the permanent Scoring.scoreDimension stub + its private validator; the Scoring class stays (computeWeightedSum is live via Grading).

G-10 — remove GradingImport + scripts/provider-proof-sweep.mjs. The island-import concept died with live-read; ProviderProof.write is wired directly in the CLI.

ErrorCodes — prune the orphan prefixes whose owners were deleted (SKC, IMP, STB, SL, API) from the table + VALID_PREFIXES. The ErrorCodes registry class stays (public surface); VET stays (documents the live categoricalVeto REJECTED path); ABT stays.

F-09 — delete the dead-module suites and adjust the coupled suites (Scoring, index, ErrorCodes, SpecVersion, RebuildIndex, AreaScorer, GradingExport). GradingExport's island fixture is rebuilt from SourceSnapshot + RebuildIndex (no import writer).

Deviation (traced, load-bearing): the stable ladder rung in RequiredLevel is KEPT — 6 live area-dependency-graph entries gate about-namespace + selection areas at requiredLevel stable via RequiredLevel.meets; only the StablePromotion promoter is dead. Removing it would break AreaDependencyGraph.evaluate + its tests.

Tests: 704 pass (was 838; 9 dead suites removed). categoricalVeto verified untouched.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions