Skip to content

Instantly share code, notes, and snippets.

@macros
Created November 1, 2026 18:30
Show Gist options
  • Select an option

  • Save macros/a0969b17e4342fd4ddaade671b65bbb7 to your computer and use it in GitHub Desktop.

Select an option

Save macros/a0969b17e4342fd4ddaade671b65bbb7 to your computer and use it in GitHub Desktop.
OKF like git wiki conventions
# Conventions
How this wiki works — for humans and agents. This is the contract that keeps
the wiki the source of truth.
## Source of truth
This wiki (`computers.wiki.git`) is the single source of truth for fleet
documentation. Humans read and edit via the web UI. Agents work in a
persistent clone at `~/fastly/computers-wiki`:
- **Pull before reading** (`git pull --rebase`) — web edits land as commits.
- **Push after writing** (`git pull --rebase && git push`).
- No sync jobs, generators, or CI touch this repo — it is plain git + markdown.
The main repo carries no prose docs; `docs/README.md` there points here.
## Page taxonomy
| Section | Purpose | Mutability |
|---|---|---|
| `Home` | Fleet at a glance + master index | living |
| `Guide/…` | Operator's guide — how the stack works | living |
| `Runbooks/…` | Step-by-step procedures | living |
| `Specs/YYYY-MM-DD-topic` | Design docs | frozen once implemented |
| `Plans/YYYY-MM-DD-topic` | Implementation plans | frozen once done |
| `Specs`, `Plans` | Index tables (date, page, status) | updated on every new/changed page |
| `Conventions` | This page | living |
One topic per page. When a Guide page starts covering two subsystems, split it.
## Status lifecycle
Every Spec/Plan page begins with a bold one-line header:
```
**Status:** Draft → Approved → Implemented → Superseded
```
plus `Historical` (imported notes / outcome not tracked), `In progress`, and
`Done` (plans). Rules:
- An `Implemented` spec is frozen. Corrections go into the relevant Guide
page; the spec gains `· Superseded-by: [link]` in its header if replaced.
- Specs link their plan and vice versa in the same header line.
- Keep the `Specs`/`Plans` index rows in sync when statuses change.
## Freshness and confidence
- Guide and Runbook pages start with `*Last verified: YYYY-MM-DD*`. Update the
date whenever you confirm the page against reality, even without edits.
- Unwritten pages exist as stubs marked `STUB, not yet written` — gaps are
explicit, never invisible.
- Mark individual claims you have not confirmed inline as `(unverified)`
rather than letting them read as fact.
- Guide pages end with a **Design history** section linking the specs they
distill.
## Grounding claims
Specs and Plans get executed, printed, and ordered from. A number in one is a
promise, so every Spec/Plan page carries a **Grounded facts** table near the top,
before the tasks:
```markdown
## Grounded facts (checked YYYY-MM-DD)
| Claim | Value | Source | Checked |
|---|---|---|---|
| Web UI port | 8080 | upstream `internal/conf/config.yaml` → `webserver.port` | 2026-09-02 |
```
- Every number a task, a gate, a purchase, or a cut depends on goes in the table.
- **The source must be re-fetchable by a reader** — a file path *plus the key*, a
URL, or the command you ran. "The docs" is not a source.
- Anything not in the table and not derived from it is marked `(unverified)` in
the sentence that makes the claim. Unverified is a legitimate state; silently
confident is not.
- A number derived from other numbers is cross-checked by a **second independent
relation**, and the check is shown.
- When a review corrects a page, the page gains a **Corrections** table — the
drift record is how the next plan avoids the same class of error.
The main repo's `.claude/skills/grounding-a-plan` is the working procedure
(where each class of fact actually lives, the repo names plans keep getting
wrong, and the review method).
## Forgejo wiki filename encoding
The wiki repo is **flat** — real subdirectories are invisible to the wiki UI
(verified on Forgejo 15.0.6). Hierarchical titles are encoded in filenames:
- `/` in a title → `%2F` in the filename.
- A `.-` suffix before `.md` makes dashes literal; without it dashes render
as spaces.
- Example: title `Specs/2026-07-08-miniflux-host-design` ↔ file
`Specs%2F2026-07-08-miniflux-host-design.-.md`.
- Links use the title form without extension:
`[text](Specs%2F2026-07-08-miniflux-host-design.-)`.
## Agent rules
- Read the relevant `Guide/`/`Runbooks/` pages before working on a subsystem.
- [Guide/Agent-Operations](Guide%2FAgent-Operations.-) is the operational
contract: diagnosis via the observability APIs, the change/verification
ladder, and when to PR or ask before pushing.
- New specs and plans are wiki pages (`Specs/…`, `Plans/…`) — this overrides
the superpowers default of `docs/superpowers/` in the main repo.
- **Landing the plane:** if the session changed operational reality (new
service, changed flow, new trap discovered), update the affected Guide and
Runbook pages and push this repo before finishing.
- Agent-private memory keeps session lore and working notes; durable
operator-facing facts get promoted here.
## Lineage
The structure borrows from the OKF knowledge-bundle discipline (per-item
status, explicit gaps, hand-maintained indexes, provenance links) but stays
human-first: no YAML frontmatter, no machine IDs, no separate change log —
page history and git cover that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment