Parent: #1
Add opt-in post-session ingestion adapters for supported agent orchestrators.
Acceptance:
Define the supported Claude and Codex hook/event contracts separately.
Require explicit opt-in and an explicit target agent_id; never scan or ingest ambient session directories as a hook side effect.
Read only the exact session artifact supplied by the orchestrator, with regular-file, symlink, size, and format validation.
Filter tool payloads, credentials, and non-conversation records before submission.
Make retries safe so one session is not duplicated after an ambiguous transport failure.
Submit through the public memory-server ingest API with bounded timeouts and redacted diagnostics.
Add synthetic deterministic tests; do not use live sessions, private memory data, the model, GPU, or a running service.
Document installation, disablement, and failure behavior for each orchestrator.
The existing scripts/ingest_sessions.py is a bulk maintenance importer and is not this hook.
Parent: #1
Add opt-in post-session ingestion adapters for supported agent orchestrators.
Acceptance:
agent_id; never scan or ingest ambient session directories as a hook side effect.The existing
scripts/ingest_sessions.pyis a bulk maintenance importer and is not this hook.