From 5738a08c04b3791eec5a5760ff58b4fb82067d52 Mon Sep 17 00:00:00 2001 From: garrytan Date: Mon, 2 Nov 2026 22:49:01 +0000 Subject: [PATCH] docs: env.kv's lookup-call first-argument exemption (GST-1064 docs audit) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- docs/pregate.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/pregate.md b/docs/pregate.md index 9128fa093..9b18cfada 100644 --- a/docs/pregate.md +++ b/docs/pregate.md @@ -1003,6 +1003,13 @@ those, each with its scope and its reason: end the outer string (GST-738). The pre-push hook sees only added lines, so it scans Python and Dart lines without this exemption and may still warn (MEDIUM, non-blocking) on them. +- The first argument of a lookup call (`get`, `getenv`, `read`, `load`, + `loads`, `open`, `pop`, `fetch`) that is a lowercase file name + (`files.get("key.json")`) or a snake_case key of two or three words + (`resp.json().get("access_token")`) is a name, not a credential (GST-1064). + Any other call's literal (`make_password("orange_monkey_pass")`), a later + argument or fallback (`os.getenv("SECRET_KEY", "orange_monkey_pass")`) and a + kebab passphrase still report. The `secrets` row says `N allowlisted ()` and lists each allowlisted finding with the entry (`allowlisted env.kv (evals/receipts/t1.json, added line