AGENTS.md: editor/, gate L4 and make editor
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+10
−1
AGENTS.md+10 −1
diff --git a/AGENTS.md b/AGENTS.md| index 0fb9fac..24002d5 100644 |
| --- a/AGENTS.md |
| +++ b/AGENTS.md |
| @@ -40,6 +40,13 @@ Makefile, estilo's files served straight from the module). |
| `render.go`, `shell.go`, `templates/`, `static/` — the screens, and |
| estilo's files taken straight from the pinned module. `mapa.js` is |
| the whole script layer. |
| +- `editor/` — the page editor (level-up spec §6): `markup.mjs`, a |
| + line-for-line port of `markup/`'s parser; `schema.mjs`, whose `toDOM` |
| + is the server's HTML; and the bundle build, whose output |
| + (`internal/mapa/static/editor.<hash>.js`) is committed. Gate L4 |
| + (`parity.test.mjs`) holds both to `markup/testdata/golden.json`, which |
| + Go writes from the corpus beside it. Change the renderer, the parser |
| + or the schema together, then `make golden` and commit the result. |
| - `internal/mapatest/` — the gates of spec §11, from the outside. |
| `browser_test.go` is behind the `browser` tag. |
| - `scripts/preview/`, `scripts/mutate/` — `make preview`, `make mutate`. |
| @@ -63,7 +70,9 @@ Makefile, estilo's files served straight from the module). |
| - **Screens work with JavaScript off**; destructive actions get their own |
| confirm page. |
| - The gate is `make ci` (vet, gofmt, rastrillo's code budget, tests, |
| - migration check), the same definition CI runs. `CGO_ENABLED=0` |
| + migration check, and `make editor`: npm ci, the bundle rebuilt with no |
| + drift, `node --test`), the same definition CI runs. It needs `node` and |
| + `npm` on PATH. `CGO_ENABLED=0` |
| throughout. Use `make`, not bare `go test`: the Makefile pins the |
| toolchain. `make browser` is gate 7 and `make mutate` proves gates 1, 4 |
| and 8 can fail. |