* feat(#2008): add generic command-exit-zero gate-predicate evaluator Third-party capability gates declared via check.predicate were rendered for display but never evaluated (only built-in check.query gates fired; the security capability's gate worked solely via a hard-coded ship.md branch). Add a generic, deps-injected gate-predicate evaluator (src/gate-predicate-evaluator.cts) that dispatches by predicate.kind. Built-in kind: command-exit-zero — runs a bounded sh -c command at the project root (via shell-command-projection.execTool), inherits env, exit 0 => pass, non-zero => block, timeout => block, fail-closed. Wire a 'check predicate' subcommand into check-command-router.cts and extend the three generic workflow gate-dispatch sites (execute:wave:post, execute:post, plan:post) to route check.predicate gates to the new evaluator. The two-step gate contract (command-failure => onError; block => halt) is unchanged. - src/gate-predicate-evaluator.cts: pure leaf, KIND_TABLE extensible - src/check-command-router.cts: cmdCheckPredicate + buildPredicateDeps + parsePredicateFlags - docs/adr/2008-*, docs/reference/gate-predicates.md, docs/how-to/command-exit-zero-gate.md - tests: 38 unit + integration tests (exit mapping, timeout, interpolation, property-based bijection, malformed-predicate fail-closed, real subprocess e2e) Closes #2008 * docs(#2008): backfill changeset pr number 2011
This commit is contained in:
@@ -298,7 +298,7 @@
|
||||
"gsd-core/workflows/docs-update.md": "806ada831b961116",
|
||||
"gsd-core/workflows/edit-phase.md": "e5624ac6e3f8bef5",
|
||||
"gsd-core/workflows/eval-review.md": "dfcfb4f8ce031fae",
|
||||
"gsd-core/workflows/execute-phase.md": "d3c1583906de7408",
|
||||
"gsd-core/workflows/execute-phase.md": "05280ea81a40a29f",
|
||||
"gsd-core/workflows/execute-phase/steps/codebase-drift-gate.md": "8898e0ea533cc643",
|
||||
"gsd-core/workflows/execute-phase/steps/per-plan-worktree-gate.md": "7ebb7d1af6082028",
|
||||
"gsd-core/workflows/execute-phase/steps/post-merge-gate.md": "abd2aca069c04a80",
|
||||
@@ -334,7 +334,7 @@
|
||||
"gsd-core/workflows/note.md": "5a99eb396c744619",
|
||||
"gsd-core/workflows/pause-work.md": "7bcbdf27ba957c8b",
|
||||
"gsd-core/workflows/plan-milestone-gaps.md": "02fee851c82e3b25",
|
||||
"gsd-core/workflows/plan-phase.md": "9fc35fa37928c14e",
|
||||
"gsd-core/workflows/plan-phase.md": "9ad0d58d4abbfcb3",
|
||||
"gsd-core/workflows/plan-phase/steps/closed-phase-gate.md": "b36f77ac7344a072",
|
||||
"gsd-core/workflows/plan-phase/steps/prd-express-path.md": "d64097345ffac40d",
|
||||
"gsd-core/workflows/plan-phase/steps/windows-troubleshooting.md": "49f58c3f75be3eb5",
|
||||
|
||||
Reference in New Issue
Block a user