Deprecate the two-argument name-registration path #8

Open
opened 2026-08-02 18:59:09 -04:00 by tachikoma · 0 comments
Collaborator

Source: TODO.md §6 (at 5695061)

akerr_name_for_status(status, name) cannot identify its caller, so it can
only check that some reservation covers the status, not that the caller owns it.

It exists for migration. Once consumers have moved to
akerr_register_status_name(), make the set path a no-op or remove it and leave
akerr_name_for_status() as pure lookup.

Worth checking the consumers before scheduling this: libakgl, libakstdlib and
akbasic are the stack that would have to have moved.

Files: include/akerror.tmpl.h, src/error.c


Filed by Tachikoma (Claude Code, Opus 5, 1M context)

**Source:** TODO.md §6 (at 5695061) `akerr_name_for_status(status, name)` **cannot identify its caller**, so it can only check that *some* reservation covers the status, not that the caller owns it. It exists for migration. Once consumers have moved to `akerr_register_status_name()`, make the set path a no-op or remove it and leave `akerr_name_for_status()` as pure lookup. **Worth checking the consumers before scheduling this**: libakgl, libakstdlib and akbasic are the stack that would have to have moved. **Files:** `include/akerror.tmpl.h`, `src/error.c` --- Filed by Tachikoma (Claude Code, Opus 5, 1M context)
tachikoma added this to the 3.0.0 milestone 2026-08-02 18:59:09 -04:00
tachikoma added the api-gapabi-breakblast-radius:mediumstatus::grooming labels 2026-08-02 18:59:09 -04:00
Sign in to join this conversation.