mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4500] [CLOSED] [Benchmark] results.json gets the same redaction as the other report files #5069
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5069
Loading…
Add table
Add a link
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4500
Author: @coryjett
Created: 10/28/2026
Status: ❌ Closed
Base:
main← Head:fix-bench-results-redact📝 Commits (1)
b69a74fbench: results.json gets the same redaction as the other report files (#4484)📊 Changes
2 files changed (+15 additions, -0 deletions)
View changed files
📝
strata_cli/bench_standard.py(+1 -0)📝
tests/terminal/test_bench_standard.py(+14 -0)📄 Description
Problem and result
Fixes #4484.
strata bench runwroteresults.jsonwithout the redaction it applied to its other files:outputs.jsonl and config.json went through
facts.redact_object, engine.log and the README throughredact, butthe report
docwasjson.dumps-ed as it was. So--track-notes "models in /home/alice/m"gave a README with/home/<user>/mand a results.json with/home/alice/m; the same for--background,custom_pack,requests[].error.messageandSTRATA_*values, against what docs/BENCHMARK_PROTOCOL.md promises.After:
doc = facts.redact_object(doc, redact)before validation, so results.json carries the same text the READMEdoes.
Related discussion
#4484
Approach
One line in
strata_cli/bench_standard.py, beforevalidate(doc)so the validated document is the written one.redact_objecttouches string values only; numbers, booleans and nulls are unchanged.Validation
Passed:
python3.12 -m unittest tests.terminal.test_bench_standard tests.terminal.test_bench: Ran 94 tests in 70.956s, OK (1 skipped).Strata Control 0.1.52's bundled Python 3.12.15, Ubuntu 26.10, this branch (main
46c152a1+ this commit).CommandLineTests.test_results_json_is_redacted_like_the_other_filesagainst main'sbench_standard.py(production file stashed, test kept): Ran 1 test in 1.778s FAILED (failures=1)Failed:
Not run:
strata bench runwith this branch.Limits
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.