Skip to content

Elon gate: let gh issue|pr create --help through #247

Closed

Description

@lukemaj

What: The Elon gate lets gh issue create --help and gh pr create --help run without an Issue body.
Why: gh_create() drops every word starting with -, so a read-only help call is treated as a create and blocked for missing Elon fields; first seen 2026-10-01, recurred 2026-10-18.
So what: A Sol worker implements it, Grok and Muse Spark review, and Luke approves the merge.

Outcome

Help invocations of gh issue|pr create pass the gate; real creates are still checked.

Evidence

  • 2026-10-18 17:50 Warsaw, codex:01a14fb2-b9ef-7e31-acdf-4eef0dc648e1 (native transcript line 120): a command containing gh issue create --help was blocked with "every Issue needs an Elon record".
  • bin/project-direction gh_create() (around line 890) skips dash words, including --help and -h.
  • Earlier: 2026-10-01 claude:1789534c, tool call toolu_01Uzi243EsGp7eN597Y4gETK (Agent Observer review 2026-10-04).

Contribution to the Objective: removes a gate false positive that costs agent turns on every machine.

Elon record

  • Requirements and who asked: Luke (2026-10-19 review follow-up): read-only help must not be blocked by the creation gate.
  • Deleted: exempting a whole compound command because one part contains --help; only the help invocation itself is exempt.
  • Bottleneck: one classifier function.
  • Checked myself: gh_create() source on current main; the 18 Oct native transcript line.

Acceptance criteria

  • gh issue create --help, gh pr create -h and equivalent forms are not treated as creates.
  • gh issue create --title … --body … and a compound command that also runs a real create are still gated.

Non-goals

  • Other gate changes.

Blockers

None.

Required proof

  • Regression tests in the existing gate test file for the help and compound cases.
  • Full test suite; independent review on the exact head; version transition per repository policy.

Activity

  1. lukemaj commented on Oct 19, 2026

    @lukemaj
    ContributorAuthor

    Delivery record (2026-10-19, Warsaw time): PR #250 merged by Luke at 18:25:30 (merge 15b1dd5) after six review rounds (final: Opus 5.5 medium and Muse Spark 1.3 xhigh PASS on d83f20e). Released v17.4.2 (18:25:46), promoted to the marketplace (toolboxmd/marketplace#201), installed and verified on bestia, cavallo and rocky: all plugins 17.4.2, Muse hooks trusted_enabled, all harness links valid-stable-link; installed gate allows bare gh issue create --help (exit 0) and blocks a real create (exit 2). Branch and worktree removed. Follow-ups: #251 (new alias), #252 (subshell, substitution and other word forms), now in progress together.

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