graphify icon indicating copy to clipboard operation
graphify copied to clipboard

Step B2 hard-codes subagent_type="general-purpose", making the skill unrunnable on hosts with dispatch policies

Open maxhawk1 opened this issue 3 months ago • 0 comments

Step B2 hard-codes subagent_type="general-purpose", making the skill unrunnable on hosts with dispatch policies

Version: graphifyy 0.9.20 Host: Claude Code with an org-level pre-dispatch policy hook Severity: skill is literally unrunnable as written; workaround is non-obvious

Summary

SKILL.md Step B2 states:

IMPORTANT - subagent type: Always use subagent_type="general-purpose". Do NOT use Explore - it is read-only and cannot write chunk files to disk, which silently drops extraction results. General-purpose has Write and Bash access which the subagent needs.

The reasoning is right — the subagent genuinely needs Write and Bash. The instruction is over-specified: it names one agent type rather than the capability that matters.

On hosts that govern dispatch — org policy hooks, curated persona registries, pre-dispatch guardrails — general-purpose dispatch can be flagged or refused. In our environment a policy hook raises material_dispatch_noncanonical_plugin on it, so the skill's literal instruction cannot be followed as written.

Why this is worse than a normal blocker

Step B3 compounds it. Both recovery messages also name the agent type:

"chunk N missing from disk — subagent may have been read-only. Re-run with general-purpose agent."

and

stop and tell the user to re-run and ensure subagent_type="general-purpose" is used.

So when a policy-restricted host hits this, every diagnostic points the user back at the one dispatch type their host will not permit. The obvious escape — falling back to Explore because it is permitted — is the worst possible outcome: it is read-only, so it silently drops results rather than failing loudly.

Workaround

Dispatch any policy-permitted agent type that has Write and Bash. We used a named domain persona with full tool access; extraction behaved identically. Nothing in graphify depends on the agent's name or domain — only on its tools.

Suggested fix

State the capability requirement and let the host satisfy it:

The extraction subagent MUST have Write and Bash access — it builds the chunk file on disk itself. Any read-only agent type (e.g. Explore) silently drops extraction results.

  • Default: subagent_type="general-purpose".
  • If your host restricts or forbids general-purpose dispatch — org dispatch policy, a guardian hook, or a curated persona registry — use any available agent type that has Write and Bash.
  • Verify before dispatching: the type must list Write and Bash (or "All tools") in its capability description.

If the host rejects the dispatch with a policy error naming the agent type, that is a host policy constraint, not a graphify requirement. Re-dispatch with a permitted Write+Bash-capable type. Never downgrade to a read-only type to satisfy a policy — that trades a loud failure for a silent one.

The Step B3 diagnostics should be reworded the same way ("re-run with a Write+Bash-capable agent type").

Relation to existing issues

  • #808 (closed) is where this instruction comes from: general-purpose subagents couldn't write to graphify-out/, and the resolution was to pin the dispatch type. That fixed the sandbox problem, but it encoded a specific agent name where the actual requirement is a capability. This report is narrowly about that over-correction — the write-capability requirement itself is right and should stay.
  • #1758 (open) shares the Step B3 diagnostic surface: it notes the "likely read-only dispatch" message is a plausible-but-wrong explanation for output-ceiling crashes. Both point at the same rewording — the diagnostic should describe the capability that's missing, not the agent type that's expected.

Scope

The general-purpose mandate ships in the canonical SKILL.md plus 14 skill-*.md platform bodies, so this affects every packaged platform variant, not just Claude.

(Disclosure, matching the convention in #1758: investigation and write-up done with an AI assistant, based on a real run.)

maxhawk1 avatar Aug 07 '26 02:08 maxhawk1