| 1 | # .the-valley — knowledge v0 |
| 2 | |
| 3 | The knowledge-graph convention from |
| 4 | [user-scenarios.md § S1](../design/user-scenarios.md#s1--my-repos-live-on-my-infrastructure-and-i-can-never-lose-them): |
| 5 | **a directory convention, not a system**. Issues, outcomes, ideas, and decisions live with the repo |
| 6 | as plain files, cloned and backed up by the same motion that protects the code. |
| 7 | |
| 8 | ## The convention |
| 9 | |
| 10 | One file per node. Each file is markdown with YAML frontmatter carrying the structured layer: |
| 11 | |
| 12 | ```yaml |
| 13 | --- |
| 14 | type: idea # outcome | bug | idea | decision |
| 15 | id: ida-eac723e # <prefix>-<short hash> |
| 16 | status: adopted # see enums below |
| 17 | title: One-line human title |
| 18 | created: 2026-07-02 |
| 19 | source: PR #1 # optional — where the content came from |
| 20 | --- |
| 21 | ``` |
| 22 | |
| 23 | One typed edge exists now: **outcome nodes carry `blocked_by`** (a list of node ids) in frontmatter, |
| 24 | because the live outcome-DAG experiment |
| 25 | ([ideas/ida-3145b7a-demand-pressure.md](./ideas/ida-3145b7a-demand-pressure.md)) requires it. The |
| 26 | other typed edges (`closes`, `supersedes`, …) come later; until then, prose links in the body are |
| 27 | enough. |
| 28 | |
| 29 | ## Types, directories, prefixes |
| 30 | |
| 31 | | Type | Directory | Prefix | Status enum | |
| 32 | | -------- | ------------ | ------- | ------------------------------------------------- | |
| 33 | | outcome | `outcomes/` | `oc-*` | `open` \| `in-progress` \| `done` \| `abandoned` | |
| 34 | | bug | `bugs/` | `bd-*` | `open` \| `closed` | |
| 35 | | idea | `ideas/` | `ida-*` | `raw` \| `exploring` \| `adopted` \| `superseded` | |
| 36 | | decision | `decisions/` | `dcr-*` | `proposed` \| `decided` \| `superseded` | |
| 37 | |
| 38 | IDs are short and hash-derived (e.g. first 7 hex chars of a hash of the slug) — coordination-free, |
| 39 | at the cost of prettiness. Filenames are `<id>-<slug>.md`. |
| 40 | |
| 41 | ## The interface |
| 42 | |
| 43 | - **Creating a node is a commit.** Closing one is a commit that flips `status`. |
| 44 | - **Listing is `ls`. Search is `grep`. History is `git log`.** |
| 45 | - No indexer, no events, no validation. **The schemas above are documentation, not enforcement** — |
| 46 | nothing checks them until there is an integrator to enforce them. |