Skip to content

Phase 7: integrate the open pull requests (one verification) - #286

Open
atiernan wants to merge 233 commits into
mainfrom
claude/phase7-integration
Open

atiernan wants to merge 233 commits into
mainfrom
claude/phase7-integration

Conversation

@atiernan

@atiernan atiernan commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

One branch that merges every open phase 7 pull request, so CI verifies them once together instead of one full run each (the runners were saturated, with ~15 full runs queued). When this merges, GitHub marks each included pull request merged, since their head commits are in it.

Included (each stack by its top branch, which contains the lower ones)

Not included: the clazel-sys stack (#272, #277, #279), which waits on the maintainer's CLAUDE.md rule 1 decision; phase 6 pull requests.

Changes made here, beyond the merges

cargo xtask check: STATIC CHECKS PASSED. cargo clippy --workspace --all-targets -- -D warnings: clean. CI's full verification has not run yet.

🤖 Generated with Claude Code

atiernan and others added 30 commits November 18, 2026 23:56
…e tokens (7.3)

for ( init ; test ; update ), for-in and for-of with a declaration or an
identifier as head (ForDeclaration, VariableDeclarationList, a let/const
LexicalDeclaration). The head is checked in cx_in(cx, false): binary operators
(except in), assignment, unary, member access, bindings and identifiers no longer
need [+In]; the driver no longer refuses every node with in_ false or deflt true,
only the kinds whose checks need [+In]. Verus: 273 verified; mutate: 6 killed.
Verified share 765 to 791 of 1568.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ArrayLiteral (darray: elements, holes, spread, trailing comma), ObjectLiteral and
its PropertyDefinitions (shorthand, key: value, spread), ComputedPropertyName,
Elision. Methods, getters/setters and name = init (CoverInitializedName) are not
covered yet. Verus: 287 verified. Verified share 791 to 829 of 1568; harness
files 7 to 10 of 41.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ArrayBindingPattern and ObjectBindingPattern (darray, dsep), BindingProperty,
BindingRestElement, BindingRestProperty; pattern targets for var/let/const
bindings (an initializer is required), BindingElement, function ...rest and catch
parameters. Assignment patterns are not covered yet. Verus: 294 verified. The
verified share of Test262 is unchanged (829 of 1568): the files that use patterns
also use other uncovered productions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ObjectAssignmentPattern and ArrayAssignmentPattern with AssignmentProperty
(shorthand with initializer, key: element), AssignmentElement and
AssignmentRestElement/Property; an assignment with = takes a pattern as its
target. Verus: 298 verified. Verified share 829 of 1568 (unchanged).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
UpdateExpression (prefix and postfix), MemberExpression with a bracket, and
NewExpression (with and without arguments). Verus: 306 verified. Verified share
829 to 1414 of 1568 positive runs (90.2%); harness files 10 to 28 of 41.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ClassDeclaration and ClassExpression (extends), ClassBody with its ';' (dclass),
MethodDefinition (method, getter, setter, generator, async, async generator,
static; in classes and object literals), FieldDefinition, ClassStaticBlock and
PrivateIdentifier. Each part is in its production's context (cx_fn for the
parameters and body, [+Await] for a static block). Verus: 324 verified. Verified
share 1414 to 1560 of 1568 positive runs (99.5%); harness files stay 28 of 41.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TemplateLiteral (elements and substitutions alternate, dtemplate, checked from the
back), TemplateElement and TaggedTemplate. Verus: 332 verified. Verified share
1560 to 1562 of 1568 positive runs; harness files 28 to 36 of 41.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
WithStatement (shares the while check), and a member expression as the head of a
for-in or for-of. Verus: 332 verified. Verified share 1562 to 1568 of 1568
positive runs (100%); harness files stay 36 of 41.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ers (7.3)

MemberExpression with a private name. The header of arena_d and of the crate now
list the covered productions and what is not covered. Verus: 334 verified.
Harness files 36 to 37 of 41; positive runs stay 1568 of 1568.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
….meta, for-await, Annex B heads, patterns in for heads and [~In] operands in the derivation check

The remaining script syntax of item 7.3's whole-arena check. New checks in
arena_e (meta properties, super, import(), optional chains); arena_d gets mixed
contexts (cx_ok_t: bracketed operands are [+In]; cx_ok_init: initializers,
consequents and a[b] properties) so pattern elements, calls, arguments,
literals, conditionals and comma expressions work inside a [~In] head, for
await, Annex B for (var x = 1 in o), patterns and declarations with pattern
targets as for-in/of heads, and function declarations as if/label bodies.
Verus: 357 verified, 0 errors. Mutate: 6 of 6 killed. Verified share: 1567/1567
script and 1/1 module positive runs, 41/41 harness files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…; for (let in o), await, yield and classes in [~In] heads

New arena_m: ImportDeclaration, ImportClause, NameSpaceImport, NamedImports,
ImportSpecifier, WithClause, ImportAttribute, all nine ExportDeclaration forms
(string and identifier ModuleExportNames, export default with [+Default]),
NamedExports and ExportSpecifier. The root accepts ModuleItems in a Module.
check_function and check_class accept an absent name under [+Default]; classes,
await and yield are checked in any context. Verus: 374 verified, 0 errors.
Mutate: 6 of 6 killed. Verified: 1567/1567 script runs, 1/1 module run, 143/143
module fixtures, 41/41 harness files. Not covered: class fields under
export default and in [~In] heads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…llback rule)

Stated before the implementation (CLAUDE.md rule 3): the abstract array,
refinement, representation well-formedness, the dense-to-sparse rule and
the memory bound.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Implements the contract of the previous commit; unit tests include random
operation sequences checked against the abstract array.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Well-known symbols as fixed ids, unique never-reused ids, immutable
descriptions, and a collision-free encoding of string and symbol keys.
Stated before the implementation (CLAUDE.md rule 3).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Implements the contract of the previous commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dense operations split out as free functions so they can be proven without
BTreeMap; the fallback rule and key encoding proven over all u32.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hability spec)

The invariant first: a slot reachable from the roots is never freed.
Spec and unit tests of the spec only; no collector yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…inalizationRegistry)

Implements the contract of the previous commit, with unit tests for each
weak kind, the roots, handles and the safe-point guard, and a fixed-seed
property test of GC1 to GC6 over random heaps checked against an
independent oracle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e_checked_early

arena_early carries an EEnv per node through a checked mirror of child_env and
checks early_local at each node, bottom-up; Verified implies
spec::early_errors_ok. DTok gains legacy, invalid_escape and name (added to
dtok_matches and canon_tok). Covered: every kind with no rule, numeric and string
literals, identifiers, template elements, super/new.target/import.meta, yield and
await, member, optional chain, relational, unary, update and assignment with a
simple target or pattern, if/while/do-while/with, for without a lexical
declaration, unlabelled break/continue, statement lists of blocks and scripts that
declare nothing lexically. Unsupported: functions, classes, labels, lexical
declarations, for-in/of, switch, try, regexps, private names, modules.
Verus: 409 verified, 0 errors. Mutate: 6 of 6 killed. 507 of 1567 script positive
runs are early-verified.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…IR to x86-64 back end

Contracts before code (CLAUDE.md rule 3). spec.rs: the frame in the
context's writable area, the relation between a LIR state and an x86-64
machine state, running code. contract.rs: per-template refinement of
clazel-lir's eval by clazel-x64's step, the exit sequence's refinement, and
the emitter's contracts. api.rs: the contract-only Backend trait. No
template and no proof yet; the crate stays at tier 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
300 took 3013 s under Miri in CI, over xtask's 300 s limit; 10 of the
same sequence take about 100 s. The normal test job still runs all 300.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-based mark_into

The marker is proven to contain the roots and be closed under the
reachability rules for every graph of 4 nodes. The whole-heap harness
did not finish in 10 minutes and is not included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Function declarations and expressions of every kind, arrow functions and
methods: env_fn and the Use Strict Directive of a body (use_strict_exec),
function_early (non-simple parameters with a directive, duplicate parameters)
from the proven BoundNames of every node (arena_names). Early errors are
verified for 591 of 1567 script runs (was 507).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…irective and object literals

The root's strictness is the exact has_use_strict of its Directive Prologue;
ObjectLiteral checks duplicate __proto__ entries and private-named methods.
Early errors are verified for 1218 of 1567 script runs (was 591). Module
roots and exports_early are not covered yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mitter; validator test

