Cut Map -> Brief: move fact names to a top-level FactNames #1169
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#1169
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
The Map concept calls into the Brief concept.
Map::Documentdefaults itsfacts:argument toBrief::Facts::FACTS(map/document.rb:13). That list holds the fact names a map YAML file may use. The edge Map -> Brief lies on 38 concept cycles.Map::Documentis the only user ofBrief::Facts::FACTSoutsideBrief::Facts. A neutral top-level list of names, a peer ofAgentNames, removes the edge.Reproduce
n/a: structure-wave cut, nothing to reproduce
Approach
Required work:
plugins/os-sdlc/lib/os_sdlc/fact_names.rbwithOsSdlc::FactNames::ALL: the frozen list of the 11 names now keys ofBrief::Facts::FACT_RESOLVERS(ticket_brief,gate_results,test_changes,code_changes,lint_offense_history,objections,retired_tests,red_tests,gate_verdicts,round_tests,approved_maps) — check: presentALLinplugins/os-sdlc/lib/os_sdlc/fact_names.rbplugins/os-sdlc/lib/os_sdlc/brief/facts.rb, keep the literalFACT_RESOLVERShash:Sdlc/Structural/UnusedPrivateMethodreads the resolver symbols in it, and a derived hash hides the 9 private resolvers from the cop. DeleteFACTS. Directly after the hash, add one load-time guard:raise UnknownFactError, "FACT_RESOLVERS keys differ from FactNames::ALL" unless FACT_RESOLVERS.keys == FactNames::ALL— check: presentFactNames::ALLinplugins/os-sdlc/lib/os_sdlc/brief/facts.rbplugins/os-sdlc/lib/os_sdlc/map/document.rb, defaultfacts:toFactNames::ALL— check: absentBriefinplugins/os-sdlc/lib/os_sdlc/map/document.rbAcceptance criteria
bin/crc-cycle-edgesruns, then no edge Map -> Brief listsmap/document.rb:13.Map::Document.loadruns, then it loads.Map::Document.loadruns, then validation fails as before.Owner sketch
The constant
FACTSstays deleted frombrief/facts.rb.No other file in lib, bin or tests uses
Brief::Facts::FACTS. Pinning tests:tests/map/document_test.rb,tests/map/check_test.rb,tests/brief/facts_fact_names_test.rband the othertests/brief/facts_*_test.rbfiles.Origin
049a7820)VERDICT: CREATE
Work started on branch crc-os-sdlc-run-3 (os-sdlc CRC run 3, persistent worktree).
Resolution
Done: S5 cut applied: new top-level OsSdlc::FactNames::ALL; Map::Document defaults its facts to it; Brief::Facts keeps the literal FACT_RESOLVERS hash, FACTS deleted, load-time guard added. Ledger row for FactNames and corrected S5 sentence committed.
Evidence:
3195e3d3,e0e3a066; suite 2248 runs, 0 failures (45.3 s); eager load clean; rubocop 3 files, no offenses; inward delta 242 -> 242, new 0; cycle edges 22 -> 18; ticket design corrected on the tracker and rerouted once (implementation 81)Follow-ups: #1173 (RuboCop cache does not key on the ledger; VERDICT: CREATE)