Repository navigation
Conversation
Phase 1.1 foundation: Minimal gRPC ext_proc server stub. - ext_proc/ module with __init__ and server.py - ExternalProcessorServicer placeholder (Process() raises NotImplementedError) - requirements.txt with core dependencies (grpcio, protobuf, pydantic, pyyaml, tiktoken) - Dockerfile for containerization (python:3.11-slim) - setup.py for package management - pytest.ini and test structure - .gitignore for Python/IDE artifacts Tests: - test_version: confirms version is 0.1.0 - test_imports: verifies core dependencies importable - test_servicer_placeholder: confirms ExternalProcessorServicer exists All tests pass. Ready for Phase 1.2 (SSE Parser) to start. Depends on: none Blocks: PR-1.2 (SSE Parser), PR-1.4 (Scanner Interface)
Phase 1.2: Core SSE parsing for OpenAI-compatible LLM streaming.
streaming/sse_parser.py:
- split_sse_events(buf: bytes) → (events, remaining)
Splits raw bytes on \n\n delimiter
- parse_sse_event(event: bytes) → Optional[dict]
Parses "data: {...}" JSON, extracts delta.content
- is_done_event(event: bytes) → bool
Detects [DONE] marker
Handles: incomplete events, malformed JSON, OpenAI format, edge cases
Tests (16 tests, 100% pass):
- TestSplitSSEEvents: single, multiple, incomplete, empty
- TestParseSSEEvent: delta content, finish_reason, [DONE], edge cases
- TestIsDoneEvent: detection with/without prefix
- TestIntegration: realistic streaming sequence
Depends on: PR-1.1
Blocks: PR-1.3 (Logical Stream + Holdback)
xiaoqi-7
requested review from
Fei-Guo,
rambohe-ch,
techworldhello and
zhuangqh
as code owners
October 2, 2026 04:33
3 of 9 tasks
This branch has not been deployed
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.
Phase 1.2: Core SSE parsing for OpenAI-compatible LLM streaming.
streaming/sse_parser.py:
Splits raw bytes on \n\n delimiter, returns complete events + remainder
Parses "data: {...}" JSON, extracts delta.content from OpenAI format
Detects [DONE] marker for stream termination
Handles:
Tests (16 tests, 100% pass):
Depends on: PR-1.1 (#227)
Blocks: PR-1.3 (Logical Stream + Holdback)