crc os-adr wave 5: split CliInvocationHelpers: assert_* methods leave #930
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#930
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
Split CliInvocationHelpers: extract assert_* methods into a separate Assertions module. CliInvocationHelpers currently does two jobs: invoking CLI commands in-process (run_new, run_init) and asserting record properties (four assert_* methods). Separate data and vocabulary split this cleanly per R15 and R16.
Reproduce
n/a: structure-only refactor, no behavior change
Approach
Required work:
Recipe from R16:
The four methods
assert_postgres_record_fields,assert_postgres_record_indexed,assert_supersession_recorded,assert_old_record_supersededleave to a new module intests/support/whose name ends inAssertions;StatusResult,run_new,run_initstay.Governed by rulings: R15, R16
Rejected: none (R16 governs the split)
Acceptance criteria
Owner sketch
Familiar with Ruby and os-adr test support. Understand the two jobs: in-process command invocation (helpers) and record property assertions (assertions). Both modules are test support; one calls commands and collects results, the other inspects those results.
Non-goals
No behavior change; no new tests; no deletion of code that has callers.
Origin
Session: a20defa9-036a-415a-9dde-2ed833c727cb
Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os--claude-worktrees-crc-refactor-docs/a20defa9-036a-415a-9dde-2ed833c727cb.jsonl
Where: crc-refactor run on plugins/os-adr, worktree crc-os-adr-2026-10-04, ledger docs/crc/os-adr/ledger.tsv
9f19810d; rows applied 1/1; rows deviated 0; rows blocked 0Resolution
Done: CliInvocationHelpers split per R16: CommandInvocations and the assertions module (later RecordCreationAssertions by #933)
Evidence:
9f19810don branch crc-os-adr-2026-10-04 (not merged; user review pending); suite: 51 runs, 168 assertions, 0 failures, 0 errors, 0 skips; eager load silent; inward lint: none (os-adr has none)Follow-ups: none for this ticket; run-level follow-ups filed as #934 and #935; dropped items listed in docs/crc/os-adr/HANDOFF.md Review