Add record-fixture reference, lens link, and test-writer index line #1458
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#1458
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?
Add record-fixture reference, lens link, and test-writer index line [capture]
Problem
Test authors hand-build records such as ticket bodies and project.yaml Hashes, because no written rule says how to build a test record. The test-writer agent also never learns which fixtures exist. The fixture survey of 2026-10-28 found 16 test files that hand-build a complete ticket body.
Approach
Required work:
Object Motherinplugins/os-sdlc/skills/lens-testing/references/record-fixtures.mdreferences/record-fixtures.mdinplugins/os-sdlc/skills/lens-testing/SKILL.mdrecord fixtures live in tests/support/*_fixture.rb; list them before you build a recordinplugins/os-sdlc/agents/test-writer.mdThe reference states five rules:
build(**overrides)passes overrides to the real constructor and never re-states a constructor default..subon a returned value.The reference holds one
TicketFixtureexample withbuild(**overrides)andwithout(section).The reference names each pattern with its source:
The reference stays general, so other plugins adopt it unchanged. No ADR: none of these rules is a one-way door.
Route: by hand.
Acceptance criteria
references/record-fixtures.md./os-aidd-lint:checkruns Tier 1, then it reports no new offense.Owner sketch
Prose artifact; no Ruby owner
Non-goals
Origin
VERDICT: CREATE
Parent: #1019
Resolution
Done: Reference skills/lens-testing/references/record-fixtures.md (30 lines) with the five rules, one TicketFixture example, and pattern sources; lens-testing SKILL.md links it in one sentence; agents/test-writer.md step 2 carries the index line once.
Evidence: commit
902a7bbdon main; adr-find on the three paths returned no candidates; aidd-lint Tier 1 shows no finding on the added lines (one step-bulk advisory on the reference's prose line after the example; pre-existing findings on old lines untouched); bin/refresh-plugins synchronized.Follow-ups: none; #1459-#1461 and the #1011 occurrence carry the build work