Rule where drafted maps live (plugin cache is wiped by refresh-plugins) #898
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#898
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
ADR-0261 decision 5 leaves open where
maps/drafts/<name>.yamlis written. The catalog directory today is the installed plugin cache (Map::Catalog::PLUGIN_MAPS_DIR, adapter/map/catalog.rb:6).bin/refresh-pluginsreinstalls the cache and would delete drafts written there, so a drafted map would vanish between runs and a run on a draft would fail to load it.Decision needed (user)
Pick one:
plugins/os-sdlc/maps/drafts/in the repo) plus a commit of each draft. Promotion is thengit mvin the same tree. Cost: map-router must write into the checkout and commit, and the cache needs a refresh before a run reads it.git mvpromotion crosses trees.Say which, and whether the catalog resolves maps/ then drafts across one root or two.
Acceptance criteria
Origin
Parent: #859
Blocked by: none
Resolution
Done: Ruled option B1: drafted maps live in DRAFTS_ROOT under XDG_DATA_HOME (default ~/.local/share)/os-sdlc/maps/drafts; Map::Catalog looks up [PLUGIN_MAPS_DIR, DRAFTS_ROOT]; promotion is mv + git add. Tickets #881 #882 #904 updated.
Evidence: docs/adr/0264-drafted-maps-live-in-a-per-user-xdg-data-directory-promotion-is-mv-plus-git-add-amends-adr-0261-decisions-4-6-and-7.md, commit
1360ffbaFollow-ups: none