Takedown RedCheck keeps only the last 40 lines of output #1432
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#1432
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
plugins/os-sdlc/eval/ticket-takedown/lib/takedown/model/red_check.rbhas its ownTAIL = 40. Itsentrymethod records"output" => tail(result.output). #1425 fixed the same evidence loss inSuiteRun(failure blocks plus summary, tail fallback when no block). The RedCheck output reaches the critic prompt:Takedown::RunPrompts#design_sectionembedsJSON.pretty_generate(check)as "Failing test check for ", andFinalRedStepwrites it as the record. The critic needs the failure text to judge whether the test is red for the intended reason. A long failure can push the failure message out of the last 40 lines.Reproduce
n/a: not yet reproduced; the evidence loss follows from the 40-line tail.
Origin
RedCheck#tailkeeps 40 lines ←RedCheckhas its ownTAIL, not the #1425 fix (DESIGN: red_check.rb)VERDICT: CREATE
Work started on branch ticket-1432 (worktree .claude/worktrees/ticket-1432).
Resolution
Done: New Takedown::FailureOutput keeps each failure block (at most 30 lines) plus the Minitest summary, with a last-40-lines fallback. RedCheck and SuiteRun both use it, and RedCheck's own 40-line tail is gone.
Evidence: main
b573e7e2(commitb112b077). Red test test_recorded_output_keeps_the_failure_block_before_trailing_noise in test/command/check_steps_test.rb. Takedown suite 625 runs, 0 failures. Rubocop clean. Built by hand in a worktree, test first.Follow-ups: Direct unit test file for FailureOutput: dropped, SuiteRun and RedCheck tests cover it. Other TAIL constants: dropped, none known.