gunk-dev/the-valley

README.md

sourcecaf268220401main's published tip history
2.1 KiB · Rendered
1# .the-valley — knowledge v0
2
3The 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
6as plain files, cloned and backed up by the same motion that protects the code.
7
8## The convention
9
10One file per node. Each file is markdown with YAML frontmatter carrying the structured layer:
11
12```yaml
13---
14type: idea # outcome | bug | idea | decision
15id: ida-eac723e # <prefix>-<short hash>
16status: adopted # see enums below
17title: One-line human title
18created: 2026-07-02
19source: PR #1 # optional — where the content came from
20---
21```
22
23One typed edge exists now: **outcome nodes carry `blocked_by`** (a list of node ids) in frontmatter,
24because the live outcome-DAG experiment
25([ideas/ida-3145b7a-demand-pressure.md](./ideas/ida-3145b7a-demand-pressure.md)) requires it. The
26other typed edges (`closes`, `supersedes`, …) come later; until then, prose links in the body are
27enough.
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
38IDs are short and hash-derived (e.g. first 7 hex chars of a hash of the slug) — coordination-free,
39at 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.