Skip to content

Fix misleading type-aware pm create --help --type <T> "required" list #441

Closed

Description

@unbraind

Problem (current behavior)

pm create --help --type Task prints a "Type-aware option policies for Task" block listing 19 flags as required:

required: --title, --description, --type, --status, --priority, --tags, --body, --deadline,
--estimate/--estimated-minutes, --acceptance-criteria/--ac, --author, --message, --assignee,
--dep, --comment, --note, --learning, --file, --test, --doc

Yet pm create --title x --type Task --status open (3 flags) succeeds in the default mode. The "required" list is actually the set of type-applicable flags, not genuinely mandatory ones, and it does not reflect the active --create-mode (strict vs progressive). An agent reading this help will either over-provision every create with 15+ flags or conclude that creating a Task is impractical.

Proposed improvement

Make the type-aware "required" list reflect the real policy: show the genuinely mandatory fields for the active create-mode (default mode → just --title/--type), and separately label the full set as "applicable fields" (or "required in strict mode"). When --create-mode strict is in effect, show the strict required set.

Agent benefit

Stops agents from over-provisioning creates (token waste + false failures) and from misjudging the create surface as unusable. Makes the help a reliable contract instead of a misleading one.

Activity

  1. added
    bugSomething isn't working
    agent-experienceImproves the AI agent / MCP / CLI ergonomics and token efficiency
    on Jul 5, 2026
  2. coderabbitai commented on Jul 5, 2026

    @coderabbitai
    🔗 Related PRs

    #51 - Polish CLI ergonomics, delete safety, and templates dedup [closed]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  3. unbraind commented on Jul 11, 2026

    @unbraind
    OwnerAuthor

    pm tracker item:

  4. unbraind commented on Jul 12, 2026

    @unbraind
    OwnerAuthor

    Reproduced at runtime in pm 2026.7.11 (not just in --help text). The default create-mode enforces ALL type-applicable fields — including optional metadata links — as required, even when the type's builtin schema defines no required fields.

    Repro:

    $ pm create issue "repro test" --priority 1
    Error: Missing required options
      Missing required options --acceptance-criteria/--ac, --assignee, --author, --body, --comment, --deadline, --dep, --description, --doc, --estimate/--estimated-minutes, --file, --learning, --message, --note, --status, --tags, --test for type "Issue"
    

    But:

    $ pm schema show Issue
    type: Issue
    source: builtin
    folder: issues
    

    → the builtin Issue schema declares no required fields, yet doc/file/test/dep/learning/note/comment (links/metadata normally added after creation) are treated as mandatory. This directly contradicts the issue body's claim that "pm create --title x --type Task --status open (3 flags) succeeds in the default mode" — for issue in default mode it does NOT succeed; the only working path is --create-mode progressive:

    $ pm create issue "..." --priority 1 --tag production --parent pm-futr --create-mode progressive
    → created pm-b8er
    

    So the bug is not limited to the help text: the runtime required-field set equals the full applicable-field set, ignoring (a) the schema's required-field declarations and (b) the active --create-mode. Recommend the runtime enforcement use the same genuinely-mandatory computation described in the proposed fix (default mode → only --title/--type; strict mode → schema-declared required; progressive → minimal), and exclude link/metadata fields (doc/file/test/dep/learning/note/comment) from being mandatory on create.

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

    agent-experienceImproves the AI agent / MCP / CLI ergonomics and token efficiencybugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions