REQ-TYPE-002: C ABI enums are append-only and pinned to the Python IntEnum mirrors¶
What it requires
- - 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
How it is met
Implemented by
entropic_api_versionsrc/facade/entropic.cpp:2354
Tests (3)
Reached through calls
3 tests: 3 absent
| test | result | linked by | implementers exercised | calls away |
|---|---|---|---|---|
API version is queryable at runtime | absent | inferred | 1 of 1: entropic_api_version | 1 |
Compile-time API version matches runtime | absent | inferred | 1 of 1: entropic_api_version | 1 |
entropic_api_version returns positive integer | absent | inferred | 1 of 1: entropic_api_version | 1 |