You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TDGS-2: Trinity Caste System — Enforce L0/L1 Independence in build.zig #412
TDGS-2: Trinity Caste System — Enforce L0/L1 Independence in build.zig
Context
Following TDGS-1 (Tri Dev Guarded Stack), we need to enforce architectural invariants in the build system: L0 (Temple) and L1 (Queens) must build independently of L2-L3 (Workers/Foragers).
Current Problem
The tri binary has a circular dependency: Queen depends on tri_farm/tri_fpga which should be "consumable" workers. If one worker fails to compile, the entire tri build fails — breaking the caste system invariant.
Required Changes
1. Create Caste-Aware Build Targets
Add targets to build.zig:
zig build temple — L0 only (TTC, math, VSA, types)
zig build queens — L1 only (Queen, Doctor, Scheduler)
zig build workers — L2 only (tri_farm, tri_fpga, inference)
zig build tri — All castes (for backward compatibility)
2. Zig 0.15 Build API Migration
The build.zig needs migration from Zig 0.13 → 0.15 API:
Activity
gHashTag commentedon Mar 24, 2026
All acceptance criteria met:
Moving to TDGS-3: Trinity Architecture
feat(tri-lang): Effects + Handlers (#412)