Skip to content

bug(schema): expose every CLI command through schema introspection #113

Closed

Description

@KalebCole

Bug Description

partiful schema is intended to provide command-path parameter introspection, but its static registry covers only a subset of the CLI. Commands including auth, templates, bulk, doctor, skill, helpers, and version are absent, so agents cannot reliably discover the full CLI contract through the advertised introspection surface.

Source evidence: src/commands/schema.ts and the registry-backed listing path at src/commands/schema.ts

Steps to Reproduce

  1. Run partiful --help and inspect available commands.
  2. Run partiful schema.
  3. Compare the command surfaces.
  4. Try to introspect an omitted path such as a bulk, auth, helper, or template command.

Expected Behavior

Every supported CLI command and helper has a discoverable schema path with positional arguments, flags, defaults, requiredness, and descriptions matching runtime behavior.

Actual Behavior

Only commands manually entered into SCHEMAS are discoverable. Omitted commands return not_found, and static entries can drift from Commander definitions.

Acceptance Criteria

  • partiful schema covers the complete supported command tree.
  • Runtime command definitions and introspection cannot silently drift.
  • Automated coverage compares the registered CLI tree against schema paths and fails on omissions.
  • Existing schema paths and JSON response shapes remain compatible unless explicitly versioned.

Go Port Context

Treat this issue as the correction contract when designing Go command metadata and MCP/tool schemas. Prefer one authoritative command metadata source over another manually duplicated registry. Reference this issue from the corresponding Go-port map ticket and implementation PR.

Activity

  1. added
    bug
    on Aug 9, 2026
  2. KalebCole commented on Aug 9, 2026

    @KalebCole
    OwnerAuthor

    Tracked by the Go replacement map: Port schema introspection with complete CLI coverage (#132). The slice owns the corrected behavior and regression coverage; this issue remains the defect record.

  3. KalebCole commented on Nov 14, 2026

    @KalebCole
    OwnerAuthor

    Triage bot: closing as stale. The TS static schema registry is gone. The Go schema catalog covers auth, doctor, version, and schema, and is enforced by catalog_contract_test.go and schema.golden.json. The retired TypeScript CLI is historical evidence, not a compatibility target (draft VISION (#256)). Reopen with a Go repro if this still applies.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions