CODE-017: API-underuse + small-reimplementation cleanup (2026-06-11 research sweep)

A research-only per-dir sweep (11 agents, each reading ABC.md + the INDEX/headers first) found 17 spots that reimplement or under-use existing abc/dog APIs — 0 high value, 9 medium, 8 low. No bugs; the value is ABC-style consistency (typed slices over memcmp/ptr-arith, wrapped FILE.h over raw POSIX, one helper over a duplicate). The big reimplementations already landed (sha1↔hex, dog hex/dir/enc, commit parsing), so this is the incremental tail. CODE-017 does the SOLID parent-project findings behavior-preserving in ONE worktree; the abc/ findings (URI.c, TLV.c) are DEFERRED to a separate gated abc review (core, just-touched by URI-003). Conservative: skip any marginal one-off that would only churn. See CLAUDE, Issues.

Issues

Small reimplementations + pervasive API-underuse the sweep verified.

Blockers

abc is core — the URI.c/TLV.c findings are NOT in this worker's scope; surface them separately for review (or WONTFIX the justified memset ones). Everything else is parent-project, one beagle commit. Value is low-to-medium across the board — keep the change behavior-preserving and resist adding churn.

Planned

One worker, parent-project only, behavior-preserving; skip-and-note anything marginal.