2026-05-18 12:51:35 +02:00
2026-05-18 01:55:34 +02:00
2026-05-04 21:21:31 +00:00
2026-05-04 23:48:16 +02:00
2026-05-04 21:21:31 +00:00
2026-05-18 01:55:34 +02:00
2026-05-18 01:55:34 +02:00

phase-memory

phase-memory is the profile-driven memory operating layer for agentic systems. It interprets Markitect memory profiles as runtime plans, models memory phases, and produces deterministic dry-run actions for retention, refresh, compaction, stabilization, and activation.

The first implementation slice is local-first and dependency-light. It does not launch a service or mutate durable memory stores by default.

Repository Role

Adjacent repositories own nearby but separate concerns:

  • markitect-tool: memory profile, graph, event, and selection contracts plus context-package compilation.
  • kontextual-engine: durable knowledge/runtime records, permission-aware retrieval, audit records, and long-lived storage.
  • infospace-bench: concrete pilots, restart-package evaluation, metrics, and fixture feedback.

phase-memory owns the orchestration layer between them:

  • phase semantics: ephemeral, fluid, stabilized, rigid
  • profile execution planning
  • retention, deletion, refresh, compaction, and stabilization decisions
  • activation planning under token and item budgets
  • adapter, policy, audit, and observability boundaries

Quick Start

python3 -m pytest

The default test suite uses only deterministic local fixtures.

Package Map

  • phase_memory.models: domain records, phases, lifecycle states, diagnostics, and plan envelopes.
  • phase_memory.contracts: Markitect-compatible profile/graph ingress.
  • phase_memory.planner: profile execution planning.
  • phase_memory.lifecycle: dry-run lifecycle planning.
  • phase_memory.activation: Markitect-compatible activation selection planning.
  • phase_memory.ports: runtime port protocols.
  • phase_memory.adapters: deterministic in-memory test adapters.

See docs/architecture.md for the first architecture sketch and SCOPE.md for repository boundaries.

Description
An evolving collection of ephemeral to fluid to rigid working context providing memory capabilties.
Readme MIT-0 492 KiB
Languages
Python 100%