Thin, pack-driven entity processing system.
Phase 2 is a small, service-driven core for working with domain packs, entities, merges, enrichment, timeline summaries, maintenance checks, and search.
- CLI: parses commands and renders output
- Services: contain business flow
- Repositories: read/write local stores
- Models: stable objects
- Packs: capability bundles
cd phase2
pip install -e ".[dev]"Then verify the command is available:
phase2 --helpphase2 pack list
phase2 search query --q "seafood importer" --limit 10
phase2 maintenance checkThese flags can be used before the subcommand:
--json--quiet--dry-run--force--pack--entity-id
Example:
phase2 --json pack listpack registerpack enablepack disablepack listpack inspect
merge viewmerge planmerge runmerge status
enrich previewenrich runenrich inspect
summary previewsummary run
maintenance checkmaintenance report
search querysearch explainsearch ranksearch reindex
phase2 pack register \
--path ./packs/example \
--name example \
--version 1.0.0 \
--enablephase2 pack list
phase2 pack list --enabled-onlyphase2 merge view --entity-id ent-001phase2 merge plan --source ent-a --target ent-bphase2 enrich run --entity-id ent-001phase2 summary run --entity-id ent-001phase2 maintenance check
phase2 maintenance report --check-id check-001phase2 search query --q "seafood importer" --limit 10
phase2 search explain --query "seafood importer" --entity-id ent-001
phase2 search rank --query "seafood importer" --candidate ent-001 --candidate ent-002
phase2 search reindex --entity-id ent-001- This repository currently uses simple JSON-backed local stores for the first working version
- Real persistence can be swapped in later without changing the CLI contract
pytest -qpasses- The current implementation is stable for its present scope