Hylix Quickstart

A single stable counter under one typed Store root. The public get query reads the counter, and the controller can change it with set.

The root owns the one stable-memory provider. Install formats its arena and attaches the private counter. The generated lifecycle drops the transient service graph before KEEP. Restore reopens the arena using the same physical contract and binds the existing owner. The owner holds the MemoryKey, uses hylix::create inside its constructor, and lends encoded record access through the generated Hylix binding within each actor frame. Root lifecycle · Counter memory · Counter service

Run from a release

Follow the release build with example=hylix-quickstart. Set POCKET_IC_BIN and host using the bundled host setup. Run the installed example using the same run variable. Release build · Host setup

node "$host/hylix-quickstart/run.mjs" \
  --artifact="$run/artifacts/hylix-quickstart" \
  --pocket-ic="$POCKET_IC_BIN" --result="$run/result.json"

The generated client installs the example, writes a nonzero counter, and checks that reads and refused updates leave the stable image unchanged. It upgrades the populated canister using the same prepared image with KEEP, reads the retained counter and accepts a fresh write. The module catalog and attachment metadata also depend on retained memory. Store upgrade rules

Run from the checkout

From the repository root, use the canonical builder with --manifest-path tests/Cargo.toml --package hylix-quickstart-canister. Install the locked host dependencies under tests/pocketic, then invoke tests/pocketic/hylix-quickstart/run.mjs with the prepared artifact stem, a compatible local PocketIC executable and a fresh result path.

For owner conversion and rollback exercises, use the broader Hylix lifecycle probe.