# Candidate PMEM-WP-0002 Outline Superseded by `workplans/PMEM-WP-0002-local-runtime-facade-and-cli.md`. Status: candidate outline ## Title Local Runtime Service And Markitect Package Bridge ## Purpose Turn the PMEM-WP-0001 planning foundation into a usable local runtime facade. The second slice should remain local-first, but it can expose a concrete API for importing profiles/graphs, planning lifecycle actions, and handing selected activations to Markitect. ## Candidate Tasks 1. Add a small application service that combines contract ingress, profile planning, lifecycle planning, activation planning, and local adapters. 2. Add a CLI command for `phase-memory profile plan `. 3. Add a CLI command for `phase-memory graph activate `. 4. Add optional Markitect compiler integration behind a narrow port. 5. Add JSONL file-backed store and event-log adapters. 6. Add a compatibility fixture that mirrors the Infospace Bench agentic memory pilot in phase-memory terms. 7. Define the first external adapter contract for Kontextual Engine delegation. ## Guardrails - Keep durable writes review-gated. - Keep Markitect schema validation delegated or adapter-wrapped. - Keep service and CLI outputs deterministic. - Do not require live LLM, vector, graph database, or enterprise policy services in the default test suite.