Decide the home for RequiredWork shared by os-backlog and os-sdlc (cc-os gem or CLI seam) #699
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
rule-proposal
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#699
Loading…
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?
Problem
plugins/os-backlog/lib/backlog/required_work.rb:4andplugins/os-sdlc/lib/os_sdlc/pipeline/ticket_shape/required_work.rb:6are byte-identical (flay identical, mass 164). The plugins have no Ruby-level coupling; os-sdlc already shells out to the os-backlog CLI inpipeline/body_fetch.rbto fetch ticket bodies. Cross-plugin duplication is recurring, and the user is weighing a sharedcc-osgem.Approach
This is an architecture decision, not a refactor. Options: (a) the os-backlog CLI returns
required_work_listedalongside the body and os-sdlc drops its copy; (b) a shared cc-os gem holds RequiredWork and other cross-plugin code. Record the choice with /os-adr:create before any code moves.Required work:
Acceptance criteria
Reproduce
n/a: decision ticket
Origin
Session: adee71b2-6515-41c7-b5ad-73f41b824603
Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os/adee71b2-6515-41c7-b5ad-73f41b824603.jsonl
Where: plugins/os-sdlc/lib/os_sdlc/pipeline/body_fetch.rb
Skeptic: user-approved this session (dedup batch 4, follows #677/#678)
- [ ]but the template and Required-work parsers require numbered lines #664- [ ]but the template and Required-work parsers require numbered lines #664Add to the cross-plugin duplication survey: #717 introduces plugins/os/lib/worktree/git.rb (Worktree::Git), an os copy of os-sdlc's Adapter::Git::Repo (plugins/os-sdlc/lib/os_sdlc/adapter/git/repo.rb), plus a FakeGit test double mirroring os-sdlc's tests/test_helper.rb FakeGit. Duplicated by ADR-0025 item 4 (no cross-plugin source coupling).
Resolution
Done: Decided to keep both RequiredWork copies separate rather than sharing code between os-backlog and os-sdlc.
Evidence: ADR-0239 at docs/adr/0239-requiredwork-stays-duplicated-in-os-backlog-and-os-sdlc.md, commit
53531f49; both files verified identical modulo module nestingFollow-ups: none