Repository navigation
fix: preserve sanitized reflect smoke failure diagnostics - #11429
Merged
Merged
Conversation
Record stable contract assertion IDs and bounded incoming/upstream shape comparisons without publishing request values. Reproduce retained failure chronologies with the real provider-free fixture while keeping acceptance strict. Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the sanitized smoke-test diagnostics changes, though live-agent acceptance remains pending.
No open issues 🎉
What changed in this PR
Improves failure diagnostics for AWF’s manual real-agent /reflect smoke tests, following #11371. The changes preserve bounded, sanitized evidence without changing production model behavior or substantive acceptance requirements. Live-agent acceptance remains pending.
Changes:
- Add static grading failure IDs and bounded incoming/upstream traces with boolean request-shape comparisons.
- Preserve fixture backend status and mismatch classification without publishing request values or arbitrary error text.
- Expand provider-free regression coverage and make the mock harness timeout self-contained.
| File | Description |
|---|---|
scripts/ci/reflect-smoke/README.md |
Documents sanitized evidence, historical uncertainty, and validation limits. |
scripts/ci/reflect-smoke/harness.test.cjs |
Adds output-sanitization checks and a self-contained mock timeout. |
scripts/ci/reflect-smoke/grade.cjs |
Assigns static failure IDs while retaining grading requirements. |
scripts/ci/reflect-smoke/fixture.test.cjs |
Covers retained failure chronologies, structural mismatches, and model normalization. |
scripts/ci/reflect-smoke/fixture.cjs |
Records upstream sequence, backend status, and fixed mismatch classification. |
scripts/ci/reflect-smoke/diagnostics.cjs |
Adds bounded trace sanitization and boolean request-shape comparisons. |
scripts/ci/reflect-smoke/collect.cjs |
Includes sanitized upstream traces and recognized assertion IDs in summaries. |
Review effort: Balanced (auto)
Contributor
|
| Metric | Base | PR | Delta |
|---|---|---|---|
| Lines | 93.84% | 93.84% | ➡️ +0.00% |
| Statements | 92.39% | 92.38% | 📉 -0.01% |
| Functions | 93.06% | 93.06% | ➡️ +0.00% |
| Branches | 86.77% | 86.77% | ➡️ +0.00% |
📁 Per-file Coverage Changes (1 files)
| File | Lines (Before → After) | Statements (Before → After) |
|---|---|---|
src/commands/main-action.ts |
92.0% → 91.7% (-0.25%) | 91.7% → 91.4% (-0.24%) |
Coverage comparison generated by scripts/ci/compare-coverage.ts
This was referenced Nov 10, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Preserve actionable, bounded failure evidence for the manual real-agent
/reflectsmoke without exposing request values or weakening acceptance. This is the focused diagnosis follow-up to #11371, not a production model rewrite or a claim of improved live-agent acceptance.Relates to #11371, #10290, #10296, and #10297 (non-closing references).
failedAssertion, never assertion diffs, exception messages/stacks or agent-supplied error properties.fixture_task_mismatchclassification. Streamed upstream failures no longer disappear behind onlystage: "grade"and an unclassified incoming 422.What the evidence establishes
Reviewed the sanitized artifacts from run 42678673312, source
eeefa05f0d457b43d693dd74f68de2348d69ddc9: provider-free checks passed, only Copilot denial passed (1/6 live scenarios), and all CLIs exited zero.The local tests reproduce:
Submitting the envelope rather than its nested request is a demonstrated possible local cause, not a finding about the historical agents. The old artifacts omit request bodies/shape flags and the failed assertion, so their 422 mismatch cause remains unknown. No canonical registry finding establishes a production fix. Exact requests still return the required production 400/403 locally, and both original success paths pass. No production model subsystem defect has been established or patched.
Acceptance and isolation unchanged
Keep the exact initial rejection; successful GET
/reflectchronology/schema/reason/do_not_repeat; recovery's exactly two target POSTs, one upstream request and nonce-derived report; denial's exactly one POST, zero upstream requests andretry: false; request/inference/time caps; and host-owned evidence. Prompts, credentials, headers, raw bodies, nonce/results, transcripts and arbitrary agent/error strings remain excluded from published failure diagnostics. No guest prompt, production admission or workflow was changed.Local validation
npm run test:reflect-smoke: 19 passing tests, no providers or Docker.node --checkfor smoke CommonJS files andbash -nfor both harness scripts: pass.git diff --check: pass.npm run lintandnpm run build: pass (existing lint warnings).No live inference, workflow dispatch/rerun, token exchange, auto-merge or merge was performed. Live acceptance remains pending separately authorized testing; these checks neither repair historical artifacts nor prove that an agent's behavior improved.