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

Relationships

#1848 Add --filter flag to workflow history search

Opened by stack72 · 8/26/2026· Shipped 8/26/2026

Problem

When multiple verification workflows run in parallel across worktrees, swamp workflow history get <workflow> returns the latest run — which may be the wrong one. There's no way to filter history search results by input values or tags.

Proposed Solution

Add a --filter flag to swamp workflow history search that accepts a CEL expression over run metadata (inputs, tags, status, timing). Examples:

# Find the verification run for a specific commit
swamp workflow history search --filter 'inputs.commit == "b3ff3a8a..."'

# Find runs for a specific branch
swamp workflow history search --filter 'inputs.branch == "feature/foo"'

# Combine with workflow name
swamp workflow history search verify-reviews --filter 'inputs.commit == "b3ff3a8a..."'

Context

The verification workflows (verify-build, verify-reviews) already pass commit and branch as inputs. When two agents run verification in parallel on different worktrees, both write run records to the shared .swamp/workflow-runs/ directory. The run IDs are unique so records don't collide, but querying for "the run that verified this commit" requires filtering — history get only returns the latest.

The agent currently needs to capture the run ID from the swamp workflow run output at launch time. A --filter flag would let it query by commit SHA after the fact, which is more robust (survives context loss, works across sessions).

Alternatives

  • Add a --run-id flag to capture the run ID programmatically (narrower fix)
  • Tag runs with worktree identity and filter by tag (requires a new worktree input on every workflow)
02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 5 MOREREVIEW+ 13 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

8/26/2026, 7:08:19 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack728/26/2026, 5:41:37 PM

Sign in to post a ripple.