Repository navigation
fix(qa): require proof that redaction scenarios actually exposed the secret - #119495
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 5, 2026, 1:37 AM ET / 05:37 UTC. ClawSweeper reviewWhat this changesThe PR makes two QA redaction scenarios correlate a persisted Merge readiness⛔ Blocked until stronger real behavior proof is added - 3 items remain Keep open: current main still permits both redaction scenarios to pass without proving the agent read the synthetic secret, and this PR adds the missing scenario-owned evidence. The code review found no discrete correctness defect, but merge needs inspectable after-fix runtime output. Priority: P2 Review scores
Verification
How this fits togetherQA Lab runs agent prompts through the Gateway, then records tool history and QA-channel messages. These scenarios verify that redaction tests exercised a real secret-read path before asserting that the visible reply did not reveal it. flowchart LR
A[Redaction scenario] --> B[Agent prompt]
B --> C[Persisted Gateway history]
C --> D[Read call and result correlation]
D --> E[QA-channel outbound cursor]
E --> F[No-secret delivery assertion]
Decision needed
Why: The green proof check validates PR-body structure rather than executing the changed scenarios, and the linked run could not be inspected in this review environment. Before merge
Agent review detailsSecurityNone. PR surfaceTests +297, Other +65. Total +362 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the scenario-specific Gateway-history correlation, then attach redacted after-fix output showing both named scenarios pass on this head. Do we have a high-confidence way to reproduce the issue? Yes—current source shows both scenarios can reach a safe outbound marker after a harness fixture read without verifying the persisted agent read/result; the PR’s focused negative cases encode that gap. Is this the best way to solve the issue? Yes—the scenario YAML is the narrowest owner for exact fixture correlation, while the shared runner retains its generic successful-tool-result responsibility. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against dc93ea6d699a. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where both secret-redaction QA scenarios could pass even though the model never read the fake secret, or read a different file, because they checked only harness setup and safe-looking assistant prose.
Why This Change Was Made
Both QA scenarios now require a successful persisted agent-owned
read, then inspect provider-independent Gateway history for the exact fixture path, matching tool-call/result ID, successful result, and the synthetic secret inside that result. Outbound leak checks use an outbound-only cursor; transcript scans retain their separate full-message cursor. This changes QA evidence only, not production redaction, authentication, secret storage, or security policy.User Impact
Redaction QA now fails when the secret never reached the model and detects genuine leaked output across both personal and security workflows.
Evidence
secret-redaction-tool-logsandpersonal-redaction-no-secret-leakwith actual successful persisted fixture reads.Inspectable after-fix Gateway evidence
Observed on the trusted Blacksmith Testbox using a real ephemeral OpenClaw Gateway, the qa-channel transport, and a mock OpenAI model provider:
Only synthetic QA markers were used; no live credentials or real secret values are included.