mirror of
https://github.com/elementalsouls/Claude-BugHunter.git
synced 2026-11-07 10:36:04 -10:00
feat(grounding): enforce sources/report_count (GROUNDING_STRICT = True) (#69)
Phase 4b — the one-line flip. 4a backfilled every skill and shipped the validator in warn mode; main now reports 0 grounding warnings, so grounding issues move from warnings to errors: a skill missing `sources:` (or a hunt-* missing an integer `report_count:`) now fails CI. Verified: lint_skills.py still 0 errors on current main; removing a skill's `sources:` now produces an ERROR and exit 1. Co-authored-by: Sachin Sharma <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This commit is contained in:
1 file changed
+2
-2
@@ -42,8 +42,8 @@ MAX_BODY_LINES = 500
|
||||
# Grounding enforcement. Every skill must declare `sources:`; hunt-* skills (built
|
||||
# from disclosed reports) must also declare an integer `report_count:` (0 is fine
|
||||
# when `sources:` justifies it — e.g. a pattern library or research-derived skill).
|
||||
# Phase 4a ships this as WARNINGS while the backfill lands; 4b flips it to errors.
|
||||
GROUNDING_STRICT = False
|
||||
# Phase 4a shipped this as WARNINGS while the backfill landed; now enforced as errors.
|
||||
GROUNDING_STRICT = True
|
||||
|
||||
# --- real-secret patterns (kept tight to avoid flagging documented regexes) ---
|
||||
SECRET_PATTERNS = [
|
||||
|
||||
Reference in new issue
Block a user