Skip to content

feat: workspace component create should reject unknown parameter names #91

@TomProkop

Description

@TomProkop

Problem

txc workspace component create silently ignores unknown parameter names. If an AI agent or user passes --param FormatName=Email (a hallucinated parameter), the command succeeds but the parameter has no effect — the attribute is created without the email format.

Expected behavior

The CLI should:

  1. Validate all --param key=value entries against the template's actual parameter list
  2. Reject unknown parameter names with a clear error: Unknown parameter 'FormatName' for template 'pp-entity-attribute'. Did you mean 'TextFormat'?
  3. Optionally suggest the closest matching parameter name (fuzzy match)

Impact

Silent parameter ignoring is the most dangerous form of hallucination impact — the command appears to succeed but produces wrong output. The developer only discovers the problem at import time or during roundtrip diff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions