-
Notifications
You must be signed in to change notification settings - Fork 0
[讨论]确认 Native API 作为外层协议唯一真值层 #369
Copy link
Copy link
Open
Labels
area:apiPublic API or protocol contract workPublic API or protocol contract workarea:backendBackend API, service, repository, or runtime workBackend API, service, repository, or runtime workchild-issueChild implementation issueChild implementation issuecontractContract or API semantics changeContract or API semantics changegrade:g4Architecture or data risk workArchitecture or data risk worklevel:l1Decision issue / ADRDecision issue / ADRparent-issueParent tracking issueParent tracking issuephase:discussionRequirement discussion and decision shapingRequirement discussion and decision shapingpriority:p1High priorityHigh priorityrisk:highHigh risk if implemented incorrectlyHigh risk if implemented incorrectlysize:sSmall implementation and review sizeSmall implementation and review sizetype:designDesign or contract shaping workDesign or contract shaping work
Metadata
Metadata
Assignees
Labels
area:apiPublic API or protocol contract workPublic API or protocol contract workarea:backendBackend API, service, repository, or runtime workBackend API, service, repository, or runtime workchild-issueChild implementation issueChild implementation issuecontractContract or API semantics changeContract or API semantics changegrade:g4Architecture or data risk workArchitecture or data risk worklevel:l1Decision issue / ADRDecision issue / ADRparent-issueParent tracking issueParent tracking issuephase:discussionRequirement discussion and decision shapingRequirement discussion and decision shapingpriority:p1High priorityHigh priorityrisk:highHigh risk if implemented incorrectlyHigh risk if implemented incorrectlysize:sSmall implementation and review sizeSmall implementation and review sizetype:designDesign or contract shaping workDesign or contract shaping work
Type
Fields
Give feedbackNo fields configured for issues without a type.
Issue Metadata
[讨论]确认 Native API 作为外层协议唯一真值层type:design,area:api,area:backend,level:l1,grade:g4,priority:p1,risk:high,size:s,phase:discussion,contract,parent-issue,child-issueContext
OpenAI Chat Completions currently maps request payloads into
NativeRunRequest. The requested OpenAI Responses endpoint adds continuation and streaming projection concerns that can easily leak external protocol state into the product core if not constrained.Decision To Confirm
1flowbase Native API, runtime events, native runs, and native conversation semantics remain the only source of truth. External protocols such as OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages only map into and project out of the native layer.
Rationale
previous_response_idshould be treated as an external cursor that resolves back to native run/conversation/history semantics.stream: trueshould project native runtime events into the external SSE shape, not create a second event source.Alternatives Considered
/openai/v1/chat/completions; rejected because it does not address Responses continuation.Open Decisions
Acceptance Evidence
Lifecycle
phase:discussion