You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
explain_stats ignores the permute pass; -tui -ct does not pre-fill Sources #348
Two small front-end gaps left by today's features.
Where
internal/cli/explain.go (explainTarget)
internal/cli/session.go (tuiOmittedFlags)
Details
Since Run-quality report leaves out the -permute pass's queries and verdict #298 a target's verdict can come from its permutation pass, but explain_stats prints only the pass's candidates, seeds and found, so its explanation relies on the reason string alone; it should state the pass's verdict and queries.
Add the permutation pass's verdict and queries to the explanation; map -ct onto the Sources field and drop it from tuiOmittedFlags.
Acceptance criteria
explain_stats names the permutation pass when it set the verdict
subenum -tui -ct opens with ct in Sources and no warning
Getting started
How to run tests: make test (or go test ./...). Tests must stay hermetic: use -simulate, -simulate-zone or the local DNS test server, never a live domain.
Related docs: docs/DEVELOPER_GUIDE.md, docs/ARCHITECTURE.md
Filed by repo-audit/fix-issues at 637a950. Severity: low. Effort: S. audit-key: enhancement|internal/cli/explain.go|permutation
Fixed in 95b1bac: tuiOptions turns -ct into ct in the Sources field without a warning; explain_stats gives the permutation pass's names tested, queries and own verdict, and says when it set the target's verdict. ct stays in the test's tuiOmittedFlags (the form still reads only -sources), with a note. Verified: new cases in TestTUIOptionsFromFlags (-ct, -ct -sources wayback, -ct -sources ct,wayback) and a second target in TestMCPExplainStatsBranches; go test ./internal/cli and golangci-lint v2.15.0 pass.
Activity
TMHSDigital commentedon Nov 15, 2026
Fixed in 95b1bac:
tuiOptionsturns-ctintoctin the Sources field without a warning;explain_statsgives the permutation pass's names tested, queries and own verdict, and says when it set the target's verdict.ctstays in the test'stuiOmittedFlags(the form still reads only-sources), with a note. Verified: new cases inTestTUIOptionsFromFlags(-ct,-ct -sources wayback,-ct -sources ct,wayback) and a second target inTestMCPExplainStatsBranches;go test ./internal/cliand golangci-lint v2.15.0 pass.Map -tui -ct to Sources; explain the permutation verdict (TMHSDigital…