| 1 | # Working in this repository |
| 2 | |
| 3 | Most of the-valley is prose: design documents and knowledge-graph nodes. How you write is most of |
| 4 | the work. |
| 5 | |
| 6 | ## Writing standard |
| 7 | |
| 8 | Write clearly, simply, and without compression that would tax a knowledgeable software engineer. |
| 9 | |
| 10 | - Lead with the plain statement. Say what the thing is in ordinary words before qualifying, |
| 11 | justifying, or elaborating it. |
| 12 | - One new idea per sentence. Density is fine when restating what the reader already knows; a new |
| 13 | concept gets its own sentence. |
| 14 | - Unpack rather than compress. If a sentence stacks abstractions or asks the reader to infer an |
| 15 | unstated step, spell it out. Two plain sentences beat one dense one. |
| 16 | - Use existing vocabulary. Coin a term only when the document defines it at first use and needs it |
| 17 | repeatedly. Prefer concrete words to abstract ones. |
| 18 | - Anything a reader must act on — requirements, acceptance criteria, plans, decision records — gets |
| 19 | the plainest register of all. |
| 20 | - When capturing someone else's idea, keep their words wherever they are clear enough to stand. |
| 21 | - The docs speak from the project, never about its participants. State a position as the project's |
| 22 | own, and refer to people only by role (the integrator, the instance's human operator). Prior art |
| 23 | and external authors may be cited freely. |
| 24 | |
| 25 | The test for every paragraph: could an engineer new to this repo read it once and correctly say it |
| 26 | back? |
| 27 | |
| 28 | ## Document altitudes |
| 29 | |
| 30 | The docs are layered. Each document stays at its altitude: |
| 31 | |
| 32 | 1. **Premise** — [README.md](./README.md). What this is and why it matters. No mechanisms. |
| 33 | 2. **Purpose and principles** — [docs/purpose.md](./docs/purpose.md). The operator's goals, the |
| 34 | principles that govern the system, ownership boundaries, and what makes a change fitting or |
| 35 | unfitting. |
| 36 | 3. **Architecture and security** — [docs/architecture.md](./docs/architecture.md) and |
| 37 | [docs/security.md](./docs/security.md). What runs in production, how each gate along the path of |
| 38 | a change protects the hosts, and which executable check verifies each guarantee. |
| 39 | 4. **Roadmap** — [docs/roadmap.md](./docs/roadmap.md). Sequenced milestones, what each step unlocks, |
| 40 | deliberately deferred ideas, and open decisions. |
| 41 | 5. **Archive** — [archive/design/](./archive/design/) and |
| 42 | [archive/.the-valley/](./archive/.the-valley/). Read-only historical exploration and |
| 43 | knowledge-graph nodes kept so stable node IDs (`dcr-*`, `ida-*`, `bd-*`, `oc-*`) cited in code, |
| 44 | schemas, and commit history continue to resolve. |
| 45 | |
| 46 | When you find detail at the wrong altitude, move it down rather than piling on. Prune elaboration |
| 47 | freely — mechanics, taxonomies, and formats can be re-derived, and deleted text lives in git |
| 48 | history. Never silently compress insight: a conceptual move or reframe does not re-derive on demand. |
| 49 | |
| 50 | ## Knowledge-graph nodes |
| 51 | |
| 52 | Historical knowledge-graph nodes live under [archive/.the-valley/](./archive/.the-valley/), with |
| 53 | node mechanics — types, IDs, frontmatter, and linking — defined in |
| 54 | [archive/.the-valley/README.md](./archive/.the-valley/README.md). Each node opens with one plain |
| 55 | paragraph stating the idea, decision, bug, or outcome, followed by context, implications, and open |
| 56 | questions. |
| 57 | |
| 58 | **Proposal (open decision for the operator):** Keep `archive/.the-valley/` frozen as read-only |
| 59 | history and record active design decisions directly in |
| 60 | [docs/architecture.md](./docs/architecture.md), [docs/security.md](./docs/security.md), and |
| 61 | [docs/roadmap.md](./docs/roadmap.md). When a durable insight or subtle bug discovery arises that |
| 62 | does not belong in the four top-level docs, capture it as a new node in |
| 63 | `docs/decisions/<id>-<slug>.md` validated by `schema/node.cue` and leave a one-line pointer in the |
| 64 | relevant doc. |