REQ-TYPE-002: C ABI enums are append-only and pinned to the Python IntEnum mirrors

← Requirements

What it requires

  1. - GIVEN the entropic_error_t enum WHEN all values are collected THEN no two values are equal, and ENTROPIC_OK == 0. - GIVEN enums.h parsed for entropic_agent_state_t WHEN compared against the AgentState IntEnum THEN every (name, value) pair matches, there are no Python-only entries, and the cardinalities are equal. - GIVEN error.h parsed for entropic_error_t WHEN compared against the EntropicError IntEnum THEN every C code has a Python entry at the same integer value. - GIVEN hooks.h parsed for entropic_hook_point_t (sentinel excluded) WHEN compared against EntropicHookPoint THEN names and values match in both directions. - The Python-side comparison parses the C headers as text rather than importing the module, so it runs without librentropic.so present.
tier
NOT_RUN

Where it lives

  • src/facade1

See it on the map

How it is met

implemented bytestsresultentropic_api_versionAPI version is queryable at runtimeabsentCompile-time API version matches runtimeabsententropic_api_version returns positive integerabsent

Show on the map

Implemented by

Tests (3)

Reached through calls

3 tests: 3 absent

testresultlinked byimplementers exercisedcalls away
API version is queryable at runtimeabsentinferred1 of 1: entropic_api_version1
Compile-time API version matches runtimeabsentinferred1 of 1: entropic_api_version1
entropic_api_version returns positive integerabsentinferred1 of 1: entropic_api_version1