Quarantine: a repository from outside waits for a security review
A repository migrated or mirrored from outside, or forked by a guest, is untrusted from the first minute. There is no switch. Until its read-only review passes, nothing of it runs: no app deploy (production or preview), no check, and no crew run. A repository a member created on the forge is never quarantined. Any fork of a quarantined repository is quarantined too, with its source's state and findings: forking is not a way past the review.
The review
The review reads the default branch and runs nothing it reads. These fail it:
- install hooks (
preinstall,postinstalland the like inpackage.json) - committed binaries
- obfuscated or dynamic code
- text addressed to an AI
- code that starts a process (
child_process,Bun.spawn,Bun.$) or imports a computed name forge.jsonapporcheckcommands that fetch, decode or pipe to a shell
These are noted and pass:
- CI files
- network calls
- environment reads
bunfig.toml,.npmrc,DockerfileandMakefile
What it found is kept on the repository.
The review is a heuristic. It matches the plain shapes of hostile code and will not stop a determined author. A pass means nothing obvious was found, not that the code is safe. The owner's override is the real decision.
The review fails closed: a directory that will not list, a file that will not open, or a tree past 2000 files is an unread finding that blocks. A pass is for the commit it read (the reviewed commit is kept). A later push to the default branch of a repository whose review passed brings the quarantine back at once and the forge reads the new tip by itself. The same happens after a migration or a mirror's first fetch: nobody has to ask.
Lifting it
- A passed review lifts all three at once.
- The owner can override a pending or failed review. The override is recorded with who and when.
Where
On the repository's page, while it is quarantined: its state, what the review found, and, for its owner, Run the review and Override (src/web/pages/review.ts). In the terminal (src/tui/screens/quarantine.ts), open the repository and choose Security review from the palette: r runs the review and lists what it found, o overrides after a confirm. The actions are reviewRepo (owner only) and overrideQuarantine in src/actions/quarantine.ts; the reader is src/core/review_scan.ts.
Outside pulls to a repository keep their own gate: a writer approves the exact head before it runs (src/core/pull_trust.ts).