Implementation answers recent_visits and green_runs_as_of; drop dataset chains #1180
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#1180
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
Two Implementation helpers build dataset chains on
@implementationthemselves:dispatches_dataset.by_agent_type(...).recently_created(2).allandstep_results_dataset.at_or_before(...).latest_created.first_green&.minitest_runsinimplementation/progress_witness.rb, anddispatches_dataset.newest_few(...).eager(:agent).allinimplementation/state_dump.rb.Implementationowns its dispatch queries. Ruling S77 adds the answers to it.Reproduce
n/a: structure-wave reach-through answer, nothing to reproduce
Approach
Required work:
plugins/os-sdlc/lib/os_sdlc/implementation.rb, addrecent_visits(agent_type), which returnsdispatches_dataset.by_agent_type(agent_type).recently_created(2).all. — check: presentdef recent_visitsinplugins/os-sdlc/lib/os_sdlc/implementation.rbgreen_runs_as_of(time), which returnsstep_results_dataset.at_or_before(time).latest_created.first_green&.minitest_runs. — check: presentdef green_runs_as_ofinplugins/os-sdlc/lib/os_sdlc/implementation.rbplugins/os-sdlc/lib/os_sdlc/implementation/progress_witness.rb, call@implementation.recent_visits(from_node)(line 24) and@implementation.green_runs_as_of(visit.created_at)(line 28). — check: absent_datasetinplugins/os-sdlc/lib/os_sdlc/implementation/progress_witness.rbplugins/os-sdlc/lib/os_sdlc/implementation/state_dump.rb:25, replace thedispatches_dataset.newest_few(...).eager(:agent).allchain with a call to anImplementationanswerrecent_dispatches(limit), defined inimplementation.rb, that returns the newest few dispatches with:agenteager loaded. — check: absent_datasetinplugins/os-sdlc/lib/os_sdlc/implementation/state_dump.rbAcceptance criteria
recent_visitsandgreen_runs_as_ofare called, then they return what the old chains returned.progress_witness.rbandstate_dump.rb, when searched for_dataset, then none remains.Owner sketch
Non-goals
Ruling S77 names
recent_visitsandgreen_runs_as_of. Required work item 4 addsrecent_dispatchesbecause the chain atstate_dump.rb:25takes a limit and eager loads:agent, and neither named answer covers it. Add no test.Origin
VERDICT: CREATE
Work started on branch crc-os-sdlc-run-3 (structure-change map).
Resolution
Done: S77 applied: Implementation#recent_visits, #green_runs_as_of and #recent_dispatches(limit) added; ProgressWitness and StateDump call them and name no dataset.
Evidence:
3f87a3b7(Runner commit, gate green, suite ~60 s). Implementation 92, dispatch 774.Follow-ups: none