Skip to content

[Core Reset] Delete legacy extraction architecture - #590

Merged
mohanagy merged 3 commits into
core-resetfrom
core-reset-legacy-deletion
Jul 22, 2026
Merged

mohanagy merged 3 commits into
core-resetfrom
core-reset-legacy-deletion

Conversation

@mohanagy

@mohanagy mohanagy commented Jul 22, 2026 •

Copy link
Copy Markdown
Owner

What changed

  • deleted the legacy extraction engine, non-code/other-language ingestion, and four guaranteed runtime orphans
  • made the compiler-backed TypeScript/JavaScript index the sole generation path for .ts, .tsx, .js, and .jsx
  • removed retired extraction flags, mode/fallback metadata, dependencies, fixtures, and current documentation claims
  • preserved valid user-visible behavior tests through test-only canonical graph fixtures
  • preserved freshness, worktree, safety, and indexing-completeness behavior, including Windows path handling and ignore-control changes

Why

Madar still shipped two competing extraction architectures after the canonical index landed. This phase removes the predecessor instead of preserving compatibility code, so generation has one implementation and unsupported inputs cannot silently enter the graph.

Part of #588. The issue remains open until the post-merge governance closure records CI, review, package, and ownership receipts and closes obsolete #571.

User impact

  • madar generate and madar generate --update perform one canonical TypeScript/JavaScript rebuild
  • --legacy, --spi, --include-docs, --docs, and --wiki are rejected
  • immediate predecessor graph, policy, indexing-manifest, and watcher-state versions fail closed with a regeneration instruction
  • unsupported languages and non-code files produce completeness receipts but no graph facts
  • --update replaces stale predecessor facts with the canonical-only graph

Cross-artifact transactional publication is intentionally not implemented here; it remains part of the later generation/incremental phase defined by the Core Reset roadmap.

Local validation

  • npm ci
  • focused [Core Reset]: Delete legacy extraction and all non-TypeScript ingestion #588 suite: 11 files, 209 tests passed
  • full suite: 163 files, 1,907 passed, 2 skipped
  • coverage: 85.17% statements, 76.97% branches, 90.59% functions, 85.85% lines
  • npm run typecheck
  • npm run build
  • npm run release:verify
  • npm run registry:validate
  • npm run verify:pack-parity
  • npm audit --audit-level=high: 0 vulnerabilities
  • npm pack --dry-run --json: 314 files, 592,783 packed bytes, 2,794,076 unpacked bytes
  • git diff --check
  • strict independent code/test audit: passed
  • exact-head CI: all six OS/Node jobs passed on 0d5aab99 in run 29899357806
  • CodeRabbit status passed, but its actual review was skipped because reviews are disabled for the core-reset base; the owner-approved exception is backed by the independent strict review
  • review threads: 0 total, 0 unresolved

Production deletion receipt

  • source files: 170 to 139
  • source LOC: 91,539 to 68,954
  • production delta: +815 / -23,400 / net -22,585
  • runtime dependencies removed: @vscode/tree-sitter-wasm, web-tree-sitter, fflate
  • release: none; this is an intermediate Core Reset phase

@coderabbitai

coderabbitai Bot commented Jul 22, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (2)
  • ^main$
  • ^next$

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 33db2715-e080-4ea3-8662-46bb87c9a1f9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch core-reset-legacy-deletion

Comment @coderabbitai help to get the list of available commands.

@mohanagy

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@mohanagy
mohanagy merged commit d46031e into core-reset Jul 22, 2026
7 checks passed
@mohanagy

Copy link
Copy Markdown
Owner Author

Independent review receipt

Final implementation head reviewed: 0d5aab99b9aeaf01a17830bacafd6e8027ded72f (squash-merged as d46031eed7b0cf2d8bb7b7b6267a51322d9e2490).

An independent strict review rechecked the deletion boundary, surviving canonical generation path, predecessor fail-closed gates, freshness/worktree behavior, Windows path handling, package scope, migrated tests, and PR claims. Result: PASS — no blocking findings.

Verification at the final implementation head:

  • focused [Core Reset]: Delete legacy extraction and all non-TypeScript ingestion #588 suite: 11 files / 209 tests passed
  • full serial suite: 163 files / 1,907 passed / 2 skipped
  • coverage: 85.17% statements, 76.97% branches, 90.59% functions, 85.85% lines
  • typecheck, build, release hygiene, MCP registry validation, packed retrieval parity, package audit, and diff checks passed
  • all six exact-head CI jobs passed in run 29899357806
  • zero review threads and zero unresolved threads
  • production delta: +815 / -23,400 / net -22,585; 31 production files and three runtime dependencies removed

CodeRabbit's status check passed, but no actual CodeRabbit review ran because reviews are disabled for the core-reset base. The owner-approved automation exception is recorded honestly and backed by this independent review.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant