t81-foundation

Model Import v1 Contract

This document is the authoritative contributor-facing contract for the current t81 model import --json surface.

It defines what callers may rely on today without reading the CLI implementation. Anything not listed here as stable is still prototype-shaped and may change as the model-artifact intake wedge is refined.

Stable v1 Surface

Supported operation

This is the only model family operation covered by this contract.

Schema identifier

Reference JSON Schema:

Supported input format labels

These values are accepted by --format and may also appear in source_format:

If --format is omitted, the CLI infers the format from the input extension.

Result Documents

Success result

Stable top-level fields:

Stable success values:

Failure result

Stable top-level fields:

Stable failure values:

The exact error text is not stable in v1. Callers may rely only on the presence of a human-readable error string.

Field Semantics

Top-level fields

Tensor entries

Each entry in tensors has these stable fields:

Field meanings:

Provenance Map

The provenance object is a string-to-string map.

Currently observed keys include:

Only the object shape is stable in v1. Specific keys are format-dependent and may expand over time.

Stability Boundary

Guaranteed stable in v1:

Not yet frozen in v1:

Contributor Expectations

The current model import surface is intentionally narrow:

If this contract expands, prefer adding fields rather than renaming or redefining the stable ones listed here.

Adjacent Persisted Artifact

t81 model import --manifest <file> now emits a narrower persisted record with schema t81.model-manifest.v1.

That manifest is intentionally outside this v1 import-report contract:

Treat the manifest as a related but separate surface from t81.model-import.v1.

Authoritative manifest contract: