Skip to content

fix(workflows): tri-review + tri-security enforce: soft - #70

Merged
5uck1ess merged 2 commits into
mainfrom
fix/workflow-guard-prompt-tools
Apr 11, 2026
Merged

fix(workflows): tri-review + tri-security enforce: soft#70
5uck1ess merged 2 commits into
mainfrom
fix/workflow-guard-prompt-tools

Conversation

@5uck1ess

@5uck1ess 5uck1ess commented Apr 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • workflows/tri-review.yml and workflows/tri-security.yml both gain enforce: soft at workflow level so their gather prompt steps can run git diff / similar Bash commands without being blocked by the v2.1.8+ prompt-hard guard.
  • 2-line change across 2 files. No engine changes.

Why

Under default hard enforce, prompt steps block Bash/Edit/Write/Task/WebFetch to prevent drift (#63/#64). Both tri-review and tri-security start with a gather prompt that asks the agent to "collect the code/diff to review" from {{input}}, which the agent typically resolves by running git diff or gh pr diff. That's blocked under hard.

tri-debug and tri-dispatch are unaffected — they take {{input}} directly into the diagnosis/dispatch prompts and only need Read/Grep, which are already allowed on hard.

What this costs

Drift protection is weakened for the other prompt steps in both workflows (review-*, audit-*, consolidate). Those are purely analytical — they read prior-step outputs and produce text, not writes — but they're now allowed to use any tool. The Stop gate still requires devkit_advance between steps, so the agent can't skip steps, it just isn't blocked from using tools during a step.

Test plan

  • go test ./engine/... -run ParseWorkflow — both YAMLs still parse
  • Run /devkit:tri-review and /devkit:tri-security against a PR after next plugin upgrade; confirm gather completes without a guard veto

The gather step is a prompt that collects the diff/code to review —
it needs Bash to run git diff. Under the default hard enforce added in
v2.1.8, that tool is blocked on prompt steps, so tri-review cannot
start. Mark the workflow enforce: soft; other analytical steps
(review-smart/general/fast, consolidate) still work because soft only
downgrades to a stderr nudge and the Stop gate still requires
devkit_advance.
@5uck1ess 5uck1ess changed the title fix(workflows): tri-review enforce: soft so gather can run git diff fix(workflows): tri-review + tri-security enforce: soft Apr 11, 2026
@5uck1ess
5uck1ess merged commit 0650f66 into main Apr 11, 2026
6 checks passed
@5uck1ess
5uck1ess deleted the fix/workflow-guard-prompt-tools branch April 11, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant