File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ def load_gate_config(project_dir: Path) -> dict:
6868 return json .loads (candidate .read_text (encoding = "utf-8" ))
6969 except (json .JSONDecodeError , OSError ):
7070 pass
71- return {"enforcement" : "block" , "gate_mode" : "legacy" }
71+ return {"enforcement" : "block" , "gate_mode" : "legacy" , "_no_config" : True }
7272
7373
7474def get_config_value (config : dict , key : str , default = None ):
@@ -325,6 +325,8 @@ def run_gate(
325325 return 0 , ""
326326
327327 config = load_gate_config (project_dir )
328+ if config .get ("_no_config" ):
329+ return 0 , "" # No gates.json — not a toolkit-managed project
328330 gate_mode = config .get ("gate_mode" , "legacy" )
329331 enforcement = resolve_enforcement (
330332 config .get ("enforcement" , "block" ),
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ passes only when `fix_now` is 0 and mechanical test/lint re-runs pass.
187187Then run:
188188
189189```
190- python3 hooks/finalize_report.py assess .scratch/assess_<slug>/findings.json
190+ python3 /Users/jvalin/dev/st5/agent-toolkit/ hooks/finalize_report.py assess .scratch/assess_<slug>/findings.json
191191```
192192
193193The hook writes ` reports/assess/assess_<slug>_<id>.md ` and prints a JSON
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ score than your dimension scores support.
161161Then run:
162162
163163```
164- python3 hooks/finalize_report.py evaluate .scratch/evaluate_<slug>/findings.json
164+ python3 /Users/jvalin/dev/st5/agent-toolkit/ hooks/finalize_report.py evaluate .scratch/evaluate_<slug>/findings.json
165165```
166166
167167The hook re-runs ` test_command ` and ` lint_command ` from ` gates.json ` itself —
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ Findings schema (all keys required):
125125Then run:
126126
127127```
128- python3 hooks/finalize_report.py precommit .scratch/precommit_<slug>/findings.json
128+ python3 /Users/jvalin/dev/st5/agent-toolkit/ hooks/finalize_report.py precommit .scratch/precommit_<slug>/findings.json
129129```
130130
131131The hook re-runs ` test_command ` and ` lint_command ` from ` gates.json ` itself —
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ only when `high` is 0 and mechanical test/lint re-runs pass.
104104Then run:
105105
106106```
107- python3 hooks/finalize_report.py reviewer .scratch/reviewer_<slug>/findings.json
107+ python3 /Users/jvalin/dev/st5/agent-toolkit/ hooks/finalize_report.py reviewer .scratch/reviewer_<slug>/findings.json
108108```
109109
110110The hook writes ` reports/reviewer/review_<slug>_<id>.md ` and prints a JSON
You can’t perform that action at this time.
0 commit comments