e919cb082be162983e7eafb46c79424c6a6086e0
Modules differ from libs structurally: they have no consumable public API (their hooks like M.update are engine-contract, documented in the engine spec, not in the module). The README convention for modules replaces the ## API section with ## Controls + ## Demonstrates. This adds tier=module validation in validate_readme_structure with MUST-sections H1, Abstract via Module-ID badge, Topology + Topology- Block markers, Controls, Demonstrates, References. Order-check ensures Demonstrates precedes References (no API exists to check). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
lib-core.api-discovery
Pure-Lua-Library for surface-discovery (extract M.* from Lua source) and README-parsing (extract documented API from markdown). Sandbox-safe — no FS, no side-effects. Used by Sporel's --lint CLI mode.
Version: 0.1.0
Description
Languages
Lua
100%