Repository navigation
fix(qa): authenticate actual scenario execution evidence - #117004
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 3:13 PM ET / 19:13 UTC. ClawSweeper reviewWhat this changesThe branch makes QA suite-summary readers reject malformed counts and aggregate-only success claims unless completed scenario or evidence rows authenticate execution. Merge readiness⛔ Blocked until stronger real behavior proof is added - 5 items remain Keep this PR open for maintainer review. Current Priority: P2 Review scores
Verification
How this fits togetherQA Lab writes a JSON suite summary after running scenarios, and CLI QA gates read that artifact to decide whether a campaign can pass or must report failures. This PR changes the summary-validation boundary before those gates consume the reported counts. flowchart LR
A[QA scenario run] --> B[Suite summary JSON]
B --> C[Summary validation]
C --> D[Failure and skip counters]
D --> E[CLI QA gate]
E --> F[Pass or visible failure]
B --> G[Scenario and evidence rows]
G --> C
Decision needed
Why: The change deliberately alters the acceptance boundary of QA automation, and the protected Before merge
Agent review detailsSecurityNone. PR surfaceSource +16, Tests +63. Total +79 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain one canonical summary validator that accepts only safe integer counters and authenticates success from completed rows when rows are present, while preserving documented count-only legacy summaries; then show an exact-head terminal or redacted log transcript for the affected QA command and its valid legacy counterpart. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main treats positive Is this the best way to solve the issue? Unclear pending exact-head hydration, but the proposed owner boundary is the right one: validate the summary where all QA gates first consume it rather than compensating in individual callers. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 652a47e6449d. 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.
|
* origin/main: (22 commits) fix(cron): preserve lazy ownership and bounded notification lifetimes (#117018) fix: live updater no-op restarts healthy gateways (#117038) fix(bedrock): release streaming clients (#117039) fix(google): restore canonical Gemini and Vertex provider invariants (#117042) fix(channels): preserve accepted LINE and Mattermost delivery (#117024) fix(feishu): unify truthful delivery and media ownership (#117023) fix(ui): isolate gateway observer lifecycles (#117017) fix(tui): keep reset transitions isolated from stale input (#116873) fix(gateway): centralize streamed media descriptor ownership (#117000) feat(plugins): externalize OpenCode provider (#117035) fix(onboarding): restore skill dependency consent (#116644) fix(streaming): preserve incomplete bracket tails in final replies (#116983) fix: allow slower gateway readiness after updates (#117032) fix(plugin-state): avoid shared SQLite corruption when CLI starts during gateway runtime (#113204) fix(cli): keep config file output raw under JSON logging (#116968) fix(ai): malformed Anthropic stream frames expose raw event payloads (#116938) fix(qa): authenticate actual scenario execution evidence (#117004) feat(plugins): externalize NovitaAI provider (#117007) fix(text): preserve fenced tool markers in visible-text sanitizer (#116939) (#116971) fix(channels): reset metadata memos with plugin lifecycle (#117005) ...
…7004) Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
QA suite gates could incorrectly report a passing campaign without any actual completed scenario. A fabricated aggregate pass could hide an observed skipped-only run, and malformed count containers or negative/fractional counters could be normalized into a false-green result.
Why This Change Was Made
The existing suite-summary owner now validates the shape and exact non-negative safe-integer value of reported counters, trusts observed completed scenario/evidence rows over unsupported aggregate passes, and rejects a positive total without proof of completed work.
Count-only legitimate legacy summaries remain supported. Crucially, every declared or observed failure still dominates incomplete scenario rows: the intentional fail-closed failure/blocking behavior and optional-skip contracts remain unchanged.
User Impact
No provider, scenario execution, runtime, public configuration, SDK, security, persistence, or gateway behavior changes.
Evidence
Frozen canonical baseline:
36b80ada3ceae2de21b3d8710b883d778e4c4578.Immutable reviewed candidate:
fd7a8a0cb05b0a357294ec30006da5cce8322a8e.Actual frozen/candidate production exports reproduce and correct all three causes across both failure-only and failure-or-skip readers.
Direct product evidence explicitly preserves count-only legitimate passes, real declared failures with incomplete/skipped rows, optional report-only skip handling, and maximum-failure dominance.
Focused exact-head owner command:
Exact immutable candidate proof: 53/53 owner tests passed in 22.65 seconds.
A first authorized remote proof exposed three real candidate regressions; all were repaired before the final passing run. A second remote attempt correctly failed its exact-head guard before running tests; both leases were stopped and verified completed, and no remote success is claimed.
Production delta: 25 additions / 9 deletions = +16 lines; targeted regression tests: 66 additions / 3 deletions.
Genuine precommit full-priority Codex/Sol high-reasoning review: zero P0/P1/P2/P3 findings, 0.96 confidence.
Exact immutable full-branch P0–P3 structured autoreview: zero findings, patch is correct, 0.96 confidence, genuine TruffleHog clean.
Passing trusted focused owner proof, both stopped remote leases, independent complete-owner review, frozen merge-base, clean worktree, targeted formatting, and
git diff --checkall verified.