π Day 173 β 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.
