Phase 1 / Etch / Graduate const, private, and test#36
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
M1.0.8 — Graduate
const(top-level),private, andtestBrief:
briefs/M1.0.8-const-private-test.mdGraduates the last three reserved
non_s3_keywordsparser-up (lexer → AST → parser → resolver), the same shape asimportin M1.0.7.overridestays reserved (waits for a Tier-1 overridable module). Also clears the two M1.0.7 deferred debts: cross-fileconstresolution and activation of the dormantE0107 ImportPrivateItemcheck.Closing notes
importgraduation was a faithful template — lexer table move + AST slab + parse-fn + lockstep set + pass-1 registration +buildExportsrow. TheE0107path was genuinely wired-and-dormant in M1.0.7, so activation was a single change (buildExportsreadingItem.visibility).checkConstValuereused the field-default const surface verbatim (isConstEvaluable+synthExpr+literalTypeFits).parseStmtwas left untouched (block-levelconstis a parse error, per scope);overridestays reserved.tests/etch/import_resolve_test.zig, not inline intypes.zig— forced by the tier dependency (types.zigcannot reachroot.validateProject). The single-file tests (E0200, E1101, registration) are inline intypes.zigas specified.src/etch/diagnostics.zigtouched (outside the brief's file list) for a one-line §3.6.1 orphan-reference patch — theE0107comment said "wired but dormant until M1.0.8", now stale post-activation.test "X"registers under the byte sequenceXviaregisterSymbol, sharing the name namespace with identifier-named symbols (test "Foo"would collide withcomponent Foo→E0101). Acceptable for M1.0.8 (the brief mandatesregisterSymbol); revisit when the M1.0.9 test-runner formalizes test identity. Out-of-scope-by-design: statement-levelconst(tri-doc drift, deferred to KB-audit), visibility inheritance +W0902, qualifiedm.Type,override.Validation checklist
parseStmtuntouched,overridereserved, notestexecution, nom.Type, noW0902/visibility inheritance)debugandReleaseSafeROOM_CAPimport resolves clean;Secretimport →E0107)zig build(exit 0, no warnings),zig build test(debug + ReleaseSafe),zig fmt --check,zig build lintall greenCLAUDE.md§3.4 updated and committed on the branchStatus:→ CLOSED,Closed:date setcommit-msghook green on every commit; pre-push gate green (build + test + test-release)Merge + tag (
v0.10.8-const-private-test) are left to Guy after review.🤖 Generated with Claude Code