mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4472] [Benchmark] bug: the runner redacts ordinary options whose names contain "token" or "key", and a matching flag hides the next option #2000
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#2000
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?
Originally created by @coryjett on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4472
Area
Benchmark
Desktop app, Terminal or source?
Terminal (Linux release 0.2.7, Control 0.1.52); the same code is on
mainat46c152a1.What happened
strata bench run --profile <run config> --no-startwrote"--conversation-cache-min-tokens": "<redacted>"inconfig.jsonandresults.json. The value is 20000, not a secret.The engine arguments reach the runner through
_redact_argv(strata_cli/cli.py:726, used at line 824 forengine_argv). It treats any option whose name containskey,token,secret,passwordorcredentialas asecret and hides the next item. Two effects:
--conversation-cache-min-tokens, and anything else with "token" or "key" inthe name.
--no-token-graph,--native-ple-key, both engine flags) hides the nextitem, which is the next option's name. That option then disappears from the report.
Checked against
_redact_argvfrommain:--kv int8is gone, andparse_optionswould record--no-token-graph: "<redacted>".Related, same idea:
SECRET_KEY(key|token|secret|password|auth) instrata_cli/bench_facts.py:26andtools/strata_bench.py:595drops anySTRATA_*variable or config key containing those words, e.g. afit_max_tokensorreasoning_budget_tokensconfig key inconfig_view.Suggested fix: hide values only for options that hold credentials (
--api-key,--key,--new-key,*-tokenwhen it takes a value,
--password,*-secret), and never conceal the next item after a flag that takes no value.Happy to send a PR with tests.
Smallest steps or command that reproduce it
Serve a profile whose args include
--conversation-cache-min-tokens 20000, then runstrata bench run --profile <that run config> --no-startand look atconfigurationinresults.json.Or call
_redact_argvas above.Reproduction status
Reproduced locally: the benchmark output in #4468
(
bench/results/2026-10-28-standard-rtx-3090-plus-rtx-3090-5250594b/config.json), and the function call above onmain.Strata version
0.2.7 (engine 0.1.52, Control 0.1.52); code checked on
main46c152a1.Graphics card, memory and system
2x RTX 3090 24 GB, 2x Xeon E5-2620 v3, 256 GB, Ubuntu 26.10. Not hardware-specific.
Model, size and settings
Flash-Next IQ3_S; see #4468.
Logs
None needed; see the output above.
[GH-ISSUE #4472] [Benchmark] the runner redacts ordinary options whose names contain "token" or "key", and a matching flag hides the next optionto [GH-ISSUE #4472] [Benchmark] bug: the runner redacts ordinary options whose names contain "token" or "key", and a matching flag hides the next option@Niko1221 commented on GitHub (Nov 5, 2026):
Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report.
The Strata project
@coryjett commented on GitHub (Nov 5, 2026):
This is not a benchmark, but rather an issue with how benchmarks are collected.
@coryjett commented on GitHub (Nov 5, 2026):
/reopen
@github-actions[bot] commented on GitHub (Nov 5, 2026):
Reopened, thank you. A maintainer will pick it up from here.