You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sweep-classifiers: four scripts default INPUT/BLOBS_DIR to a fixed /tmp/drift-survey path (hardcoded_tmp) #1243
The four survey classifiers under scripts/sweep-classifiers/ default their input and blob directories to a fixed path under /tmp, which Hypatia content_patterns/hardcoded_tmp flags (CWE-377 class). The findings have been acknowledged in .hypatia-baseline.json since 2026-09-22 with the note "pending a mktemp conversion pass"; PR #1072's mktemp pass covered other scripts and missed these. Their previous tracker (#936) is closed, so this issue is the live tracker the acks point at.
Baseline entries (4): hardcoded_tmp on each of the four files, expires_at 2026-12-22, tracking_issue this issue.
Expected
One of:
Require the input path as an argument (no /tmp default) and derive BLOBS_DIR with mktemp -d or from ${XDG_RUNTIME_DIR:-${TMPDIR:-/tmp}} as the launcher standard does; or
Archive the four scripts under 9-archive/ if the 2026-09 drift survey is finished (they read a one-off survey dump); or
Record the default as intentional with an inline # hypatia: allow content_patterns/hardcoded_tmp -- <reason> on each line, and drop the four baseline acks.
Option 2 is the elegant arm if the survey is not re-run: the scripts are dated tooling, not gates. Owner's call between 1 and 2.
Propagation
Repo-local. No estate copies.
Context: packet P1.1 of docs/reorg/2026-10-14-tidy/README.adoc (re-acking the entries expiring 2026-10-21); supersedes #936 as the tracker for these four acks.
Activity
chore(hypatia): P1.1 — retire dead baseline acks, re-ack the 2026-10-…