durable-commit
Skill1 starsChanged 49 days agoMITView on GitHub
Design/review gate for durable storage, trusted completion, FPGA/TEE persistence, crash consistency, commit sequencing, epochs, TIDs, anti-replay, and storage acknowledgements. Use when discussing commit, fsync, FUA, flush, persistence, durable completion, storage controllers, FPGA sequencing, TEE/RPMB-like state, immutable logs, or attested storage. Rejects designs that confuse acceptance, visibility, device completion, and durability.
In this repository113 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ac-ideateSkill
- ac-listSkill
- ac-roadmapSkill
- agentbridge-mcpSkill
- almanacSkill
- almquist-shellSkill
- ansible-fleetSkill
- apfsSkill
- apple-siliconSkill
- arena-actorsSkill
- asustor-nasSkill
- a-teamSkill
- atem-miniSkill
- at-tuiSkill
- autoresearchSkill
- babysitSkill
- bonzibuddySkill
- bop-brainstormSkill
- bop-catalogSkill
- bop-onSkill
- bop-teamSkill
- bop-workflowSkill
- bsd-portabilitySkill
- code-refactoringSkill
- codex-personasSkill
- context-graphSkill
- councilSkill
- datadog-backupSkill
- dd-tagsSkill
- delegateSkill
- deming-pdsaSkill
- deterministic-replaySkill
- dispatch-nuSkill
- elixir-gastown-opsSkill
- ergo-ircSkill
- esp32-tang-bridgeSkill
- fleet-evalSkill
- fleet-ircSkill
- freebsd-build-vmSkill
- freebsd-piSkill
- freebsdSkill
- ganttSkill
- gastown-opsSkill
- gastown-slingSkill
- gh-authSkill
- gitea-releaseSkill
- gitea-runnerSkill
- henshuSkill
- irclaw-cluster-opsSkill
- irclaw-research-teamSkill
- irc-taskSkill
- jail-factorySkill
- jjSkill
- jobcard-systemSkill
- kubernetesSkill
- leptosSkill
- loreSkill
- lower-bound-reviewSkill
- macvlan-netSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this skill whenever a design crosses a persistence boundary.
- Distinctive: line 18
Keep these states distinct:
- Distinctive: line 30
Never use one as evidence for another unless the underlying device/OS contract explicitly guarantees it.
- Distinctive: line 34
Keep these concepts separate:
- Distinctive: line 75
Prefer a minimal trusted head:
- Distinctive: line 89
Do not turn transport retries into new logical mutations.
- Distinctive: line 113
Keep on CPU/BSD unless measurement proves otherwise:
- Distinctive: line 124
Before accepting a design, ask:
- Distinctive: line 136
Treat the lower block as a root of durable truth, not merely an accelerator.
- Distinctive: line 153
Read before changing the architecture:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
durable-commit — trusted persistence semantics
Use this skill whenever a design crosses a persistence boundary.
Mandatory model
Keep these states distinct:
proposal
!= CPU/program visibility
!= coherent/DMA visibility
!= device acceptance
!= device completion
!= durable persistence
!= trusted visible completionNever use one as evidence for another unless the underlying device/OS contract explicitly guarantees it.
Canonical identities
Keep these concepts separate:
run_id logical execution identity
request_id idempotency identity
object_id durable object identity
tid durable order/version
content_hash content identity
epoch reset/trust domain
timestamp observation only
path presentation onlyA useful evidence tuple is:
(epoch, tid, object_id, content_hash)Higher layers may attach run/request identity.
Commit rule
A completion may become visible only after its declared durability predicate is true.
TrustedComplete(N) => Persistent(N)For ordered commits:
TrustedComplete(N) => required predecessors are also persistentImmutability
Committed facts are append-only.
Corrections and supersession create new committed facts; they do not rewrite history.
Prefer a minimal trusted head:
(epoch, last_tid, root_hash)with immutable history stored outside the trusted block.
Retry rule
Retries reuse the same logical request_id.
The authoritative persistence layer decides whether that request has already committed.
Do not turn transport retries into new logical mutations.
Recovery review
For every state variable classify:
- volatile
- durable
- reconstructable
- forbidden to reconstruct
Recovery must never invent a commit.
Hardware boundary
FPGA/ASIC logic should own only invariants that earn dedicated hardware.
Good candidates:
- completion gating
- monotonic durable sequence
- epoch / anti-replay
- tiny integrity root
- independent progress/error state
Keep on CPU/BSD unless measurement proves otherwise:
- filesystem
- policy
- recovery strategy
- networking
- agent runtime
- PQC protocol
- generic DMA/SHA/ring implementations
Storage-background questions
Before accepting a design, ask:
- What does the media/controller call "complete"?
- Is volatile controller cache involved?
- What do FUA/flush/barrier semantics actually guarantee?
- What happens across power loss?
- What is the authoritative persistence acknowledgement?
- Can stale completions or old epochs be replayed?
- Can a compromised host forge the claimed completion?
TEE / trusted-boundary rule
Treat the lower block as a root of durable truth, not merely an accelerator.
The host may propose a mutation. It must not be able to fabricate a trusted committed result the lower boundary did not observe.
Do not build
Reject by default:
- duplicate lineage/state databases
- hardware filesystem/path semantics
- general-purpose async I/O APIs
- queue/ring semantics baked into the persistence contract
- Linux as a target architecture
- PQC in the per-commit hot path
- a RISC-V softcore before pure RTL earns the need
Canonical references
Read before changing the architecture:
docs/CONSTRAINTS.mddocs/RESEARCH-INDEX.mdscaffolds/durable-tid/docs/DESIGN.mdscaffolds/durable-tid/docs/FORMAL.mdrfcs/0004-three-superstation-pre-asic-lab.mdrfcs/0005-formal-verification-before-rtl.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

