| 1 | # .the-valley — knowledge v0 |
| 2 | |
| 3 | The knowledge-graph convention from [user-scenarios.md § S1](../design/user-scenarios.md#s1--my-repos-live-on-my-infrastructure-and-i-can-never-lose-them): **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. |
| 4 | |
| 5 | ## The convention |
| 6 | |
| 7 | One file per node. Each file is markdown with YAML frontmatter carrying the structured layer: |
| 8 | |
| 9 | ```yaml |
| 10 | --- |
| 11 | type: idea # outcome | bug | idea | decision |
| 12 | id: ida-eac723e # <prefix>-<short hash> |
| 13 | status: adopted # see enums below |
| 14 | title: One-line human title |
| 15 | created: 2026-07-02 |
| 16 | source: PR #1 # optional — where the content came from |
| 17 | --- |
| 18 | ``` |
| 19 | |
| 20 | 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](./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. |
| 21 | |
| 22 | ## Types, directories, prefixes |
| 23 | |
| 24 | | Type | Directory | Prefix | Status enum | |
| 25 | | --- | --- | --- | --- | |
| 26 | | outcome | `outcomes/` | `oc-*` | `open` \| `in-progress` \| `done` \| `abandoned` | |
| 27 | | bug | `bugs/` | `bd-*` | `open` \| `closed` | |
| 28 | | idea | `ideas/` | `ida-*` | `raw` \| `exploring` \| `adopted` \| `superseded` | |
| 29 | | decision | `decisions/` | `dcr-*` | `proposed` \| `decided` \| `superseded` | |
| 30 | |
| 31 | 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`. |
| 32 | |
| 33 | ## The interface |
| 34 | |
| 35 | - **Creating a node is a commit.** Closing one is a commit that flips `status`. |
| 36 | - **Listing is `ls`. Search is `grep`. History is `git log`.** |
| 37 | - No indexer, no events, no validation. **The schemas above are documentation, not enforcement** — nothing checks them until there is an integrator to enforce them. |