Repository navigation
feat(tasks): warn when allowedTools match no reachable tool - #1607
Merged
mgoldsborough merged 2 commits intoOct 7, 2026
Merged
mgoldsborough merged 2 commits into
mgoldsborough merged 2 commits into
Conversation
Contributor
QA Review: feat/1601-task-tool-warningsScope: 5 files, +155/−11 · worktree: Critical (must fix)None. Fix in-PRNone. Suggestions (optional)
What Looks Good
Body claims
Verdict: ready to merge. Handoff: pr-adjudicate if the author wants to answer r1s1. Nothing blocks. machine record{
"kind": "review", "pr": 1607, "round": 1,
"reviewed": "855f07c030071010ffe7cdea90a020c5bf29f538", "delta_base": null,
"risk": "LOW", "stop_gate": "n/a",
"verdict": "Clean core; warning matches run-start validation exactly; tests mutation-verified. Ship.",
"findings": [
{"id": "r1s1", "bucket": "suggestion", "file": "src/platform/tasks/source.ts", "line": 568,
"claim": "Tool-discovery failure in allowedToolWarnings is swallowed with no log, so a missing warning is indistinguishable from a clean list.",
"evidence": "reproduced", "receipt": "read source.ts:563-579", "preconditions": null,
"fix": "log the caught error at warn/debug before returning []", "scope": "peripheral"}
]
} |
mgoldsborough
added this pull request to the merge queue
Oct 7, 2026
Contributor
|
Thanks for the contribution @Coding-Professional |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Creating a task with
allowedTools: ["files__*", "mail__send"]previously saved silently even whenmail__sendwas unavailable. Its first run then failed before any model call. Create and update now return anallowed_tool_unavailablewarning for each unmatched entry, in bothwarningsand the response message. Saving remains allowed so a connector can be installed or granted later.The warning uses the task owner's reachable tools in its workspace via
Runtime.listToolsForWorkspaceand the sameunmatchedAllowedToolsmatcher as run-start validation. This keeps wildcard and grantedmy_personal-connector behavior aligned with the actual run. Saved and inlinetasks__runandtasks__run_batchcalls receive the warning too. User docs and the generated schema declaration are updated.Related issue
Closes #1601
Validation
bun test --no-env-file test/integration/task-allowed-tools.test.ts test/integration/task-assessment.test.ts test/integration/task-batches.test.ts— 26 passed, including create/update, saved and inline runs/batches, judge warnings, wildcard, and granted personal-connector cases.bun run checkandbun run check:web— passed.git diff --check— passed.cd docs && bun run build— passed, including internal-link validation.bun run verify— attempted on native Windows; it stops atcheck:web-testsbecause that script expects an extensionless.bin/tscdespite the installedtsc.exeand a passing direct web typecheck. Tracked separately in Windows: TypeScript verification gates reject installed tsc.exe #1606; CI remains the full-suite signal.Checklist
Closes #N), if this PR fixes one.docs/for a user-facing behavior change.bun run verify(or the relevant subset); Windows limitation documented above.