65 lines
2.1 KiB
JSON
65 lines
2.1 KiB
JSON
{
|
|
"id": "drift",
|
|
"role": "feature",
|
|
"version": "1.6.0-rc.2",
|
|
"title": "Drift detection gates",
|
|
"description": "Post-execution drift detection gates that run after each wave completes. Provides two gates at execute:wave:post: a blocking schema drift gate (detects schema files changed without a database push) and a non-blocking codebase drift gate (detects structural additions not reflected in STRUCTURE.md).",
|
|
"tier": "full",
|
|
"requires": [],
|
|
"engines": {
|
|
"gsd": ">=1.6.0"
|
|
},
|
|
"runtimeCompat": {
|
|
"supported": [
|
|
"*"
|
|
],
|
|
"unsupported": []
|
|
},
|
|
"skills": [],
|
|
"agents": [],
|
|
"hooks": [],
|
|
"config": {
|
|
"workflow.drift_threshold": {
|
|
"type": "number",
|
|
"default": 3,
|
|
"description": "Minimum number of new structural elements (directories, barrel exports, migrations, routes) before the codebase drift gate triggers a warn or auto-remap action."
|
|
},
|
|
"workflow.drift_action": {
|
|
"type": "enum",
|
|
"values": [
|
|
"warn",
|
|
"auto-remap"
|
|
],
|
|
"default": "warn",
|
|
"description": "Action taken by the codebase drift gate when the threshold is exceeded: warn (advisory message) or auto-remap (spawn gsd-codebase-mapper agent to refresh STRUCTURE.md)."
|
|
},
|
|
"workflow.schema_drift_gate": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Enable the drift gates at execute:wave:post. When enabled, the schema drift gate blocks verification if schema-relevant files changed during execution but no database push command was executed; the codebase drift gate (non-blocking) warns when structural additions exceed the drift_threshold."
|
|
}
|
|
},
|
|
"steps": [],
|
|
"contributions": [],
|
|
"gates": [
|
|
{
|
|
"point": "execute:wave:post",
|
|
"check": {
|
|
"query": "verify.schema-drift"
|
|
},
|
|
"when": "workflow.schema_drift_gate",
|
|
"blocking": true,
|
|
"onError": "skip"
|
|
},
|
|
{
|
|
"point": "execute:wave:post",
|
|
"check": {
|
|
"query": "verify.codebase-drift"
|
|
},
|
|
"when": "workflow.schema_drift_gate",
|
|
"blocking": false,
|
|
"onError": "skip"
|
|
}
|
|
]
|
|
}
|