Document contract-only connector surface

This commit is contained in:
Meta Vens 2026-08-24 23:46:52 +02:00
commit 8c57be4b12
2 changed files with 15 additions and 6 deletions

View file

@ -16,6 +16,12 @@ repair the store. Consumers own native requests, provider lowering, prompts,
schemas, tool execution, retry between passes, interpretation, decisions, and
state admission.
Keep the feature boundary exact. `--no-default-features` is the contract-only
surface used where a Mind seals provider request bytes. The default `client`
surface adds only authenticated framing and socket transport. `daemon` adds the
service authorities. Contract-only consumers must not compile client crypto or
socket physiology by accident.
Do not link upstream Codex crates into this package. Idunn freezes the official
Codex binary as an exact package input. The child receives auth RPC only, never
consumer identity, prompts, tools, provider requests, or model output.

View file

@ -12,11 +12,13 @@ one credential store. The public connector reads the credential only after the
child's private auth RPC completes, then performs the exact Responses request.
It owns no prompt policy or decision authority.
The default library is the shared consumer ABI: v2 typed contracts, exact
provider lowering, encryption, bounded direct-pipe framing, one-request socket
transport, and exact result validation. It does not compile CultCache, HTTP,
TLS, provider auth, replay, or daemon code. Epiphany and Ghostlight consume this
surface instead of copying wire law.
The library has three explicit compile surfaces. With no features it exposes
only the v2 provider/result contracts and their deterministic validation. The
default `client` feature adds encryption, bounded direct-pipe framing, and the
one-request socket client. It still compiles no CultCache, HTTP, TLS, provider
auth, replay, or daemon code. The `daemon` feature includes the client surface
and the service. Epiphany and Ghostlight can therefore type and seal their exact
provider requests without importing transport physiology into their Minds.
Connection establishment is bounded independently. Response read/write timeout
is optional so a consumer's typed outer pass may remain the sole deadline owner.
@ -45,9 +47,10 @@ No upstream Codex crate is linked into the package. The official binary is a
pinned deployment input, keeping Codex's application build graph outside both
consumers and this small daemon.
Focused verification uses the two real build surfaces:
Focused verification proves each real build surface independently:
```text
cargo test --lib --no-default-features
cargo test --lib
cargo test --lib --features daemon
cargo check --bin codex-connector --features daemon