Specification

Phase 3, Section 1: Scope, Milestones, and Exit Criteria

Phase 3: Sharding (the distribution axis). Section 1 of 4: Scope, Milestones, and Exit Criteria.


1. What this section commits to

This document outlines the scope, milestones, abandonment triggers, and exit criteria for Phase 3 of the Kina research program. The overarching goal of this phase is to produce a formally typed, unverified implementation of GSPMD-style sharding propagation, and the runtime foundation to execute it.


2. Scope Boundaries

In Scope

Deferred (Out of Scope)


3. Milestones

Milestone 1: Sharding Syntax & Core Calculus

Goal: Integrate device meshes and sharding refinements into the parser, AST, and typed IR.

Milestone 2: GSPMD Propagation Engine

Goal: Build the middle-end type inference pass that propagates sharding constraints.

Milestone 3: Collective Lowering & Simulator

Goal: Emit MLIR with collective operations and execute it on a simulated mesh.


4. Risks and Abandonment Criteria

To keep the research falsifiable, we establish the following triggers:

1. Intractable Propagation Complexity

2. Simulator Deadlocks


5. Exit Criteria

Phase 3 is complete when a release candidate satisfies all the following criteria:

Compiler & Type-Checker

Lowering & Runtime