A spare-machine Gitea forge, hardened, backed up and with CI, as a template. Personal values are placeholders listed in the README.
2.6 KiB
2.6 KiB
Knowledge — read before you code
This project keeps an agent-first wiki at OKF/
(open-knowledge-format). Before extending or modifying mithlond:
- Read
OKF/index.md, then the pages it flags for your task — at minimumSUMMARY.md;ARCHITECTURE.mdbefore structural work. - Use the canonical vocabulary from
OKF/CONTEXT.mdin code, tests, and commit messages. Don't coin synonyms. - Non-trivial changes start from a blueprint in
OKF/blueprints/— write one (blueprint skill) before implementing; cite its number in the commit. - Learned something that contradicts the wiki? Update the wiki in the
same change (supersede, don't delete) or append to
OKF/LEARNINGS.md.
Behavioral guardrails
- State assumptions explicitly; name the simpler approach you are rejecting; surface tradeoffs. Push back when warranted — if something is unclear, stop and ask rather than guess.
- Do exactly what the task requires, nothing more. No speculative abstractions, no drive-by refactors.
- A green test suite is a claim, not a proof — verify against the blueprint's stated check before calling work done.
Simplicity & rigor
- Think before coding — when multiple interpretations exist, present them; don't pick silently.
- Three sieves before a line stays: real (not speculative — no error handling for impossible scenarios, no unrequested flexibility or configurability), good (nameably better for the next reader), minimal (leanest form — stdlib/existing code before new). Burden is on keeping, not cutting. Exceptions that always pass good: input validation, error handling that prevents data loss, security, accessibility, explicitly requested behaviour.
- Surgical changes — match existing style; notice unrelated dead code and mention it, don't delete it; clean up only your own mess (remove orphans your change created, not pre-existing dead code); every changed line should trace to the request.
- Goal-driven execution — turn the task into a verifiable check before starting: "add validation" → "write tests for invalid inputs, then make them pass"; "fix the bug" → "write a test that reproduces it, then make it pass". For multi-step work, state a brief plan, each step naming its own verify. Strong success criteria let you loop independently; weak ones ("make it work") need constant clarification.
Repo conventions — mithlond
TODO(init-octobot): no conventions detected yet — fill in once the repo has code, tests, or a lint config to scan.