Skip to content

toolchain: hale v0.37.0 - #250

Merged
rileyr merged 1 commit into
mainfrom
toolchain/hale-0.37.0
Nov 21, 2026
Merged

rileyr merged 1 commit into
mainfrom
toolchain/hale-0.37.0

Conversation

@rileyr

@rileyr rileyr commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Moves voice from hale v0.36.1 to v0.37.0 (the release on hale's 613e55fbd), read against its CHANGELOG sections v0.36.2 through v0.37.0.

Changes

The pin. hale.toml [dna] toolchain, Dockerfile and runtimes/decision/Dockerfile HALE_VERSION, and the README. No other file names v0.36.1 as the toolchain. .github/workflows/nightly.yml and the hale action read the tag from hale.toml, so neither changes. FRICTION.md's "as of hale v0.36.1" is a dated re-check and stays.

The surface bundle. Regenerated with hale api export. Only the toolchain line of DIGEST moves. Every other file is byte-identical, and the contract digest is unchanged (fnv1a64:7e8a8692f211c4e6).

What v0.37.0 refuses: nothing. Counts per kind of change, over 14 seeds and 110 test programs:

kind count
for over a locus's own items/entries now typed 0
builtin call beside a binding of its name now typed 0
main locus without fn main (v0.36.5) 0
other new check, verify or build refusals 0

hale check --workspace passes under both releases with the same nine non-allocation warnings (pond's two, and seven placement notes in test programs). v0.37.0 reports 336 unbounded allocation warnings where v0.36.1 reported 344, all in test programs. The eight that go are loops in test programs' fn main (governance_test, list_sizes_test) and free functions (cancel_output_test's chunks, nodes_test's pages), which v0.36.3's per-iteration freeing (#2104) now covers. The new syntax (.Variant patterns, text receiver calls) is not adopted here.

The runtime changes, against voice

  • Every accepted std::api call is answered when its receiver fails (#2101). Nothing in voice relies on such a call hanging until its timeout.

    • Voice's one exposure is the api's api::serve(Voice, http::Rest { … }) in api/front.hl. Its receivers are the Front children.
    • A receiver fails only on a violate or a failed birth_check. Voice's own code has neither, and no on_failure. The one violate voice links is pond's NatsConn delivery audit, and that conn belongs to the brain, not to a receiver.
    • If a receiver ever did fail, its queued callers now get the transport's 503. Voice already answers 503 itself (CtlError::Unavailable and NotReady, admission, readiness, metering). The node treats any status of 500 or more as retryable (node/plane.hl, node/fetch.hl).
  • A bounded list copied whole copies its elements' nested records (#2102). No voice code relied on the old sharing.

    • The whole stores of a record list (x.f = y.f and x.f = local) are in api/ (fleet, accounts, projects, nodes, placements, inference, web_fetch, wire) and node/ (plane, cabling).
    • Only one has elements with nested records: n.links = r.links.items in node_of_read (NodeLink holds ports and check). It builds a view that is returned, and nothing writes below an element of either side afterwards.
    • The other element types are flat: Limit, SeatModel, Attempt, VariantFit, SeatState.
    • The new copy-first rule for a push/set/clear/truncate below a local read with at matches no voice code either. The at/get-bound locals in node/run.hl, node/session.hl, node/fetch.hl and store/store.hl write only their scalar fields, then store the local back with set/put.
  • A for over a locus's own items/entries types its loop variable (v0.37.0). No voice locus loops over self.items or self.entries, and voice declares no quantity units, so no field read changes its meaning. The only items: bounded field that isn't a wrapper type's is Candidates.items in api/inference.hl, which is a type, not a locus.

  • Main and free-function loops free each iteration (#2104), and a repeated whole store into a local's bounded field doesn't grow memory (#2107). These don't show in voice's node and brain main loops.

    • Both main loops are run() methods of a main locus (node's Node, brain's Brain). They have freed per iteration since #1765.
    • Both fn mains loop only over their arguments.
    • Voice's whole stores into a local's bounded field run once per call, which #2107 leaves as it was.

    The memory tests measure the same under both releases (macOS, three runs each, a scratch run):

    test v0.36.1 v0.37.0 bound
    look_memory (resident growth over a dozen looks) 416 / 3344 / 2656 kB 2112 / 2592 / 3664 kB 4096 kB
    engine_memory (peak growth) 5632 / 5616 / 5632 kB 5616 / 5616 / 5632 kB 65536 kB
    change_page_memory (built; encoded) 176; 112 / 144 / 128 kB 176; 160 / 144 / 144 kB 32768 kB each
    pg_page_memory (peak growth, Postgres 17) 9632 / 8528 / 9680 kB 8672 / 8512 / 9920 kB 32768 kB

    look_memory spread widely under both releases on a loaded machine. Its spread overlaps between them. The other three differ by a page or two.

FRICTION.md. No line from v0.36.2 through v0.37.0 names an open entry. That covers std::regex escapes, re-slicing a text a line at a time, the hashmap row write, the NATS client's growth, pond's rows and the lost write to a handed record. So no status line changes. #2104's rule keeps a loop that reassigns a binding declared before it, which is the re-slicing loop's shape (rest = rest[…]).

Verified locally (macOS, v0.37.0 release binary, sha256 checked)

  • hale fmt --check: clean on api, store, lib, brain, decide and node.
  • hale verify: 0 findings on api, store, node, brain, decide, lib/broker, lib/concurrency, lib/logfmt, lib/pond/db and lib/pond/migrations.
  • hale build: api, node, brain and decide build. The only warnings are pond's known ones (pq/scram.hl's @secret, NatsConn.audit).
  • hale test:
    • api 70/72:
      • operator_token_test checks file modes with GNU stat and fails on macOS as before.
      • cancel_output_test counted 16 to 19 output tokens where it expects 15, under both releases. Its caller closes a local TCP connection at the 15th delta, and how soon the api's write sees the close varies. In four runs each, v0.36.1 failed 2 and v0.37.0 failed 1. It's left for a change of its own.
    • node 32/32 and decide 2/2.
    • Against Postgres 17 (migrated): store 2/2 and brain 2/2.
    • lib/* has no tests.
  • hale api export --check passes, and a fresh export matches api/bundle file for file.
  • The fit passes (bundle.mjs: 858 gaps, all committed and classed), and so do the negative cases (12, none passed that should not).

🤖 Generated with Claude Code

The pin moves from v0.36.1 to v0.37.0 in hale.toml's [dna] toolchain,
both Dockerfiles and the README. The surface bundle is regenerated: only
DIGEST's toolchain line moves, and the contract digest is unchanged
(fnv1a64:7e8a8692f211c4e6). v0.37.0 refuses nothing in voice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Siy299kiTLRCUx8mGmhC7L

@rileyr rileyr left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed hale-lang/voice PR #250 at b56e72c9a2d81fb8a9d31e3abf78a2570adc8548.

No blocking findings. The five-file diff consistently pins v0.37.0 in hale.toml, both Dockerfiles, the README, and the bundle's toolchain line; the contract digest is unchanged. I verified the published tag resolves to the stated Hale commit 613e55fbdf9144989ffdb6cbe891d5ab647f083b, and that both Linux architectures downloaded by the Dockerfiles have corresponding release archives and checksum assets.

@rileyr
rileyr merged commit b8922de into main Nov 21, 2026
20 checks passed
@rileyr
rileyr deleted the toolchain/hale-0.37.0 branch November 21, 2026 17:47
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