Skip to content

XL-0 residual: nested shared-field refutation lives in the guard, not an unreachable prelude - #9803

Merged
briansrls merged 207 commits into
mainfrom
session/bold-carp-449
Aug 31, 2026
Merged

briansrls merged 207 commits into
mainfrom
session/bold-carp-449

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

XL-0 residual increment 1 (successor lane of #9710, part of #9664). Diff vs main is two files (the branch's commit list is squash-merge display noise; everything before 390dd97 is already on main via #9710).

The class (2 board rows, v2_lens_cost.rs 305/308): a match arm nesting a refutable pattern under an Rc-carried field of an Rc-carried field (ConstantCost { value: Succ { prev: Zero } }, v2.lens.cost symbolic_product) lowered its guard SHAPE-ONLY (matches!(value.as_ref(), Nat::Succ { .. })) while the arm's let-else prelude demanded the full nested pattern. Two defects in one lowering: the inner Rc field met an enum pattern (E0308, the visible rows), and — had the types been repaired naively — the prelude's unreachable!() sat on a REACHABLE path (guard admits Succ { prev: Succ }, prelude refuses it): a fabricated panic, §5.

The fix (src/v1/05_emit_rust.dag): refutation moves entirely into the guard, recursively — collect_pattern_rc_variant_guards emits matches!(f.as_ref(), Parent::V { ref inner, .. } if matches!(inner.as_ref(), …)) when the inner pattern carries its own ref-bound fields, and rc_pattern_preludes destructures level by level under that guarantee. Both branches are conditioned on inner.needs_rc_pattern, so every depth-one site keeps its current bytes — confirmed by cycle xl0b32 round 1: the regen changed exactly one mirror file (v1_compiler_emit_rust.rs).

Evidence: discriminating RED w_nested_shared_field_refutation_lives_in_the_guard verified FAIL on the pre-fix binary (the emit check runs the binary's host-realized emitter); boundary control w_depth_one_shared_field_refutation_stays_shape_guarded PASS on both sides. The green side + census (expected 173 → 171 typeck identities, 2 removed / 0 added vs the xl0b31 board) land with the xl0b32 mirror commit; PR flips to ready on that receipt.

gunbc-ci-auto-heal and others added 30 commits August 29, 2026 04:36
…nt, and a primitive with no realization refuses instead of inventing one

Two roots behind 175 of the 260 rustc errors on the emitted v2 compiler
closure (issue #9664, milestones 1 and 2):

- 102 x E0425: the four DeclaredCallableIdentity constructions in
  v1.compiler.infer_lookup took decl_name from the AUTHORED spelling, so a
  qualified call carried the whole dotted path as the declaration name and
  emission rendered crate::v2_std_grammar::v2.std.grammar.f(..).

- 73 x E0425: v2.std.algebra length is a ModeledProjection of the `length`
  primitive and rt_function_registry has no `length` row, so emission took
  rust_runtime_bridge_name's identity arm and wrote v1_rt::length -- a symbol
  the seed does not define. A primitive's identity and its per-target
  realization are two facts; CallTargetIdentity carried only the first, so
  every emitter had to ASSUME a bridge exists.

RuntimePrimitiveCall now carries projected_from, the declaration the roster
projected it from, and emit_rust routes to the bridge only when its own
registry holds the primitive, falls back to the declaration otherwise, and
refuses when neither exists. DeclaredCallableIdentity moves to v1.std.core so
the target type can carry it without forking the pair.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…ot checked

tier0 method resolution resolves an ordinary fn-typed RECORD FIELD through
lookup_field_in_product, so `algebra.step(..)` arrives as AlgebraMethodSemantics
carrying the field node as its method_def. The fallback at the end of that arm
hardcoded runtime_bridge: true, which emitted `v1_rt::step` -- and made
emit_rust_generic_method_call's own callable-field arm, guarded on
runtime_bridge == false, unreachable for the exact receiver it was written for.
65 E0425s on the emitted v2 compiler closure (member, apply, is_empty, step,
init, allocate_literal, ...) were that one literal.

It now passes the realization question keyed on the same registry as the
plain-call seam, so a real bridge method still lowers to a bridge, a callable
field lowers as a field, and a name that is neither reaches the existing loud
refusal rather than a fabricated symbol.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…y is a self-call, so falling back to it would emit a nonterminating function

The declaration fallback is sound only where the declaration's body is real
code. HostRealizedSeam means the body IS a self-call, so emitting it compiles
and then loops forever -- silent wrongness, strictly worse than the unresolved
symbol it would have replaced. A seam whose target has no realization has no
honest lowering, so it carries nothing and reaches emission's refusal.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…lared to be host seams

v2.std.compilers.lexing symbol_lexeme and symbol_intern_lexeme have self-call
bodies -- the HostRealizedSeam shape exactly -- and the interpreter has carried
real arms for both (v4_bridge.symbol_lexeme, v4_bridge.symbol_intern_lexeme).
With no projection roster row the resolver saw ordinary declarations, so Rust
emission emitted the declaration, and

    pub fn symbol_lexeme(sym: String) -> String { symbol_lexeme(sym) }

COMPILES. The emitted closure carried two functions that type-check, pass every
gate we own, and diverge from the interpreter by not terminating. Unlike the
sibling seams (decl_facts and friends, which at least refuse loudly as
unresolved v1_rt symbols) nothing anywhere reported this one -- it is absent
from the E0425 census precisely because it is silent.

extdeps.languages.rust.types already declares Symbol's target type as String,
so on this target both bridges are the identity. That is a realization of the
declared row, not a second opinion about it.

Residue named, not closed: a self-call body is a DECIDABLE structural marker of
a host seam, so the compiler could refuse an unrealized one rather than emit it.
It does not yet; that check is the class's next-rung trigger.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…round 2)

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…, with boundary controls

Six rows over the three emitter defects plus the two symbol bridges. Each
class's positive and negative assertion differ only in the fact the repair
added, so no single edit satisfies both directions, and each repair carries a
boundary control that would go red had it over-reached the other way (empty_map
for the registry gate, a registered bridge method for the class-B gate).

The symbol-bridge row is deliberately not an error-count assertion: that class
COMPILED throughout the defect and diverged by not terminating, so a row
asserting 'no error' would have been green the whole time.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…never reaches the seam under repair

count is answered by rust_simple_method_specs before the algebra fallback, so
the row would have gone red while executing none of the code the repair
touched. trim is in rt_function_registry and has no template, so it is one of
the few names that actually reaches that fallback.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
The module index refused the file outright, so none of the six witnesses were
discovered. .dag item declarations carry no terminator.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…mitting compiling recursion

A whole-body self-call is the decidable structural marker of a host seam. In the
interpreter the shape is safe -- reaching it recurses to the evaluation-budget
refusal -- but emitted to Rust the same shape COMPILES and returns to no caller.
Nothing reported it: not the module index, not the compile-clean gate, not cargo
check. That is why the two symbol bridges were invisible until someone read the
emitted bytes.

emit_fn_def now asks the realization registry -- the same authority the call
sites ask, so the two cannot drift -- and suppresses the declaration when the
seam is realized, refuses with a located message when it is not. Suppression
rather than delegation is deliberate: a forwarding body would make this seam
reconstruct signatures in target types, which is the cementing the existing
suppressed-seam precedent avoids, and a realized primitive's calls all route to
the bridge anyway.

The predicate is whole-body identity, not 'contains a self-call'. Ordinary
recursion has a match, an if or a let between the head and the call, so it never
matches; expr_has_self_call walks children and would have refused most of the
compiler. Both directions carry a fixture.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…, not the declaration name

Measured, not predicted: the wall refused six seams in the emitted closure and
one of them -- v2.std.collection empty_map_primitive_delegate -- is realized.
Its roster row names the empty_map primitive, whose bridge is rc_empty_map, but
rt_function_registry holds 'empty_map' and the wall looked up
'empty_map_primitive_delegate'. A declaration's name and the primitive it
realizes are two facts; the roster is the authority that joins them, and the
declaration name is only the fallback for a seam nobody has rostered.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…ession created 10 dangling imports

Measured on the emitted closure with the wall finally in the mirror: removing a
realized seam's item left 10 unresolved imports (E0432) for symbol_lexeme,
symbol_intern_lexeme and resolve_type_node. Other modules import these
declarations; the suppression created that breakage rather than finding it.

And the reasoning that made suppression look safe is what makes it unnecessary.
A realized seam's body IS a call to itself, and resolution already routes that
call through the roster to the bridge -- so ordinary emission writes
v1_rt::symbol_lexeme(sym) as the body without help. The wall's whole job is the
UNREALIZED arm.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…: rustc's denominator is larger than the demand denominator

compile_error! fails the WHOLE crate, and that form silently assumes every seam
it refuses is one somebody calls. It is not. rustc type-checks the entire
emitted crate including declarations imported but never invoked, so the refusal
denominator is strictly larger than the entry-reachable execution closure --
five unreachable seams took the crate down.

The refusal is now a panic body with the declaration's real signature: dependent
modules resolve, the crate compiles, and only an actual invocation fails loudly.
That moves the refusal from the crate to the one declaration that earned it, and
leaves reachability to a separate instrument. An entry-rooted pruner can replace
the body later without revisiting this.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…his change

DETERMINISM DENOMINATOR (9 reach_witness rows red, including
determinism_denominator_is_closed_on_declared_primitives, whose entire job is to
notice this). v2.lens.determinism closes its denominator over
primitive_declared_definitions, so adding two canonical names without traversal
facts made the closure false. Both bridges are scalar -- symbol_lexeme maps one
Symbol to its text and symbol_intern_lexeme is its inverse -- so there is no
collection to walk and OrderFreeResult is the honest arm. HostUnspecifiedOrder
would claim a real traversal whose order the host does not pin, fabricating a
leak the primitive cannot have.

NAMESPACE WAVE ADMISSION (6 unadjudicated deltas). Four are TargetChanged for
DeclaredCallableIdentity moving v1.compiler.infer_sigs -> v1.std.core, which is
what lets CallTargetIdentity carry the declaration a runtime target was
projected from. infer_sigs imports v1.std.core, so the type could not stay put
without a cycle. Four enumerated rows, one per binding site; the two membership
deltas auto-admit as ExplicitlyEvaluatedZeroDelta. Dissolve-on: this PR merging,
by the same trigger the three prior shrinks record.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…er than the corpus

The row FAILED while the mechanism was green. The probe used the qualified
spelling without importing v2.std.collection, which resolves against the real
4261-module corpus but not against compile_dag_rust_emit_check's 2973-module
witness pool. Measured both ways: emitted against the corpus the same probe
produces crate::v2_std_collection::map_get(m.clone(), "key".to_string()),
exactly what the row asserts.

The import restores module presence and does not answer the call -- decl_name
comes from the authored spelling at the call site regardless of imports -- so
the negative assertion still discriminates. Falsifier 2 is what proves that
rather than argues it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…n it never had

Before the class-B change, xs |> is_empty emitted v1_rt::is_empty, a symbol the
seed does not define: 5 x E0425. After it, the same 5 sites became typed
refusals -- correct in kind, still 5 errors. The class-B repair made the gap
visible; it did not close it.

is_empty is an algebra template over FreeMonoid whose Rust realization is
Vec::is_empty, exactly as count's is Vec::len, so the fix is one row in
rust_simple_method_specs beside count. Nothing in 05_emit_rust learns a new
name: realization is a target fact and lives in the target's registry.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…s B survived one layer up

The requested is_empty negative control found a live hole rather than confirming
a safe one. Both rust_method_templates lookups are keyed on the bare method
spelling with no receiver check, so a fn-typed record field named is_empty was
captured by the target template and emitted as recv.is_empty() instead of
(recv.is_empty)(..). The class-B repair fixed the algebra FALLBACK and left the
two tables sitting in front of it.

The hole is not new and is not specific to is_empty: count, first, join, split,
take, skip, last, chars and enumerate have carried it for as long as they have
had templates. Adding is_empty made it urgent by putting the spelling most
likely to name a predicate field in front of that table.

One helper, consulted at the top of both arms before every name-keyed special
case, so the two cannot drift. Two controls: the new spelling and a pre-existing
one.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
v1.compiler.infer_sigs used to DECLARE DeclaredCallableIdentity, so its own two
construction sites resolved locally and produced no delta. Now that the
declaration lives in v1.std.core and infer_sigs imports it, those sites rebind
exactly like the consumers in infer_lookup. An enumeration error on my part, not
a second transition: same subject, same trigger, same dissolve.

Floor is now green on this branch (passed=2754 failed=0) -- the OrderFreeResult
traversal facts closed all nine determinism rows.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
# Conflicts:
#	src/v1/stage0/src/v1_compiler_emit_rust.rs
#	src/v1/stage0/src/v1_compiler_infer.rs
…domain, not the receiver's: 202 refusals on the first compile of the converged seed

rust_receiver_has_callable_method_field asked rust_record_field_needs_fn_rc,
which sweeps rust_struct_field_lookup_candidates -- and that list deliberately
widens a receiver's name to its container template algebra. An algebra declares
its operations as arrow-typed members, so under that widening every Map receiver
"has a callable field" named map_keys, map_values, lookup or get, and the tier
captured the very bridge calls it sits in front of.

Measured at the first compile of the round-3 converged mirror: 202 rustc
refusals, one class -- 164 E0609 (no field `map_keys` on
Rc<im::HashMap<String, Rc<ItemInfo>>> and friends), 48 E0282, 4 E0615 on `get`.
It is the same defect the tier was built to close, one level up: a name-keyed
lookup consuming an identity domain that is not its own.

The predicate now consults only the receiver's own declared record.
w_map_receiver_operation_is_not_read_as_a_callable_field is the discriminating
red: restore the candidate sweep and its must_not_contain clause fires.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
… point at round 3, six paths, each explained by an authority change

Convergence transaction on srv1 (/tmp/xl0c.sh -> /tmp/xl0g.log), on
952ffa6 = main b726547 merged with the branch. Criterion is BYTE equality
(sha256 over the whole candidate tree vs the whole installed tree), never
first_generation_equal and never the changed-path list; the full workspace
is rebuilt inside every round so a non-compiling mirror stops the line.

  round 1  cand e212fe74 inst 6f55cf3e  installed, compiles
  round 2  cand 932b0543 inst e212fe74  drift = v1_rt.rs only (the two-hop:
           v1_rt.rs is rendered by the previously compiled rt_hash_ops)
  round 3  cand 932b0543 inst 932b0543  BYTE FIXED POINT -- produced by a
           compiler rebuilt from the round-2 installed tree

Changed paths and their authority:
  extdeps_languages_rust_emit.rs  <- rt_function_registry / rust_simple_method_specs rows
  std_primitive_projection.rs     <- symbol_lexeme / symbol_intern_lexeme roster rows
  v1_compiler_emit_rust.rs        <- 05_emit_rust.dag (seam wall, callable-field tier, class B/C)
  v1_compiler_infer.rs            <- 04_infer.dag projected_from on RuntimePrimitiveCall
  v1_compiler_runtime_rust.rs     <- runtime_rust.dag symbol bridges
  v1_rt.rs                        <- same, one hop later

On these bytes: function_value_named_application_controls_witness PASSES
(the d805243 / 952ffa6 rust-unit-tests red was the merge-driver-refused
stale v1_compiler_infer.rs, not a semantic regression); emit 175 files;
cargo check 15 errors: 9 E0425 (filesystem 2, V 2, K 2, Determinism 2, T 1),
2 E0728, 2 E0107, 1 E0391, 1 UNRESOLVED_CompilerError. No hand edit to any
generated file.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…a4e965ddb built from the committed mirror): v1_compiler_emit_rust.rs regenerated; candidate patch sha 05ce734c52890571
… installed ce959e40604ffdd5): std_algebra.rs, std_nat.rs -- arrow returns now render through the Rust renderer (Rc<Vec<K>> for List<K>, Nat preserved); candidate patch sha b5b409aeebbeb6c4
…fect shapes: the unconditioned route emitted 2790 refusals where 15 stood; fix the arrow probe's variant spelling
…bda's admission; F: a qualified type reference earns its use-line from the qualifier under export proof; both earlier cuts were measured non-events and are deleted
…at round 3, three paths, each explained by an authority change

srv1 (/tmp/xl0e.sh -> /tmp/xl0j.log), criterion = every regen-population
file byte-equal to installed; full workspace rebuilt as the gate each round.

  round 1  gunbc=1dc61ba198c6750b from installed 0479b0df9fc5598e  -> v1_compiler_emit_rust.rs
  round 2  gunbc=909aa212f353bd03 from installed 8ebedc7445fadbaa  -> std_algebra.rs, v1_compiler_trait_derive_emit.rs
  round 3  gunbc=0d0cd70ec5b20db9 from installed 8713cb43f8ad848c  -> <none>  BYTE FIXED POINT

  v1_compiler_emit_rust.rs        <- 05_emit_rust.dag (gated arrow position, init turbofish admission, qualified-type use-lines)
  std_algebra.rs                  <- the gated arrow route restores the pre-e9900e2 spelling of the two arrow-typed fields
  v1_compiler_trait_derive_emit.rs <- one use-line synthesized for a qualified std.types.List reference under export proof

Final installed tree 8713cb43f8ad848c. No hand edit to any generated file.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…e variant arm; the qualified route synthesizes use-lines only for types the emitted source names

Four regressions the 0773184 fixed point put on the closure, each with its discriminating row:

- E0603 x16: the qualified-type route synthesized `pub use crate::v2_std_nat::Succ;` for every
  `v2.std.nat.Succ { prev: .. }` record literal. A qualified name reaches the surface walk in the
  same dotted spelling whether it is a type or a variant head; the route now asks the registry
  whether the leaf is a TYPE declared in the named qualifier, records each decision as a census
  row, and considers only leaves the emitted source actually names (it had also synthesized an
  unused `DeclarationRef` import from a variant payload).
  w_qualified_variant_head_earns_no_type_use_line.

- `Outcome<compile_error!("UNRESOLVED_CompilerError")>` x3 and `Rc<Medium>` E0107: two cuts had
  each introduced a second per-position renderer for arrow types beside the one fn parameters use.
  An arrow's return is not a different kind of type from its parameter: both positions now render
  through render_rust_fn_sig_type, and render_rust_type_with_applied_binding -- which rebuilt its
  EmitGraphInfo with an empty generic scope, so a fn-scope `C` rendered `_` (E0121) -- carries the
  fn's generic names through that hop. The measured gate over the second renderer is deleted.
  w_generic_arrow_return_renders_the_fn_scope_generic; w_arrow_return_type_keeps_its_applied_binding
  (its fixture was an invalid program: Accepted lacked `diagnostics`).

- v2.std.determinism E0425 x2: traced to the bare-name disposition, not the qualified route --
  `Determinism` is a type in std.determinism and a variant of v2.lens.registry LensIdV0, and
  is_known_variant is corpus-wide by spelling, so a TYPE-position reference was delegated to an enum
  it never named. A name in one of the module's type positions never takes the variant arm.
  a_known_variant_spelling_in_a_type_position_takes_the_registry_arm (red by construction on the
  old arm); the harness row is a positive control and says so, because the witness harness refuses
  any pool carrying the colliding variant with NoSuchVariable.

Verified on a test binary built from the self-emitted emitter (not a regeneration): witnesses
23/24 -> 24/24 after the harness row was reshaped; closure instrument 2799 -> 2779. The regeneration
that binds these to the mirror follows as its own commit after the freeze merge.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
gunbc-ci-auto-heal and others added 21 commits August 30, 2026 22:09
…emit_host fix, empty-list exemption, Nat ambiguity resolution, AlgebraSupportAxis; floor-green run 33333354215, byte-converged on main 10eefc2). Regen-owned mirror conflicts (std_algebra, v1_compiler_infer, v1_std_core) taken ours from the 47a5ae2 converged tree — regen fixes forward; hand-maintained cli_run/compile_clean.rs taken from E (their arms superset). Supersedes the eedb50e/8bf2461 cherry-picks already carried.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…int (installed f60f0d9f77db9fed)

