Mission
Codify the CloudHistory lesson into AgentTerm as an explicit OpsHistory control plane: local-first event history, adaptive sync, policy-gated replication, redaction priority, context-pack export, and deterministic replay for multi-chat human/agent operations.
AgentTerm already treats every meaningful action as an event and states that the event log is the control plane. This issue makes that control plane first-class instead of implicit.
Core concept
OpsHistory is the local-first operational memory fabric for AgentTerm rooms, threads, agents, tools, browser sessions, shell sessions, GitHub/CI events, Memory Mesh recall/writeback, Policy Fabric decisions, AgentPlane runs, and handoffs.
The CloudHistory lesson to preserve:
- local state first;
- replication controlled by policy, not ambient transport;
- cadence changes with topology;
- deletion/redaction propagates faster than normal writes;
- payloads and sync windows are bounded;
- shutdown/termination behavior is bounded;
- policy can change without rebuilding the operator UI.
Scope
Add docs/specs and implementation seams for:
ops-historyd or equivalent AgentTerm-local event history service/library.
- Event classes for chat, slash command, agent reply, tool call, browser event, terminal event, memory recall/writeback, policy decision, AgentPlane run, GitHub/CI event, artifact ref, redaction, revocation, and handoff.
- Adaptive sync profile schema:
- solo local;
- active multi-agent room;
- multi-room workroom;
- enterprise bridge;
- offline/fog mode.
- Redaction/tombstone priority lane.
- Context-pack export boundary for Memory Mesh and AgentPlane.
explain surfaces for why an event synced, did not sync, entered memory, was denied, or was redacted.
- Deterministic replay dry-run for a room/thread/workroom.
Acceptance criteria
- AgentTerm docs define OpsHistory as the shared control-plane event fabric.
- A machine-readable OpsHistory event schema exists or is stubbed with clear extension points.
- A machine-readable sync policy example exists with bounded windows, payload caps, topology-aware cadence, and redaction priority.
- Matrix event IDs, thread roots, bridge metadata, and encryption posture remain preserved.
- Agent Registry remains the authority for non-human participants.
- Policy Fabric remains the authority for replication, hydration, writeback, bridge, export, and redaction decisions.
- Memory Mesh receives context-pack requests rather than raw unbounded transcripts.
- AgentPlane consumes context packs and emits evidence refs rather than scraping AgentTerm state directly.
Non-goals
- Do not replace Matrix.
- Do not move Memory Mesh, Agent Registry, Policy Fabric, or AgentPlane authority into AgentTerm.
- Do not make every chat message permanent memory.
- Do not replicate raw sensitive payloads by default.
Initial commands to validate when implemented
ruff check .
pytest
agent-term ops-history policy explain --profile active-multi-agent-room --dry-run
agent-term ops-history replay --thread demo-search --dry-run
agent-term ops-history context-pack --workroom pi-demo --topic professional-intelligence --dry-run
Agent note
@copilot @codex This is cross-plane architecture. Keep implementation bounded. Prefer docs, schemas, examples, validators, and fake-backend tests before live networking.
Mission
Codify the CloudHistory lesson into AgentTerm as an explicit OpsHistory control plane: local-first event history, adaptive sync, policy-gated replication, redaction priority, context-pack export, and deterministic replay for multi-chat human/agent operations.
AgentTerm already treats every meaningful action as an event and states that the event log is the control plane. This issue makes that control plane first-class instead of implicit.
Core concept
OpsHistory is the local-first operational memory fabric for AgentTerm rooms, threads, agents, tools, browser sessions, shell sessions, GitHub/CI events, Memory Mesh recall/writeback, Policy Fabric decisions, AgentPlane runs, and handoffs.
The CloudHistory lesson to preserve:
Scope
Add docs/specs and implementation seams for:
ops-historydor equivalent AgentTerm-local event history service/library.explainsurfaces for why an event synced, did not sync, entered memory, was denied, or was redacted.Acceptance criteria
Non-goals
Initial commands to validate when implemented
ruff check . pytest agent-term ops-history policy explain --profile active-multi-agent-room --dry-run agent-term ops-history replay --thread demo-search --dry-run agent-term ops-history context-pack --workroom pi-demo --topic professional-intelligence --dry-runAgent note
@copilot @codex This is cross-plane architecture. Keep implementation bounded. Prefer docs, schemas, examples, validators, and fake-backend tests before live networking.