🧪 Lab 48 — Capture Event Provenance Before Recovery
Lab Objective
Build a bounded, synthetic capture exercise that preserves original event evidence without turning stored data into automatic authority.
Lab Environment
Use an isolated SQLite database and parsed synthetic updates. Keep the database private and use non-sensitive payloads.
Scenario
An event may need review after a restart. The capture must bind it to the current bot, receiver, authorization home, registration generation, and adapter identity.
Steps
- Create a synthetic update and canonicalize its parsed representation.
- Store its digest, update ID, reason, cursor context, and capture time in one transaction.
- Reopen the database and verify the exact identity binding.
- Test duplicate capture, changed body, foreign source, revoked generation, expiry, and quota exhaustion.
- Copy the database to a synthetic backup, alter a payload, and verify tamper detection.
- Confirm that no replay, skip, release, or disposition API is present.
Expected Evidence
Valid duplicates are recognized without refreshing their age. Mutated, expired, foreign, revoked, or over-quota events are denied. A modified backup does not verify. Uncertain events remain held.
Security Takeaways
Provenance, freshness, and authorization must be checked independently. A database row is evidence, not permission.
Limits
This lab does not prove power-loss durability, live ingress authority, or a production retention policy.
