GeezerVison is showing github.com — fix(server): report invalid provider events without a second schema failure by StiensWout · Pull Request #23650 · pingdotgg/t3code
Conversation
A provider event with invalid data could fail again while T3 constructed its normalization error, hiding the validation failure behind a schema defect.
Record the event type and preserve the original cause without validating the rejected payload again. Accepted-event validation is unchanged.
Verified with a failing-first service test against isolated SQLite, the valid-event control, 24 ingestor tests, eight recovery cases, server typecheck, and check:changed. A fresh independent audit returned ready to file at 3a0330c1d4.
Related to the Pi question failure in #22405. This fixes the shared error boundary; the Pi dialog mapper is a separate change.
Prepared for Wout by gpt-6.1-sol in the Codex harness through T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at da63fc1
Macroscope's review found this PR approvable — Provider normalization failures now retain the event type and original cause without revalidating the rejected payload while constructing the error. Successful-event validation and publishing remain unchanged, keeping the impact limited to failure reporting.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 22, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
The normalization error now stores the rejected event type instead of the full provider event. Tests cover invalid and valid question events and verify their effects on ingestion state.
Changes: Provider event normalization
| Layer / File(s) |
Summary |
Record rejected event type apps/server/src/orchestration-v2/ProviderEventIngestor.ts |
ProviderEventNormalizeError stores and reports the rejected event type. Normalization passes the event type when it creates the error. |
Test question event validation apps/server/src/orchestration-v2/ProviderEventIngestor.test.ts |
Tests verify that an empty question fails validation without adding an event or turn-item projection. A nonempty question passes validation and is stored and projected. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: juliusmarminge, t3dotgg
Merge Risk: Minimal · up to da63f
-
This fixes a case where an invalid provider event caused a second schema failure while the normalization error was being built. Accepted-event handling is unchanged, and tests cover both the invalid and valid cases. No merge-blocking risk was found.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the main change: invalid provider events are reported without triggering a second schema failure while the normalization error is built. The server scope and fix type match the changes… |
| Description check |
 |
The description follows the template's main intent. It states the problem (invalid provider event data causes a second schema failure while the normalization error is built) and the change (record the… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title names the main change: invalid provider events are reported without triggering a second schema failure while the normalization error is built. The server scope and fix type match the changeset, which changes ProviderEventNormalizeError to store eventType and adds a test for an invalid user-input question.
Full details: Description check
-
Explanation
The description follows the template's main intent. It states the problem (invalid provider event data causes a second schema failure while the normalization error is built) and the change (record the event type and keep the original cause without revalidating the payload). It also gives verification details, including a failing-first test, and links the related Pi question failure (#22405). Gaps: the Problem section lacks reproduction steps or expected behavior, the Scope section does not link a bug issue or explain why no issue is needed (the description only mentions a related failure), and the template's agent/model attribution is present. The Verification section cites test counts but not the observed results for the changed behavior in detail. These are non-critical gaps for a mostly complete description.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 3a0330c and da63fc1.
Files selected for processing: 2
-
apps/server/src/orchestration-v2/ProviderEventIngestor.test.ts
apps/server/src/orchestration-v2/ProviderEventIngestor.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Evidence
Run the same local ACP fixture against fresh, unseeded Linux dev servers. Start an empty-question thread, capture its server warning, then start a valid-question control. Inspect persistence after shutdown.
Both commits reject the invalid request without persisting a question item. The valid control persists one question request and reaches waiting-for-input on both.
Reproduction: driver, ACP fixture, transcript and persistence capture script. Internal paths are redacted from transcripts.
Not shown:
- Web question-card rendering and sidebar status were not exercised; this proof captures the server diagnostic and valid ingestion through the real CLI.
- The historical Pi trigger was not exercised; the reproduction used the specified malformed ACP elicitation.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
bugfix
Fix PR opened by an issue lead; enters the PR loop
pr:gate-failed
A land gate failed
size:XS
0-9 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|