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

Relationships

#3154 model get and model search miss auto-definitions stored in a remote datastore

Opened by stack72 · 10/7/2026· Shipped 10/8/2026

Summary

With a datastore configured, swamp model get and swamp model search do not find a model whose auto-definition lives in the datastore, even though swamp model method run runs it fine.

Cause

src/cli/commands/model_get.ts and model_search.ts call createModelGetDeps(repoDir). In src/libswamp/models/get.ts that builds new YamlDefinitionRepository(repoDir), whose auto-definitions dir defaults to the repo-local .swamp/auto-definitions. The repository factory resolves auto-definitions through the datastore path resolver (repository_factory.ts, 'Auto-definitions are datastore-tier').

Repro

  1. swamp repo init --tool none
  2. swamp datastore setup filesystem --path /tmp/ds
  3. Run a local extension model via direct type execution: swamp model @repro/echo method run say hello (auto-def lands at /tmp/ds/auto-definitions/@repro/echo/hello.yaml)
  4. swamp model get hello --json returns Model not found: hello; swamp model search hello returns no results.

Without a datastore both commands find it.

Found while triaging swamp-club#2382 (same root cause in model delete).

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 5 MOREREVIEW+ 10 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

10/8/2026, 12:11:57 AM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack7210/7/2026, 10:22:50 PM

Sign in to post a ripple.