* feat(#1137): migrate review verification hooks to capabilities * chore(#1147): add changeset
This commit is contained in:
36
capabilities/code-review/capability.json
Normal file
36
capabilities/code-review/capability.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"id": "code-review",
|
||||
"role": "feature",
|
||||
"title": "Code review",
|
||||
"description": "Source-file code review and review-fix workflow support for completed execution work.",
|
||||
"tier": "full",
|
||||
"requires": [],
|
||||
"skills": ["code-review"],
|
||||
"agents": ["gsd-code-reviewer", "gsd-code-fixer"],
|
||||
"hooks": [],
|
||||
"config": {
|
||||
"workflow.code_review": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Enable code-review participation in post-execution review flows."
|
||||
},
|
||||
"workflow.code_review_depth": {
|
||||
"type": "enum",
|
||||
"values": ["quick", "standard", "deep"],
|
||||
"default": "standard",
|
||||
"description": "Default depth for code review when no --depth override is supplied."
|
||||
}
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"point": "execute:post",
|
||||
"ref": { "skill": "code-review" },
|
||||
"produces": ["REVIEW.md"],
|
||||
"consumes": ["SUMMARY.md"],
|
||||
"when": "workflow.code_review",
|
||||
"onError": "skip"
|
||||
}
|
||||
],
|
||||
"contributions": [],
|
||||
"gates": []
|
||||
}
|
||||
30
capabilities/nyquist/capability.json
Normal file
30
capabilities/nyquist/capability.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"id": "nyquist",
|
||||
"role": "feature",
|
||||
"title": "Nyquist validation",
|
||||
"description": "Validation coverage audit that maps executed work back to tests and manual-only evidence.",
|
||||
"tier": "full",
|
||||
"requires": [],
|
||||
"skills": ["validate-phase"],
|
||||
"agents": ["gsd-nyquist-auditor"],
|
||||
"hooks": [],
|
||||
"config": {
|
||||
"workflow.nyquist_validation": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Enable Nyquist validation coverage auditing."
|
||||
}
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"point": "verify:post",
|
||||
"ref": { "skill": "validate-phase" },
|
||||
"produces": ["VALIDATION.md"],
|
||||
"consumes": ["SUMMARY.md"],
|
||||
"when": "workflow.nyquist_validation",
|
||||
"onError": "halt"
|
||||
}
|
||||
],
|
||||
"contributions": [],
|
||||
"gates": []
|
||||
}
|
||||
67
capabilities/security/capability.json
Normal file
67
capabilities/security/capability.json
Normal file
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"id": "security",
|
||||
"role": "feature",
|
||||
"title": "Security enforcement",
|
||||
"description": "Threat mitigation verification and ship-time security blocking for phases with security enforcement enabled.",
|
||||
"tier": "full",
|
||||
"requires": [],
|
||||
"skills": ["secure-phase"],
|
||||
"agents": ["gsd-security-auditor"],
|
||||
"hooks": [],
|
||||
"config": {
|
||||
"workflow.security_enforcement": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Enable security threat-mitigation verification before phase advancement."
|
||||
},
|
||||
"workflow.security_asvs_level": {
|
||||
"type": "number",
|
||||
"default": 1,
|
||||
"description": "OWASP ASVS level used by security review guidance."
|
||||
},
|
||||
"workflow.security_block_on": {
|
||||
"type": "enum",
|
||||
"values": ["critical", "high", "medium", "low", "none"],
|
||||
"default": "high",
|
||||
"description": "Minimum open threat severity that blocks advancement."
|
||||
}
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"point": "verify:post",
|
||||
"ref": { "skill": "secure-phase" },
|
||||
"produces": ["SECURITY.md"],
|
||||
"consumes": ["SUMMARY.md"],
|
||||
"when": "workflow.security_enforcement",
|
||||
"onError": "halt"
|
||||
}
|
||||
],
|
||||
"contributions": [
|
||||
{
|
||||
"point": "plan:pre",
|
||||
"into": "planner",
|
||||
"fragment": {
|
||||
"inline": "Each PLAN.md must include a <threat_model> block when security enforcement is active. Use the configured ASVS level and blocking threshold from workflow.security_asvs_level and workflow.security_block_on."
|
||||
},
|
||||
"produces": [],
|
||||
"consumes": ["CONTEXT.md"],
|
||||
"when": "workflow.security_enforcement"
|
||||
}
|
||||
],
|
||||
"gates": [
|
||||
{
|
||||
"point": "ship:pre",
|
||||
"check": {
|
||||
"predicate": {
|
||||
"kind": "artifact-frontmatter-equals",
|
||||
"artifact": "SECURITY.md",
|
||||
"field": "threats_open",
|
||||
"equals": 0
|
||||
}
|
||||
},
|
||||
"when": "workflow.security_enforcement",
|
||||
"blocking": true,
|
||||
"onError": "halt"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user