Pushed on convergence; the census and batteries of this cycle are
reported in the PR body once measured.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
… review-57660 follow-through (connective stall hosted in gunbc.guarantee_rung_drop), UnnamedSynthesizedType operand arm (host by construction — no authored name is not a declaration reference), corrected identity-diff filter. Regen-owned mirror conflicts (std_operator_realization, v1_compiler_emit_rust) taken ours from the 1743f54 converged tree — regen fixes forward; namespace_wave_admission.rs conflict was a blank line.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…in measure_entry_emission; Complete/BoundedTail stderr capture in the interpreter shell dispatch; compile-phase frontier witness) — clean auto-merge, the v1_interpreter.rs delta is PH's hand-maintained host code with no new enum dependencies

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…int (installed 46f745cfa531624d)

Pushed on convergence; the census and batteries of this cycle are
reported in the PR body once measured.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…auto-merge, no stage0 delta). Also frees a fresh review slot: review 57704 on 490c74c failed on a reviewer-workspace ref lock (main moved mid-fetch), and a failed review burns its (sha,provider) slot.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…clarations (the producer repair for the 3 E0308 Option-widening rows)

The three .first() producers (cache_facts_for_id, cache_layer_plan_primary/fallback) and cache_reach_candidate_probe were made Optional at the declaration with every consumer matched in ca31a9c; 6cea006 (which rode into #9710 inside the f0bed60 merge) reverted both files to bare returns while their bodies stayed Option-shaped — the declaration then lied about the body, and the emitted crate surfaced it as E0308 x3 at std_cache_interface.rs 693/697/701. This restores the ca31a9c state of exactly the two files (declarations, Absent/Present match arms, planner test); 6cea006's frontier/instrument changes are untouched. Attribution corrected: the added rows were this source regression arriving between the xl0b21 and xl0b22 measurements, not a compiler/mirror delta — the xl0b21 source (2b90986) still carried the Optional declarations.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…nt (review 57714): the byte quantity rides std.measure's owned unit — declaration, the one authoring site (extdeps.gunbc default, byte_size(count: 16384)), and the two hand-maintained interpreter arms, which now unwrap the Measure record's count fail-closed instead of accepting a raw Int

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…, XL-R-4A rebuild scope #9765, DESIGN placement plan #9769). Conflicts: 5 regen-owned stage0 mirrors taken ours from the ef328db8 converged tree — regen fixes forward; main's hand-maintained required_regen_host.rs auto-merged from main.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
… XL-R-3/4A added mirror modules (gunbc_stage0_partition_package_graph, compile_sources_selected) that main's hand required_regen_host.rs consumes, so per-file ours-picks left E0432/E0433 across all lanes at 2656c1e. Main's stage0 taken whole; this branch's three hand files restored on top (v1_interpreter.rs: N's ExprElaboratedLiteral arms + the ByteSize BoundedTail arms; cli_run/compile_clean.rs: E's diagnostic arms; namespace_wave_admission.rs: N's live roster row). The regen cycle bootstraps round 1 with main's two hand-file versions until the regenerated enums carry the N/E variants, then restores these — the xl0b19 staged-bootstrap pattern, now two files.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…ducers:

