Skip to content

samples: migrate thirty a-f app samples to current casts and effects - #8590

Draft
Smotto wants to merge 3 commits into
mainfrom
claude/project-thread-3c96k8
Draft

Smotto wants to merge 3 commits into
mainfrom
claude/project-thread-3c96k8

Conversation

@Smotto

@Smotto Smotto commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Requested by Jarod · project thread

Thirty A–F app samples and controls (non-facts probes, build controls and four scientific apps) stopped compiling after recent language changes. This PR moves them onto the current surface without changing what they compute or what each control refuses, so they pass sample-gate --source-only again on main.

What changed, by rule:

  • Domain casts (wiki/spec/language/domains.md#domain-casts): plain values entering Wrapping, Saturating, Ascii, Utf8 or sample-declared domains get as + D; qualified indexes and carrier casts strip the domain first with as - D. Applies to additive_domain_requires, bucket_contract_chain, computed_owned_operands, domain_pattern_dispatch, extent_qualifier_field, acoustic_thickness_echoes, censored_survival_analysis, chromatogram_component_fit and crossover_experiment_design.
  • Effects (effects.md#declarations, termination.md): every machine that reaches Console::read_line/read_byte declares blocks? terminates? (alarm_probe, alarm_probe2, array_index_from_call, direction_command, dual_accumulator_recursion and the scientific apps); a child that crashes publishes crashes? Trap; build.omg grants StandardOutput/ProcessExit to system where the reach ceiling refused it (const_extent_node_ordinal, captured_map_result).
  • Retired syntax: [carry(...)] (suspension.md) removed from carry_axes and carry_packet; operator D::name declarations become machine + D::name (domain_operator_roster); == on a recursive type in proposition bodies becomes |proof|::Identity (equivalence_lemma_trio); Build machines take @mutable BuildPlan<'s> (build_dup_build_edge).
  • Repinned controls, each still refused by the same check: compiler: rewrite user-facing diagnostic messages in plain English #8510 reworded "authored" to "declared named source owner" and the Build path message; nested entry and missing workspace member messages changed wording. build_machine_signature/controls/invalid_no_build_machine now stops earlier, at the unknown BuildPlan type, because a file with no free build machine is not Build source (command_line.md).
  • build_member_selection: the member packages publish their results and a main checks the sum, as build_alias_multi does.

One workaround to review: computed_owned_operands compares the five label bytes one by one because == on whole byte arrays is not checked yet; the probe's subject is owned call operands, not array equality.

Proof: mbx xtask sample-gate --source-only --exact over the 81 failing A–F app projects on 4509c87: these 30 pass (checked or rejected as intended); full native/Psi gate results in the comment below. | clean
Agent: Claude Code | Model: claude-opus-5-5 | Effort: low | Tokens: 0 in (0 cached), 0 out | Steps: 0 | Time: 0m | Steers: 0


Generated by Claude Code

@Smotto Smotto self-assigned this Dec 4, 2026
Moves 30 A-F app samples and controls onto current domain casts, effect declarations and retired-syntax replacements; repins controls whose refusal wording changed. Each passes sample-gate --source-only on 4509c87.

Agent: Claude Code | Model: claude-opus-5-5 | Effort: low | Tokens: 0 in (0 cached), 0 out | Steps: 0 | Time: 0m | Steers: 0
…rrent effects

fatigue_cycle_audit and finite_horizon_controller declare blocks? on every machine that reaches a console read and cast fixture literals into Wrapping; float_first_case_zero copies its flag before lending main.

Agent: Claude Code | Model: claude-opus-5-5 | Effort: low | Tokens: 0 in (0 cached), 0 out | Steps: 0 | Time: 0m | Steers: 0
Agent: Claude Code | Model: claude-opus-5-5 | Effort: low | Tokens: 0 in (0 cached), 0 out | Steps: 0 | Time: 0m | Steers: 0
@Smotto
Smotto force-pushed the claude/project-thread-3c96k8 branch from ee7bfac to 7671327 Compare December 4, 2026 05:43

This branch has not been deployed

No deployments
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