Skip to main content
← Back to list
01Issue
BugShippedSwamp CLI
Assigneesstack72

#349 Direct type execution fails for locally-defined extension types with pulled duplicates

Opened by stack72 · 5/13/2026· Shipped 5/13/2026

Description

Direct type execution (swamp model @type method run ...) fails when the extension type is defined locally in extensions/models/ and also exists as a pulled extension in .swamp/pulled-extensions/.

Steps to Reproduce

  1. Have a repo with a locally-defined extension type (e.g. @swamp/issue-lifecycle in extensions/models/issue_lifecycle.ts)
  2. The same type is also present as a pulled extension in .swamp/pulled-extensions/@swamp/issue-lifecycle/
  3. Run direct type execution:
    swamp model @swamp/issue-lifecycle method run start issue-346 --input issueNumber=346

Expected Behavior

The command should resolve the type from the local extension (or the pulled extension) and auto-create the definition, then run the method — same as the two-step model create + model method run flow which works correctly.

Actual Behavior

The auto-resolver fails to find the type locally, then tries to install from the registry, which conflicts with the already-pulled extension:

Extension type "swamp/issue-lifecycle" not found locally, searching registry...
Found extension "@swamp/issue-lifecycle"
Installing "@swamp/issue-lifecycle"@"2026.04.22.2"...
Failed to install extension "@swamp/issue-lifecycle": 'Type "@swamp/issue-lifecycle" (kind=model) is already claimed by @swamp/[email protected] at .swamp/pulled-extensions/@swamp/issue-lifecycle/models/issue_lifecycle.ts. Cannot install @local/[email protected] at extensions/models/issue_lifecycle.ts — filesystem changes rolled back.'
Error: "Unknown model type: swamp/issue-lifecycle"

The fallback two-step flow works fine:

swamp model create @swamp/issue-lifecycle issue-346 --global-arg issueNumber=346
swamp model method run issue-346 start

Environment

  • swamp version: 20260512.214042.0-sha.228cff7d
  • macOS (Darwin 25.3.0)
02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 4 MOREREVIEW+ 3 MOREPR_MERGEDSHIPPED

Shipped

5/13/2026, 4:26:59 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack725/13/2026, 3:35:29 PM

Sign in to post a ripple.