Skip to content

Fix Daily Graft timeouts with native CLI queries - #78167

Merged
pelikhan merged 2 commits into
mainfrom
pelikhan/supreme-winner
Nov 15, 2026
Merged

pelikhan merged 2 commits into
mainfrom
pelikhan/supreme-winner

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

Why

Daily Graft Intelligence run 43752324610 failed after concurrent graft_check and graft_map calls 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

  • Replace the Graft MCP backend with native CLI queries using the same @nanonets/graft@0.8.0, now installed from an integrity-locked dependency manifest.
  • Keep graph build and verification in setup. Runtime analysis starts with the map and cannot repeat check, rebuild, or start an MCP server.
  • Expose a read-only query wrapper that permits only analysis commands and rejects later graph-directory overrides before invoking the native CLI. Mount the CLI and prepared graph read-only.
  • Preserve report limits, safe-output writes, and fail-closed report_incomplete behavior. 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-progress passed, including impacted tests and workflow drift checks.
  • make agent-report-progress-no-test and make recompile passed; all 368 workflows compiled.
  • node --test scripts/workflow-tool-contracts.test.cjs: 7 tests passed.
  • The pinned native CLI built and checked a private two-file fixture, then successfully ran map, ask, callers, skeleton, and grep without changing graph contents. The installed wrapper delegated help and rejected a directory override before query execution.
  • Final diagnostic compilation passed built-in checks and shellcheck. Optional scanners were not run; the existing skip-if-decision experimental notice remains. Diagnostic compilation omits authored setup; normal compilation and native fixture checks cover that path.
  • Read-only security review passed for the final source and normal lock.

No Actions workflow was dispatched. Full-repository native-query latency has not been measured in a new live run.

pelikhan and others added 2 commits November 15, 2026 22:22
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>
@pelikhan
pelikhan marked this pull request as ready for review November 15, 2026 23:49
Copilot AI adaptive review requested due to automatic review settings November 15, 2026 23:49
@pelikhan
pelikhan merged commit fe9bb4c into main Nov 15, 2026
89 checks passed
@pelikhan
pelikhan deleted the pelikhan/supreme-winner branch November 15, 2026 23:49
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

Outcome: reported_no_action

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.

Generated by PR Specification Reviewer for #78167 · copilot · gpt56 · ~1 AIC · ⌖ ~1 AIC · ⊞ 1.6K · ◷

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

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 analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

@github-actions

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills...

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

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.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.5K · ◷

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ 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: reported_no_action

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.

🏗️ ADR gate enforced by Design Decision Gate 🏗️ · pi · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 8.6K · ◷

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

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.

Generated by Ponytail Reviewer for #78167 · codex · routed: gpt61 medium · ~5 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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
Comment on lines +2 to +4
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
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.0

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.

2 participants