GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): report invalid provider events without a second schema failure by StiensWout · Pull Request #23650 · pingdotgg/t3code

Conversation

@StiensWout

@StiensWout StiensWout commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions
@StiensWout
fix(server): report rejected provider events without revalidating them
3a0330c
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Oct 22, 2026
macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Oct 22, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Oct 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 8247952
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bbcaac97-595f-483f-b55e-5f6bcccb6289
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@StiensWout StiensWout mentioned this pull request Oct 22, 2026
fix(pi): preserve native dialog titles and input hints #23662
Closed
@juliusmarminge juliusmarminge added bugfix Fix PR opened by an issue lead; enters the PR loop pr:gate-failed A land gate failed labels Oct 27, 2026
@coygeek coygeek mentioned this pull request Nov 12, 2026
[Bug]: Pi extension input, select, or editor dialogs with a blank title fail the run with "Provider turn failed." #35237
Closed
2 tasks done
@Kirat0201 Kirat0201 mentioned this pull request Nov 12, 2026
fix(pi): blank extension dialog titles no longer fail the turn #35271
Merged
@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 14, 2026
juliusmarminge and others added 2 commits November 14, 2026 07:40
@juliusmarminge
Merge remote-tracking branch 'origin/main' into t3/provider-event-err…
2b056fd
…or-boundary
@juliusmarminge @claude
test(server): drop ProviderAdapter import duplicated by main merge
da63fc1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@macroscopeapp
macroscopeapp Bot dismissed their stale review November 14, 2026 07:42

Dismissing prior approval to re-evaluate da63fc1

macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 14, 2026
View reviewed changes
@juliusmarminge

juliusmarminge commented Nov 14, 2026

Copy link
Copy Markdown
Member

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.

Before After
82479522cb da63fc16f1
Captured runtime transcript: Error: Schema validation failed thrown inside new ProviderEventNormalizeError; its inner schema includes providerEvent. Captured runtime transcript: typed ProviderEventNormalizeError names turn_item.updated, retaining SchemaError: Expected a non-blank string at payload.questions[0].question.

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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 14, 2026
@juliusmarminge
juliusmarminge merged commit e80468b into pingdotgg:main Nov 14, 2026
53 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 14, 2026
AIdoesmyjob pushed a commit to AIdoesmyjob/t3code that referenced this pull request Nov 14, 2026
@StiensWout @juliusmarminge @AIdoesmyjob
fix(server): report invalid provider events without a second schema f…
8088fb9
…ailure (pingdotgg#23650)

Co-authored-by: Julius Marminge <[email protected]>
(cherry picked from commit e80468b)
@AIdoesmyjob AIdoesmyjob mentioned this pull request Nov 14, 2026
sync: 43 upstream fixes 2026-11-14 (security, Codex/Claude/ACP compat, delegation, data safety) AIdoesmyjob/t3code#29
Closed
Pipyakas pushed a commit to Pipyakas/t3code that referenced this pull request Nov 15, 2026
@StiensWout @juliusmarminge @Pipyakas
fix(server): report invalid provider events without a second schema f…
ce225a1
…ailure (pingdotgg#23650)

Co-authored-by: Julius Marminge <[email protected]>
(cherry picked from commit e80468b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

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.

Projects

None yet

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.

2 participants

@StiensWout @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.