Skip to content

Commit 936d084

Browse files
fix(research-mcp): add ResearchResource enum to Zig FFI (standards#153) (#121)
Class C ABI gap. `ResearchResource` (4 variants, `resResourceToInt` 1–4) was Idris2-only. `iseriser abi-verify` → exit 0 (3 enums, 6 transitions); `zig build test` → 21/21 green. Closes hyperpolymath/standards#153 Refs hyperpolymath/standards#92, #89 Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a557d7b commit 936d084

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

cartridges/research-mcp/ffi/research_ffi.zig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ pub const ResearchProvider = enum(c_int) {
2727
custom = 99,
2828
};
2929

30+
/// Research resource types — mirrors `ResearchMcp.SafeResearch.ResearchResource`
31+
/// + `resResourceToInt` encoding. Declared here so `iseriser abi-verify` can
32+
/// structurally check the encoding against the Idris2 source.
33+
pub const ResearchResource = enum(c_int) {
34+
res_paper = 1,
35+
res_author = 2,
36+
res_citation = 3,
37+
res_venue = 4,
38+
};
39+
3040
// ═══════════════════════════════════════════════════════════════════════
3141
// Session State Machine
3242
// ═══════════════════════════════════════════════════════════════════════

0 commit comments

Comments
 (0)