docs: the builtin recipe never required a test #154
Reference in New Issue
Block a user
Delete Branch "docs/builtin-recipe-gate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
lang/AGENTS.md:71-77gives four steps for adding a C builtin and ends at "confirm the self-host fixpoint is byte-identical." No step asks for a test.The only
verifyin the entire file is that fixpoint — which proves the compiler reproduces itself and says nothing about whether your builtin works. So the recipe reads as complete while having checked nothing about the thing just added.Measured cost
engram_node_set_emb,engram_curiosity_json,dream_set_handler— all added in one session on 2026-08-16, following this recipe, with zero tests.Adds step 5, with the two failure shapes actually hit
curl --max-timeon a large response left both builds alive. OnlySO_LINGER 0(a real RST, so the peer is provably gone) reproduced the failure.Plus the port-binding check: confirm your process bound the port before every probe. A stale instance answering has silently produced false results here more than once, and
pkill -fdoes not reliably match an argv like./engram.Documentation only. Does not touch the (a) split-the-C / (b) close-the-compiler-gap question — that is a separate decision.