Provenance and Recovery: Knowing Who Changed What, and Undoing It
๐ Topic
A baseline for the whole agent stack: every change attributable to the agent and task that made it, and every change reversible through a documented recovery path.
๐ฏ Goal
Be able to answer two questions about anything on this machine: "who made this change, under which task?" and "how do I put it back?" โ without archaeology.
๐ What I Did
I made provenance and recovery a stated baseline instead of an accident of git.
Main areas covered:
- established the provenance rule: every agent-produced change carries its task id, agent identity, and timestamp
- audited existing artifacts against that rule and filled the attribution gaps
- documented per-area recovery paths: how to roll back a code change, a doc reconcile, a config edit, and a model routing change
- used git isolation so rollback of one task's work does not drag unrelated changes with it
- tied rollback docs to the permissions model: what an agent may change is bounded by what can be recovered
- tested a real rollback instead of trusting the writeup
๐ Key Cybersecurity Connections
Provenance is the forensic question โ incident response starts with "what changed, when, by what." A system where agents modify things without attribution is a system where investigation is guesswork.
Recovery is the resilience question. And the coupling matters: granting an agent write access to something unrecoverable is a different decision than granting access to something with a tested rollback. Permissions should follow recoverability.
๐ Investigation Questions
- Can every recent change be traced to a task and an agent?
- Which writable areas have no tested recovery path?
- Does rolling back one task's change disturb anything else?
- How long does attribution take โ seconds, or an afternoon?
- Is there anything agents can touch that backups do not cover?
๐จ Detection Opportunities
Checks for a provenance baseline:
- change present with no task attribution
- writable area missing from the recovery documentation
- rollback rehearsal failing or never performed
- attribution metadata diverging from git history
- agent write into an area classified unrecoverable
Example:
project=provenance-baseline
signal=unattributed_change_in_agent_area
risk_area=untraceable_modification
triage=match_change_to_task_log_or_treat_as_incident
๐งญ MITRE ATT&CK Techniques
Possible mappings for what this baseline defends against:
- T1565 โ Data Manipulation
- T1070 โ Indicator Removal
Attribution and tested recovery are the counters to both.
๐บ Visual Investigation Diagram
Change appears
โ
Attribution: task id + agent + time
โ
Scope: what else did this task touch?
โ
Decision: keep or roll back
โ
Recovery path, already documented and tested
โ
State restored, record kept
โ Challenges
The audit was humbling: plenty of older artifacts had no attribution at all. Backfilling taught me why provenance has to be automatic at write time โ nobody reconstructs it accurately later.
๐ What I Learned
I learned that a recovery document is a hypothesis until it has been executed once. The tested rollback found a missing step the writeup was confident about.
โก Next Steps
- Enforce attribution at write time in every agent lane
- Rehearse one recovery path per week until all are proven
- Align the permissions model with recoverability classes
- Alert on unattributed changes in agent-writable areas
๐ง Reflection
This closed a loop the whole stack depends on: autonomy is only safe when every action is attributable and reversible. It is the difference between an agent making changes and an agent leaving evidence.
๐งฉ Lessons Learned
What worked
Stating provenance and recovery as a baseline, then auditing against it.
What broke
Older artifacts had no attribution, and one rollback doc missed a step.
Why it broke
Both were written as good intentions, not enforced or rehearsed mechanics.
Fix / takeaway
Attribution at write time, rollbacks rehearsed for real, permissions bounded by recoverability.
๐ Skill Progression Context
This supports my cybersecurity progression because attribution, timeline reconstruction, and tested recovery are the exact mechanics of incident response and change control in any environment.
๐ TL;DR
Every agent change now signs its work and comes with a rehearsed undo.