0185. Bypass the native executable cache for FFI
- Status: Accepted
- Date: 2026-11-08
- Plan: M16.6
- Superseded in part by 0210: supported GCC/bfd builds may cache with complete dependency validation.
ADR-0067 requires executable cache keys to cover the compilation input. Manifest shim paths miss transitive includes and compiler-selected link inputs. Changing a nested header can leave a stale executable or FFI helper.
Native builds with externs bypass executable cache lookup and publication. The same driver rule applies to the interpreter's compiled FFI helper. Declared header validation and current compiler/linker resolution still apply. This supersedes the caching provisions in ADR-0151 and ADR-0152.
A dependency scan could restore caching if it captures both compile and link inputs reliably for supported compilers and flags. A partial scan cannot justify executable reuse. Ordinary compilation without externs keeps its existing cache.