os-sdlc-subagent-stop: Sequel::Error no database associated with Sequel::Model #1479

Open
opened 2026-10-31 16:04:14 +00:00 by jared · 0 comments
Owner

Problem

The os-sdlc-subagent-stop hook fails with exit 3 when it runs from a git worktree. It works from the main checkout.

Observed

decision-model implementation 6 (#16), worktree .claude/worktrees/ticket-16 (its .sdlc/pipeline.db is a link). The behavior-verifier (dispatch 67) got:

os-sdlc-subagent-stop: harness error: Sequel::Error: No database associated with Sequel::Model: have you called Sequel.connect or Sequel::Model.db= ?
  1. I sent the same saved handoff JSON on stdin from the main checkout directory. It succeeded.
  2. A later programmer dispatch saw the same error once. It succeeded when re-run from the worktree directory.

So the failure seems to depend on the working directory. Cause not confirmed.

Acceptance criteria

  1. Given a session in a git worktree with a linked .sdlc/pipeline.db, when a subagent stops, then os-sdlc-subagent-stop connects to the database and exits 0.
  2. Given the database cannot be opened, when the hook runs, then it reports the path it tried, not only the Sequel error.

Discoverer: jared/decision-model, session d6b3dec8-0b4c-4965-a835-96e5db2d6b75, 2026-10-31. Found in os-sdlc implementation 6 (decision-model#16).

## Problem The os-sdlc-subagent-stop hook fails with exit 3 when it runs from a git worktree. It works from the main checkout. ## Observed decision-model implementation 6 (#16), worktree .claude/worktrees/ticket-16 (its .sdlc/pipeline.db is a link). The behavior-verifier (dispatch 67) got: os-sdlc-subagent-stop: harness error: Sequel::Error: No database associated with Sequel::Model: have you called Sequel.connect or Sequel::Model.db= ? 1. I sent the same saved handoff JSON on stdin from the main checkout directory. It succeeded. 2. A later programmer dispatch saw the same error once. It succeeded when re-run from the worktree directory. So the failure seems to depend on the working directory. Cause not confirmed. ## Acceptance criteria 1. Given a session in a git worktree with a linked .sdlc/pipeline.db, when a subagent stops, then os-sdlc-subagent-stop connects to the database and exits 0. 2. Given the database cannot be opened, when the hook runs, then it reports the path it tried, not only the Sequel error. -------- **Discoverer:** jared/decision-model, session d6b3dec8-0b4c-4965-a835-96e5db2d6b75, 2026-10-31. Found in os-sdlc implementation 6 (decision-model#16).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jared/cc-os#1479
No description provided.