Skip to content

docs(launchpad): AGENTS.md's gh issue create --parent flag does not exist - #171

Merged
tucktuck101 merged 1 commit into
launchpadfrom
fix/agents-md-parent-flag
Aug 16, 2026
Merged

tucktuck101 merged 1 commit into
launchpadfrom
fix/agents-md-parent-flag

Conversation

@serina-mcfall

Copy link
Copy Markdown

Summary

launchpad/AGENTS.md documented a gh issue create --parent flag that does not exist in gh 2.93.0 — its central worked example for parenting a sub-issue aborted at argument parsing. Replaced with the mechanism that actually works (create, then link via the REST sub-issues endpoint), taken directly from the filer's own verified reproduction against #81/#83/#84.

Related issue

Closes #85

Issue type

Bug


Agent provenance

Field Value
Harness / provider Claude Code
Model claude-sonnet-5
Session reference N/A - harness does not expose a run id/URL
Initiating human @serina-mcfall

Objective

Make launchpad/AGENTS.md's sub-issue-linking example runnable against gh 2.93.0, and fix the secondary needs-decision label defect named in the same issue.

Impacted components

  • launchpad/AGENTS.md (§4 rule 2, §5 "Filing an issue")
  • launchpad/scripts/test-agents-md-parent-fix.sh (new)

Approach and rejected alternatives

Used the exact replacement mechanism the issue already verified end-to-end (REST sub-issues endpoint, database id not issue number, gh api -F not -f) rather than re-deriving one — it was tested against real issues (#81, #83, #84) and its output pasted in the issue body, so re-verifying an alternative would have been redundant risk for no benefit.

No alternative considered for the needs-decision fix — it's a one-line documentation addition of an already-diagnosed gap, not a design choice.

Verification

Command run:

bash launchpad/scripts/test-agents-md-parent-fix.sh

Raw output:

PASS: no fenced command example still passes --parent to gh
PASS: the link_child() replacement function is valid bash
PASS: link_child() was found in AGENTS.md at all

===================================================
3 passed, 0 failed

Confirmed this fails against the pre-fix file:

  --parent 4
FAIL: no fenced command example still passes --parent to gh
PASS: the link_child() replacement function is valid bash
FAIL: link_child() was found in AGENTS.md at all

1 passed, 2 failed
  • Tests or checks were run and the raw output is pasted above
  • The diff is confined to the scope of the linked issue
  • No secrets, keys, tokens or hostnames were added to tracked files

Not verified

Security implications

None. Documentation only — no code, deployment automation, or CI is affected.

Escalations

None. The issue fully specified both the defect and the verified fix; no ambiguity to raise.

…xist

launchpad/AGENTS.md §4 rule 2 and §5 gave agents a copy-pasteable recipe
for filing a parented issue, ending in --parent 4. There is no --parent
flag in gh 2.93.0 — confirmed absent from `gh issue create --help` — so
the documented command aborts at argument parsing and no issue is
created. Any agent following the spec literally fails on its first
filing (#85).

The intent — a real GitHub sub-issue link — is correct and achievable;
only the mechanism named was wrong. Replaced with the mechanism that
actually works: create the issue, then link it in a second step via the
REST sub-issues endpoint, which takes the child's database id (not its
issue number) as a typed integer. The replacement `link_child` shell
function and its usage note (the POST response is the parent, not the
child — verify by listing sub-issues afterwards, not by reading the
create response) come directly from the issue's own verified
reproduction against #81, #83 and #84.

Also fixes the secondary defect named in the same issue: filing an ADR
via `gh issue create` does not apply .github/ISSUE_TEMPLATE/05-adr.yml's
needs-decision label, since issue-form template labels only apply
through the web UI. Added the one-line follow-up (`gh issue edit <n>
--add-label needs-decision`) immediately after the sub-issue linking
guidance, since both are "the CLI doesn't do what the form implies"
defects with the same root cause.

launchpad/scripts/test-agents-md-parent-fix.sh: confirms no fenced
command example in AGENTS.md still passes --parent to gh, and that the
link_child replacement is syntactically valid bash. Confirmed it fails
against the pre-fix file (finds the old --parent 4 line, and no
link_child function to extract).

Verified:

$ bash launchpad/scripts/test-agents-md-parent-fix.sh
3 passed, 0 failed

Closes #85

Signed-off-by: Serina Mcfall <serina.mcfall@gmail.com>
@serina-mcfall serina-mcfall added the by:agent Filed or authored by an AI agent, not a human label Aug 14, 2026
@serina-mcfall
serina-mcfall marked this pull request as ready for review August 14, 2026 22:03
@tucktuck101
tucktuck101 merged commit 341a0d3 into launchpad Aug 16, 2026
25 checks passed
@serina-mcfall
serina-mcfall deleted the fix/agents-md-parent-flag branch August 31, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

by:agent Filed or authored by an AI agent, not a human

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: AGENTS.md documents gh issue create --parent, which does not exist in gh 2.93.0

2 participants