feat(model-plane): native InferenceReceipt emitter shim for inferenced (T7-12 emitter slice) - #317
Merged
Merged
Conversation
…d (T7-12 emitter slice) source-os is a downstream emitter for the Tranche 7 Model Plane. This adds the smallest real slice that proves source-os can emit a spec-conformant, hash-chained InferenceReceipt natively when a completion finishes, into the estate's single ledger (SEAM-011: no local-only ledger). Consume-not-fork: the canonical emitter and schema are vendored BYTE-VERBATIM from prophet-platform apps/receipt-gateway (provenance + source sha256 in modules/model-plane/tools/VENDOR.md and the schema $comment). The only source-os code is inferenced_shim.py, the serving-path caller — it delegates all chaining to emit_receipt() and re-implements nothing. Teeth (.github/workflows/model-plane-receipts.yml): a produced receipt validates against InferenceReceipt.schema.json and chains (prevHash continuity); a tampered entry and a local-only (unchained) entry are both rejected; and the vendored emitter is asserted to match the canonical sha256 (consume-not-fork guard). The full daemon set (T7-9..15) and seam-registry (T7-20) remain; see the T7 follow-up issue. docs/model-plane/architecture.md (T7-9 stub) tracks status.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Model Plane —
inferencedreceipt emitter shim (Tranche 7)source-os is a downstream emitter for the Model Plane (epic SourceOS-Linux/sourceos-spec#241). This lands the smallest real slice that proves source-os can emit a spec-conformant, hash-chained
InferenceReceiptnatively when a completion finishes, into the estate's single ledger (SEAM-011: a local-only ledger is not permitted).The full serving daemon
inferenced(T7-12) and the rest of the daemon set are blocker-laden (HellGraph ledger service, base-model licensing, credentials) and are not built here — this is the emitter half only.Consume-not-fork
modules/model-plane/tools/inference_receipt_emitter.py— the canonical emitter, vendored byte-verbatim fromSocioProphet/prophet-platform apps/receipt-gateway(commitabd98805, sha2566881246b…; provenance intools/VENDOR.md). CI asserts the sha still matches — divergence fails the build.modules/model-plane/schemas/model-plane/InferenceReceipt.schema.json— schema vendored verbatim (provenance in$comment).modules/model-plane/inferenced_shim.py— the serving-path caller. Given the content-addressed base-model digest + the completion's input/output, it appends an on-device receipt viaemit_receipt(). It re-implements no chaining.Teeth —
.github/workflows/model-plane-receipts.ymlInferenceReceipt.schema.jsonand chains (ledgerPrevHashcontinuity; genesis has none).Verified locally:
inferenced_shim.py --selftestand the canonical emitter--selftestboth pass; sha guard OK.Not in this slice (tracked separately)
T7-9 (full architecture), T7-10 profiles, T7-11
modelplaned, T7-12 fullinferencedserving daemon, T7-13embeddingd, T7-14visiond, T7-15distilld, T7-20 seam-registry.docs/model-plane/architecture.mdtracks the status table.