(1) the stderr_policy selection block still read BoundedTail.bytes as Value::Int and absorbed any other shape into the 16 KiB default (unwrap_or = a silent widen, the section-5 absorbing fallback) — both arms now unwrap the ByteSize Measure record and REFUSE with a typed InterpError on any other shape;
(2) binop_is_equality (dag/std/operator_realization.dag) had zero consumers in the corpus — dead predicate deleted rather than rostered;
(3) the hand-Rust stderr-capture policy realization now carries its own receipt row in std.shell_stream_capture, admitted under and dying with the existing bounded_shell_host_drain seam trigger.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…int (installed dcb7f5f30796b470)

Pushed on convergence; the census and batteries of this cycle are
reported in the PR body once measured.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…int (installed c2966c3750ae1556)

Pushed on convergence; the census and batteries of this cycle are
reported in the PR body once measured.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
… landing the stall's own named trigger — StructuralConnectiveBinding

std.operator_realization now declares the connective row family (carrier-keyed, the StructuralOrderingBinding shape) and operator_realization_for routes And/Or on a StructuralOperand through it: HostOperator only where the carrier declares its connectives host-realized (structural_connective_rows in gunbc.structural_realization_bindings — v2.std.logic Bool, the corpus's ordinary conjunction), NoStructuralOperationDeclared refusal where it does not (a Peano-shaped operand under && now refuses, typed and located), StructuralConnectiveDuplicated where the roster forked. Two witness rows pin both sides (refusal RED + Bool positive control). The structural_connective_stall row in gunbc.guarantee_rung_drop is retired by exactly this capability, per its own trigger sentence. NullCoalesce is not a connective and keeps its arm.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…e0 taken whole from main (R-4B adds executable-assembly/partition mirrors its hand required_regen_host.rs consumes; per-file picks cannot build); this branch's hand files restored on top — v1_interpreter.rs as the auto-MERGED content (main's delta + N's ExprElaboratedLiteral arms + the ByteSize BoundedTail arms), compile_clean.rs (E arms), namespace_wave_admission.rs (N's live row; its dissolve trigger, #9719 merging, has not fired). xl0b27 regenerates to the fixed point with the two-file bootstrap.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…standing sum directly (review 57752)

433bb3b's edit left a dangling `concat(` inside the StructuralOrderingDuplicated
arm of operator_realization_refusal_message — a parse break that dropped every
declaration in std.operator_realization, refusing the v2 self-compile with 159
undefined-name diagnostics (xl0b27 round 1). The ordering arm has its body back
and StructuralConnectiveDuplicated gets its own message naming the connective
roster. Validated by single-entry compile on the round-1 binary: 0 blocking.

Review 57752 finding 1: phase_count_or_negative collapsed PhaseCountStanding
into an Int with -1 for PhaseNotYetReached (state_space_conflation). The three
questions the board asks are now direct matches on the sum: phase_closed_at_zero,
phase_reached_with_diagnostics, phase_count_increased (not-yet-reached on either
side is never a count comparison — furthest-phase regression owns that question).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
…int (installed 79abc37f7f80ae68)

Pushed on convergence; the census and batteries of this cycle are
reported in the PR body once measured.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
… prelude

A match arm nesting a refutable pattern under an Rc-carried field of an
Rc-carried field (v2.lens.cost symbolic_product, `ConstantCost { value:
Succ { prev: Zero } }`, the 2 remaining lens_cost board rows) lowered its
guard SHAPE-ONLY (`matches!(value.as_ref(), Nat::Succ { .. })`) while the
arm's let-else prelude demanded the full nested pattern: the inner Rc
field met an enum pattern (E0308 expected Rc<Nat> found Nat), and had the
types been repaired naively the prelude's `unreachable!()` sat on a
REACHABLE path — the guard admits Succ{prev:Succ} and the prelude refuses
it, a fabricated panic (§5).

collect_pattern_rc_variant_guards now recurses when the inner pattern
carries its own ref-bound fields: the guard becomes
`matches!(f.as_ref(), Parent::V { ref inner, .. } if matches!(inner.as_ref(), ..))`,
carrying the WHOLE refutation; rc_pattern_preludes destructures level by
level under that guarantee. Both branches are conditioned on
inner.needs_rc_pattern, so every depth-one site keeps its current bytes —
pinned by w_depth_one_shared_field_refutation_stays_shape_guarded beside
the discriminating RED w_nested_shared_field_refutation_lives_in_the_guard
(verified red on the pre-fix binary; the emit check runs the binary's
host-realized emitter, so the green side lands with the regen cycle).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
@gunbai-bot gunbai-bot Bot changed the title XL-0 XL-0 residual: nested shared-field refutation lives in the guard, not an unreachable prelude Aug 31, 2026
…int (installed 2c812cfc4bf5b944)

Pushed on convergence; the census and batteries of this cycle are
reported in the PR body once measured.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXfYKNQTD3VfYyQcnJpxNU
@gunbai-bot

gunbai-bot Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

Validation receipt — cycle xl0b32 on 390dd973 (mirror 7097416, installed 2c812cfc4bf5b944)

Byte fixed point at round 2; round 1's regen changed exactly one mirror file (v1_compiler_emit_rust.rs, 13140 patch bytes) — the conditioned branches held the rest of the corpus byte-identical, as the boundary control demands. Unit tests 602/0. Batteries on the converged tree: emission 45/45 (including both new rows: w_nested_shared_field_refutation_lives_in_the_guard PASS — its RED on the pre-fix binary was exhibited before commit — and w_depth_one_shared_field_refutation_stays_shape_guarded PASS), disposition 14/14, symbol 20/20.

Census vs the xl0b31 landed-main board: 173 → 171, removed 2 / added 0, and the removed identities are exactly the class named in the PR body:

src/v2_lens_cost.rs	305	123	E0308	mismatched types: expected `Rc<Nat>`, found `Nat`
src/v2_lens_cost.rs	308	123	E0308	mismatched types: expected `Rc<Nat>`, found `Nat`

@briansrls
briansrls merged commit 306beba into main Aug 31, 2026
5 checks passed
@briansrls
briansrls deleted the session/bold-carp-449 branch August 31, 2026 17:33
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