From a9fe95726603c52c675c507ae86e0fce12fcc0fb Mon Sep 17 00:00:00 2001 From: garrytan Date: Mon, 2 Nov 2026 00:28:59 +0000 Subject: [PATCH] WIP GST-850: allowlist docs paths, security and money classes (pins not yet repinned; review pending) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- changelog.d/gst-850-allowlist-docs-paths.md | 5 + docs/review-policy.md | 55 ++++- lib/review-allowlist.ts | 217 ++++++++++++++++++ lib/review-collect.ts | 17 +- lib/review-depth.ts | 26 ++- lib/review-risk.ts | 48 +++- lib/review-targeted.ts | 4 +- .../review-risk/gbrain-evals-289.json | 139 +++++++++++ test/helpers/free-fixtures-data.ts | 1 + test/review-allowlist.test.ts | 73 ++++++ test/review-depth.test.ts | 2 + test/review-risk-routing.test.ts | 169 +++++++++++++- 12 files changed, 725 insertions(+), 31 deletions(-) create mode 100644 changelog.d/gst-850-allowlist-docs-paths.md create mode 100644 lib/review-allowlist.ts create mode 100644 test/fixtures/review-risk/gbrain-evals-289.json create mode 100644 test/review-allowlist.test.ts diff --git a/changelog.d/gst-850-allowlist-docs-paths.md b/changelog.d/gst-850-allowlist-docs-paths.md new file mode 100644 index 000000000..1ac0c926a --- /dev/null +++ b/changelog.d/gst-850-allowlist-docs-paths.md @@ -0,0 +1,5 @@ +- **A write-up with one clean chart now gets one reader, and a translation fix gets the docs tier** (GST-850). `lib/review-allowlist.ts` adds two allowlisted docs paths to `/ship`'s review depth: a new SVG whose whole file is built from presentational elements and attributes (no prefixes, handlers, bindings, entities, doctype, scripts or outside references), and a locale resource edit (JSON, ARB, YAML, PO, `.strings`, XLIFF, Fluent or `.properties` under a locale directory) that changes only literal string values with the same keys and placeholders. Both read the whole input in linear time and keep anything they cannot parse as code. Every bypass the R51 review rounds found (string-concat HTML, i18n `.ts`, edits inside `