Skip to content

test: adapter safety runtime tests for SR-12/13/15/16#21

Merged
avrabe merged 1 commit into
mainfrom
test/adapter-safety-runtime-tests
Mar 9, 2026
Merged

test: adapter safety runtime tests for SR-12/13/15/16#21
avrabe merged 1 commit into
mainfrom
test/adapter-safety-runtime-tests

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Mar 9, 2026

Summary

  • Add adapter_safety.rs with 4 targeted runtime integration tests covering previously untested adapter safety requirements (GAP-3)
  • SR-12: Cross-component string parameter passing via adapter — callee sums string bytes
  • SR-13: cabi_realloc targets correct component memory — sentinel byte verification
  • SR-15: list<u32> copy transfers correct byte count — callee sums elements
  • SR-16: list<string> inner pointer fixup after cross-memory copy — callee sums all string bytes
  • Update traceability matrix: SR-12/13/15/16 status not-verifiedpartial, GAP-3 priority highmedium

Test plan

  • All 4 new adapter_safety tests pass
  • All 159 tests pass (155 existing + 4 new)
  • cargo clippy --all-targets clean
  • Pre-commit hooks pass (fmt, clippy, test)

🤖 Generated with Claude Code

Add adapter_safety.rs with 4 targeted runtime integration tests for
previously untested adapter safety requirements:

- SR-12: cross-component string parameter passing via adapter
- SR-13: cabi_realloc targets correct component memory (sentinel check)
- SR-15: list<u32> copy transfers correct byte count
- SR-16: list<string> inner pointer fixup after cross-memory copy

Update traceability matrix: SR-12/13/15/16 status from not-verified
to partial. Lower GAP-3 priority from high to medium since runtime
test gap is now addressed (Rocq proofs remain).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@avrabe avrabe merged commit ca200ba into main Mar 9, 2026
3 checks passed
@avrabe avrabe deleted the test/adapter-safety-runtime-tests branch March 9, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant