When a scoped conversation exceeds 300 retained messages, Harmonia prunes old turns and stores only metadata boundaries: counts, time range, and linked durable IDs. Summaries do not retain transcripts, drafts, approvals, credentials, or generated claims. Dashboard and Telegram histories never merge because the interface is part of the scope key.
Memory Bank writes accept only typed candidates linked to durable Firestore evidence.
Eligible
Rejected
explicit operator decisions;
verified publishing outcomes;
measured engagement takeaways with durable record IDs; and
workspace-and-brand-scoped preferences supported by evidence.
raw transcripts or source media;
prompts and draft text;
credentials or provider responses;
errors and unverified claims; and
legacy facts without exact workspace, brand, job, kind, and record references.
Retrieval is bounded to five facts and formatted within a fixed character budget. A cross-scope or malformed result fails visibly instead of entering a model prompt.
Firestore remains the recovery source after a crash or Pub/Sub redelivery. Memory Bank improves later judgment; it cannot reconstruct or overwrite workflow truth.
The scope, eligibility, and failure contracts below are verified offline. Do not claim live
cross-job memory until a real Agent Engine write, a later same-scope retrieval, and a different-scope
negative retrieval have been captured from the authenticated deployment.
Each cognitive operation derives a stable, non-content-bearing Agent Engine session ID. A restarted
worker retrieves that exact session before continuing; concurrent creators converge on the same ID.
The caller payload is copied only when the session is first created, and retrieved session objects are
never mutated in process. This preserves managed event continuity for a single operation without
allowing session state to authorize, replay, or advance the Firestore workflow. Durable stage leases
still decide whether a crashed operation may continue or must be quarantined as uncertain.See the exhaustive state ownership and retention matrix.For the complete optimisation strategy—deterministic projections, prune + spill, artifact retrieval,
operation fencing, and crash-boundary measurements—see
Context and memory continuity.