Repository navigation
docs: state that native ABI compatibility is not guaranteed - #5991
Conversation
Document matching SDK artifacts and preserve explicit interface guarantees. Co-Authored-By: OpenAI Codex <[email protected]> <sub>🤖 Co-authored by [Claudius the Magnificent](https://github.com/lklimek/claudius) AI Agent</sub>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
📖 Book Preview built successfully. Download the preview from the workflow artifacts. Updated at 2026-11-19T10:07:22.891Z |
Remove the exception paragraph from the native ABI warning. Co-Authored-By: OpenAI Codex <[email protected]> <sub>🤖 Co-authored by [Claudius the Magnificent](https://github.com/lklimek/claudius) AI Agent</sub>
|
Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post |
|
✅ Final review complete — no blockers (commit c945567) |
There was a problem hiding this comment.
Final review — Phase 1 only (trivial change)
Updated after discussion: 1 finding(s) of this review were settled in the inline threads.
- ✅ Withdrawn: 💬 Identify which FFI crates are covered by “The SDK”
The documentation change is correctly placed and accurately warns that general native C ABI compatibility is not guaranteed. However, its unqualified wording conflicts with documented frozen FFI error-code values, and the scope of “The SDK” is ambiguous because the chapter does not identify the covered FFI crates.
🟡 1 suggestion(s) | 💬 1 0 nitpick(s)
Review provenance
Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: glm-5.3-flash (agent: phase1-reviewer, role: architecture-layering); reviewer 3: glm-5.3-flash (agent: phase1-reviewer, role: ffi-engineer); final verifier: gpt-6.2-sol (agent: sol-gate-verifier, role: final-verifier)
- Triage:
trivialbygpt-6.2-sol(effort low) — This is an eight-line documentation-only change with no runtime, build, consensus, or behavioral impact, so additional review effort is unlikely to add value. - Phase 1 reviewers:
glm-5.3-flash— general (completed, effort high); agentphase1-reviewer,glm-5.3-flash— architecture-layering (completed, effort high); agentphase1-reviewer,glm-5.3-flash— ffi-engineer (completed, effort high); agentphase1-reviewer - Phase 1 model:
glm-5.3-flash— zai quota: 5h 94% left, weekly 65% left; passed overgemini-3.8-flash-high(antigravity quota lookup failed) - Fresh verifier:
gpt-6.2-sol— final-verifier; agentsol-gate-verifier - Phase 2 reviewers: not run (triage rated this change trivial); this review comments and never approves
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review (PastaClaw). How to work through them:
- Verify each finding against the code; fix only what is real, as narrowly as the finding.
- If a finding is wrong, decline it on its thread in one or two sentences; the bot answers once and stops.
- To defer one, link a tracking issue on its thread (or reply asking the bot to file one).
- Suggestions don't block the merge, but most are worth fixing in this PR; judge each on its merits.
- Keep the PR's scope; don't grow it to satisfy hardening suggestions.
- Carried items were raised in an earlier round: read the thread first, and don't re-fix what you already fixed, declined or deferred there. Disputed and deferred items are already handled and are not listed.
In `book/src/contributing/coding-conventions.md`:
- [SUGGESTION] book/src/contributing/coding-conventions.md:522-526: Scope the ABI disclaimer around documented error-code stability contracts
The blanket statement that the SDK does not guarantee C ABI compatibility conflicts with the FFI layer's documented exception for shipped error-code values. `packages/rs-platform-wallet-ffi/ERROR_CODE_REGISTRY.md` states that these integer values are public ABI and must never be renumbered after release; `rs-sdk-ffi/src/signer.rs` likewise documents its numeric error-code space as stable across SDK releases. Without an explicit qualification here, contributors could interpret renumbering a shipped error code as an allowed ABI change, breaking Swift and Kotlin host mappings. Keep the general no-guarantee rule, but point readers to the code-level contracts that remain binding.
- [NITPICK → WITHDRAWN in discussion; do not fix] book/src/contributing/coding-conventions.md:522-526: Identify which FFI crates are covered by “The SDK”
“The SDK” is ambiguous in this repository because multiple native FFI surfaces exist. The adjacent client-layer guidance names its applicable crates, while this subsection leaves readers to infer whether it includes `rs-sdk-ffi`, `rs-platform-wallet-ffi`, and `rs-unified-sdk-ffi`. Naming the crates makes the compatibility rule unambiguous as additional SDK components are added.
|
Ready for review — files with no dedicated owner: QuantumExplorer or shumkov. |
TL;DR: State that the SDK does not guarantee C ABI compatibility between releases.
Issue being fixed or feature implemented
The Book does not state whether native interfaces are compatible across SDK releases. This ambiguity came up in #5951.
What was done?
Added one short subsection to the coding conventions: the SDK does not guarantee C ABI compatibility between releases, and consumers need matching artifacts.
How Has This Been Tested?
git diff --checkpassed; manually checked the warning and upgrade instructions.Breaking Changes
None. Documentation only; no runtime or consensus changes.
Checklist:
structure.rs, regeneratedgrovedb-structure.json, and checked the structure viewer link posted on the pull request🤖 Co-authored by Claudius the Magnificent AI Agent
PR Hygiene ·
c945567book/src/contributing/coding-conventions.md) — QuantumExplorer or shumkovWhen every merge requirement is met, the
PR Hygienecheck passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.