Repair model-turn JSON ingress
This commit is contained in:
parent
4ac19a23ee
commit
eea15e82e6
4 changed files with 299 additions and 19 deletions
|
|
@ -2487,6 +2487,29 @@ that rejects unknown/malformed fields and converts into the typed persisted
|
|||
request. CultCache serialization remains the persistence owner; JSON does not
|
||||
get to reshape it.
|
||||
|
||||
The implemented CLI boundary now owns JSON syntax only. It first requires an
|
||||
object with an exact string `schema_id`, then deserializes into one of two
|
||||
`deny_unknown_fields` DTOs matching the published native and OpenAI request
|
||||
schemas. Their three published input variants convert into the corresponding
|
||||
typed adapter request. The adapter request then enters the unchanged runtime and
|
||||
CultCache persistence path.
|
||||
|
||||
- Owner: the published CultNet JSON schema owns accepted boundary shape; the
|
||||
typed adapter request owns runtime meaning; DatabaseEntry owns persistence.
|
||||
- Inputs: one native or provider object with the exact schema ID and published
|
||||
fields.
|
||||
- Output: an `EpiphanyModelRequest` or `EpiphanyOpenAiModelRequest` with
|
||||
persistence-only fields left at typed defaults.
|
||||
- Forbidden cargo: positional CultCache arrays, unknown top-level or variant
|
||||
fields, malformed variants, unsupported schema IDs, and `ToolCall` until a
|
||||
published contract owns it.
|
||||
- Shared path: both native and provider objects converge on the existing model
|
||||
runtime after conversion; neither can deserialize persistence representation
|
||||
directly.
|
||||
- Verification: all nine binary tests pass, including both positive object
|
||||
shapes and negative array/unknown/ToolCall cases. Exact package inspection and
|
||||
copied-live execution remain required before acceptance.
|
||||
|
||||
The coordinator receipt accumulator is implemented in source. Runtime owns the
|
||||
typed head, cumulative status counts, chained digest, and full-snapshot-fenced
|
||||
replacement/deletion. Resident Self supplies the cross-store preservation set
|
||||
|
|
|
|||
|
|
@ -1589,3 +1589,21 @@ DatabaseEntry positional-array representation. Two object-shaped requests
|
|||
failed before store mutation; only the native CultCache array shape passed.
|
||||
Repair this xenos JSON boundary with an explicit schema-shaped ingress type and
|
||||
typed conversion. Do not change CultCache persistence to accommodate JSON.
|
||||
|
||||
## Model-turn JSON boundary implemented — 2026-08-10
|
||||
|
||||
`epiphany-model-runtime model-turn` now parses the two published object-shaped
|
||||
contracts through explicit boundary DTOs and dispatches by exact `schema_id`.
|
||||
The boundary accepts only the fields and input variants published by
|
||||
`epiphany.model_request.v0` and `epiphany.openai_model_request.v0`, then converts
|
||||
them into the existing typed requests. Positional CultCache arrays, unknown
|
||||
fields, malformed variants, and unpublished `ToolCall` cargo refuse before the
|
||||
runtime path. DatabaseEntry serialization remains solely the persistence
|
||||
authority.
|
||||
|
||||
All nine model-runtime binary tests pass, including published native/provider
|
||||
object acceptance and the negative boundary cases. Production `cargo check`
|
||||
also passes warning-free. The source is not accepted until its exact pushed
|
||||
commit is packaged from Starfire's warm cache and a copied-live run proves one
|
||||
published object completes while the old positional array cannot mutate state.
|
||||
Active c005 remains outside this rite; Yggdrasil never builds.
|
||||
|
|
|
|||
Reference in a new issue