Filesystem provenance / Capture and custody
The file is gone. Its bytes are here.
An agent creates a test file, fixes it and deletes it after the tests pass. Tomorrow, a reviewer needs the version that passed. On a governed file route, policy checks the agent’s grant and the path it wants to change. An operator decides any request held for review. The executor performs the permitted change. With full-resolution capture, the observer retains the file bytes and the writer signs the record that identifies them.
Rebuild a deleted file
A create observation holds the original bytes. An edit carries the old and new versions. A deletion carries the last version and a null after-image. The terminal newline counts toward both byte length and digest.
| Observation | Before | After |
|---|---|---|
| Create | Absent | "pass":false · 31 bytes |
| Edit | 31 bytes | "pass":true · 30 bytes |
| Delete | 30 bytes | Absent |
Open the deletion in the
browser example.
The inspector decodes its before-image. To check the file yourself,
decode the Base64 in before.bytes, count the bytes, then
compute their SHA-256 and compare it with before.sha256.
Its signed event links the file observation to the decision record.
A signed file history to inspect
This 45-record JSONL comes from the Decision Press file-review example.
Its records use source: decision_press and
arf.io/decision-press/simulation-v1 file payloads. Each
record carries the work dependencies used to draw its graph. Its
public key lets a second reader verify each event and file image.
What full-resolution capture has to retain
A filename and a digest let an investigator recognize a file they already possess. Recovering a deleted version takes retained content. The ARF filesystem watcher protocol describes a pre-change snapshot, a delta and references to stored content. A reader starts with the named snapshot, applies the delta and checks the resulting bytes against the post-change digest. A missing base or delta leaves a gap in that version’s history.
A path is only one part of that history. An editor can write a new file and rename it over the old path. A full-resolution history follows both operations and their file identities. It also preserves binary zeroes, encodings and final newlines. If a capture covers file contents alone, restoring ownership, permissions or extended attributes takes separate metadata observations.
ARF already uses exact-byte storage for daemon source frames. Its staging component encrypts the supplied frame, binds it to its plaintext SHA-256 and records a manifest. On restore it checks the manifest and object reference, decrypts the frame and compares the recovered bytes with the original digest. The filesystem watcher design uses stored file versions as its restore units.
Follow an observation off the machine
The local companion signs its observation envelope and keeps it pending while the writer is unreachable. At the receiving end, ARF checks the enrolled sender, gives the observation its own sequence number and signs the ledger event. A signed acceptance receipt goes back to the companion. It names the leaf and the ledger head so an auditor can later check inclusion against a signed tree head.
This gives a reviewer three separate answers. The observer’s signature identifies the sender. The writer’s signature records acceptance. The inclusion proof locates the leaf in a particular tree. A backstop observation records what its capture surface reported. The operator decision in the same work history identifies the grant used for the operation.
Keep the content private and the history checkable
Watchdog computes a digest of the original text before applying its
capture policy. The policy selects individual spans or an entire
request or response for encryption to named
age recipients. In the encryption test, the serialized
record contains ciphertext where the secret appeared. The matching
private identity recovers the original text, and the pre-encryption
digest checks its bytes.
The ledger also supports sealing individual records at rest. An append adds a sealed record. An authorized reader can open it and verify the event signature and its position. Keeping the recipient identity separate from a verifier’s public trust file lets one person check a signed export while another holds the ability to recover the protected content.
What changes when a record is altered?
Change one byte in a signed event and the recomputed leaf changes. Remove a middle record and its successor points to a missing parent. A cleanly truncated prefix can still verify internally. An independently held tree head or signed receipt supplies the earlier commitment needed to detect the missing tail.
In the recorded macOS checkpoint exercise, changing one byte in a copy of the bundle made the second verifier reject record four because it contained an unrecognized field. Read the run or inspect the native signed specimen.