rust-storage-durability
Skill4 starsChanged 2 months agoApache-2.0View on GitHub
Implement or review Rust WAL, recovery, snapshots, transactions, storage epochs, and derived indexes. Use for persistence correctness and measured storage-path changes.
In this repository81 other files it gives its agents.
- agent-cli-designSkill
- agent-tool-boundariesSkill
- behavior-first-implementationSkill
- bounded-prototypeSkill
- bounded-pr-sliceSkill
- building-fdd-validationSkill
- context-efficiencySkill
- cross-language-contractsSkill
- cross-platform-agent-instructionsSkill
- design-interviewSkill
- diagnosis-loopSkill
- domain-languageSkill
- edge-cloud-syncSkill
- handoff-continuitySkill
- immutable-pr-reviewSkill
- memory-context-hygieneSkill
- module-designSkill
- orchestrateSkill
- owner-decision-gateSkill
- parallel-portfolioSkill
- pr-gate-loopSkill
- pyo3-async-lifecycleSkill
- pyo3-buffer-performanceSkill
- pyo3-free-threadingSkill
- pyo3-ownership-errorsSkill
- pyo3-wheel-releaseSkill
- python-api-typingSkill
- python-async-concurrencySkill
- python-ci-releaseSkill
- python-data-boundariesSkill
- python-packaging-environmentsSkill
- python-performanceSkill
- python-pytestSkill
- python-reviewSkill
- python-test-designSkill
- python-threading-workersSkill
- python-workflowSkill
- react-components-stateSkill
- react-performanceSkill
- repository-groundingSkill
- rust-api-designSkill
- rust-async-concurrencySkill
- rust-build-diagnosticsSkill
- rust-ci-releaseSkill
- rust-memory-layoutSkill
- rust-nextestSkill
- rust-numerics-simdSkill
- rust-performanceSkill
- rust-protocol-codecsSkill
- rust-python-bindingsSkill
- rust-reviewSkill
- rust-test-designSkill
- rust-unsafe-ffiSkill
- rust-workflowSkill
- rust-workspace-dependenciesSkill
- shadcn-react-componentsSkill
- shadcn-svelte-componentsSkill
- simplify-existing-codeSkill
- source-verificationSkill
- svelte-components-runesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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 17
Do not weaken acknowledgment ordering merely to improve throughput.
- Distinctive: line 29
Use a fault-injection seam around relevant I/O boundaries where available.
- Distinctive: line 31
Test live versus replayed/restored results and compare indexed retrieval with a trustworthy unindexed/exact path.
- Distinctive: line 39
Read storage ownership boundaries when changing persistence or derived indexes.
≈ “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
Rust Storage and Durability
Identify what an acknowledged operation promises before optimizing storage. Follow the repository's on-disk format, mutation funnels, and current compatibility policy. A greenfield policy permits deliberate redesign, not accidental data loss or unsupported durability claims.
Map authority and commit order
Trace validation, authoritative mutation, WAL/write staging, durability action, visible commit, index maintenance, and acknowledgment. Determine which state is primary, which is derived, and what a reader can observe between steps. Establish behavior for partial I/O, sync errors, process termination, and concurrent recovery/checkpoint activity.
Distinguish writing to a userspace buffer, flushing to an OS handle, requesting file synchronization, and obtaining the platform/device guarantees the product claims. flush and File::sync_all answer different questions. Atomic replacement is not automatically durable publication. Review file and directory synchronization, rename behavior, locking, and filesystem assumptions on each supported native OS.
Do not weaken acknowledgment ordering merely to improve throughput. If batching/group commit is proposed, specify the durability mode and how concurrent callers learn success or failure. Keep retries and idempotence explicit after an ambiguous storage result.
Preserve readers and derived state
Hold the required epoch/read guard from authoritative file selection through actual snapshot/WAL consumption. A saved path is not a retention lease. Review lock order across recovery, rotation, prune, backup, and callbacks; avoid re-entering mutation while holding a guard that excludes it.
Keep indexes and caches synchronized with every mutation path, not just the common insert method. Cover update, delete, rollback where supported, replay, restore, compaction, schema defaults, and rebuild. Derived accelerators must not become an unvalidated replacement for authoritative values. Check stale IDs, generations, candidate sets, and deterministic tie-breaking after changes.
For parser/planner or retrieval optimizations, preserve the language and value contract: types, null/missing distinctions, duplicate behavior, ordering promises, errors, and visibility. Do not introduce new grammar or a new query policy as an incidental fast path.
Design failure evidence
Use a fault-injection seam around relevant I/O boundaries where available. Verify truncated/corrupt data handling, selected authoritative state, and deterministic diagnostics. Fail closed or recover only as documented; do not silently skip corruption to produce a healthy-looking database.
Test live versus replayed/restored results and compare indexed retrieval with a trustworthy unindexed/exact path. Inject failure around the commit boundary, snapshot publication, and retention changes. A process-kill test leaves OS caches intact; label it process-crash evidence, not a power-loss proof.
Measure the correct operation
Separate in-memory mutation, buffered WAL append, durable commit, checkpoint, startup recovery, and query performance. State batch size, durability mode, dataset size, cache state, memory, and write amplification where measured. Include tail latency and recovery cost when a foreground optimization defers work.
Return preserved invariants, failure tests, measured results, and platform or failure-mode gaps. Do not publish durability claims beyond the tested contract.
Read storage ownership boundaries when changing persistence or derived indexes.
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.

