We made Google's Goldfish review a required CI check. It said no-go on our own spec.
Google's Elephant-Goldfish Model (Apache 2.0) splits AI-assisted design in two. A long-context "Elephant" session writes the design. Stateless "Goldfish" sessions that never saw that conversation review it. We build gua
Google's Elephant-Goldfish Model (Apache 2.0) splits AI-assisted design in two. A long-context "Elephant" session writes the design. Stateless "Goldfish" sessions that never saw that conversation review it.
We build guardrails for AI coding agents that run unattended on a Mac. We liked the method, and we used it on most of our design docs for ten days. Then we stopped. Nothing forced it, and nobody noticed for a week.
So we wrote a small gate that refuses a review that doesn't count:
- The reviewer is the same session that wrote the work.
- The reviewer's prompt already contains the verdict ("verdict: pass").
- The reviewer was given the host's own instruction files (AGENTS.md, CLAUDE.md).
- A blocker or major finding is still open, unless the design is marked "blocked by review" so nobody builds it.
It now runs in CI on every pull request. Every dated design doc needs a review file from fresh reviewers and a JSON receipt that passes the gate, or the check fails.
The first run caught us. Our newest design, a "human-only" screen for changing the guard's rules, had never been reviewed. Two fresh reviewers, one checking readiness and one attacking the design, found 5 blockers between them, and the readiness call was no-go. The spec was written against code that had since moved on, so it ignored a Touch ID approval step and a standing-allow feature that already existed. The attacker's best point was about honesty: a guard that runs as you can't make anything truly "human-only", because a script running as the same user can write the same files. We already list that limit in our docs, and now the spec has to say so too. It's marked blocked until it does.
What we took from it:
- A review graded by the writer isn't a review. Make the machine say so.
- Put the gate in CI, or the habit fades. Ours faded in about a week.
- The most useful findings were about drift: a spec written five days earlier no longer matched the code.
The gate is about 200 lines of Node. It calls no model and installs no plugin; it only checks the receipt. We now ship the same receipt with paid team work, so a client can see that a second reviewer checked every finding.
Mac YOLO Safeguards: https://macyolosafeguards.io/?utm_source=devto&utm_medium=article&utm_campaign=egm-goldfish-gate
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.