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:
- Start work item
feat-a-setupand record artifactscardandchange-summaryon it. - Start work item
feat-aafterwards, at a stage whose transition gates onartifact-existsforcardandchange-summary. - Record both artifacts on
feat-a. - Run
statusonfeat-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
Open
No activity in this phase yet.
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.