Skip to content

Read external WordPress subagent graphs in bounded chunks #375

Description

@chubes4

Problem

External WordPress setup currently embeds read-opencode-subagent-graph.php in one wp eval call and expects the complete portable graph in one control-transport response. Real agent graphs with embedded instructions, skills, and references can exceed bounded relay response limits even though ordinary WP-CLI calls work.

The control transport is intentionally opaque and may impose smaller per-response bounds than the graph schema. HTTP-specific compression or chunking does not belong in the generic runtime.

Expected behavior

The external graph reader should transfer the graph through multiple bounded, deterministic wp eval responses and reconstruct the exact JSON locally before projection. Local WordPress behavior and the graph schema must remain unchanged.

Acceptance

  • A graph larger than an individual transport response projects successfully.
  • Every external transport response stays under a deterministic bound.
  • The graph is generated without persistent temporary state or credentials.
  • Malformed, inconsistent, or incomplete chunks fail closed.
  • Existing external WordPress and local projection tests remain green.

AI assistance

GPT-5.6-sol via OpenCode diagnosed the live bounded-transport failure and drafted this issue. Chris Huber remains responsible for the report and resulting changes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions