Safety, cages, and gates
How turbo-12f separates AI code generation from deterministic gates, offline cages, and tamper-evident audit logs.
turbo-12f starts from a simple rule: AI models propose changes; deterministic scripts decide whether anything passes.
What AI agents do
- Clarify intent: Ask questions until requirements match your exact words.
- Plan & code: Map files, write failing tests, and implement features inside a cage.
- Audit & probe: Run read-only reviews, UX exploration, and security replay recipes.
What deterministic scripts enforce
- Readiness gates: Refuse ambiguous specs, missing quotes, or dirty repositories.
- Test & size rules: Verify new tests fail on base, pass on candidate, kill mutants, and respect diff caps.
- Containment & logs: Strip secrets, block network access, and chain every event by SHA-256 hash.
Three readiness gates before shipping
| Gate | When it runs | What it blocks |
|---|---|---|
| Spec gate | Before you can confirm a request | Missing user quotes, unresolved open points, vague words, or OpenSpec lint failures |
| Project gate | On t12 confirm | Dirty git branches, invalid settings, tampered skill bundles, or broken base builds and tests |
| Release gate | Before merging staging to main | Failing staging checks, missing acceptor sign-off, held requests, or open high-severity bug-bash bugs |
What checks every lane
Before any lane merges into staging, it passes six automated layers inside offline verification cages:
- Test-first proof: New tests must fail on the base branch and pass on the candidate commit.
- Build, lint, unit & mutation: Compiles the app, enforces clean diffs with zero stray comments, runs unit tests, and checks that new tests kill code mutants.
- Browser E2E & visual baselines: Runs real browser scenarios and compares settled screenshots byte-for-byte against
stagingbaselines to catch layout drift or horizontal overflow. - Hygiene (Deslop): Flags placeholder stubs, swallowed errors, duplicate clones, and AI narration filler on changed lines.
- Security (Red team): Scans commits for leaked secrets, checks dependencies against an offline vulnerability database, verifies write routes, and replays any live security finding before blocking.
- Code review: Blocks unrequested file edits or unlisted dependencies, then checks the diff against language and security rule packs.
Offline cages and merge policy
Agent coding and verification commands run inside Landlock cages on Linux or network-disabled Docker containers. Secrets, API tokens, and git override environment variables are stripped before any child process starts.
Even after all automated checks pass, merge policy inspects the patch for four sensitive areas:
data-loss: Database migrations that drop or rename tables or columns, or delete rows.auth: Edits touching authentication paths or auth-tagged work.licence: New packages with dependencies outside the allowed license list.delivery: Changes to deployment, monitoring, or credential settings.
Every step, verdict, cost, and decision writes to an append-only, hash-chained event log that t12 conversation verify checks end to end. Twelve fixed factory rules, including caged commands and human merges to main, cannot be disabled by project settings.
Key takeaway
No single AI model can waive a failing test, hide an unverified edit, or push code to main on its own.