Investigate CDK findings from populated app trials

User requested five subagents using gpt-6.1-sol at max reasoning. Investigate CDK capability, correctness, memory/instruction costs and developer experience. Do not optimize application algorithms or attribute their work to the CDK. The DAO membership snapshot is an app design choice, outside our optimization scope.

Read repository AGENTS.md; read convention.md before authoring memory contracts. Baseline is SDK 976a31e317b35953af70900d293b7ef6d938d47f. The five completed playground apps and all previous raw evidence are read-only. Start with playground/notes.md, playground/results.md and playground/capacity-and-operations.md.

All five real wasm64 PocketIC16 trials completed populated V1-to-V2 KEEP. No significant SDK correctness defect has yet been established. Relevant observations:

  • Tracker retained exposure250.7→656.7MB, allocated333.6→359.4MB, unchanged live resources and zero retired resources. Stable capacity unchanged92.1MB.
  • Knowledge base retained150.3→422.0MB, stable653.7→972.8MB, allocated793.7→921.4MB; all100009 existing Blob identities preserved. Retirement completed.
  • reclaim(64)==0 did not establish that committed retired_resources==0 after scope.
  • Same-library V1/V2 concurrent build pipelines raced on shared Cargo final output; serial complete revision pipelines passed.
  • Missing Store principal feature caused cascading derive errors; dynamic children/injected views/composed upgrades required discovery.
  • SDK128KiB transport envelope required supported64KiB chunk uploads for256KiB docs.
  • KB upgrade completed after120 driven PocketIC rounds; stock100-round convenience await failed first. This was not an IC rejection or a changed execution budget.
  • Existing operation counters measure complete root scopes, including finalization, but exclude decode/reply encode/guards. They include app work; do not label them isolated SDK costs. KB/reservation read probes ran as updates; others as queries.

Boundaries

SDK production source, manifests, lockfiles, current docs and playground evidence are read-only. Author reports, small reproductions and isolated experiments ONLY inside your assigned lane directory. You may use an isolated source copy under that directory if needed; never change production or overwrite existing reports. Do not copy target/cache/toolchain trees. No SDK fix, commit, push or external app communication. No subagents: the whole investigation has at most five active agents. The ic-runtime investigator is the IC research peer; consult it while interpreting memory growth, stable APIs, Wasm costs or upgrade behavior.

Reuse pinned ver1/tools/env.sh, existing ver1/target and ver1/.cargo-home. Cargo jobs<=3, CARGO_INCREMENTAL=0, dev/test debug=0, explicit native host target. One owned PocketIC server maximum per lane. Serialize same-library revisions. Do not rerun whole suites or the five100k apps without a concrete new question. Prefer focused small probes, existing receipts and actual measured evidence. If a large rerun or source instrumentation is needed, tell parent first so build outputs and measurement boundaries are controlled. Stop/reap your own servers. If disk falls below2GiB notify parent before heavy builds; do not delete others' files.

The merged Candid improvements are accepted. Do not audit/benchmark codec changes. For upload UX, inspect public limits/configuration only; keep that separate from codec implementation quality.

Deliverable

Write report.md in your lane. State actual cause versus hypothesis, exact source references, reproduced/measured evidence, severity, smallest useful fix/design, performance implications, and tests needed to accept it. Proposals may simplify prototype internals; no legacy compatibility or extra runtime validation required. Keep unresolved questions explicit. Report to parent when an important finding changes interpretation, then finish the assigned investigation.