T-3N5B-wire-sdlc-verify-changes-into-the-judge-workflow-step
State: planning/draft · Impact: high · Complexity: medium
judge is the AI review step of the per-task gate (implement → check → judge → pr-review). Its
built-in definition is empty, so a project without its own workflows.judge gets no judgment at
all and nothing says so. Reopened 2026-10-01 to ship verify changes as the default.
- The
workflows:grammar landed withD-LSLH(3d2099505).judgeis a lifecycle name with an intentionally empty built-in (lib/config/workflows.ts, pinned byworkflows.test.ts:90-105), sosdlc run judgeis a silent no-op unless a project setsworkflows.judge. - D-LSLH rejected the self-referential
[{run: 'judge'}]built-in (arun:cycle). It did not weigh ascript:step that callsverify changesdirectly. - The work tick resolves
judgeby workflow name (ticks/work.ts), so a project override already takes effect. - This repo sets
workflows.judgetobun solutions/ontological/cli/sdlc.ts verify changes --base main --blocking.
Proposed
Section titled “Proposed”The built-in judge workflow is one script: step, sdlc verify changes --blocking. --base
is left to the op’s own default (the remote’s default branch). Projects override, prepend or
append as with any workflow.
Approach
Section titled “Approach”- Amend
D-LSLH’s lifecycle-name rule:judgegets a real built-in; the other lifecycle names keep empty ones. - Change the built-in in
lib/config/workflows.ts; replace the empty-default test with one asserting the step. - Check
verify changesbehaves sensibly with no rules or standards in a project (an empty judgment passes, not errors). - Decide whether this repo keeps its
workflows.judgeoverride (it pins the dev-checkout CLI). - Add a CHANGELOG entry: projects without
workflows.judgenow run an AI review in the gate, which costs tokens.
| Area | Note |
|---|---|
solutions/ontological/lib/config/workflows.ts | The built-in table |
solutions/ontological/lib/services/verify/ | The op the step calls |
docs/planning/decisions/D-LSLH-collapse-verbs-workflows-chain-hooks/ | The rule to amend |
Acceptance criteria
Section titled “Acceptance criteria”- AC-1: In a project with no
workflows.judge,sdlc run judgerunsverify changesand exits non-zero on a blocking finding. - AC-2: A project
append:underjudgeruns afterverify changes, verified by a test. - AC-3: A project with no instruction files or standards passes
judge. - AC-4: D-LSLH records the amended rule.
Out of scope
Section titled “Out of scope”- The adversarial pr-review step and pr-respond rounds that follow judge.