TTX composes interfaces supplied by systems with their own runtimes and object models. A consumer negotiates the contracts it understands and follows the routes exposed by their providers.

Policies and capabilities

A capability exposes work, such as creating an object, importing represented data or retaining an interface for longer use. A policy governs how an interface may be used. The categories can overlap: a policy can expose operations, and a capability can carry policies that remain relevant after another binding.

A provider can expose a smaller interface without making its caller adopt every part of the provider's model. That decomposition must preserve the conditions required for safe use. An image operation selected through a workload policy still honors that limit. An interface bound through retained access still shares the original release obligation.

Abstract interfaces form a semantic graph

An Abstract supplies graph navigation and contract binding without exposing the provider's native type. resolve_route follows one provider-defined route. visit_routes synchronously enumerates visible routes and their Abstracts. Route bytes have the meaning defined by the provider; names are one possible use.

The next Abstract can use a different context and operation table. A typed contract can expose get_abstract to return to the graph location from which it was bound. That promise is semantic: two API records can represent the same location without having equal context or table pointers.

None marks an explicit dead end. Unknown preserves an undetermined graph result. Each returns itself for further route traversal; retrying means asking the original Abstract again. Present identifies an ordinary graph location even when the consumer recognizes none of its contracts.

Constant fixes a graph selection while its supplying access remains valid. It does not freeze the selected node's data or outgoing routes. Ordered gives meaning to visitation order; without that policy, enumeration order is incidental.

Negotiating a contract

A Query is a bootstrap interface whose representation and lifetime are already known to the caller. supports(UUID) asks whether the provider establishes a semantic contract. It transfers no API record. Query binding also receives described destination Storage, allowing the participants to agree on the complete C record before transfer.

Once the Abstract ABI has been established, graph binding is smaller. The UUID identifies a complete C API record and the caller supplies that exact output type. A successful bind establishes the requested contract for that record. A later support or bind call is a separate request and can observe different provider state.

Negotiation returns Satisfied, Unknown or Rejected. Unknown leaves the request undetermined, including when a contract is unfamiliar. Rejected explicitly refuses it. Only Satisfied supplies a usable output. These answers are synchronous; Unknown starts no background work and promises no later completion.

Scoped and retained access

A plain Abstract carries no hidden release obligation. The supplying call or owner determines how long its context, operation table and referenced metadata remain available. Copying the record shares that duration without extending it.

Retain asks the provider for access beyond the current duration. A successful call returns Retained, whose Abstract remains available until the consumer calls release. Each successful retain creates one release obligation, even when several results use the same provider context. Copies and interfaces bound through one Retained result share that obligation.

Create supplies a newly created Abstract during a synchronous callback. Import exposes an Abstract projection of represented input in the same scoped manner. A consumer can inspect or copy results during the callback, or negotiate Retain before returning when it needs the graph afterward.

Export consumes an Abstract graph to produce a result in another system. Its domain contract defines the artifacts and effects. The Godot extension uses this kind of boundary to register classes while retaining the constructors and method bindings required after discovery ends.

Data forms and transfer

An owner describes data and callable forms with a Schema. Compilation produces a canonical Representation, and Storage pairs a representation with an address and extent. Equivalent descriptions can agree without preserving their original Schema objects.

Data transfer compares the source and destination representations before copying the complete value. Primitive identity, structural boundaries, geometry, byte order, pointer width and callable signatures participate in that agreement. Compatibility does not imply equal payloads or correct behavior.

This concrete transfer boundary does not prescribe a provider's private storage. A domain that needs generated values, shared device memory or another access policy defines an additional capability above Data rather than casting its private object into the consumer's type.

Layers and applications

LayerResponsibility
DataCanonical data and callable forms, Storage and transfer
SemanticsBootstrap negotiation of contract identity and representation
GraphAbstract routes, policies, capabilities and typed binding

The Godot lab composes image and class interfaces through these layers. Tetrodotoxin's source tooling defines domain contracts for source and execution work. Those applications retain their own meaning while using TTX's common boundary.

The public contracts for Abstract, Retain, Retained and Data transfer specify the current lifetime and representation obligations.