book/AUTHORING.md
Michael Hanke dd90c76ce5
Some checks failed
Lint / Lint with vale (push) Failing after 28s
Lint / Lint with codespell (push) Successful in 33s
Build and publish / Build site and deploy on success (push) Successful in 1m18s
feat: code2data pattern
This is mostly a stress-test of the book's didactic and structural
concepts. This is, by design, no howto. But it appears to fit relatively
nicely in the existing scaffold.
2026-11-16 20:12:22 +01:00

125 lines
13 KiB
Markdown

# Authoring guide
A conceptual entry point for people who will write or revise chapters of the ORINOCO handbook. It is about **what belongs where, and how a piece of prose connects to the rest of the book**. It deliberately says nothing about Quarto syntax, the site build, or rendering — those live in the repository's technical docs and CI.
If you read one thing before contributing, read [How to read this book](chapters/orientation/read-this-book.qmd); if you are stuck on a term, the [glossary](chapters/appendix/glossary.qmd) is the canonical list.
---
## 1. What this book is for
ORINOCO composes independently developed, independently governed components into something a real project can run, own, and trust. The book exists to explain the **integrated, interoperable whole** — not any single part.
Three commitments that should tint every page you write:
- **Composition is the point.** The interesting difficulty is never one tool; it is how parts fit. A chapter that could be pasted into a generic tool manual is probably in the wrong book.
- **This is a living document.** Most chapters are stubs with a fixed shape. Leaving an honest `TODO` in the right place is more valuable than smooth filler. Placeholder product names and unresolved `TBD`s are expected; the [status & roadmap](chapters/appendix/status-and-roadmap.qmd) page exists to drain them.
- **Platform-scoped, not a replacement.** This book documents what a component means *inside ORINOCO*. A component's general documentation stays upstream; link to it, do not restate it.
---
## 2. Where does this go? (the one decision that matters)
Placement is two independent decisions. First, **what you are writing about** — a *plane* of the reference frame, in one of two *domains*. Second, **what the reader is doing** — a Diátaxis *mode*. The plane and domain fix the canonical home; the mode fixes the tone and the part.
The reference frame has three **planes** and two **domains** (defined once in the [glossary](chapters/appendix/glossary.qmd)):
| Plane (what it is) | Established in | Instantiated / used in |
|---|---|---|
| **Component** — a deployable artifact | its [roster](chapters/reference/roster/index.qmd) page (Part IV) | patterns, how-tos |
| **Capability** — a responsibility some component fills | a concept in Part I; tabulated in the architecture map | patterns, how-tos |
| **Pattern** — a whole deployment situation | a catalog page in Part V | points at the components and capabilities it composes |
Those planes describe two **domains**, which the book interleaves but never merges:
- **The information model** — *what a site knows*: schemas, identification & provenance, use-case data models, and the ontology & curation that keep the vocabulary converging. The first domain stretch of Part I; schema in the [information-model reference](chapters/reference/information-model.qmd).
- **The platform** — *how a site runs*: roster, capability map, deployment patterns. The capability and how-sites-relate stretches of Part I, Part IV, Part V.
Then pick the **mode** — it decides the tone and the shape more than the topic does:
| If your material is… | Mode | Home | Litmus test |
|---|---|---|---|
| a guided first success, end to end | **Tutorial** | Part II | "You will end up with a working thing." Teaching, not reference. |
| steps to accomplish a specific task now | **How-to** | Part III | "Do this to get that." Assumes the reader already wants to. |
| a fact to look up (name, option, schema, role) | **Reference** | Part IV | "What *is* this?" Describes, never instructs. |
| understanding *why* it is built this way | **Explanation** | Part I | "Why does this exist?" Reasoning and context. |
| a whole, recognisable deployment situation to place on the grid | **Pattern** (explanation) | Part V | "Here is a situation you might recognise." Describes the shape; the *steps* live in a how-to. |
The most common placement error is smuggling reference into a tutorial, or instructions into a concept. When a page starts to serve two modes, split it and link the halves. A *why* is stated once in the relevant concept, then *referenced*, never re-argued.
---
## 3. The shape of the book
- **Orientation** (front matter, unnumbered) — `why`, `system-at-a-glance`, `read-this-book`. Sets motivation and vocabulary. Keep it short and inviting; it sells the reading, not the platform.
- **Part I · Concepts & Architecture** — the canonical *why* and the canonical *definitions*. This is where a term or a model is **established**; everywhere else uses it. It follows one arc: the frame (the integrated whole), then **what a site knows** (the information model, including ontology & curation), then **how a site runs** — its capabilities (records & knowledge, data substrate, platform foundation, including orchestration) — then **how sites relate** (the overlay model, which carries the federation posture, and deployment & governance).
- **Part II · Tutorials** — guided firsts, one per persona. Learning-oriented; a payoff at the end.
- **Part III · How-to guides** — task-oriented, per persona. Administrators have a deliberate, *locked* operation set (install, configure, upgrade, backup/restore, monitoring, user-management, deploy-under-constraints, gateway, hub-node, onboard-a-partner, many-small-studies, code-to-data-execution). Adding to that set is a structural decision, not a casual one — propose it first.
- **Part IV · Reference** — lookup only. The **roster** gives every component the same three slots: its role *in this platform*, the configuration ORINOCO exposes, and what is explicitly *out of scope — see upstream*. Cross-cutting reference (information-model schema, configuration, API & integration) sits beside it.
- **Part V · Deployment patterns** — the catalog of *described* deployment situations: points on the coordinate grid, not sets of steps. This is the book's sanctioned **extension point**: a new scenario earns a new pattern page, written against a fixed template (context & constraints → capabilities composed → carrots → governance → overlay & federation → what is hard). Standing a pattern up is a **how-to** (Part III); the pattern page names its how-to and the how-to names the pattern back.
- **Appendices & glossary** — stable reference furniture: glossary, deployment templates, troubleshooting, migration, status & roadmap, colophon.
---
## 4. Use the vocabulary that already exists
The book's coherence rests on a small, controlled vocabulary. Use these terms exactly; do not coin synonyms.
- **site** — one independently operated and governed deployment. This is the noun; prefer it over "instance", "installation", "tenant".
- **overlay** — the umbrella posture. Gateway, peer-overlay, and hub-node are all *overlays*; say "overlay" when the specific shape does not matter.
- **capability** — a responsibility (capture & ingest, curation & vocabulary, records & knowledge, data substrate, orchestration, delivery & consumption) that any of several components can fill. A site running only some capabilities is normal.
- **plane / domain** — the reference frame: the three planes (*component*, *capability*, *pattern*) describe two domains (*information model*, *platform*). Use these words exactly; do not coin *application*, *module*, or *service* for a plane (reusable *assemblies* such as a project CMS are what a pattern instantiates, not a plane of their own).
- **peer overlay / hub node** — the two federation shapes; define once, use consistently.
For describing *what shape a deployment has*, there is exactly one vocabulary: the **seven-axis coordinate system** (authority, resources, relation to infra, standards, data posture, consumers, economics). Every pattern places itself on these axes rather than inventing its own words. **Differences of deployments are differences of coordinate, not of kind** — so a new scenario is normally a new *point on the grid* (a new pattern), not a new *category*.
Statuses are explicit everywhere, so a reader never guesses whether something exists yet: **`available`** (in use) · **`preview`** (usable, rough) · **`planned`** (not built). A name written in `code` is a product name still to be decided; `TBD` marks a placeholder to resolve.
---
## 5. The posture (how to say things)
The argument the book makes — and the tone that follows from it:
- **Carrots, not sticks.** Describe the local usefulness that makes a workflow worth adopting; do not lean on compliance or obligation.
- **Capture once, reuse widely, return value.** The economic engine of the whole platform: one act of entry, many downstream payoffs.
- **Integration ≠ unification.** Connect systems around shared information; do not collapse everything into one silo, and do not leave every repository isolated.
- **Be honest about friction.** Every pattern has a "what is hard" section and every deployment has real cost. Naming it builds the trust that a salesy page destroys. There are no marketing pages in this book.
- **Personas are roles, not headcount.** One person may wear several roles; a small project may share one person across all of them. **Agents are a *consumer* of the platform, not a persona** — document them under API & integration and the hub-node pattern, never as a new persona.
---
## 6. Weaving a page into the fabric
The book is read by jumping, so connections are the substance as much as the prose.
- **Respect reference direction — one way.** Worked examples and how-tos *reference* concepts and the roster; concepts stay canonical and do not depend on the pages that cite them. A pattern links to a component to say "this shape uses it"; the component's roster page does **not** reach back to enumerate the patterns that use it. Point toward the canonical home, never away from it.
- **Pair a pattern with its how-to (the one sanctioned two-way link).** A pattern *describes* a shape (Part V); a how-to *stands it up* (Part III). Where a pattern can be stood up, link them both ways — the pattern carries a "Stand it up: …" pointer, the how-to a "Described by: …" pointer. This pairing does not bend the rule above: both faces still defer to the same canonical home (the shared coordinate-system block), so nothing depends on the other directionally.
- **Say a thing once.** Shared blocks — the coordinate system, the capability map, the roster table — are written **once** and *included* wherever they apply. If you feel the urge to restate one, you are about to create a drift bug: link or include it instead.
- **Anchor each pattern to the grid.** A pattern opens with its position on the coordinate system and links the components it composes; it does not re-explain the axes or the components.
- **When you add a scenario, point back to it from the concept that motivates it.** A worked example is discoverable through the concept that gives rise to it and through the pattern catalog — plant that pointer as you add the page, rather than leaving readers to stumble in.
- **Links inside a shared block** (text meant to be included from several host chapters) are written **site-root relative** (starting from the book root), so they resolve the same way from every page that pulls them in.
---
## 7. Extending the book
- **A new scenario** → a new pattern page in Part V, on the fixed template, placed on the coordinate grid, cross-linked to the concepts that motivate it. If the scenario can be stood up, pair it with an administrator how-to and link the two.
- **A new component** → a roster page with the three fixed slots, plus one row in the canonical roster block. Keep it platform-scoped.
- **A new reusable definition** → write it once as a shared block and include it everywhere it applies; never copy it around.
- **A new term** → add it to the glossary and use it consistently everywhere; if it competes with an existing term, that is a signal to reconcile, not to add.
If your change would add a persona, add an administrator how-to to the locked set, or introduce a new word for a deployment *kind* — raise it before writing; those are structural choices that affect the whole book.
---
## 8. Quick self-check before you submit
- [ ] I picked a mode (tutorial / how-to / reference / explanation / pattern) and the page serves only that mode.
- [ ] It documents ORINOCO's usage, not a component's general manual (upstream is linked, not restated).
- [ ] Canonical terms are used exactly; any deployment shape is described on the coordinate axes, not with a new coinage.
- [ ] Statuses are honest (`available`/`preview`/`planned`); undecided names are backticked; no `TODO` I could responsibly fill today is left.
- [ ] Links point toward canonical homes; nothing restates a shared block; the page is reachable from a concept or the catalog; if it is a pattern that can be stood up, it links its how-to and the how-to links back.
- [ ] Tone is concrete and candid — carrots, real costs named, no marketing.
House spelling and brand names (`ORINOCO`, `Dump Things`, `shacl-vue`, `DataLad`, `forgejo-aneksajo`, `Quarto`, `JavaScript`) are enforced automatically in CI; you do not need to memorize them, but expect a nudge if a name is off.