Skip to content

docs: state that native ABI compatibility is not guaranteed - #5991

Merged
lklimek merged 2 commits into
v5.2-devfrom
docs/clarify-native-abi-policy
Nov 21, 2026
Merged

lklimek merged 2 commits into
v5.2-devfrom
docs/clarify-native-abi-policy

Conversation

@Claudius-Maginificent

@Claudius-Maginificent Claudius-Maginificent commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

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?

  • Rendered the chapter with Python Markdown.
  • git diff --check passed; manually checked the warning and upgrade instructions.

Breaking Changes

None. Documentation only; no runtime or consensus changes.

Checklist:

  • I have performed a self-review of my own code
  • My Rust, FFI, WASM, Swift or Kotlin changes follow the coding conventions
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed
  • If I added or changed GroveDB structure, I described it in the area's structure.rs, regenerated grovedb-structure.json, and checked the structure viewer link posted on the pull request
  • If I added or changed a system contract's document schemas, I checked the contract viewer link posted on the pull request

🤖 Co-authored by Claudius the Magnificent AI Agent

PR Hygiene · c945567

  • Bots — thepastaclaw ✓
  • Self-review — not asked of a bot author
  • Build green
  • Approvals
    • files with no dedicated owner (book/src/contributing/coding-conventions.md) — QuantumExplorer or shumkov

When every merge requirement is met, the PR Hygiene check passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.

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>
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added this to the v5.2.0 milestone Nov 19, 2026
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

📖 Book Preview built successfully.

Download the preview from the workflow artifacts.
To view locally: download the artifact, unzip, and open index.html.

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>
@Claudius-Maginificent Claudius-Maginificent changed the title docs: clarify native ABI compatibility docs: state that native ABI compatibility is not guaranteed Nov 19, 2026
@lklimek
lklimek marked this pull request as ready for review November 19, 2026 10:07
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post /skip-bots to proceed without them; blocking findings still need addressing.
Full checklist in the description.

@github-actions github-actions Bot added the waiting-bots Waiting for the review bots to report on this head label Nov 19, 2026
@thepastaclaw

thepastaclaw commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Final review complete — no blockers (commit c945567)

@thepastaclaw thepastaclaw left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: trivial by gpt-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); agent phase1-reviewer, glm-5.3-flash — architecture-layering (completed, effort high); agent phase1-reviewer, glm-5.3-flash — ffi-engineer (completed, effort high); agent phase1-reviewer
  • Phase 1 model: glm-5.3-flash — zai quota: 5h 94% left, weekly 65% left; passed over gemini-3.8-flash-high (antigravity quota lookup failed)
  • Fresh verifier: gpt-6.2-sol — final-verifier; agent sol-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.

@github-actions github-actions Bot removed the waiting-bots Waiting for the review bots to report on this head label Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Ready for review — files with no dedicated owner: QuantumExplorer or shumkov.
Full checklist in the description.

@github-actions github-actions Bot added the ready-for-human Bots have reported, the author has self-reviewed, and the build is green: this needs a human. label Nov 19, 2026
@lklimek
lklimek merged commit c594a4d into v5.2-dev Nov 21, 2026
48 of 49 checks passed
@lklimek
lklimek deleted the docs/clarify-native-abi-policy branch November 21, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Bots have reported, the author has self-reviewed, and the build is green: this needs a human.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants