This file tracks current release-facing changes. Historical review notes belong in git history, not in this log.
- Docs site moves quick-start commands higher on the home page and trims space above mobile setup instructions. Selecting an on-page search result closes the dialog and focuses its heading; Escape closes search in one press.
- Zig toolchain pin moves from
0.16.0to0.17.1acrossa7/cli.py, CI and release workflows, archive names (zig0.17.1), docs, and version tests. Emitted array defaults use@splatbecause Zig 0.17 removeda ** barray multiplication. - Docs, site coverage, README, and feature pins align cut-surface and
--timingswording with the surface-cut, perf-baseline, andP-MEMtracks, and record the compiler, safety, backend/CLI, and example/test remediation fixes. Broader safety alias and formal-discharge gaps remain open. - Language refinements (L79-L81): non-nil scalar
ref Tvalues auto-read in typed value contexts (p.?.*in Zig, whileio{}formatting keeps reference semantics);cast(u8, ch),cast(char, byte_u8), and0..=255range-provencast(char, int_expr)are supported while keepingchararithmetic without a cast rejected;string.lenexposes read-onlyusizebyte length withi < s.lenbounds proving. - Docs-site lockfile updates
markdown-itto15.0.3(fixingGHSA-gfr2-rv44-r23c) andsource-map-jsto1.2.2(fixingGHSA-68fv-2mgg-jv7q). a7 check,a7 build,a7 run,a7 doctor, anda7 --versionprovide the CLI workflow.a7 --helplists modes, exit codes, and short aliases while preferring long flags.a7 doctor --format jsonreports toolchain status and supported commands, modes, backends, profiles, exit codes, and flags.--timingsprints per-stage wall times (tokenize,parse,semantic,safety,codegen, plus Zig onbuild/run) and populatesstages.*.msin JSON without changing emitted Zig.- Verification pipeline updates:
scripts/zig_toolchain.pyadds Zig0.17.1preflight checks and shared local/global caches;verify_examples_e2e.pyandbuild_examples.pyaccept--jobs;verify_error_stages.pyruns checks concurrently;scripts/verify_sources_check.pycompile-checks all examples, benches, and modules without Zig;scripts/mutation_harness.pyfixes stale targets and adds--validateplus control-mutant checks;run_all_tests.shgains--no-zig,--fast, per-check timings, shared Zig caching, and failure logs;test/conftest.pyconsolidates duplicated fixtures; and CI runs parallel pytest (-n 4 --tb=short) after preflight checks. - Compiler
--format jsonuses schema3.0withexit_code,diagnostics(empty on success, matchingerror.detailson failure, withcodeandhinton each detail),SafetyErrorfor proof failures,stages.parsemessage/spanon parse failure, andlayoutforcheck --layout. Deep programs emit valid JSON, and failures keep stage-specific nonzero exits. a7 check FILE --layoutprints each named struct's Zig memory layout (alignment-ordered field offsets, size, 64B cache-line usage, and field-access counts), matching Zig@offsetOfindebugandreleaseprofiles (fastdrops the hidden tag of an untagged union).- Entry files require
main :: fn()or exit 6 at the Entry Point stage.a7 check --libchecks library files withoutmain;buildandrunstill require it. - Default output paths derive from the source filename stem, refuse
.a7destinations, reject empty-o ""/--output ""arguments with usage exit 2, and prevent output or--doc-outpaths from overwriting input modules or each other. Preprocessor exceptions fail at the codegen stage instead of escaping unhandled. Diagnostics go to stderr with--> path:line:col, including imported modules, and escape[and Rich console markup. - Build profiles:
--profile releasebuilds with ZigReleaseSafe(keeping runtime checks), while--profile fastusesReleaseFast. Usefastfor the prior unchecked release behavior.--build-profileselects the profile when emitting Zig, and--no-nonwrapforces wrapping arithmetic everywhere. A7_PYTEST_WORKERSaccepts integers1through8(default8) in local gates and rejects invalid values before running checks.
- User variadic parameters, multi-declarations/destructuring, and multi-return
spellings are cut from the runnable surface. Variadics parse then fail at
semantic exit 6 with slice guidance; destructuring and multi-return fail at
parse exit 5. Collections,
std/string, andstd/memstay deferred under P-STD-collections-scope. - Selected imports (
import "m" { A, B }) bind public file-module and virtual stdlib names (includingIoErr). Selected module aliases and stdlib hooks used as function values reject.using importrejects at semantic exit 6 with alias guidance. - File modules use separate semantic scopes, underscore-based top-level
privacy, importer-relative paths within the entry directory, unified
symlink/hardlink/realpath identity, and local import aliases (L76 rejects
parsed forwarding through another file's alias at semantic exit 6; L28 rejects
local bindings reusing the same file's import aliases). Duplicate imports exit
6, and imported tokenize/parse/IO failures preserve their stage (
4/5/3) and source file. - Package-owned
Option(T)andResult(T, E)are available in every file; user redeclarations fail at semantic exit 6.io.println_okandio.read_linereturnResult(usize, io.IoErr). Registeredprint,println, andeprintlnused as values fail at semantic exit 6 instead of codegen exit 7. Reservedstd/imports resolve to packaged sources or registered hooks; public stdlib modules remainioandmath. - Tagged-union matching uses leading-dot arms (
case .none:,case .ok(v):,else:,_), rejects barecase tag:and missing variants at semantic exit 6, and rejects by-value binding of payloads containingstring. Unlabeledbreak/continuein a match inside a loop target the enclosing loop (L58). Reversed constant match ranges (case 10..1) exit 6 withinvalid_pattern, and bare undefined identifiers incasepatterns exit 6 as undefined names. - Exact-fit constant arithmetic (
a7/exact_constants.py, L61) evaluates constants exactly before fitting to the destination, enforces SPEC Appendix C growth/work/retention/depth/diagnostic budgets once per initializer/category, and applies constant float truncation remainder rules. Untyped integer literals default toi32everywhere, and typed integers requirecastto convert to float (L72). - Generics support inline generic functions, file-scope
@type_setaliases, genericunion(tag)positional specialization,$Nvalue parameters (usize,bool, small ints, literal args, unique call-site inference, matching forwarding), minimalwhereconjunctions, narrower-constraint forwarding, annotation/alias constraint enforcement, concrete substitution in generic initializers and[2]$Tarrays, and concrete pattern fitting after instantiation. Uncalled/global/imported generic escapes, generic struct/union arity mismatches,$T + $Uarithmetic mismatches, unsigned generic negations, generic tagged-union payloads holdingstring, and duplicate function names exit 6 (ALREADY_DEFINED, L59). ASTPreprocessornormalizes positional and reordered inline struct literals,Parserrejects unseparatedwhere-clause declarations and accepts const array literals and zero-argfn() struct { ... }aliases, slices of immutable array parameters reject mutableio.read_linecalls, and nested-function trampoline cycles fail the recursion ban at exit 6.- Inferred concrete function bindings and array/string slices keep their checked
runtime types across reassignment, branches, and
refparameters. Capture-free nested functions hoist and compile; capturing nested functions exit 7 naming the captured variable. - Uninitialized declarations and
new Tzero-initialize (except function-pointer locals, which exit 6 on proved-uninitialized use). Integer+,-,*wrap by default (proven-range release ops lower without wrap), runtime shifts are checked, andMIN / -1,-MIN,MIN % -1, andmath.abs(MIN)have defined wrapping results. - Parser (L62) ends statements at newlines,
}, or EOF, requires commas in lists, enforces123abc/1.5.3/ char-escape / unclosed-block-comment tokenizer errors (exit 4), parses nested calls in linear time, and reports exact spans on postfix, unary, assignment, and parenthesized nodes.
a7/proof_discharge.pyowns obligation records,BackendPlan, and named milestones (constant-fold congruence, recursion ban, match exhaustiveness; see P-PROOF).- Safety tracks facts by declaration identity across branches, loops,
deferexits,fallarms, shadowing, and calls, rejecting nil field access, doubledel, and direct alias use afterdel(L74). Bounded repairs cover literal-index fixed-array slot aliases, dynamic-index slot invalidation, joined-allocation field-nil invalidation and selected-fielddeltracking,implicit_ref_argsdeletion rejections for non-heap values,reftagged-unionmatchnon-nil checks, caller-side argument use-after-delete rechecks, side-effecting index/slice length refreshes, genericcast($T, float)range checks, positive-constant modulo (x % N) upper-bound proofs, single-Boolean-return and local-Boolean indexed guards, ref-to-fixed-array indexing, exact numeric reference writes, one-trip loop proofs, direct global stores, bounded callee replay, literal-selector direct-call returns, and rejection-only readonly call/entry checks. Proved recursion through function values exits 6, and control flow leavingdeferexits 6. General alias, slice-container (P-REF-container-identities), and lifetime guarantees remain incomplete. - Zig codegen emits native
switchfor constant scalar/enum matches, lowersrefparameters to?*T(L60), isolates sibling nested functions and block-scoped untyped constants, keeps slice bindingsconston element writes, wraps sliced array literals as typed arrays, emitscomptime _: typefor unused generic parameters, omitsmainwrappers in--libbuilds withio, usessmp_allocatorin release builds andpage_allocatorin debug builds, buffers stdout in a 4096-byte writer flushed at exit and before stderr/panics, exits 0 on closed pipes, elides unused loop labels (ed0baff), and compares strings by content. - Updated
examples/034_string_utils.a7,examples/037_language_tour.a7, andexamples/048_worklist_traversal.a7and expandedtest/test_parser_examples.pyto verify AST declarations across all 51examples/*.a7files alongside four newtest/test_audit_*_fixes.pyregression suites. - Compiler AST/parser/typechecker/backend/safety traversals and structural
equality/repr use explicit stacks/worklists and compact allocation graphs,
leaving both recursion-scanner modes in
test/test_no_recursion.pyempty. - Benchmark suite (
bench/,scripts/bench_perf.py) addsaos_walk,soa_walk,stride_walk,kv_append, and sevenmem_*workloads. Pinning and--gatedefault to 7 samples (minimum 5), reject CV above 0.10, enforce CPU affinity, and fail--gateon missing or incomplete host baselines. - Docs site rebuilt with light/dark themes, tour, example index, 12 language
topics, search, Markdown twins, export freshness checks, ordered-list steps,
and path-confined preview serving. Release packaging uses
project_status.pyfor example counts, locked requirement audits, and clean-venv wheel/sdist smoke tests.
- Installed
a7CLI entrypoint. - Zig is the only supported public backend.
- Added debug and release example artifact verification.
- Added wheel install smoke verification.
- Added checksum and archive-content verification for release artifacts.
- Added internal safety proof planning and operation-specific backend approvals
for casts, division/modulo, bounds-sensitive indexing/slicing, ref
dereferences, and direct use after
del. - Expanded the verified example suite to 43 runnable programs.