t81-foundation

RFC-0055: Native Ternary Hardware Target and Interop Contract

Status: accepted Type: standards-track Applies-To: native ternary hardware targets, hardware ISA interop, HAL promotion, backend equivalence, trace/policy preservation Created: 2026-03-19 Updated: 2026-03-22 Supersedes: None Superseded-By: None Discussion: Builds on RFC-0002, RFC-0042, RFC-0045, RFC-0046, RFC-0047, RFC-0048, RFC-0051, RFC-00B0, and RFC-00B1


Summary

This RFC defines how T81 may target future native ternary hardware without creating a second semantic universe.

It establishes:

The purpose of this RFC is to ensure that future ternary hardware support is a governed interoperability layer, not an architecture fork.

Motivation

T81 is explicitly designed around balanced ternary execution, but the current repo runs on binary host hardware and virtualized guest environments.

The project now has:

What is still missing is the specific contract for native ternary hardware itself.

That gap matters because existing and emerging ternary hardware candidates fall into two different categories:

Without a dedicated RFC:

This RFC closes that gap before hardware integration work begins.

Proposal

1. Hardware Target Classes

T81 recognizes two distinct hardware target classes:

  1. General-purpose native ternary target A hardware platform capable of hosting the T81 runtime, memory model, interrupt model, and governed OS-facing surfaces.

  2. Narrow ternary accelerator target A hardware path that executes only selected kernels or tensor operations beneath an existing CPU- or VM-governed runtime.

Narrow accelerator targets are governed by RFC-0051.

This RFC governs only the first class unless a section explicitly states otherwise.

2. TISC Remains the Semantic Authority

For any native ternary hardware target, the semantic authority remains:

This means:

T81 may support:

It may not support:

3. Hardware Interop Layer

Any general-purpose native ternary hardware target MUST define an explicit hardware interop layer above the device ISA and below the governed T81 execution model.

That layer MUST define:

RFC-00B0 HAL is the current architectural starting point for this layer, but it is not yet sufficient by itself for real hardware promotion.

4. Supported Hardware Integration Modes

The following integration modes are allowed:

  1. Direct semantic target Hardware executes a TISC-faithful implementation directly.

  2. Verified lowering target Hardware executes a lower-level ISA while a verified lowering preserves TISC semantics.

  3. Hosted compatibility mode Hardware-specific behavior is surfaced only through a guest/host HAL path while the main runtime remains governed by the hosted or virtualized T81 environment.

Mode 1 is the cleanest long-term target.

Mode 2 is acceptable only if the lowering layer satisfies RFC-0042 and RFC-0047.

Mode 3 is transitional and must not be described as native T81 hardware execution.

5. Boot and Privilege Rules

Any native ternary hardware target MUST define:

Ethics-first boot and Axion policy meaning must survive the hardware target.

It is forbidden to claim hardware support if the target bypasses or weakens:

6. Memory and Addressing Contract

Native ternary hardware support MUST define:

RFC-00B1 remains authoritative for Ternary MMU direction. A hardware target may specialize implementation strategy, but may not redefine the public memory semantics without an RFC update.

7. Interrupt and Device Semantics

For a native ternary hardware target, interrupt and device handling must remain governed rather than hardware-opaque.

Requirements:

Hardware convenience mechanisms may not silently bypass Axion mediation.

8. Trace, Audit, and CanonFS Preservation

A native ternary hardware target is not eligible for governed promotion unless it preserves:

Hardware performance counters, internal pipelines, or implementation details may be recorded as diagnostics only if they remain outside the deterministic core surface unless separately governed.

9. External ISA Compatibility Targets

If T81 targets an external ternary ISA rather than a TISC-faithful machine, that target MUST define an ISA compatibility profile.

The compatibility profile MUST state:

Unsupported features may result in deterministic rejection.

Silent subset execution is forbidden.

10. Promotion Rules

Any native ternary hardware target is experimental by default.

It may be promoted to governed non-DCP only if:

It may become DCP-eligible only after:

11. Relation to Existing RFCs

Determinism / Safety Considerations

Determinism considerations:

Safety considerations:

Compatibility

This RFC is additive.

It does not require:

It does require that future hardware efforts use one governed contract instead of ad hoc integration logic.

Implementation Plan

  1. Keep RFC-00B0 HAL work separate from claims about native ternary hardware support.
  2. Define a hardware target profile template for any future candidate platform.
  3. Require conformance matrices for any first hardware proof-of-concept.
  4. Promote only after the hardware interop layer, fault model, and trace/policy preservation are executable and documented.

Open Questions

Acceptance Criteria

Implementation Record (2026-03-22)

All acceptance criteria are satisfied as of this date.

AC1 — Native ternary hardware support explicitly separated from accelerator-only support: spec/tisc-spec.md §5.2.8 (“Native Ternary Hardware Target and Interop Contract (RFC-0055)”) defines a “Hardware Target Classes” table with two rows: “General-purpose native ternary target” (governed by RFC-0055) and “Narrow ternary accelerator target” (governed by RFC-0051), with an explicit note that “RFC-0055 governs only the general-purpose class.” This separation is normative and mutually exclusive.

AC2 — TISC semantic authority and hardware interop obligations normatively defined: spec/tisc-spec.md §5.2.8 “TISC Remains the Semantic Authority” enumerates the four semantic authority anchors (TISC instruction semantics, T81VM observable behavior, Axion policy and audit meaning, canonical data and trace contracts) and defines the three allowed integration modes with their exact RFC dependencies. “Hardware Interop Layer Requirements” lists the six mandatory elements every general-purpose target must define.

AC3 — Boot, memory, interrupt, fault, trace, and policy preservation rules specified: spec/tisc-spec.md §5.2.8 “Boot, Memory, Interrupt, and Fault Obligations” covers all four categories with specific required items. “Trace, Audit, and CanonFS Preservation” lists four additional requirements and explicitly classifies hardware performance counters as diagnostics-only outside the DCP surface.

AC4 — External hardware ISA compatibility governed by an explicit profile: spec/tisc-spec.md §5.2.8 “External ISA Compatibility Profile” mandates a profile stating target ISA name and revision, lowering boundary from TISC, unsupported TISC features with explicit fault/fallback behavior, and a conformance corpus proving semantic equivalence on the supported subset. Silent subset execution is explicitly forbidden. The hardware target profile template exists at spec/rfcs/RFC-0055-hardware-target-profile-template.md with a matching JSON schema.

AC5 — No native ternary hardware target may be promoted without conformance, boundary, and audit updates: spec/tisc-spec.md §5.2.8 “Hardware Promotion Gate” establishes that all native ternary hardware targets are experimental by default, that governed non-DCP promotion requires documented interop layer, executable contracts, semantic equivalence proof, preserved Axion and trace semantics, and explicit supported/unsupported listing; and that DCP promotion additionally requires RFC-0042, RFC-0043, RFC-0045, RFC-0046, and RFC-0048 obligations met specifically for the hardware target matrix. The gate is normative and unconditional.