Repository navigation
Conversation
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
🎯 Elite quality (97%) — Adds an env-only kill switch that returns an inert guard with the full API surface, backed by focused tests. 📦 Medium 🤖 Written by Claude Code — going by its own attribution. Unknown whether a person read it; agents can report that with the 🔴 High risk — lets anyone setting environment disable all request, response and egress screening in 🙋 Review requested by @mariojgt — the team has been asked. Needs a review. 🛑 Coderbuds triage found a problem that should stop this merge: lets anyone setting environment disable all request, response and egress screening in |
|
/review |
PATCHSTACK_MODEknewblockanddry-run. An app that needed the guard out of the way during an incident had to edit a file and deploy, which is the slowest route at the moment speed matters.What changed
PATCHSTACK_MODE=offswitches the guard off:fetchandnode:httpare left unpatched;It is read when the guard is created, so it is set or cleared with a restart and no code change. It can only be set in the environment:
mode: 'off'as an option does nothing, and the platform cannot choose it.protection.modereadsoff,ruleSourcereads{ ok: false, origin: 'empty' }anddetectionReportingreadsdisabled-by-config.Worth a look
AGENT-INSTALL.mdnow describes the switch and tells an installing assistant not to set it to make a test or a check pass.README.mdand the CLI help list the value.Checked
tests/protect/switched-off-in-environment.test.ts, including that the same guard blocks the same request when switched on, and that no network call is made when switched off.npm testpasses excepttests/field-test-cli-log.test.ts(a temp-path difference on my machine).typecheckandcapabilities:checkpass.Outstanding
AGENT-INSTALL.mdships in the tarball. The hostile run, plusstandardorlovablefor document accuracy, is owed immediately after the release that carries this.🤖 Generated with Claude Code