setup-project writes the worktree-before-remove line into a project's .cc-os/config #801

Open
opened 2026-09-28 16:39:29 +00:00 by jared · 0 comments
Owner

Problem

ADR-0240 moved the usage sweep behind a config key. Only cc-os's own .cc-os/config has the line. Other os-sdlc projects will silently stop sweeping usage.

Reproduce

n/a: design gap, not a reproducible bug

Approach

Required work:

  1. The os-sdlc setup-project skill adds worktree-before-remove=os-sdlc-implementation-report --sweep-only {implementation} to .cc-os/config when the key is absent.

Acceptance criteria

  1. Given a project's .cc-os/config with no worktree-before-remove key, when the os-sdlc setup-project skill runs, then it adds the line worktree-before-remove=os-sdlc-implementation-report --sweep-only {implementation}.
  2. Given a project's .cc-os/config that already has a worktree-before-remove key, when the os-sdlc setup-project skill runs, then the existing line is left unchanged.

Origin

  • Trigger: closing #733 (worktree finish now runs the configured worktree-before-remove commands via ADR-0240)
  • Improvised this session: none
  • Chain: other os-sdlc projects will stop sweeping usage ← config key required per ADR-0240 but only cc-os has it ← DESIGN (ADR-0240)
  • Root candidate: this ticket
  • Where: os-sdlc setup-project skill
  • Session: 80ad7dfb-adda-49df-ac21-4afd6ead90ca
  • Transcript: n/a
    VERDICT: CREATE (user-directed capture, exact title/problem/required-work dictated by the user this session)
## Problem ADR-0240 moved the usage sweep behind a config key. Only cc-os's own `.cc-os/config` has the line. Other os-sdlc projects will silently stop sweeping usage. ## Reproduce n/a: design gap, not a reproducible bug ## Approach Required work: 1. The os-sdlc setup-project skill adds `worktree-before-remove=os-sdlc-implementation-report --sweep-only {implementation}` to `.cc-os/config` when the key is absent. ## Acceptance criteria 1. Given a project's `.cc-os/config` with no `worktree-before-remove` key, when the os-sdlc setup-project skill runs, then it adds the line `worktree-before-remove=os-sdlc-implementation-report --sweep-only {implementation}`. 2. Given a project's `.cc-os/config` that already has a `worktree-before-remove` key, when the os-sdlc setup-project skill runs, then the existing line is left unchanged. ## Origin - Trigger: closing #733 (worktree finish now runs the configured worktree-before-remove commands via ADR-0240) - Improvised this session: none - Chain: other os-sdlc projects will stop sweeping usage ← config key required per ADR-0240 but only cc-os has it ← DESIGN (ADR-0240) - Root candidate: this ticket - Where: os-sdlc setup-project skill - Session: 80ad7dfb-adda-49df-ac21-4afd6ead90ca - Transcript: n/a VERDICT: CREATE (user-directed capture, exact title/problem/required-work dictated by the user this session)
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#801
No description provided.