Governance
How this wiki stays true, who owns what, and how humans and AI agents are expected to use it.
What goes where
One fact, one home. If something lives in two places, one of them will be wrong within a month.
| Layer | Home | Owns | Never |
|---|---|---|---|
| Instructions | AGENTS.md — workspace root, Glacez/AGENTS.md, each repo's |
constraints obeyed at edit time, plus pointers | explanation, catalogs, procedures |
| Knowledge | this wiki | business/domain rules, service responsibilities, data ownership, contracts at summary level, decisions, ops narrative | build commands, pitfalls, an API shape transcribed by hand |
| Procedures | the agent's own skills directory (agent/skills/ in Neo's harness) |
how to perform a repeatable task | app knowledge |
| Workflow | GitLab (milestone → task → label → MR) | who holds the ball | a parallel file tree of hand-offs |
The code is authoritative for anything it can state itself: an endpoint, a status enum, a config key. The wiki summarises and links; it never becomes a second copy of the source.
A one-time migration is not knowledge. "How to run this backfill" is a sequence whose subject — the endpoint, the seed table — is itself scheduled for deletion, so documenting it writes a ghost that goes stale within one release and still reads as current truth afterwards. The procedure lives in its task/MR; the wiki records only the state it leaves behind ("the table still seeds currencies whose backfill has not run"). The test before adding a sentence: will it still be true in two releases? If its subject is being deleted, the answer is no.
The hard trigger
A change that alters behaviour — a business rule, a calculation, a workflow, a service responsibility, an API contract or data ownership — updates its wiki page in the same merge request as the code.
Not triggers: refactors, dependency bumps, test-only changes, internal renames, harness edits.
This is enforced as a review finding, not a reminder. The line is carried in Glacez/AGENTS.md, in every repo AGENTS.md header, and in the Factory's guardrails, so no session can claim it never saw it.
Who owns what
Ownership is by role, not by person, so it survives staffing changes. The owner writes the page; the reviewer is the next lane up.
| Area | Owner | Reviewer |
|---|---|---|
overview/, concepts/, workflows/, calculations/, reference/ |
PM | Sohnoun (product truth) |
architecture/, architecture/decisions/ |
Architect | Sohnoun |
services/soa-*, services/glacez-lib* |
Dev backend | Architect |
services/webapp-* |
Dev UI | Architect |
ui/ |
Dev UI | Architect |
roadmap/ |
PM | Sohnoun |
governance/ |
Architect | Sohnoun |
An area with no owner yet is owned by whoever changes the behaviour it describes — leaving the page stale is the worse option.
Deleting or merging a page
A page whose body is a pointer plus a few leftovers is worse than no page: the leftovers are its only
unique content and the part nobody re-reads. Count what the page still says that its target does not; if that
set moves cleanly into the owning page, move it, delete the page, repoint every inbound link
(grep -rn <slug> docs mkdocs.yml — the intra-layer relative links are the ones a concepts/ grep misses),
then drop the nav entry.
A concept page for an entity that already has an architecture page duplicates by construction: open the superseding page's first section, and if it already carries the conceptual frame, a "concept-only rewrite" is the same facts in prose — which is worse than the same facts in lists, because it looks justified. Deleting it also removes a drift source, so count the page's enum against the model classes in the same pass.
Review checklist for a docs MR
- [ ] The page is reachable from the nav (
mkdocs.yml) and linked from its domain index — an orphan page is a draft - [ ] Every claim is sourced from code, config or a repo harness; anything unverified is marked unverified or dropped, never invented
- [ ] Nothing restated that belongs elsewhere: no build commands, no pitfalls, no hand-copied API shape
- [ ]
mkdocs build --strictpasses and relative links resolve - [ ] New term → added to the glossary; changed terminology → the old word removed, not aliased
- [ ] Behaviour change → the wiki delta rides the same MR as the code
- [ ] A deleted page's inbound links are repointed in the same MR (and its nav entry dropped)
How AI agents use this wiki
Read the smallest sufficient context, in this order:
| Role | Mandatory | Budget |
|---|---|---|
| PM | this page, reference/business-rules.md, reference/glossary.md |
~8k tokens |
| Architect | the affected architecture/*, architecture/decisions/*, the affected services/* |
~25k |
| Dev backend | Glacez/AGENTS.md, its repo AGENTS.md, architecture/data-ownership.md, its own services/ page |
~20k |
| Dev UI | Glacez/AGENTS.md, its webapp AGENTS.md, architecture/security-model.md, the API pages it calls |
~20k |
Then:
- Open a run by naming what you loaded, and close it by naming what was missing or contradictory. That report is how this wiki improves: an agent that could not answer a question is evidence of a gap, not a failure of the agent.
- Never read the whole wiki. Eighteen pages of product prose and thirty of architecture is a budget, not a briefing.
- Never invent a business rule, a calculation or a service boundary to fill a hole — say it is undocumented and stop.
The shape of a repo AGENTS.md
Every repo harness file is the same shape, so a reader always knows where to look. It never explains the platform.
# <repo> — Agent Context
<one or two lines: what this repo is, and its lane>
Read `Glacez/AGENTS.md` first for the platform-wide rules. What this component **is** —
responsibility, what it does not own, the data it writes, its surface, its jobs, the decisions —
lives on the wiki: `docs/services/<name>/overview.md`.
This file carries only what is true while editing *this* repo.
**Behaviour change → update that wiki page in the same MR.** Refactors, dependency bumps and
test-only changes are not triggers.
## Layout # modules, packages, routes — the map you need to navigate
## Rules # conventions that must be obeyed here
## Configuration # keys, profiles, ports (no secrets, ever)
## Build & test # the commands, the test shapes, what a green run means
## Pitfalls # numbered; each one has cost time
Content rules:
- No purpose narrative, no flow story, no ownership table — one pointer at the top replaces them.
- Rules and mechanics stay there: anything you must know while typing in that repo.
- A trap that fires at edit time is a pitfall there; a trap that fires at design time is an ADR here.
Adding a page
- Pick the domain:
concepts/(product),architecture/(design),services/(per component),ui/(screen design),reference/(terms and rules),workflows/(a user journey),roadmap/(open questions). - Write the page with stable headings; the H1 is the page title, one topic per page.
- Add it to
mkdocs.ymland to the domain index. A page with no inbound link does not exist. mkdocs build --strictbefore opening the MR.
Decisions
A design decision that was argued is recorded as an ADR under architecture/decisions/ (status, context, decision, alternatives, consequences). Changing a decision means a new ADR that supersedes the old one — history is appended to, never edited. Where the original rationale is not recoverable from the repositories, the ADR says so instead of inventing one.