A unified, git-native, markdown-based knowledge graph for everything in a project that isn't executable code and isn't user-facing documentation: bugs, ideas, principles, decisions, retrospectives, tasks, threads. Equally consumable by humans and AI agents.
Supersedes the original "issues" scope. Issue tracking is one slice of this; treating it in isolation misses the larger problem — a project's institutional knowledge has no good home today and is invisible to agents.
Every artifact is a typed node, stored as a single markdown file:
[[id]] references in the body are human ergonomics only — hyperlinks for editors that render them, grep targets for humans. They are not parsed into edges.Single source of truth for the graph (frontmatter); no parser magic; agents and tooling read structured data without ambiguity.
.the-valley/
bugs/ bd-*.md
principles/ prn-*.md
decisions/ dcr-*.md
retros/ rtr-*.md
ideas/ ida-*.md
tasks/ tsk-*.md
threads/ thr-*.md
schemas/ scm-*.cue
Lives at the root of each repo. Gets cloned with the code. No special storage.
IDs are short, hash-derived, type-prefixed (bd-a3f2). Type is inferable from the prefix without parsing.
A bug:
---
type: bug
id: bd-a3f2
title: Race in integrator queue on same-target requests
status: open
severity: high
created_at: 2026-05-17T10:00:00Z
created_by: ssh:SHA256:abc...
blocked_by: [bd-9c1d]
blocks: []
related_to: [prn-002]
---
When two integration-requested events arrive concurrently for the same
target ref, the dequeue logic has a window where both can be picked up by
parallel handlers. See [[thr-2026-05-17-integrator-race]].
A principle:
---
type: principle
id: prn-002
title: Local checks must be reproducible
status: active
applies_to: [verification, contribute]
enforced_by: [check:reproducibility-audit]
---
All canonical derivations must be bit-reproducible. The reproducibility-audit
check runs nightly and emits a divergence event on drift. Reproducibility is
the prerequisite for transparency log witnessing — without it, the witness's
"I got hash X" matches nobody.
See [[verification.md]] for detail.
The vocabulary differs per node type; common edges:
| Edge | Meaning |
|---|---|
blocks / blocked_by | Work-layer dependency |
related_to | Untyped reference; "see also" |
supersedes / superseded_by | Replaces an earlier node; preserves history |
applies_to | Scope of a principle or decision |
enforced_by | Link from a principle to a check or attestation type |
closes | A commit/attestation that resolves a bug or task |
references | Inbound citation from anywhere |
Each node type has a CUE schema in .the-valley/schemas/. Schemas declare required and optional fields, enum values for status, allowed edge types, etc.
Schemas are themselves versioned with the project. The integrator validates any change introducing or updating a node against its type's schema and rejects malformed ones — schema drift can't happen silently.
Agents producing nodes are handed the schema in their prompt context. Producing valid frontmatter becomes a structured task, not freeform writing.
ls .the-valley/bugs/ shows all bugs. grep -r foo .the-valley/ for full-text. Standard tools, no install.[[]] references natively.valley browse <id> command renders a node with its inbound/outbound edges, navigable by ID.cat .the-valley/bugs/bd-a3f2.md and parse frontmatter. Trivial for any LLM.node-created, node-updated, node-status-changed, node-linked). Agents subscribe for reactive behavior — flag drift, file follow-up bugs, dispatch work.created_by is a key fingerprint; updates are git commits, natively signed.closes: [bd-a3f2]; the integrator's success event emits a node-status-changed for the bug.thr-*); threads are themselves nodes, can scope to any other node or set of nodes. Replaces what GitHub calls "comments."AGENTS.md / CLAUDE.md. Rendered as a projection — render all status: active principles as a markdown file at the repo root for any agent walking in cold. Generated, not authored.enforced_by can require the integrator to refuse changes that don't carry the named attestation. Knowledge becomes load-bearing on integration.Mostly for later, but worth naming so the design can grow into them:
node-stale events past a threshold. Surfaces notes for review before they silently die.superseded_by rather than silent rewrite; the old node remains as history.See openquestions.md — items raised here live under Knowledge graph specifics, Cross-repo coordination, and Storage, retention, and evolution.