Add native OpenAI adapter boundary
This commit is contained in:
parent
76f284f88e
commit
743f8bcc6c
7 changed files with 154 additions and 12 deletions
|
|
@ -104,14 +104,21 @@ state ownership.
|
|||
|
||||
## Next Cut
|
||||
|
||||
Define the first `epiphany-openai-adapter` crate boundary as a wrapper, not a
|
||||
rewrite:
|
||||
The first `epiphany-openai-adapter` crate boundary now exists as a native typed
|
||||
surface:
|
||||
|
||||
- input: typed model-turn request plus adapter config
|
||||
- output: typed stream events and terminal usage/error receipt
|
||||
- internal dependency: Codex auth/model transport only
|
||||
- current dependency: no Codex app-server and no Codex transport yet
|
||||
- planned internal dependency: Codex auth/model transport only
|
||||
- forbidden dependency: Codex app-server or Epiphany JSON-RPC routes
|
||||
|
||||
The first implementation can be a thin wrapper around existing Codex transport.
|
||||
The first attempt to wire `codex-core` directly as a standalone path dependency
|
||||
escaped the vendored workspace lock and hit transitive ICU/temporal dependency
|
||||
skew. Do not paper over that with random version pins. The next implementation
|
||||
slice should add a Codex-transport feature or workspace-verified wrapper that
|
||||
builds under the same dependency regime as vendored Codex, while preserving the
|
||||
typed request/event/receipt surface as the Epiphany-owned contract.
|
||||
|
||||
The point is ownership: Epiphany calls a model adapter; it does not live inside
|
||||
the Codex host brain.
|
||||
|
|
|
|||
|
|
@ -545,18 +545,26 @@ The auth-spine inventory now exists at
|
|||
the next real extraction target: create an outside-vendor
|
||||
`epiphany-openai-adapter` wrapper around auth/model transport with no
|
||||
dependency on Codex app-server or Epiphany JSON-RPC routes.
|
||||
The first `epiphany-openai-adapter` crate now exists outside `vendor/codex` and
|
||||
compiles as a native typed boundary: auth status, model request, stream event,
|
||||
and terminal receipt documents. It intentionally has no Codex app-server
|
||||
dependency and no generic JSON payload. A direct standalone `codex-core` path
|
||||
dependency attempt hit transitive dependency skew outside the vendored Codex
|
||||
workspace lock; do not "fix" that with random version pins. The next slice is a
|
||||
workspace-verified Codex transport feature/wrapper behind the typed adapter
|
||||
surface.
|
||||
|
||||
Also: MCP itself is allowed to be JSON. The target is not "replace MCP JSON";
|
||||
the target is an Epiphany-owned boundary that speaks typed Epiphany
|
||||
intent/result/receipt documents internally and normal MCP JSON-RPC externally.
|
||||
|
||||
Continue with the actual whale-carcass cut: create the first
|
||||
`epiphany-openai-adapter` boundary outside `vendor/codex`, wrapping only the
|
||||
keeper auth/model transport spine identified in
|
||||
`notes/codex-auth-spine-inventory.md`. Success is Epiphany calling a model
|
||||
adapter rather than living inside the Codex host brain. Do not resume Rider,
|
||||
Unity, Aquarium, Face, dogfood, planning, app, skill, marketplace, or bridge
|
||||
expansion until this organ is being cut cleanly.
|
||||
`epiphany-openai-adapter` Codex transport integration behind the native typed
|
||||
request/event/receipt surface, using the keeper auth/model transport spine
|
||||
identified in `notes/codex-auth-spine-inventory.md`. Success is Epiphany
|
||||
calling a model adapter rather than living inside the Codex host brain. Do not
|
||||
resume Rider, Unity, Aquarium, Face, dogfood, planning, app, skill,
|
||||
marketplace, or bridge expansion until this organ is being cut cleanly.
|
||||
|
||||
The Phase 6 freshness slice is landed. It exposes read-only
|
||||
`thread/epiphany/freshness` from live retrieval summaries plus graph
|
||||
|
|
|
|||
Reference in a new issue