Files
msd-core/tests/workflow-size-baseline.json
Tom Boucher 8de2ff9121 feat(#2008): generic command-exit-zero gate-predicate evaluator (#2011)
* 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
2026-07-05 14:04:29 -04:00

93 lines
2.4 KiB
JSON

{
"add-backlog.md": 7132,
"add-phase.md": 7203,
"add-tests.md": 16901,
"add-todo.md": 8952,
"ai-integration-phase.md": 14761,
"analyze-dependencies.md": 3887,
"audit-fix.md": 10988,
"audit-milestone.md": 17637,
"audit-uat.md": 7425,
"autonomous.md": 42430,
"check-todos.md": 9431,
"cleanup.md": 9897,
"code-review-fix.md": 23890,
"code-review.md": 31602,
"complete-milestone.md": 31027,
"debug.md": 13505,
"diagnose-issues.md": 12820,
"discovery-phase.md": 8651,
"discuss-phase-assumptions.md": 26984,
"discuss-phase-power.md": 11273,
"discuss-phase.md": 31990,
"do.md": 10068,
"docs-update.md": 55662,
"edit-phase.md": 12883,
"eval-review.md": 9923,
"execute-phase.md": 93484,
"execute-plan.md": 32611,
"explore.md": 10497,
"extract-learnings.md": 12849,
"fast.md": 4149,
"forensics.md": 12487,
"graduation.md": 11578,
"health.md": 11824,
"help.md": 1722,
"import.md": 14604,
"inbox.md": 14407,
"ingest-docs.md": 18336,
"insert-phase.md": 8943,
"list-phase-assumptions.md": 4305,
"list-seeds.md": 6943,
"list-workspaces.md": 5655,
"manager.md": 27258,
"map-codebase.md": 20789,
"milestone-summary.md": 11798,
"mvp-phase.md": 13582,
"new-milestone.md": 32844,
"new-project.md": 66138,
"new-workspace.md": 11254,
"next.md": 20094,
"node-repair.md": 4173,
"note.md": 6563,
"pause-work.md": 14397,
"plan-milestone-gaps.md": 11765,
"plan-phase.md": 90411,
"plan-review-convergence.md": 23468,
"plant-seed.md": 11741,
"pr-branch.md": 15919,
"profile-user.md": 21202,
"progress.md": 30555,
"quick.md": 49139,
"reapply-patches.md": 20393,
"remove-phase.md": 8469,
"remove-workspace.md": 7507,
"resume-project.md": 17226,
"review.md": 40956,
"scan.md": 7688,
"secure-phase.md": 13476,
"session-report.md": 4044,
"settings-advanced.md": 39646,
"settings-integrations.md": 15848,
"settings.md": 33413,
"ship.md": 24647,
"sketch-wrap-up.md": 14223,
"sketch.md": 19960,
"smart-entry.md": 11080,
"spec-phase.md": 31901,
"spike-wrap-up.md": 15092,
"spike.md": 24517,
"stats.md": 6718,
"sync-skills.md": 6125,
"thread.md": 12464,
"transition.md": 22016,
"ui-phase.md": 15477,
"ui-review.md": 11172,
"ultraplan-phase.md": 10468,
"undo.md": 10431,
"update.md": 20914,
"validate-phase.md": 10745,
"verify-phase.md": 40728,
"verify-work.md": 35171
}