Implement the confirmed application-trial fixes

The user paused all five app authors and requested SDK fixes FIRST, followed by fresh app testing. Read AGENTS.md, convention.md, the prior investigation report and your lane's peer review. Baseline HEAD 976a31e; previous investigation evidence is immutable. All edits stay in /srv/shared/code/icrustmem. No legacy compatibility, extra runtime validation, undo journal, app algorithm optimization or Candid audit.

Five implementation/review agents maximum, no subagents. Lanes:

  • investigate_upgrade: Object new-allocation headroom and focused ownership tests.
  • investigate_builder: canonical build artifact concurrency/publication correctness.
  • investigate_cleanup: post-finalization bounded maintenance result/API/codegen/tests.
  • investigate_authoring: Principal default plus concise compiled composition/upload recipes.
  • investigate_ic_runtime: IC peer, independent safety review and fresh PocketIC/perf controls. Root owns integration, canonical convention/whitepaper/status updates and app resumption.

Respect assigned file boundaries; coordinate changes to shared tests or manifests. No app authors resume until root says so. Existing playground apps/evidence read-only while implementing SDK. Do not overwrite investigation evidence. Put new logs, measurements and patch notes under your lane inside this directory.

Use pinned ver1/tools/env.sh, existing caches/target, native explicit host target, CARGO_BUILD_JOBS<=3, CARGO_INCREMENTAL=0, dev/test debug=0. ALL Cargo commands and complete build/capture pipelines hold /srv/shared/code/icrustmem/ver1/tmp/trial-fixes-build.lock. Do not hold that lock for PocketIC/analysis/idle waits. Builder's deterministic fake-Cargo tests may run separately, but real Cargo/tool builds must cooperate. At most one owned PocketIC server per lane, reap it. Current free disk~8GiB; do not copy target/cache/toolchain or duplicate large binaries unnecessarily; tell root if below2GiB. Do not delete unrelated outputs. Freeze your source changes before requesting final qualification; final shared-source Wasm builds wait for root freeze.

Report an implementation/design issue promptly; choose a simpler adequate design instead of retaining superseded prototype paths. Each implemented change needs meaningful focused regression coverage and a concise report distinguishing actual results from predictions. No commits/pushes unless user asks. Root will run the combined checks and then resume the five project authors on the frozen SDK.