Skip to main content

senfd and sate

Build and test Coverage PyPI Documentation License REUSE status MCP server

senfd reads the NVMe specifications, the PDFs NVM Express publishes or the .docx its members hold, and makes a data model of them: every command with its dwords and fields, every data structure, register, feature, log page and table of values, each fact citing the document, section, figure and page it is from.

The .pdf and .docx documents go through senfd's stages, read, normalise, define and merge, into one data model

The data model is JSON validated by a schema, and the same documents give the same data model every time.

sate is an expert with the knowledge of that data model. Ask it about a command, a field, a register, a feature or a log page, in a session with completion or on the command line, and it answers at once, citing the figure with a link to its page of the specification on nvmexpress.org, to check the answer against:

senfd making the data model of the eleven specifications ratified in 2026, and sate answering three questions from it

Use

$ pipx install senfd
$ senfd ~/specs/*.pdf --output ~/.cache/senfd
$ senfd-query lint
$ sate "Which bits of CDW12 of Write are PRINFO?"

with the eleven specifications ratified in 2026 downloaded from nvmexpress.org into ~/specs. The documentation has a page for each step: install, make the data model, lint the documents, ask the expert, and with a language model.

What it gets right

Asked 71 questions with one exact answer each, an opcode, an identifier, a status code, a bit or a byte offset, mostly about what the revisions ratified in 2026 added or moved:

  • sate, by the words of the question: 71 of 71 right, in 4 ms each, for free.

  • sate with Llama 3.1 8B on a CPU choosing the lookup: 70 of 71 right, none wrong, one not known, in 2.7 s each, for free, on your own hardware.

  • Claude Opus 5.5 and Sonnet 5.5, from memory and told to answer: 15.3 and 32.3 wrong on average, stated as surely as the right ones, at USD 0.10 and 0.02 a run and 0.66 s and 0.13 s a question.

The benchmark shows every answer, and how to run it again. senfd is the third tool of its line, after nvme-lint and Spex; the documentation says what it changed.

The names

senfd reads the Specification documents, Extracts and Normalises their Figures, and makes a Data model. sate is Senfd Ask The Expert. Senf is Danish for mustard, as the logo’s documents drenched in it show, and a sate is what comes of the marinade.

Notices

Not endorsed by NVM Express. senfd is an independent project. It is not endorsed by NVM Express, Inc., nor made by it, and its data model is not a publication of NVM Express. NVM Express and NVMe are trademarks of NVM Express, Inc.

Experimental: use at your own risk. senfd is young, what it says can be wrong, and nothing it says replaces the specification. Every answer cites the figure it is from: check it there before you rely on it.

Derived from the specifications, and under their terms. The data model senfd makes is derived from the NVMe specifications, so the notice printed in each specification governs it as it governs the specification. Members of NVM Express, Inc. may use it subject to their Participation Agreement and the Company’s Intellectual Property Policy and Bylaws. To anyone else, the notice grants only the right to review, refer to or cite the specification, and not to make derivatives of it or implement it: you must be a member of NVM Express, Inc. to make the data model or make use of it.

The specifications are NVM Express’s, under its copyright. NVM Express publishes the ratified specifications as PDF, which anyone can download from nvmexpress.org, and senfd reads those. The .docx of the specifications are available to members of NVM Express only; senfd reads those too, for those who hold them, and gives the same data model of either. The .docx is the simpler source, as it states what the PDF only shows, and it is the one an editor has while a specification is under revision: run on the draft, senfd-query lint lists what does not read as data, for the figure to be corrected before it is ratified rather than after.

Neither the documents nor anything made from them is distributed with senfd. Its examples and most of its tests use synthetic documents of its own. The tests that read the specifications, and the CI job checking what senfd makes of each, download the public PDFs from nvmexpress.org into a cache, checked by their SHA-256, and upload neither them nor the data model made of them, which the job merges and has sate answer the benchmark’s questions from, failing unless every one is right. Make your own: the commands above give the same data model the CI job checks.

Metadata

Release files for senfd 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for senfd 0.10.0
File Size Uploaded Provenance Actions
senfd-0.10.0.tar.gz 140.0 kB Without provenance Details for senfd-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for senfd 0.10.0
File Interpreter ABI Platform Actions
senfd-0.10.0-py3-none-any.whl Python 3 none any Details for senfd-0.10.0-py3-none-any.whl

Total release size: 261.4 kB

Release files / senfd-0.10.0.tar.gz

Download URL senfd-0.10.0.tar.gz
Size 140.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fbe216a666a0aeaba34405b706f5a06fe573f6633db7b140923648429a9a4b69
BLAKE2b-256 checksum
How to use checksums
b0bfd9a4b345cdb9137520e3d7b5301ec33ae55b786c71d88cf5927b92aaad76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / senfd-0.10.0-py3-none-any.whl

Download URL senfd-0.10.0-py3-none-any.whl
Size 121.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c52d5017f834cdb894289cbc5d975881c672795a585fde1bfbbd6095e720e6b
BLAKE2b-256 checksum
How to use checksums
939ca12183ca72a9af03252f7ee46793a489e5293ac17c17507a6c5a2c84312f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for senfd 0.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page