skills/treatment-plans/references/security_validation.md
Validation date: 2026-07-23
The repository SECURITY.md entry recorded 11 findings with maximum severity CRITICAL:
The affected files included the former generate_schematic.py, generate_schematic_ai.py, SKILL.md, and medical_treatment_plan.sty.
.env loading, subprocesses, external models, image generation, and cross-skill calls.--fail-on HIGH: PASS
The first direct scan reported a CRITICAL test-only false positive because the synthetic AST test contained literal names for dynamic-execution functions and used a subprocess to exercise --help. The help test was changed to call each parser directly and the prohibited names were constructed without executable references. The final direct scan is clean.
The LLM-assisted pull-request scan reported:
allowed-tools declaration — informational. The field is optional. The compatibility statement and body explicitly limit bundled tools to local standard-library JSON processing, and the direct behavioral scan confirms no network, credential, process, model, or image behavior.templates/ and swapped assets/ and references/ paths that do not appear in the skill. The deterministic documented-local-path test resolves every actual local path and passes.Neither LOW finding permits data transmission or clinical decision-making. No actual CRITICAL or HIGH finding remains. The repository-level SECURITY.md is intentionally not edited in this scoped refresh; its generated snapshot will update through the repository's normal process.
PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover \
-s skills/treatment-plans/tests -p 'test_*.py' -v
uv run skills-ref validate skills/treatment-plans
uv run skill-scanner scan skills/treatment-plans --use-behavioral
uv run python scan_pr_skills.py \
--fail-on HIGH \
--output /tmp/treatment-plans-pr-scan.md \
skills/treatment-plans