feat(btw): deliver background results to the originating request - #138
Merged
Merged
Conversation
8 tasks
This was referenced Sep 10, 2026
YUZHEthefool
added this pull request to stack #149
September 10, 2026 16:54
6 tasks
BegoniaHe
force-pushed
the
split/btw-result-delivery
branch
from
September 10, 2026 18:59
d10fd00 to
49ef618
Compare
git fetch origin split/btw-work-runtime
git rebase origin/split/btw-work-runtime
# after resolving the conflicts
git push --force-with-leaseThe |
Keep request-scoped WebChat delivery open until work completes and reclaim profile tasks before their runtime dependencies close. Related: #126 AI-Generated: true Generated-At: 2026-09-10T15:51:37Z
AI-Generated: true Generated-At: 2026-09-10T19:20:50Z
AI-Generated: true Generated-At: 2026-09-10T19:24:44Z
BegoniaHe
force-pushed
the
split/btw-result-delivery
branch
from
September 10, 2026 19:24
76785fd to
075a270
Compare
|
✅ Conflicts resolved; removing the |
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
Wire detached work to response decoration and delivery without ending the originating WebChat request at acknowledgement. Keep per-request output/statistics identity and release events/files on completion, failure, or cancellation.
Related issue
Related: #126
Parent: #122
Design: #28
Stack
split/btw-work-runtime. Depends on PR #137.Behavior
Deliver background results through the existing response decoration and sending stages, preserving the originating request identity. Release temporary files and event registrations after completion, failure, or cancellation.
Non-goals
A new HTTP protocol, a session-wide busy flag, or a separate response pipeline is not required.
Implementation notes
Base branch:
split/btw-work-runtime. Depends on PR #137. This PR shows only this feature's changes relative to that dependency. The original prototype at33ee103a62937db3e930c89ba47a648b75cc7772is provenance; integration follows current master's owners and authorization contracts. The parent issue records review/integration order.No new HTTP contract or dependency changes. Feature settings and behavior are documented in both languages.
Validation
91 focused delivery, work, scheduler, lifecycle and internal-agent tests passed initially. After integrating B1 metadata and narrowing the scheduler cleanup awaitable, 70 related tests passed; the complete CI quality Pyright project passed with the Linux platform model.
Python checks used the existing Python 3.14.1 environment with
python -m pytestand task-local--basetempdirectories. Local Node was 24.11.1; CI must validate the pinned toolchain. Relevant scoped formatting and Markdown checks were run. The root tracker records the final combined validation. No live model evaluation is implied by deterministic tests or documentation checks.Compatibility and risk
Depends on B3. Real scheduler plus WebChat emitter/queue tests cover concurrent request IDs, cancellation before startup, delivery failure, and closed-loop admission. Profile work closes before transport/runtime dependencies. No real provider or live IM was used.
Checklist
Repository references: AGENTS.md, GOVERNANCE.md, AI_POLICY.md, and the feat PR template.
Agent note
Codex prepared this PR at the user's request to split the original #28 implementation into reviewable features, with only classifier experiments marked as drafts. AI assisted extraction, current-path adaptation, tests, and English descriptions. The validation above was performed locally; remaining limitations are stated explicitly. This note is not a maintainer approval. No PR has been merged.