omtex
aien-dev/omtex
Brought by drakestapleton
omtex / AGENTS.md
| 1 | # omtex (Omega library that writes LaTeX papers) |
| 2 | |
| 3 | Shared rules: read https://www.aienos.com/agents/RULES.md first. This file adds what is specific to this |
| 4 | repository; where the two differ, this file wins here. |
| 5 | |
| 6 | ## Scope |
| 7 | |
| 8 | - `lib/omtex.om`: the library. It is Omega; keep it Omega. Globals and texts starting with `z` and functions |
| 9 | starting with `tx` are reserved for it, and papers must not use those names. |
| 10 | - `examples/*/paper.om`: papers. `tools/`: build, pin, compare and Zenodo draft scripts (sh). |
| 11 | `tests/run.sh`: the suite. `evidence/`: measured outputs; never edit a recorded result. |
| 12 | - `docs/DESIGN.md` is the contract for escaping, the math check, listings and refusal codes. Change it |
| 13 | in the same commit as the behaviour. |
| 14 | |
| 15 | ## Rules |
| 16 | |
| 17 | - One compiler: `tools/pin.sh` names the omega-mv commit and omc sha256. Moving the pin means rerunning |
| 18 | `tests/run.sh`, both reproductions (`tools/compare.sh`) and the keyword-parity test. |
| 19 | - Never loosen escaping, the math deny list or listing checks to make a paper build. Fix the paper |
| 20 | source, or extend the library with a checked word and a refusal test (an accepted/refused pair). |
| 21 | - `tools/zenodo-draft.sh` must never publish. Do not add a publish path. |
| 22 | - omc limits seen here: error 12 means split the function (keep about 10 live names); a function |
| 23 | takes at most 6 parameters (error 9); the library is an `om2` unit, where OM-2 words such as `at` |
| 24 | are reserved (`fn f at ulong` is error 16 under `om2`, accepted without it). |
| 25 | |
| 26 | ## Commands |
| 27 | |
| 28 | ```sh |
| 29 | tools/build.sh examples/listings/paper.om build/listings |
| 30 | tests/run.sh |
| 31 | tools/compare.sh ORIG.tex ORIG.pdf build/X/paper.tex build/X/paper.pdf |
| 32 | ``` |