Skip to content

skillopt train: GitHub review publish passes packet body as gh argv — ARG_MAX failure on large items (fork/exec /usr/bin/gh: argument list too long) #734

Description

@jerryfane

Third member of the ARG_MAX family (after #723 kimi, #724 synth prompts), found in the same live feedback-machine loop (2026-07-08): skillopt train continue at the publish-review-packet step failed with fork/exec /usr/bin/gh: argument list too long. The session's 3 review items are synth-generated with large briefs (full context + rubric each), so the composed GitHub issue body exceeds the exec arg limit.

Fix: the gh publish path should write the body to a temp file and use gh issue create/comment --body-file <path> (never --body <huge-arg>); same for any other gh invocation that embeds packet content. Grep internal/cli for gh exec sites with body arguments and audit them all.

Non-blocking for the loop: the markdown export/import path works and TrainingReady is reachable locally (the export produced the packet fine); GitHub publish is the optional mirror.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingskilloptSkillOpt evaluator/optimizer work

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions