Skip to content

v0.2.3 — cleanup cut of #36–#49

Latest

Choose a tag to compare

@jkbennitt jkbennitt released this 29 Nov 06:40
fd98f4a

Hub 0.2.3 cleanup cut of #36–#49. Merge commit fd98f4a7 (#50). Reviewed head f2bae786.

  • Content hash: 0x8ec67f2e1f7c722e8add8e3e607a1ca3
  • Printed import: import 0x8ec67f2e1f7c722e8add8e3e607a1ca3/lib.bend as Lib
  • Consumer import: import 0x8ec67f2e1f7c722e8add8e3e607a1ca3/lib.bend as Unsga3
  • Named: import unified-nsga-iii@0.2.3.0/lib.bend as Unsga3
  • Previous 0.2.2 hash 0xd1de66b5d9157913a654c39186289f3d is still unified-nsga-iii@0.2.2.0

Hub entry is /lib.bend, not /src/lib.bend. Not nuget.org. Not GitHub Packages. A/B stays PymooCompatible. On Bend 2.0.40, consumer --check-only of the 0.2.3 hash and of @0.2.3.0 exits 0 ALL PROOFS CHECK. src/, LAWS.bend, and PROOF.bend are unchanged from 820742c.

Full notes: CHANGELOG

[0.2.3] - 2026-11-29

Hub re-publish of the work already on main (#36–#49). Those changes landed before this version bump; this section is the cleanup cut. bend src/lib.bend --publish (Bend 2.0.40) printed the hash below. The hash changed because the import closure includes the src edits since v0.2.2. Not nuget.org. Not GitHub Packages. A/B stays PymooCompatible.

A shipping PR's last commit carries the version bump, this section, and the published hash. Merge once. Then bend link, the git tag, and the GitHub Release.

  • Previous hub hash (0.2.2): 0xd1de66b5d9157913a654c39186289f3d
  • Content hash: 0x8ec67f2e1f7c722e8add8e3e607a1ca3
  • Printed import: import 0x8ec67f2e1f7c722e8add8e3e607a1ca3/lib.bend as Lib
  • Consumer import: import 0x8ec67f2e1f7c722e8add8e3e607a1ca3/lib.bend as Unsga3

Hub entry is /lib.bend (what bend printed), not /src/lib.bend.

import unified-nsga-iii@0.2.2.0/lib.bend as Unsga3 resolves to 0xd1de66b5d9157913a654c39186289f3d (Bend 2.0.40). bend link unified-nsga-iii@0.2.3.0 0x8ec67f2e1f7c722e8add8e3e607a1ca3 ran after merge. Tag v0.2.3 is this release's merge commit fd98f4a7.

Added

  • Custom problem evaluation API (Prob.evaluate_all_with, Algo.run_with, Algo.run_seeded_with) and consumer-facing facade wrappers in src/lib.bend (run, run_with, mk_config, das_dennis, nd_front, feas_nd, select, pymoo, rank_niche, box, interval, scored, plain, plus named problem constructors). Smoke: src/custom_smoke.bend.
  • MIT src/LICENSE alongside src/lib.bend for future BendHub publishes.
  • Expanded Layer-1 survival fixtures ab/fixtures/core_3obj.json and ab/fixtures/collapsed_span_2obj.json verified bit-equal against C# Unsga3 in ab/fixture_check.py.
  • Best-of-k fidelity check (ab/best_of_k.py, docs/BEST_OF_K.md). Pre-registered: Bend seeds 1–15, k=3, front-only E_assoc against the existing IGD yardstick. Verdict on this run is a negative baseline: a front-only energy does not find the better seed here. The algorithm is unchanged. Not an IGD / HV claim about a new operator. Not a hub publish.
  • Scaling gate (bench/scale_gate.py, bench/README.md). CI job scaling runs a short DTLZ2 grid (--threads 1) and fails if a log-log 95% interval's upper bound exceeds the allowed slope, if r² is under 0.75, if a legacy ceiling or exponent/ratio margin is crossed, or if the reference-size median on this runner's CPU model exceeds the per-model row in bench/baseline.json. An unlisted model fails that check. The N² allocation must come back worse, the N² time loop must clear the measured endpoint-ratio ceiling, and a uniform 2× spin must fail the absolute check while its slope stays within. The required verify job is unchanged. Not an IGD / HV claim. Not a hub publish.
  • Per-CPU scaling rows for EPYC 9V45 and Xeon 6975P-C. Each is the median of per-VM medians from five Actions VMs (source hash f165242dcafcb14b, Bend 2.0.40, 4 vCPU), with the published margin. EPYC 9V74 stays the single-run row from run 44212931647 (time median 221, margin 0.077). EPYC 7763 stays the two-sweep row. Xeon 6973P-C (two VMs) has no row. Xeon Platinum 8573C stays the single run 44213844582; a second VM is under the five-VM bar. Unknown models still fail the job. The unused on_different_machine key is removed; the check does not read it. RSS margins, the ratio ceiling, and max_exponent are unchanged. Not an IGD / HV claim. Not a hub publish.
  • #36 packages the closed law Laws.niche_count_sum as a challenge fixture (challenges/NicheCountSum.json, challenges/NicheCountSum.challenge.bend with its one ?TODO hole, challenges/NicheCountSum.SCOPE.md). proof_surface is Bend PROOF. docs/PROOF-SURFACE.md is the public verb gate. LAWS.bend and PROOF.bend were not edited in that PR. No new law.
  • #37 adds the verify-unsga3-bend skill (.cursor/skills/verify-unsga3-bend/): doctor, gates, proof-wall check, yardstick compare, and the feature map.
  • #38 tightens that skill: strict proof-wall parse (check_proof_wall.py --self-test), a yardstick that fails on zero compared cells and on skip: unless --allow-skip, and a tracked_clean gate. Only the skill directory changed.
  • #39 runs that skill on every pull request and push to main (.github/workflows/ci.yml job verify: current Bend, never pinned; Layer-1 fixture; seed-1 IGD yardstick with no --allow-skip). verify stays required. No gate was skipped.
  • #40 sets defaults.run.shell: bash so piped steps keep the failing exit code (pipefail). No gate changed.
  • #41 records an experimental hand-written Metal associate kernel and benches under experiments/metal-kernels/ and in docs/PERF_NOTES.md. Isolated from src/algorithm.bend. Measured/experimental docs, not the 0.3 Big-N Metal product path. No product Run change. CUDA source is the same algorithm; no CUDA timings are claimed. Recorded tables stay in that folder.
  • #42 records an Array.clone / Array.fork reference-direction bench for bendlang/bend#1376 (experiments/metal-kernels/assoc_array.bend, results/array_clone_fork/). Experiment only. No src/ change. Numbers stay in that results file.
  • #43 records tail-loop array walks plus the bendlang/bend#1393 append workaround (assoc_array_tail.bend, assoc_array_tailapp.bend, assoc_map_tailapp.bend, results/array_tail_loops/). Experiment only. No src/ change. Numbers stay in that results folder.
  • #49 adds five quantified laws and closed proofs. That PR was level:schema. This version cut does not edit LAWS.bend or PROOF.bend, so it is not level:schema. PROOF.bend has 36 def Laws. (was 31): dominates_cd_irreflexive, normalize_nd_cv_len, insert_row_len, sort_rows_len, next_except_distinct. No existing law was weakened, deleted, or rewritten. compare_cd.infeas is verdict(a_lt, b_lt). #49 claimed IEEE-754 identical behavior and seed-1 fronts byte-identical versus parent da749fd. PROOF.bend has 0 ?TODO. In src/ and LAWS.bend, @unsafe appears only in comments that say there is no taint.

Fixed

  • Eliminated @unsafe from nth_comp.go in src/reference_directions.bend via structural fuel-bounded recursion: bend PROOF.bend and bend src/lib.bend now exit 0 with 0 ?TODO and 0 @unsafe taint. Proof-wall checker requires exit 0 and zero @unsafe.
  • Consumer --check-only (Bend 2.0.40) of a file that only does import Base plus import 0xd1de66b5d9157913a654c39186289f3d/lib.bend as Unsga3, and the same import via unified-nsga-iii@0.2.2.0, exits 1: SOME PROOFS FAIL, 11 defs rely on unsafe or foreign code, starting at reference_directions.nth_comp.go. The same consumer file against 0x8ec67f2e1f7c722e8add8e3e607a1ca3 exits 0 ALL PROOFS CHECK. That is why the #48 @unsafe removal is in this hub package. A runtime bend file.bend of the 0.2.2 package was not re-run. Not an IGD claim.
  • Replaced exponential $O(2^n)$ Util.binomial with $O(\min(k, n-k))$ multiplicative binomial while preserving binomial(n, 0n) == 1n definitionally.
  • CBV hot-loop fixes: short-circuiting NDS.is_dominated, Util.f32s_eq, Util.has_f32s, Algo.try_add(elim=False), Norm.has_infeas/has_feas, Surv.any_infeas, Surv.pad_idxs, and Surv.size_lock.rng; $O(1)$ reverse-cons accumulation in offspring and niche loops; $O(B)$ single-bag sort_put in Surv.bags_kept.
  • Algorithm edge cases: check Ind.niche_linked in Tour.winner_pymoo.gate; prevent infeasible CV-fillers from inflating feasible niche counts in Tour.prepare; seed Surv.nearest_one from the first reference direction instead of 1e9; apply fallback_unit in Norm.project_fixed.back; order NaN CVs after finite CVs in Surv.row_before; clamp dtlz4_f F32 cosine outputs to >= 0.0; cycle duplicate-retry mating pairs via Algo.next_pair (matching C# AdvanceMatingPair).
  • Tooling: hash src/*.bend + bend version (+ ab/profile_run.bend) in native cache digests (ab/dump_bend_run.py, ab/profile_bend_run.py, bench/scale_gate.py); fix ab/profile_run.bend nds_final, gather, padding order, and constrained routing; strip Bend checker banners and format scientific floats cleanly in ab/dump_bend_front.py; print partitions= for c1dtlz1 in ab/igd_vs_pymoo.py; guard non-positive medians in bench/scale_gate.py.
  • Refreshed 15-seed IGD tables in docs/ORACLE-MULTISEED.md against Bend 2.0.40, C# Unsga3 (b350a88), and pymoo 0.6.2 (135/135 scored, 0 skips) and bumped UNSGA3_CS_SHA in CI.