-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.example.json
More file actions
19 lines (19 loc) · 1.09 KB
/
Copy pathsettings.example.json
File metadata and controls
19 lines (19 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"_comment": "PayneSDD gate config. In your own project put this in .claude/settings.json (shared with the team — normally COMMITTED) or .claude/settings.local.json (personal, auto-git-ignored by Claude Code); in THIS repo the whole .claude/ dir is locally git-ignored. PAYNE_TEST_CMD here runs this repo's self-check — swap it for your real test command ('npm test', 'pytest -q', 'swift test'). SECURITY: the gate executes PAYNE_TEST_CMD on every Stop — in a shared repo, review changes to it like code. 'timeout' (seconds) must exceed your suite's worst case: a timed-out hook silently does NOT block (600 suits this repo's quick self-check — raise it for a real suite). Per task: `touch .payne-active` arms the gate, `rm .payne-active` disarms it (when done, abandoned, or honestly escalated).",
"env": {
"PAYNE_TEST_CMD": "bash scripts/payne-check.sh"
},
"hooks": {
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/hooks/payne-gate.sh",
"timeout": 600
}
]
}
]
}
}