Skip to content

Scaffold fullsend-github-ro profile lacks the GraphQL endpoint the fleet profile has; generated agents fail on gh --json #7014

Closed

Description

@waynesun09

What happened

While reviewing the fullsend agent new reference example (fullsend-ai/agents#1167, part of #6966), a generated agent whose first step is gh pr view --json ... could not run: the profile the generator copies from fullsend's embedded scaffold, internal/scaffold/fullsend-repo/profiles/fullsend-github-ro.yaml, has no GraphQL endpoint. The fleet's copy in fullsend-ai/agents profiles/fullsend-github-ro.yaml does, and its own comment says "Endpoints mirror fullsend-github-code.yaml — keep both in sync".

Consequence: any custom agent that gets its profiles from the scaffold (every agent new user, and the CI workspace-preparation layer for per-repo installs) is blocked at egress on gh ... --json, gh pr view, gh issue view and anything else that goes through api.github.com/graphql, with a policy denial that looks like an agent bug.

What should happen

The scaffold profile should carry the same endpoint set as the fleet profile, and the two should have one source of truth. This is the same drift as #6981 (Vertex profile: credentials flag) and #6971 (Vertex profile: pi / claude.exe binaries), on a different profile with a larger blast radius.

Workaround used in the example: REST calls only (gh api repos/{owner}/{repo}/pulls/{n}/files), no --json.

Found by the multi-agent review of fullsend-ai/agents#1167. Related: #6966, #6971, #6981.

Activity

  1. fullsend-ai-triage commented on Sep 4, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 3:51 PM UTC · Completed 3:56 PM UTC

    Commit: fecb2f0 · View workflow run →

    Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $0.80

  2. added
    type/bug
    component/sandbox
    priority/high
    ready-to-code
    on Sep 4, 2026
  3. fullsend-ai-triage commented on Sep 4, 2026

    @fullsend-ai-triage

    Severity: high — every agent generated via fullsend agent new is affected; the workaround (REST-only calls) limits what generated agents can do.

    Recommended fix

    Add the missing GraphQL endpoint block to internal/scaffold/fullsend-repo/profiles/fullsend-github-ro.yaml, matching the fleet copy:

      - host: api.github.com
        port: 443
        protocol: graphql
        access: read-only
        enforcement: enforce
        path: "/graphql"

    Proposed test

    // Assert the scaffold fullsend-github-ro profile contains
    // a GraphQL endpoint for api.github.com.
    func TestGitHubROProfileHasGraphQLEndpoint(t *testing.T) {
        profile := loadProfile(t, "fullsend-github-ro.yaml")
        found := false
        for _, ep := range profile.Endpoints {
            if ep.Host == "api.github.com" && ep.Protocol == "graphql" {
                found = true
                assert.Equal(t, "/graphql", ep.Path)
            }
        }
        assert.True(t, found,
            "scaffold fullsend-github-ro profile must include GraphQL endpoint")
    }

    Related issues


    Labels: Sandbox profile defect blocking generated agents, high impact on agent-new users.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  4. fullsend-ai-coder commented on Sep 4, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 3:58 PM UTC · Completed 4:06 PM UTC

    Commit: fecb2f0 · View workflow run →

    Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $1.94

  5. added a commit that references this issue on Sep 4, 2026
  6. self-assigned this
    on Sep 4, 2026
  7. waynesun09 commented on Oct 1, 2026

    @waynesun09
    MemberAuthor

    New since this was filed: fullsend agent new's own generated prompt now hits this gap at step 1.

    internal/agentnew/templates/agent-body.md.tmpl step 1 runs gh issue view "$ISSUE_NUMBER" -R "$REPO_FULL_NAME" --json title,body,labels. #7563 changed that call from the issue URL to -R plus the number to get past the SSRF hook. But gh issue view --json goes through GraphQL, and the scaffold fullsend-github-ro profile allows only protocol: rest on api.github.com and github.com. So every generated agent fails to read its work item before it does anything else.

    The fix belongs in the scaffold profile: add the api.github.com GraphQL endpoint (protocol: graphql, path: "/graphql", read-only), mirroring the fleet profile. Switching the prompt to gh api "repos/${REPO_FULL_NAME}/issues/${ISSUE_NUMBER}" (REST) is only a workaround. The reference example in fullsend-ai/agents#1167 documents it as one until this lands.

    I suggest fixing this together with #7883, which changes the same scaffold github-ro provider/profile files for the OpenShell 0.1 credential shape. That would be one PR updating fullsend-github-ro (credentials + graphql) and the agent new generator, with golden updates.

  8. added 10 commits that reference this issue on Oct 1, 2026
  9. added a commit that references this issue on Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcomponent/sandboxpriority/highready-to-codetype/bug

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions