feat: stack lock protocol for singleton project stack access #255
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#255
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Define a file-based lock protocol so that CI pipelines and the reproduce-agent can share a single project stack (e.g. harb docker compose) without stepping on each other.
Why
The harb stack is expensive to run and should be a singleton. When CI needs a fresh stack for tests and the reproduce-agent needs one for bug reproduction, they must coordinate: wait for the current holder to finish, then tear down and start fresh.
Design
Lock file:
/home/agent/data/locks/<project>-stack.lockContents:
Protocol:
Consumers:
Implementation:
lib/stack-lock.shwith functions:stack_lock_acquire,stack_lock_release,stack_lock_checkFiles
lib/stack-lock.shBlocked — issue #255
no_push2026-04-05T20:49:05ZDiagnostic output
Blocked — issue #255
closed_externally2026-04-05T21:12:37ZBlocked — issue #255
no_push2026-04-06T06:29:09ZDiagnostic output