| 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 the work. |
| 4 | |
| 5 | ## Writing standard |
| 6 | |
| 7 | Write clearly, simply, and without compression that would tax a knowledgeable software engineer. |
| 8 | |
| 9 | - Lead with the plain statement. Say what the thing is in ordinary words before qualifying, justifying, or elaborating it. |
| 10 | - One new idea per sentence. Density is fine when restating what the reader already knows; a new concept gets its own sentence. |
| 11 | - Unpack rather than compress. If a sentence stacks abstractions or asks the reader to infer an unstated step, spell it out. Two plain sentences beat one dense one. |
| 12 | - Use existing vocabulary. Coin a term only when the document defines it at first use and needs it repeatedly. Prefer concrete words to abstract ones. |
| 13 | - Anything a reader must act on — requirements, acceptance criteria, plans, decision records — gets the plainest register of all. |
| 14 | - When capturing someone else's idea, keep their words wherever they are clear enough to stand. |
| 15 | |
| 16 | The test for every paragraph: could an engineer new to this repo read it once and correctly say it back? |
| 17 | |
| 18 | ## Document altitudes |
| 19 | |
| 20 | The docs are layered. Each document stays at its altitude: |
| 21 | |
| 22 | 1. **Premise** — [README.md](./README.md). What this is and why it matters. No mechanisms. |
| 23 | 2. **Problem space** — [design/user-scenarios.md](./design/user-scenarios.md) and [design/requirements.md](./design/requirements.md). What must hold, derived from the scenarios. No solution detail. |
| 24 | 3. **Architecture** — [design/architecture.md](./design/architecture.md). The bets and their rationale, traced to requirements. |
| 25 | 4. **Detailed design** — the remaining files under [design/](./design/). Internals, formats, mechanics. |
| 26 | |
| 27 | When you find detail at the wrong altitude, move it down rather than piling on. Prune elaboration freely — mechanics, taxonomies, and formats can be re-derived, and deleted text lives in git history. Never silently compress insight: a conceptual move or reframe does not re-derive on demand. If an insight does not fit the document it arose in, capture it at full fidelity as a knowledge-graph node and leave a one-line pointer. |
| 28 | |
| 29 | ## Knowledge-graph nodes |
| 30 | |
| 31 | Node mechanics — types, ids, frontmatter, linking — are defined in [.the-valley/README.md](./.the-valley/README.md). For the body: open with one plain paragraph saying what the idea, decision, or outcome is. Context, implications, and open questions follow it. |