Repository navigation
fix(bench): write heap-retention records through the evidence writer - #268
Merged
Merged
Conversation
The probe wrote its records with a bare tab-indented JSON.stringify, and prettier --check owns stages/results/, so the three checked-in records turned the first live lint job red (run 540) the moment CI came back. The writer exists for exactly this; the probe now uses it, and the three records are rewritten through it — values untouched, whitespace only. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YHfFsy9CLaRovTFH8pTGyY
Huxpro
marked this pull request as ready for review
August 31, 2026 16:21
This was referenced Aug 31, 2026
1 task done
Huxpro
pushed a commit
that referenced
this pull request
Aug 31, 2026
Three gate items of one class: - the checked-in census record was hand-assembled and prettier-red; rewritten through writeEvidenceJson, values untouched. - the census build CLI silently dropped a typo'd --scales entry and accepted a negative one; parses before filtering and refuses both. - bts-profile and papi-floor still wrote records with a bare tab stringify — the same latent defect #268 fixed in heap-retention; both now write through the evidence writer. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YHfFsy9CLaRovTFH8pTGyY
Merged
5 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
writeEvidenceJson, and rewrite the three checked-in records through it, soprettier --checkacceptsstages/results/again.Why
lint checksflaggedc230-retention-10000.json,c252-array-owner-10000.json, andc252-postcausea-10000.json. The probe wrote them with a bare tab-indentedJSON.stringifywhilescripts/evidence.mjsexists precisely to emit recordsprettier --checkaccepts unchanged; the CI outage meant nothing flagged the deviation while those records landed.tailswallowed non-zero exit codes, so the local repo-wideformat:check"pass" for Train 3 was masked. Chain re-run unpiped for this PR.)Changes
stages/heap-retention.mjs:fs.writeFileSync(..., JSON.stringify(record, null, '\t'))→await writeEvidenceJson(jsonPath, record), with a comment naming why.Validation
prettier --check .— clean, exit code checked directly (not piped)pnpm typecheck— n/a, one.mjswrite-site and three JSON recordspnpm test— n/a,stages/is outside every Vitest project; the red job's own command is the oraclenode --check stages/heap-retention.mjspnpm sync— cleanRisk / follow-ups
Provenance
agent-authored)Generated by Claude Code