Skip to content

settings.toml default 'type = worker' conflicts with create_verifying_agent.sh positional 'verifier' argument #1003

@gnguralnick

Description

@gnguralnick

Summary

The .mng/settings.toml project config sets a default agent type:

[commands.create]
type = "worker"

The create_verifying_agent.sh skill script passes verifier as a positional argument to mng create:

mng create "$AGENT_NAME" verifier ...

This causes mng create to fail with:

Error: Conflicting agent types: positional argument says 'verifier' but --type says 'worker'. Use one or the other.

Steps to reproduce

  1. Have a .mng/settings.toml with [commands.create] type = "worker"
  2. Run ./skills/verify-task-result/create_verifying_agent.sh <task-name> <agent-id> <msg-file>
  3. Observe the conflict error

Expected behavior

The positional argument passed to mng create should take precedence over (or merge cleanly with) the default type in settings.toml. Alternatively, create_verifying_agent.sh could use --type verifier instead of a positional arg.

Workaround

Call mng create directly with --type verifier instead of using the positional argument. This overrides the settings default correctly.

Suggested fix

Either:

  • Update create_verifying_agent.sh to use --type verifier (explicit flag) instead of the positional arg, or
  • Have mng create treat the positional arg as an override over the settings default (not a conflict)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions