Skip to content

compiler: add the t27 IR v1 spec - #13518

Merged
gHashTag merged 2 commits into
masterfrom
split/compiler-ir
Nov 17, 2026
Merged

gHashTag merged 2 commits into
masterfrom
split/compiler-ir

Conversation

@gHashTag

@gHashTag gHashTag commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add specs/compiler/ir/t27_ir_v1.t27.

Test plan

  • t27c parse specs/compiler/ir/t27_ir_v1.t27

Note

Low Risk
Documentation and self-contained spec tests only; no t27b or pipeline integration, so runtime compiler risk is minimal.

Overview
Introduces specs/compiler/ir/t27_ir_v1.t27, a new versioned t27_ir_v1 interchange contract: prose plus machine-checkable status constants that distinguish what exists today (internal t27b IR, t27c emitters) from planned work (foreign frontends, binary IR, t27b reader).

The file also ships a minimal executable slice of that contract: canonical textual IR for a single i32 add-style function, validate() with stable diagnostic codes (version, structural, forbidden C-subset tokens such as ptr/goto), deterministic serialization with sorted locals, and SHA-256 over canonical bytes—explicitly without wiring t27b. Extensive tests lock “no overstated claims” (frontends absent, T27B_READS_T27_IR_V1 == 0, benchmarks unmeasured) and canonical/hash behaviour.

Reviewed by Cursor Bugbot for commit 26d1234. Bugbot is set up for automated code reviews on this repo. Configure here.

Add the t27 IR v1 spec.
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-11-09 18:06:07 UTC

Summary

Status Count
Total Open PRs 50
PRs with Failing Checks 40
PRs with All Checks Green 10
READY 3
FAILING 40
PENDING 0
NO CHECKS YET 0

These columns do not partition: 3 + 40 + 0 + 0 = 43, and there are 50 open PRs. A PR is being counted twice or not at all.

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=b882be1e4933 != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@cursor
cursor Bot enabled auto-merge (squash) November 9, 2026 19:50
Co-authored-by: Dmitrii Vasilev <gHashTag@users.noreply.github.com>
This was referenced Nov 15, 2026
@gHashTag
gHashTag merged commit 5648d0a into master Nov 17, 2026
4 of 7 checks passed
@gHashTag
gHashTag deleted the split/compiler-ir branch November 17, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants