Implementations¶
oryxkb¶
oryxkb is the first implementation. It is an open-source Python tool. It reads
the oryxkb/ folder, checks it, renders cards for agents, tracks changes between builds, resolves
citations, and sends and reads the messages between projects. The JSON Schema in the
spec's schema/ folder is generated from its models for now.
Commands¶
The commands an agent runs; a person runs review to settle a decision. This is the one place on the site that gives
their syntax.
| Command | What it does |
|---|---|
oryxkb check [<path>] [--strict] |
Checks the whole oryxkb/ folder (project, split files and facts); a path checks one file, and a memo's citations. --strict exits non-zero on errors, for CI. |
oryxkb card <project>/<Dataset> |
Renders the card of one dataset: the consumer card by default; --audience maintainers for the project's own card with every fact; --column <col> for one column. oryxkb card <project> lists the project's datasets. |
oryxkb facts <id> [--full] [--all] |
Answers "what must I know about this column or dataset?": the facts naming the id, then its dataset, then project-wide facts (Lookup). --full adds each fact's detail, which the card marks (+detail); --all includes retired and expired facts. |
oryxkb declare [<Dataset>] [--apply <Dataset>:<item>[=<value>]] |
Reads the data and proposes declarations (grain, units, columns); --apply writes one into project.yaml or oryxkb/datasets/<Dataset>.yaml, for example --apply Rents:grain. It never writes facts.yaml: the agent writes facts. |
oryxkb news [--brief] |
The brief: change notices to ack, then decisions and other news for the project. |
oryxkb ack <notice id> --note "<what you checked or changed>" |
Acks a change notice; the note is required. |
oryxkb request <project>/<Dataset>[#col] --kind <kind> --text "<request>" |
Files a request to the producing project; <kind> is schema, definition, pipeline, data or question. |
oryxkb decide "<statement>" --scope <project>/<Dataset>[#col] --owner "<person>" |
Proposes a decision, in use at once, provisional. --scope team:<concept> for a firm-wide one; --rationale, --evidence and --alternative add the reasons. It prints the id (h-...) for the fact's see. |
oryxkb decisions |
The decisions that apply to the project's imports, plus firm-wide team: ones. |
oryxkb discuss <id> --text "...", oryxkb vote <id> revisit --reason "..." (or keep), oryxkb summarize <id> --text "..." |
Discuss a decision, vote, and write the summary that puts it in a person's queue. |
oryxkb review <id> --accept [--note "..."] (or --reject) |
A person settles or rejects a decision; oryxkb review alone lists the queue. |
Messages need a hub; everything else works with none.
Try it. Install steps are in the oryxkb docs. Then, from a project folder:
oryxkb check
A file with one typo reports:
ERROR oryxkb/project.yaml:45: datasets.Rents.columns.rent_b: unknown key 'descripton'
1 dataset; 1 warning (1 ERROR)
1 thing to fix: oryxkb/project.yaml:45: datasets.Rents.columns.rent_b: unknown key 'descripton'
A walk-through: Write your first file.
How an agent uses it¶
The spec is tool-neutral about delivery. In every session an agent does the same three things:
- At the start, it reads the brief (
oryxkb news) and acks the notices it has checked. Before it uses a dataset, it reads the dataset's card (oryxkb card <project>/<Dataset>), andoryxkb facts <id>for a column. It treats an[unreviewed]fact or a provisional decision as in force, says it is not yet signed off, and re-checks it against the data when that is cheap. - While it works, it writes a fact when it learns something the next agent needs: a
quirkfor something odd, afindingfor a result, arecipefor how to do a task. For a house rule (a definition, a basis, a join) it writes aruleorquirkwithstatus: proposed; with a hub it also runsoryxkb decideand puts the id insee. Aquestionis only for a choice it has no answer to propose. Unfinished work: aquestionfor what is open, afindingwithseepointing at the notebook for what is done. When the code changes (a renamed column, a new unit), it updates the declarations (oryxkb declare) and the dated fact. - At the end, it runs
oryxkb check, fixes what it reports, and commits the files. The next session starts from them.
A person reviews when they choose: the agent sets status: reviewed and reviewed_by on the facts the person
confirmed, and on nothing else.
How the card reaches the agent. With the oryxkb Claude Code plugin (oryxkb, no public page yet; it needs oryxkb on the PATH) and a hub, it is automatic: at
session start the agent gets the brief and a reminder to read cards first; then, when code it writes or a command it
runs names another project's dataset, the plugin adds that dataset's card lines (cautions, decisions, citation ids,
changes) once per build. Reading code or notes does not trigger it. Without the plugin, the agent runs the commands
itself: put the three steps above in the agent's instructions file. An oryxflow run also prints the decisions that
apply to the project's imports.
The plugin also installs a skill that teaches an agent these steps and asks, for every source fact, whether a consumer's answer would be wrong without it.
Where the spec and the tool disagree, the difference is a bug in one of them. Report it. Which one wins is not settled while the spec is a draft.
Not built yet in oryxkb: telling the agent to compare the grains of both sides before a join (the card shows each grain and the declared joins).
Others¶
Services and other tools that implement the spec will be listed here. To be listed, an implementation reads
version 1 files and treats unknown x- keys as allowed.