Repair the CodeQL findings introduced by this integration without
dismissing any alert:
- OpenSpec validators: express the empty-symbol check as an explicit
slice instead of an index-versus-length comparison (#2679).
- OpenSpec tests: create file and outside-target fixtures inside private
mkdtemp directories (#2679).
- Antigravity policy test: give the bridge a private TMPDIR/TEMP/TMP so
its edit accumulator never lands in the shared temp directory (#3221).
- Session recording test: write partial bytes through the staging
descriptor and read the saved file through one opened handle (#3952).
Behavior and assertions are unchanged; each focused suite passes.