Repository navigation
Fix Daily Graft timeouts with native CLI queries - #78167
Conversation
Keep graph verification in setup, lock CLI dependencies, and restrict runtime queries to the immutable pre-built graph without an MCP backend. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
There was a problem hiding this comment.
🟡 Changes recommended
The existing permissions test fails because it still expects the removed Graft MCP server and broad shell grant, while redundant Node settings unnecessarily expand sandbox network access.
3 open issues
1 file not reviewed
.github/workflows/shared/graft/package-lock.json: Generated file
What changed in this PR
Moves Daily Graft analysis from the shared MCP backend to independent native CLI queries, aiming to avoid gateway timeouts without increasing deadlines.
Changes:
- Installs integrity-locked Graft dependencies and retains graph build and verification during setup.
- Adds an analysis-only query wrapper and read-only mounts, while preserving safe outputs and fail-closed reporting.
- Updates workflow instructions, regenerates the Actions lock, and expands regression coverage.
| File | Description |
|---|---|
scripts/workflow-tool-contracts.test.cjs |
Tests native-query permissions, mounts, and wrapper restrictions. |
.github/workflows/shared/mcp/graft.md |
Removes the Graft MCP configuration. |
.github/workflows/shared/graft/query.cjs |
Adds the command allowlist and graph-directory guard. |
.github/workflows/shared/graft/package.json |
Pins Graft to version 0.8.0. |
.github/workflows/shared/graft/package-lock.json |
Locks dependencies with integrity hashes. |
.github/workflows/shared/graft.md |
Defines CLI installation, graph setup, mounts, and query guidance. |
.github/workflows/daily-graft-intelligence.md |
Switches analysis instructions to native CLI commands. |
.github/workflows/daily-graft-intelligence.lock.yml |
Regenerates execution steps and permissions for the native CLI. |
Review effort: Max (dynamic)
| labels: [automated-analysis, cookie] | ||
| - shared/gh.md | ||
| - shared/mcp/graft.md | ||
| - shared/graft.md |
| runtimes: | ||
| node: | ||
| version: "24" |
| - Read signatures with `graft --dir=/tmp/gh-aw/graft skeleton "file"`. | ||
| - Confirm a pattern with `graft --dir=/tmp/gh-aw/graft grep "pattern"`. | ||
|
|
||
| Use each command's `--help` for parameters. Do not repeat `check`, rebuild the |
|
🎉 This pull request is included in a new release. Release: |



Why
Daily Graft Intelligence run 43752324610 failed after concurrent
graft_checkandgraft_mapcalls exhausted the MCP gateway's 60-second deadlines. Setup had already built and verified the graph; repeating Graft's synchronous whole-repository check during analysis likely blocked the map behind it.Changes
@nanonets/graft@0.8.0, now installed from an integrity-locked dependency manifest.check, rebuild, or start an MCP server.report_incompletebehavior. Regenerate the workflow lock and add permission/wrapper regression coverage.Native CLI processes do not share the MCP server's in-memory cache. This intentionally trades repeated graph loading for independent query execution without a shared blocking check; no deadlines were increased.
Validation
make agent-report-progresspassed, including impacted tests and workflow drift checks.make agent-report-progress-no-testandmake recompilepassed; all 368 workflows compiled.node --test scripts/workflow-tool-contracts.test.cjs: 7 tests passed.skip-if-decisionexperimental notice remains. Diagnostic compilation omits authored setup; normal compilation and native fixture checks cover that path.No Actions workflow was dispatched. Full-repository native-query latency has not been measured in a new live run.