Add Codex OpenAI auth spine wrapper

This commit is contained in:
Meta Vens 2026-05-13 04:50:21 +01:00
commit 7bc3a5cb63
11 changed files with 697 additions and 99 deletions

View file

@ -115,10 +115,17 @@ surface:
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.
skew. Do not paper over that with random version pins.
The first workspace-verified wrapper now exists as
`epiphany-openai-codex-spine`. It depends on the pure typed adapter plus the
keeper Codex auth types and projects `AuthManager` / `CodexAuth` into a typed
`EpiphanyOpenAiAdapterStatus`. `epiphany-codex-bridge` re-exports this spine so
the current app-server compatibility shell can compile it without making the
pure document crate depend on Codex. The remaining extraction is model
transport: typed Epiphany model requests must call the keeper Responses API
transport through this boundary rather than route through Epiphany JSON-RPC or
the Codex host brain.
The point is ownership: Epiphany calls a model adapter; it does not live inside
the Codex host brain.

View file

@ -550,20 +550,22 @@ 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.
workspace lock; do not "fix" that with random version pins. The first
workspace-verified wrapper now exists as `epiphany-openai-codex-spine`: it
depends on the pure typed adapter plus the keeper Codex auth types and projects
`AuthManager` / `CodexAuth` into a typed `EpiphanyOpenAiAdapterStatus`.
`epiphany-codex-bridge` re-exports that spine so the current app-server shell
can compile the attachment without contaminating the pure document crate.
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` 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,
Continue with the actual whale-carcass cut: add model transport behind the
native typed request/event/receipt surface, using the keeper Responses API
transport 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