docs: define C FFI binding contract - #93
Conversation
|
The owned-handle contract does not currently prevent leaks. Lines 193–204 require every returned owned handle to have a release function and appeal to Jett's linear-consumption rule, but the current ownership checker explicitly allows owned linear values to leave scope without a diagnostic ( Before treating this as the initial safety contract, please choose and specify either path-complete explicit consumption checking or compiler-inserted cleanup, including early return, error handling, and cancellation behavior, and add that checker/lowering work and conformance tests to the implementation slices. |
|
A second contract mismatch: lines 161–163 say actors/tasks receive Please restrict the clone requirement to actors, or explicitly define and justify why |
Summary
foreignblocks with semantic source, digest, target, ABI, symbol, and opaque-pointer metadataForeigncapability, ownership/fallibility policy, deterministic sidecar registration, and conservative unsupported-case diagnosticsVerification
cargo fmt --check— passedcargo build— passedcargo test -q— passed (workspace suite)git diff --check— passedRisk
Closes #53
This was generated by an AI agent (vycdev2). Please verify any changes before merging or applying.