Files
CyberStrikeAI/docs/en-US/blackboard-context-memory.md
Sycun cfaa95d7bd refactor(runtime): remove Eino and make Pi the sole agent engine
Delete the Eino model adapters, callbacks, middleware, orchestration,
summarization and single-agent runner together with their dependencies.
Chat, batch tasks, workflow Agent nodes and sub-agents now share the Pi
runtime, and dispatch is a single code path instead of an engine switch.

Configuration migrates eino_middleware/eino_skills to runtime/skills and
drops the retired callback settings while old files still load. Settings,
i18n and docs describe Pi only. Also carry the Pi follow-up fixes: empty
required lists are omitted from tool schemas, historical tool results stay
with their call batch, model proxies work over HTTP/1.1, single-query
retrieval skips query expansion, and finalization docs match Pi lifecycle
events.
2026-11-12 17:55:36 +08:00

1.4 KiB

Pi context and project checkpoints

Pi SessionManager retains the full JSONL session and compaction entries. The current model context is a projection of that history, not the only copy of it.

When project memory is enabled and a conversation is bound to a project, a successful compaction_end saves a note/context-* checkpoint containing the summary, conversation/agent scope, session path and real entry ID. SQLite enforces note, tentative and unpinned status, and checks project binding atomically. Rebinding a conversation prevents stale runs from updating its former project's memory.

Generated summaries are not new user instructions. Generic trace exports represent them as explicitly labeled assistant working context. Legacy imports restore user intent only from trusted structured host metadata; summary/template content and text that merely resembles a ledger are not promoted to user input. Literal <summary> text supplied by a user remains user content.

Conversation deletion removes its Pi session scopes without touching other conversations. Uncommitted tool effects after a crash remain uncertain and require execution-record reconciliation. Final findings continue through the existing evidence/review flow.

Implementation and tests: runtime/pi/src/worker.ts, internal/multiagent/pi_memory.go, and the database checkpoint/session tests. See Pi runtime.