Repository navigation
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
0xd1de66b5d9157913a654c39186289f3dis stillunified-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 insrc/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/LICENSEalongsidesrc/lib.bendfor future BendHub publishes. - Expanded Layer-1 survival fixtures
ab/fixtures/core_3obj.jsonandab/fixtures/collapsed_span_2obj.jsonverified bit-equal against C#Unsga3inab/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-onlyE_assocagainst 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 jobscalingruns 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 inbench/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 requiredverifyjob 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 unusedon_different_machinekey is removed; the check does not read it. RSS margins, the ratio ceiling, andmax_exponentare unchanged. Not an IGD / HV claim. Not a hub publish. - #36 packages the closed law
Laws.niche_count_sumas a challenge fixture (challenges/NicheCountSum.json,challenges/NicheCountSum.challenge.bendwith its one?TODOhole,challenges/NicheCountSum.SCOPE.md).proof_surfaceisBend PROOF. docs/PROOF-SURFACE.md is the public verb gate.LAWS.bendandPROOF.bendwere 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 onskip:unless--allow-skip, and atracked_cleangate. Only the skill directory changed. - #39 runs that skill on every pull request and push to
main(.github/workflows/ci.ymljobverify: current Bend, never pinned; Layer-1 fixture; seed-1 IGD yardstick with no--allow-skip).verifystays required. No gate was skipped. - #40 sets
defaults.run.shell: bashso 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 fromsrc/algorithm.bend. Measured/experimental docs, not the 0.3 Big-N Metal product path. No productRunchange. CUDA source is the same algorithm; no CUDA timings are claimed. Recorded tables stay in that folder. - #42 records an
Array.clone/Array.forkreference-direction bench for bendlang/bend#1376 (experiments/metal-kernels/assoc_array.bend,results/array_clone_fork/). Experiment only. Nosrc/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. Nosrc/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 editLAWS.bendorPROOF.bend, so it is notlevel:schema.PROOF.bendhas 36def 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.infeasisverdict(a_lt, b_lt). #49 claimed IEEE-754 identical behavior and seed-1 fronts byte-identical versus parentda749fd.PROOF.bendhas 0?TODO. Insrc/andLAWS.bend,@unsafeappears only in comments that say there is no taint.
Fixed
- Eliminated
@unsafefromnth_comp.goinsrc/reference_directions.bendvia structural fuel-bounded recursion:bend PROOF.bendandbend src/lib.bendnow exit0with 0?TODOand 0@unsafetaint. Proof-wall checker requires exit0and zero@unsafe. - Consumer
--check-only(Bend 2.0.40) of a file that only doesimport Baseplusimport 0xd1de66b5d9157913a654c39186289f3d/lib.bend as Unsga3, and the same import viaunified-nsga-iii@0.2.2.0, exits 1:SOME PROOFS FAIL,11 defs rely on unsafe or foreign code, starting atreference_directions.nth_comp.go. The same consumer file against0x8ec67f2e1f7c722e8add8e3e607a1ca3exits 0ALL PROOFS CHECK. That is why the #48@unsaferemoval is in this hub package. A runtimebend file.bendof the 0.2.2 package was not re-run. Not an IGD claim. - Replaced exponential
$O(2^n)$ Util.binomialwith$O(\min(k, n-k))$ multiplicative binomial while preservingbinomial(n, 0n) == 1ndefinitionally. - 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, andSurv.size_lock.rng;$O(1)$ reverse-cons accumulation in offspring and niche loops;$O(B)$ single-bagsort_putinSurv.bags_kept. - Algorithm edge cases: check
Ind.niche_linkedinTour.winner_pymoo.gate; prevent infeasible CV-fillers from inflating feasible niche counts inTour.prepare; seedSurv.nearest_onefrom the first reference direction instead of1e9; applyfallback_unitinNorm.project_fixed.back; orderNaNCVs after finite CVs inSurv.row_before; clampdtlz4_fF32 cosine outputs to>= 0.0; cycle duplicate-retry mating pairs viaAlgo.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); fixab/profile_run.bendnds_final,gather, padding order, and constrained routing; strip Bend checker banners and format scientific floats cleanly inab/dump_bend_front.py; printpartitions=forc1dtlz1inab/igd_vs_pymoo.py; guard non-positive medians inbench/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 bumpedUNSGA3_CS_SHAin CI.