Remove the environment-loaded human-only classifier (class b) #9
All Vouch review confidence checks passed
Residual risk 0.38 = Change Risk (0.45) × (1 − Review Confidence (0.16)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 417 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 26% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.361
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #9"
general
weight: 0.35
claude[bot]
Finding
REVIEW-2026-10.md, pile one, class (b):
scripts/store.py1710-1728 at e480bbd. From the 27 October shortlist: "PARSICA_HUMAN_ONLY_CLASSIFIERimports whatever module the variable names (store.py:1718-1725), and from then on that module is handed every piece of text and every record before it is stored. In Weave's code it can only add refusals, never remove the built-in ones. But it would be a perfect place to copy everything out, and if the import fails, that is swallowed without a word (store.py:1726-1727). It has been there since the first commit,459bd6b."Fix
_optional_classifier()and its module-level cache are removed.is_human_only_textandis_human_only_recordkeep exactly the two open-code floors, the[[human-only]]sentinel and the configuredhuman_only_termssubstring match, and consult nothing else. Nothing is loaded from the environment; a classifier, if one is ever wanted, is a module in this tree and is reviewed with it. The README's Environment paragraph no longer names the variable.Lines closed:
scripts/store.py1689-1699 (the comment and the cache), 1710-1728 (the import), 1757-1760 and 1779-1782 (the two call sites);README.md469-471.Tests
New
scripts/test_no_environment_loaded_code.py, four tests, which run under pytest and standalone:PARSICA_HUMAN_ONLY_CLASSIFIERis never imported while the fence is evaluated (its import marker never appears, and it is not insys.modules). Run against the unchanged store.py this test fails with "the module named by the environment was imported", which is the finding;scripts/importsimportlib, callsimport_moduleor__import__, or reads the variable; discovered, not hand-listed;Changed:
test_human_only_fence.py(its docstring described the optional classifier, andtest_configured_term_blocks_without_any_classifierasserted the variable was unset as a precondition of the old design; both now describe the two floors) andtest_isolation_nowrite.py(stops clearing a variable that no longer exists). No test was removed or weakened.Full suite in the sandbox,
python -m pytest scripts -qon Python 3.13.17: 443 passed, 22 skipped, 3 failed. The three failures are the same pre-existing ones recorded in #8 (test_metadata_preflight.pymid-read swap on 3.13, its suite-bridge echo, andtest_promote_preview.pyexiting 1 standalone without Spirit). Standalone:test_no_environment_loaded_code.py4/4,test_human_only_fence.py10/10.Calls made
CHANGELOG.mdline 161 still describes the variable as part of what v1.0.x shipped; it is left as the record of that release, andREVIEW-2026-10.mdis the running record of the fix.---
_Generated by Claude Code_