The tebako ecosystem operates on a strict 'Contract Graph' where every interface between components is governed by a directed edge (owner → consumer) and a declarative YAML contract.
Core Principles:
- Fail-Closed Verification: Consumers must verify contracts before execution. A mismatch results in a named error identifying both parties.
- Single Ownership: Every interface has exactly one owner, one versioned YAML schema, and one verification point.
- Era-based Security: Anything undeclared is considered 'pre-era (era 1)' and is refused by name; it is never assumed or silently served.
**Key Lifecycle Stages (Contracts):
- C1 (Source Tarball → Runtime Factory): Uses
tarball-layout.yaml. - C2 (Runtime Factory → Loader): Produces a
release-manifest.yaml. - C3 (Runtime Exe ↔ Env Image): Governed by
layout.yaml. - C4 (Exe ↔ Static Libs): Governed by
c_api.h and filesystem TU. - C5 (Handoff): Uses
argv/env with contract_version (per Spec 17).
┌────────────────────────────────────────────────────────────────┐
│ tamatebako/ruby — SOURCE FACTORY │
│ out: patched src tarball (tebako-mount-root, SHA256SUMS) │
└───────────────┬────────────────────────────────────────────────┘
│ C1 tarball-layout.yaml
▼
┌──────────────┐ C19 ┌───────────────────────────────────────────────┐
│ vcpkg │───────▶│ tebako-runtime-ruby — RUNTIME FACTORY │
│ baseline │ tags │ builds: runtime exe + env image │
└──────────────┘ │ in: link unit (tebako-rs artifact) │
│ out: runtime release (exe, image, manifest) │
└──────┬───────────────┬───────────────┬────────┘
│ C2 release- │ C3 exe↔image │ C4 link-time
│ manifest.yaml │ (layout.yaml) │ (c_api.h, fs TU)
▼ ▼ ▼
┌──────────────┐ ┌─────────────┐ ┌───────────────┐
│ registries / │ │ runtime exe │ │ static libs │
│ release idx │ │ (driver in) │ │ (driver, tfs) │
└──────┬───────┘ └──────┬───────────────┘
│ C12 │ C5 handoff (spec 17,
│ registry.yaml │ argv/env — contract_version)
▼ │
┌─────────────┐ C13 store ┌─────────────────▼───────────────────────┐
│ store │◀──────────────│ LOADER FAMILY │
│ (~/.tebako) │ │ bootstrap · shim · cli · tfs-cli │
└──────┬------┘ └───┬────────┬─────────┬────────┬─────────┘
│ C13 │ C6 │ C7 │ C8 │ C9
▼ ▼ ▼ ▼ ▼
everything local package payload registry runtime
trailer manifests release manifest