A05 — Communication interaction store (30d)

Executor: Composer 2.5

Updated

Ceiling: technical ≤ I2_integrated, autonomy ≤ A0_assisted.

Plan

Add a 30-day SQLite interaction store for the communication agent: write path, retention policy, and export stub for future analytics.

Do

  1. Implement src/forge_communication/store/interactions.py — persist Q/A + metadata.
  2. Implement src/forge_communication/store/retention.py — 30-day purge policy.
  3. Add export stub (JSON/CSV) without analytics UI.
  4. Unit tests for retention boundaries.
  5. Do not add Matrix bot wiring in this phase.

Check

forge-agents/scripts/forge-agents-pdca/check-phase-gate.sh A05

Act

Fix store/retention until A05 gate passes; proceed to Matrix bot (A06).

Refuse

  • A2+ autonomy — store must not trigger outbound actions from stored interactions.
  • Indefinite retention — 30-day cap is mandatory unless ADR override.
  • Second executor — do not redesign schema with a different model without gate re-run.
  • Analytics UI — export stub only; no dashboard in this phase.