docs: AGENTS.md covers the try-once check and make replay

This commit is contained in:
rich committed 2026-11-08 19:39:02 -05:00
1 parent 4b05bf25d5
commit 52f3f09a13
1 file changed
+2 -1
+2 -1
View File
@@ -28,7 +28,8 @@ make map # Map basemap PDB (tools/make_map.py); install-map is the user's,
- **Docker hangs:** Docker Desktop's amd64 emulation sometimes hangs. `docker run` never starts, or a build sits there for minutes. Don't keep retrying. Kill the stuck `make`/`docker run` processes and ask the user to restart Docker. The host tests can also run natively with `cc -std=c99` against `src/protocol.c`, `src/sha256.c` and `src/remote_fmt.c` (see the `test` target).
- **After every link:** `tools/check_sections.py` runs automatically and fails the build on cross-segment references it can catch. A clean build means no warnings: treat a new warning as a bug.
- **Screen edges:** `tools/check_ui.py` also runs on every build. It fails when a form object or label goes past its form or runs into another, when an alert's buttons don't fit across it, or when a literal string drawn with `DrawCut` would be cut (use `DrawWrap` for sentences). For text built at run time, put the line's format in `src/screen_fmt.c` and give `tests/test_screens.c` its longest values. `tools/check_source.py` also runs on every build. It catches function-level `static const` in extra segments, menu items with no handler, clashing shortcuts, forms with no event handler, and repeated IDs.
- **Screen edges:** `tools/check_ui.py` also runs on every build. It fails when a form object or label goes past its form or runs into another, when an alert's buttons don't fit across it, or when a literal string drawn with `DrawCut` would be cut (use `DrawWrap` for sentences). For text built at run time, put the line's format in `src/screen_fmt.c` and give `tests/test_screens.c` its longest values. `tools/check_source.py` also runs on every build. It catches function-level `static const` in extra segments, menu items with no handler, clashing shortcuts, forms with no event handler, repeated IDs, and a request with tries > 1 in a function that transmits or takes a queued message (its `ONCE` list).
- **Firmware changes:** the bridge captures every frame to `$TMPDIR/visor_frames.txt`. `make replay` runs that capture through the parsers and fails on any frame that doesn't parse. Run it after flashing new firmware. Captures hold real messages, so keep them out of the repo.
- **Segment sizes** matter (see below). Check them with `m68k-palmos-objdump -h build/visormesh` inside the image.
## Bench setup