Templates for nop, drop, const, local.get/set/tee, select, the i32 and i64
add, sub, mul, and, or, xor, shl, shr_s, shr_u and ten comparisons, eqz,
wrap, extend_s, extend_u, f64 neg and abs, and the reinterprets. Each
refines clazel-lir's eval under clazel-x64's step (lemma_op_refines); a
straight-line program refines the then-chain (lemma_prog_refines); the exit
sequence refines exit (lemma_exit_refines). The emitter (emit.rs) returns
the template code and its encoding, proven. tests/validator.rs runs
clazel-codecheck's validator on every template and 3000 generated
programs.

spec.rs: op_ok now also requires nl + h <= 31 (the frame holds the current
stack), which prog_ok already ensured; it only moves a hypothesis the proofs
need into the per-instruction predicate.

Not done: memory instructions, structured control flow, exit with operands,
f64 arithmetic, rotates, a frame beyond 31 slots. Tier stays 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lding and property tables

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…atement lists

arena_decls computes LexicallyDeclaredNames, TopLevelLexicallyDeclaredNames,
VarDeclaredNames and TopLevelVarDeclaredNames of every node, proven equal to
the specification's. list_early for blocks, scripts and function bodies
(duplicates, Annex B.3.2, lexical versus var), LexicalDeclaration rules, the
lexical for head and the parameter-versus-lexical rule of function_early are
checked from them. for-in/of, switch, try/catch, labels, classes and modules
are still Unsupported. Early errors verified for 1229 of 1567 script runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…IR to A64 back end

The contract half of J.9's A64 back end (CLAUDE.md rule 3): the state
relation over clazel-a64's State with the frame at [x28 + 264 + 8 j], the
refines and exit_refines statements, and the emitter's contracts. No
template yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
atiernan and others added 14 commits November 22, 2026 15:10
…de/phase7-integration

# Conflicts:
#	Cargo.lock
…de/phase7-integration

# Conflicts:
#	crates/clazel-jit/Cargo.toml
#	crates/clazel-jit/mutations.json
#	crates/clazel-jit/src/lib.rs
…phase7-integration

# Conflicts:
#	Cargo.lock
#	crates/clazel-js-vm/Cargo.toml
#	crates/clazel-js-vm/src/lib.rs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The interpreter (#265) loads the two constants the compiler's third slice
(#230) added: a RegExp literal is unsupported, as BigInt literals are, and an
eval scope is a record. The differential test's hand-built function gains
the new `flavor` field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…phase7-integration

# Conflicts:
#	Cargo.lock
…ay.prototype

PropDesc and [[DefineOwnProperty]] (OrdinaryDefineOwnProperty and the Array
exotic object's, ArraySetLength), ArrayCreate, [[Delete]], NewArray and
DeleteProp handlers, array literals with trailing elisions, a bound on nested
natives, and the Array constructor with the core of Array.prototype.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
atiernan and others added 4 commits November 22, 2026 15:25
Reviver (InternalizeJSONProperty), replacer function and array, space and gap,
toJSON, wrapper objects, the cycle TypeError, and the nesting bound (a
SyntaxError for parse, a RangeError past 128 levels for stringify).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…derer

The 7.16 messages added lines to is_from_renderer, so dir-navigate-not-renderer
and msg-display-direction no longer matched their find text. Only find/replace
changed; expect and certificates are untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
atiernan and others added 3 commits November 22, 2026 15:49
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clazel-web's query, matches and closest pass the node queried to
clazel-selectors' matches_scoped (#264), so `:scope` is that node, as
DOM §4.2.6 and §4.9 say; the known-gap test becomes a test of it.

The Test262 runner of the built-ins classes a missing global reported
inside assert.throws's own error as the same known gap as a direct
ReferenceError: the compiler's third slice (#230) now compiles a RegExp
literal test that reaches eval that way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nto claude/phase7-integration

# Conflicts:
#	crates/clazel-js-builtins/src/object.rs
Array literals now run (#290), so language/comments/S7.4_A5.js reaches
eval, which is not there yet; the test catches the ReferenceError and
throws a bare Test262Error, so the runners cannot class it by name. It is
listed in both runners' KNOWN_GAPS with that reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@atiernan
atiernan temporarily deployed to full-verification November 22, 2026 16:41 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
full-verification — ffbafce0 Deployed Nov 22, 2026 by atiernan via Approve the proofs #769
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.

1 participant