ReviewOS

home-lang/home-os

23 more dangling imports in modules previously hidden behind parser hang

#15
Closed glennmichael123 opened this 9 days ago ·
9 days ago

Context

home-lang/home-os #11 fixed 23 dangling imports surfaced by the original 2026-05-01 audit. The 2026-05-04 re-audit (post home-lang/home #16 parser-hang fix) finds 23 more `Module 'X' not found` errors, in modules that were previously hung past 15s before the parser could even surface the import error.

These were always broken; the parser hang just hid them.

Examples

(Pull the full set from `~/Desktop/home-os-kernel-audit-2026-05-04.tsv` — filter `parse_status=FAIL` and `first_error` matches `Module '` and `not found`.)

A few observed shapes:

  • `arch/arm64/rpi/boot.home` → `'../../../mm/memory'` (extension missing + over-deep relative path)
  • Bare-name imports of paths that don't exist (e.g. `network.home`, `basics/os/X` — these are leftovers from earlier renames)
  • Relative paths off by one or two levels (`../../../` where `../` would resolve)

Approach

Same methodology as #11:

  1. Pull the 23 `Module not found` rows from the 2026-05-04 TSV
  2. For each: `grep -rn "import.<missing>" kernel/src --include='.home'` to find the importer
  3. Bucket: real-missing / wrong-path / false-positive (file exists at the absolute path)
  4. Apply fix per case — fix-path > stub-create > delete-dependent (conservative, like #11)
  5. `Closes` this issue

Reference

  • Predecessor: home-lang/home-os #11 (closed)
  • Audit data: `~/Desktop/home-os-kernel-audit-2026-05-04.tsv`
  • Ranked #4 in the audit's leverage table — mostly mechanical source cleanup

Sign in to comment on this issue.