GIT / REMEMBERING APPROVAL USE
Roll back the code.
Reuse the approval?
The executor stopped just after selecting the code. If the approval receipt is missing, did the change never happen?
Real Git traces compare writing the code selection and receipt separately with selecting one state commit containing both. First choose where execution stopped; then inspect what a rollback preserves.
Independent synthetic experiment · Recorded Git and process observations · No execution on this page
What remained after interruption?
Checking the recording…Each button reads a separate fixture repository. A is that case's baseline code; B is its verified candidate. An OID identifies a fixed object; a ref is the pointer selecting an object.
Inspect these observations and their raw locations
Both return to A. The next attempt differs.
Both rollback paths ran in sequence in the same fixture repository. Each view shows the observations immediately before and after that retry.
Before retry
After retry
Inspect these observations and their raw locations
The reader must follow one captured OID.
These observations surround the first state transition, before the rollback above. The captured OID and a fresh ref read point to different versions.
Combining A from the first observation with the second observation's receipt mixes versions. Reading the captured OID again still returns the original A and empty receipt list together.
Inspect these observations and their raw locations
THE DECISION, AND ITS COST
Keeping memory changes the consumer's contract.
The ref now points to a state document, not deployable code. Consumers must capture its OID once and resolve both code and receipts through it. This is not a drop-in change for existing tools.
Writers must preserve receipts too. This fixture rewrites up to 16 retained receipts and implements no pruning policy. All writes contend on one ref. A code OID in JSON is not a Git GC edge; separate candidate refs retain those objects.
A real worker is stopped between completed Git commands in a synthetic local repository. This does not test power loss during a Git update, deployment or external effects. Scripted approval is not human authentication, and writers able to erase the record remain outside the protection.
Read the design choices and limits →Follow the claim back to the observation.
A separate checker correlates states, receipts, worker phases and ordered Git reads. This page verifies a fixed file hash and reads its values from that JSON. Neither authenticates the recording host.
Runtime and raw recording hash
FOLLOW-UP / APPROVAL DEADLINE
Fresh at the check. Is that enough?
Preserving a receipt does not make the freshness check and Git ref update atomic. A real Git transaction was held after the last successful check, then allowed to commit after expiry. The control that expired before the recheck refused the change.
Expires before the check
- Deadline passes
- Check refuses
- A retained · no receipt
Expires after the check
- Freshness check passes
- Deadline passes
- B selected · receipt kept
Only the worker's logical clock is controlled: there is no five-minute wait or system-clock change. Permission to start while fresh and a deadline to finish are different contracts. The prepared Git hook is an observation tool, not a production remedy.
Read both controls and the design decision →