Skip to main content
← Back to list
01Issue
BugOpenExtensionsPublic
AssigneesNone

Relationships

#5168 software-factory: a work item whose slug prefixes another's sees the other's records

Opened by willy · 11/27/2026

loadRunView in models/_lib/run_data.ts (@swamp/software-factory 2026.10.23.1) finds a work item's records by name prefix: artifact-<slug>-, evidence-<slug>-, validation-<slug>-, approval-<slug>-. When one work item's slug is another's slug plus a hyphen, the shorter slug's lookup also matches the longer slug's records.

Reproduce:

  1. Start work item feat-a-setup and record artifacts card and change-summary on it.
  2. Start work item feat-a afterwards, at a stage whose transition gates on artifact-exists for card and change-summary.
  3. Record both artifacts on feat-a.
  4. Run status on feat-a. The gates still report "artifact 'card' has not been recorded".

Cause: the prefix artifact-feat-a- also matches artifact-feat-a-setup-card and artifact-feat-a-setup-change-summary. feat-a-setup's records also hold a card and a change-summary, so they replace feat-a's entries in the view. The run's start-time filter then drops them, because they were recorded before feat-a started. Recording again does not help: the stored envelopes are correct and carry workItem: feat-a.

Expected: a work item sees only its own records.

Suggested fix: when loading, also require envelope.workItem === slug, or delimit the slug from the record name with a separator a slug cannot contain.

Workaround: rename the work item so no slug equals another slug plus a hyphen.

Upstream repository: https://github.com/swamp-club/swamp-extensions

Environment

  • Extension: @swamp/software-factory@2026.10.23.1
  • swamp: 20261028.234740.0-sha.963e0d28
  • OS: linux (x86_64)
  • Deno: 2.9.8
  • Shell: /usr/bin/zsh
02Bog Flow
◉OPEN○TRIAGED○IN PROGRESS○SHIPPED

Open

11/27/2026, 7:09:10 PM

No activity in this phase yet.

03Sludge Pulse
Editable. Press Enter to edit.

system commented 11/27/2026, 7:09:10 PM

Classified automatically when this issue was filed.

  • Source: Extensions

If you feel this classification is incorrect, add a ripple to tell us so.

Sign in to post a ripple.