Skip to content

test: prove SSE first-delta delivery at the API boundary - #2812

Merged
Chris0Jeky merged 6 commits into
mainfrom
issue-2241/sse-api-contract
Sep 9, 2026
Merged

test: prove SSE first-delta delivery at the API boundary#2812
Chris0Jeky merged 6 commits into
mainfrom
issue-2241/sse-api-contract

Conversation

@Chris0Jeky

Copy link
Copy Markdown
Owner

Add controller-level tests that prove the first SSE delta is readable before the provider completes. A gated provider and ResponseHeadersRead make the assertion deterministic; the tests also check event order, JSON payloads, blank-line framing, a single text/event-stream content type and compatibility with an immediately available response.

This is the AC3 API-test slice of #2241. It does not change production chat code or claim a real proxy/socket buffering test, a live provider smoke, or the whole issue's acceptance.

Validation at d0ba6c9: 2 focused tests passed; full dotnet test backend/Taskdeck.sln -c Release -m:1 exited 0 with 8,975 passed, 5 existing skips, 0 failures. Initial proving exposed a missing System.Net.Http.Json import and a test payload-casing assumption; the two test-only corrections are committed before publication. Final project counts: Domain 1605, Application 4206, API 2857 plus 4 skips, CLI 243, Architecture 28 plus 1 skip, Integration 36.

The original deterministic handshake and wire-framing implementation received independent Terra review without a C/H blocker. A scoped Luna check covers the subsequent test-only import/deserialization corrections. Hosted exact-head CI remains required before merge. Logs and exit receipts will be preserved outside the disposable worktree; no private data or provider credentials were used.

Refs #2241

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-09T09:29:40.912942Z f601713 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Chris0Jeky

Copy link
Copy Markdown
Owner Author

Final scoped Luna verification completed at d0ba6c9 for the corrections after the original Terra-reviewed c80a064 head. Two focused tests passed; typed LlmTokenEvent parsing matches the controller serialization, and the gated handshake, frame order and payload assertions remain meaningful. No causal C/H correctness, false-positive or hang blocker. Optional TokensUsed/Provider/Model fields are not individually asserted: informational coverage scope, not a defect or new fix request. Author full backend proof remains 8,975 passed / 5 existing skips at this final head. Required hosted CI is still separate.

@Chris0Jeky

Copy link
Copy Markdown
Owner Author

Session wrap-up: all source is pushed at d0ba6c9. Focused and full test logs/exit receipts plus generated OpenAPI evidence were copied outside the disposable checkout to C:\Users\Public\codex-shell-home\taskdeck-wave-20260908\issue-2241; test-file SHA-256 copies were verified before cleanup. The clean checkout will be removed normally by the coordinator; generated bin/obj caches are disposable. Final fix verification is recorded above. This ready PR remains open for required CI and next-session reconciliation; no monitor or test process remains owned by this session.

@Chris0Jeky

Copy link
Copy Markdown
Owner Author

Current-base refresh preserves the reviewed SSE tests without source edits. New head b46496f includes main 1777e3c; the added base delta since 0a02085 is the reviewed documentation record #2813. Targeted ChatSseApiTests pass 2/2 on the merged source. Original full-backend proof and completed review/fix record remain applicable to unchanged code; fresh hosted CI is required at this new head. Base-only interaction review is being reconciled; no additional feature/fix round.

@Chris0Jeky

Copy link
Copy Markdown
Owner Author

Base-only Terra reconciliation completed: no current-base blocker. The only added base delta is the reviewed documentation record #2813; original SSE review and final scoped fix verification remain applicable. Two API tests pass on this new head. No new finding or additional review round.

@Chris0Jeky

Copy link
Copy Markdown
Owner Author

Final current-base Terra reconciliation is clear. The refresh is a two-parent merge of the prior reviewed head and main f935ebc; its only added paths are the five representation-contract files, byte-identical to main, with no conflict-resolution edits. The added contract remains unregistered/unmapped with no runtime writer and no direct interaction with this reviewed seam was found. Original source/fix reviews remain applicable; fresh hosted CI at the refreshed head is the remaining gate. Closeout: PR #2814 and C:/Taskdeck-wave/evidence/HANDOFF.md.

@Chris0Jeky

Copy link
Copy Markdown
Owner Author

Fresh Terra base-interaction review completed against main 7ac99a7: no CRITICAL/HIGH blocker. Each current head was materialized and its merge tree reconciled cleanly. Original source/fix reviews remain applicable. For the control seams, control-trust tests passed 4/4 (#2792), nightly tests passed 35/35 with docs checks (#2791). Fresh current-head hosted CI remains required; this comment does not waive the maintainer-review gate on control paths.

@Chris0Jeky
Chris0Jeky merged commit 7be107b into main Sep 9, 2026
35 checks passed
@Chris0Jeky
Chris0Jeky deleted the issue-2241/sse-api-contract branch September 9, 2026 10:57
@github-project-automation github-project-automation Bot moved this from Review to Done in Taskdeck Execution Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant