Skip to content

refactor(core): organize services and dataset modules by responsibility - #289

Open
shaanjiangcun wants to merge 2 commits into
codeasier:mainfrom
shaanjiangcun:refactor/core-package-layout
Open

shaanjiangcun wants to merge 2 commits into
codeasier:mainfrom
shaanjiangcun:refactor/core-package-layout

Conversation

@shaanjiangcun

Copy link
Copy Markdown
Contributor

📝 Description

Group the core package by responsibility: common contracts, analysis services, caches, datasets, importing and splitting. Dataset queries and lifecycle helpers have their own subpackages. Update imports, dynamic test patches, documentation and tooling inventories while keeping the public core exports.

This change only reorganizes modules and their references. Python requirements, dependencies, packaging configuration and runtime logic remain unchanged.

🔗 Related Issue

No linked issue.

🧪 Testing

  • Tests and module inventories updated.
  • Ruff, Black and basedpyright completed successfully (0 type errors; existing informational warnings remain).
  • Structural checks: all 41 moved runtime modules retain the same non-import AST; all 49 core submodules import successfully.
  • Clean wheel build verified against all 103 Python modules, with no retired flat core paths.
  • Installed-wheel import and CLI/API queries verified with memory0.pickle and a Chinese-path slice_2_entry_4047_8092.pkl. Query rows agree with the host implementation and input hashes remain unchanged.
  • Fixture provenance: 7 passed.
  • Windows non-slow suite: 3461 passed, 33 skipped, 45 failed. Every failing test was rerun on untouched main; no new failures were identified. Baseline failures are not counted as passing checks: Windows symlink creation requires privileges, and existing os.fchmod calls are unavailable on Windows.

✅ Checklist

  • Code follows project guidelines.
  • Documentation updated.
  • No new warnings introduced.
  • Changes tested locally.

Snapshot Runtime Provenance

  • Snapshot provenance evaluation completed.
    Snapshot provenance decision: no-update
    Snapshot provenance no-update reason: The only change under snapshot/ is an AGENTS.md module-path reference. Snapshot runtime files and PROVENANCE.md are byte-for-byte unchanged.

📋 Additional Notes

This PR does not change the supported Python versions or apply host-specific compatibility changes.

——msdevflow

This branch has not been deployed

No deployments
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