Skip to content

build(node): GOEXPERIMENT=jsonv2 per SCALE_STANDARD#3

Open
hanzo-dev wants to merge 3 commits into
mainfrom
feat/scale-standard
Open

build(node): GOEXPERIMENT=jsonv2 per SCALE_STANDARD#3
hanzo-dev wants to merge 3 commits into
mainfrom
feat/scale-standard

Conversation

@hanzo-dev
Copy link
Copy Markdown
Contributor

Summary

Per SCALE_STANDARD.md §2 (https://github.com/hanzoai/HIPs/blob/main/docs/SCALE_STANDARD.md) — Dockerfile compiles with GOEXPERIMENT=jsonv2.

Verified numbers

Bench json/v1 json/v2 Δ
Edge POST roundtrip 19,782 ns / 73 allocs 17,406 ns / 56 allocs -12% time, -23% allocs
Marshal-only 12,860 ns / 34 allocs 10,092 ns / 34 allocs -22% time
Unmarshal-only 17,122 ns / 67 allocs 13,785 ns / 50 allocs -19% time, -25% allocs

Notes

DO NOT MERGE — release-train PR.

zach added 3 commits April 23, 2026 19:15
- Add docker.yml using hanzoai/.github/.github/workflows/docker-build.yml@main
- Add workflow-sanity.yml to enforce canonical CI contract
- Remove bespoke docker build steps from existing workflows

Refs: hanzoai/.github canonical Docker CI contract.
Bootstrap subcommand pulls in luxfi/sdk wallet packages that are
heavier and currently mid-migration. Gate bootstrap.go behind the
'bootstrap' build tag so the default zood binary builds cleanly
against the standard module set.

Default build:        go build -o zood .
Bootstrap-capable:    go build -tags=bootstrap -o zood-boot .

Adds 'zood vms' subcommand listing the 3-VM triumvirate (zoo-evm,
zoo-dex, zoo-fhe) plus the 8 inherited optional VMs from luxfi/node.

Pin luxfi/fhe to local clone (upstream LFS budget exhausted) and
patch go.sum hash for republished luxfi/precompile v0.5.6.
Per SCALE_STANDARD.md §2 (~/work/hanzo/hips/docs/SCALE_STANDARD.md) —
every Go production Dockerfile that emits JSON to a client builds with
GOEXPERIMENT=jsonv2. Verified on hanzoai/zip's json_bench_test.go:
- Edge POST roundtrip: -12% time, -23% allocs
- Marshal-only: -22% time
- Unmarshal-only: -19% time, -25% allocs
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