| bugs/ | directory | |
| decisions/ | directory | |
| ideas/ | directory | |
| outcomes/ | directory | |
| README.md | file | 5.2 KiB |
The knowledge-graph convention from user-scenarios.md § S1: a directory convention, not a system. Issues, outcomes, ideas, and decisions live with the repo as plain files, cloned and backed up by the same motion that protects the code.
One file per node. Each file is markdown with YAML frontmatter carrying the structured layer:
---
type: idea # outcome | bug | idea | decision
id: ida-eac723e # <prefix>-<short hash>
status: adopted # see enums below
title: One-line human title
created: 2026-07-02
source: PR #1 # optional — where the content came from
---
One typed edge exists now: outcome nodes carry blocked_by (a list of node ids) in frontmatter,
because the live outcome-DAG experiment
(ideas/ida-3145b7a-demand-pressure.md) requires it. The
other typed edges (closes, supersedes, …) come later; until then, prose links in the body are
enough.
| Type | Directory | Prefix | Status enum |
|---|---|---|---|
| outcome | outcomes/ | oc-* | open | in-progress | done | abandoned |
| bug | bugs/ | bd-* | open | closed |
| idea | ideas/ | ida-* | raw | exploring | adopted | superseded |
| decision | decisions/ | dcr-* | proposed | decided | superseded |
IDs are short and hash-derived (e.g. first 7 hex chars of a hash of the slug) — coordination-free,
at the cost of prettiness. Filenames are <id>-<slug>.md.
The same table in checkable form is schema/node.cue, which the knowledge
lint vets every node's frontmatter against.
The graph at any commit presents the design as it stands now. It carries no history of how the thinking got there. That history is in git history, and only there.
Two rules that govern the design documents govern nodes identically, and are stated once, where they already live:
source: follows the same rule; it
names a date and a venue, never a person.nix run .#fmt rewraps; the
flake's prose-format check enforces it.status.ls. Search is grep. History is git log.nix flake check runs knowledge-lint: every node's
frontmatter vetted against schema/node.cue, every filename agreeing with
the frontmatter it carries, and every [[wiki-link]], blocked_by id and relative link
resolving. It reports; nothing stops a broken graph from landing until there is an integrator to
stop it.The lint is not this repo's alone. The flake exposes it as lib.knowledgeLint, so any project that
keeps a graph gets the same check by taking the-valley as a flake input and instantiating it over
its own tree — see the comment on that output in flake.nix for the whole of a
consuming flake, and [[ida-a9e274c]]
(ideas/ida-a9e274c-mandated-checks-come-from-the-instance.md)
for why the derivation travels rather than the convention.