clm:
abstract_spec:
context: >
Runtime type for an Executable Manifest — a DotSlash-style declarative
specification that maps platform identifiers to binary entries with
provider chains, content hash verification, and read-only caching.
goal: "Validate that a payload conforms to the Executable Manifest schema."
success_criteria:
- "Payload contains a 'platforms' map with at least one platform entry."
- "Each platform entry has 'path', 'hash', 'size', 'format', and 'providers' fields."
- "Hash is a SHA-256 digest (64 hex characters)."
- "Each platform entry has at least one provider in its provider chain."
concrete_impl:
runtime: system
operation: type_validator_executable_manifest
universe_level: 0
precondition:
description: "Payload must be a non-empty JSON or YAML object."
vcard_pre: gate:payload_nonempty
postcondition:
description: "Returns boolean is_valid and a VCard attestation."
vcard_post: gate:result_sealed
schema:
required_fields:
- name: "platforms"
type: "map"
description: "Map of platform identifiers (e.g., darwin-arm64) to platform entries."
constraints:
min_entries: 1
optional_fields:
- name: "name"
type: "string"
description: "Human-readable name for the executable."
- name: "version"
type: "string"
description: "Semantic version of the executable."
platform_entry_fields:
- name: "path"
type: "string"
description: "Relative or absolute path to the binary on the local filesystem."
- name: "hash"
type: "string"
description: "SHA-256 content hash of the binary (64 hex characters)."
constraints:
pattern: "^[a-f0-9]{64}$"
- name: "size"
type: "integer"
description: "File size in bytes."
- name: "format"
type: "string"
description: "Archive format of the downloaded artifact."
constraints:
enum: ["raw", "tar.gz", "zip"]
- name: "providers"
type: "list"
description: "Ordered list of providers to try for fetching the binary."
constraints:
min_entries: 1
provider_fields:
- name: "type"
type: "string"
description: "Provider type."
constraints:
enum: ["local", "http", "github-release"]
- name: "url"
type: "string"
description: "URL for http or github-release providers."
- name: "path"
type: "string"
description: "Local filesystem path for local providers."
inputs:
payload: "MCard — the manifest JSON to validate"
outputs:
is_valid: "boolean"
v_post: "VCard"
process:
type: meta_evaluate
target: "core.type_validator.executable_manifest"
balanced_exp:
expectation: "Manifest validator accepts valid platform entries and rejects incomplete ones."
pending_cases:
- given:
payload:
name: "clm_rust_core"
platforms:
darwin-arm64:
path: "kernel/clm_rust_core/target/release/clm_rust_core"
hash: "a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456"
size: 4500000
format: "raw"
providers:
- type: "local"
path: "kernel/clm_rust_core/target/release/clm_rust_core"
when: "validate"
then:
is_valid: true
- given:
payload:
name: "missing_platforms"
when: "validate"
then:
is_valid: false
_meta:
clm_root_hash: sha256:0000000000000000000000000000000000000000000000000000000000000000
a_hash: sha256:793c4bc193c33f8650bcb68e386fcc0da988330930b3cbe9e22c769f79c3c9fc
c_hash: sha256:0000000000000000000000000000000000000000000000000000000000000000
b_hash: sha256:0000000000000000000000000000000000000000000000000000000000000000
clm_name: type_validator_executable_manifest
computed_at: "2026-07-19T12:00:00Z"
depends_on: []