decomp(chansvm): VmBlobPackCommon per-phase locals (230 -> 47) #1297

Merged
coah80 merged 1 commits from agent/w0929/sol-m12-land into main 2026-10-09 01:01:20 +00:00
coah80 commented 2026-10-09 01:01:16 +00:00 (Migrated from github.com)

worker 69c0cd0d. instruction-exact functions: 227/233 gate: 0 regressions, 0 forbidden, 0 readability, dol sha1 26116613f624061ba99c8d1a299aaa6efa85670d

worker 69c0cd0d. instruction-exact functions: 227/233 gate: 0 regressions, 0 forbidden, 0 readability, dol sha1 26116613f624061ba99c8d1a299aaa6efa85670d
graphify-labs[bot] (Migrated from github.com) reviewed 2026-10-09 01:05:28 +00:00
graphify-labs[bot] (Migrated from github.com) left a comment

Graphify reviewed this change.

Worth a look — the grounded gate found no coupling regressions or blocking issues, but 1 advisory finding(s) below merit a look before merge.


Graphify review — findings

Splits the shared scratch locals in VmBlobPackCommon into separate per-pass, per-format-case variables (measureBlobCount, writeHexDest, writeArgCount, …) so the sizing pass and the write pass no longer reuse count, obj, srcBlob and friends. Packing behaviour is unchanged; only the local layout and declaration order differ, which changes how the compiler allocates stack slots and registers.

Worth a look

  • Hex blob packing reads past the source string when an explicit count exceeds string length — src/channelScript/CHANSVm.c:5450 · Escalate · medium · 2 independent checks
    • agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review

Review partial — this diff was larger than one review pass covers, so later files were not reviewed; some findings may be missing.

Analysis details — impact, health, verification

Impact & health

Graphify review

Impact — 151 functions depend on the 146 functions this change touches.

Health — grade A; 10 existing hotspot(s) in the area this change touches (pre-existing, not introduced here):

  • CHANSVmNewObject() — 22 callers, 3 callees (high)
  • CHANSVmAlloc() — 9 callers, 3 callees (medium)
  • VmArrayExpandCommon() — 5 callers, 4 callees (medium)
  • CHANSVmNewObjData() — 6 callers, 3 callees (medium)
  • VmBlobPackCommon() — 1 callers, 15 callees (high)
  • VmBlobCreateDirect() — 3 callers, 5 callees (medium)
  • CHANSVmCopyObject() — 5 callers, 3 callees (medium)
  • CHANSVmAddNativeClass2() — 3 callers, 4 callees (medium)
  • …and 2 more

Verification — 151 functions in the blast radius were not formally verified this run (proofs are advisory here).

Gate & verification

graphify gate

PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.

Advisory (not blocking):

  • verification_scope: 151 function(s) in the blast radius were not formally verified this run
<!-- graphify-inline:4cbb606a1b3a2ff8a5c6d2335764a28f64127bba --> **Graphify reviewed this change.** **Worth a look** — the grounded gate found no coupling regressions or blocking issues, but 1 advisory finding(s) below merit a look before merge. --- ## Graphify review — findings Splits the shared scratch locals in `VmBlobPackCommon` into separate per-pass, per-format-case variables (`measureBlobCount`, `writeHexDest`, `writeArgCount`, …) so the sizing pass and the write pass no longer reuse `count`, `obj`, `srcBlob` and friends. Packing behaviour is unchanged; only the local layout and declaration order differ, which changes how the compiler allocates stack slots and registers. **Worth a look** - **Hex blob packing reads past the source string when an explicit count exceeds string length** — `src/channelScript/CHANSVm.c:5450` · _Escalate · medium · 2 independent checks_ - agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review _Review partial — this diff was larger than one review pass covers, so later files were not reviewed; some findings may be missing._ <details> <summary>Analysis details — impact, health, verification</summary> ### Impact & health ## Graphify review **Impact** — 151 functions depend on the 146 functions this change touches. **Health** — grade A; 10 existing hotspot(s) in the area this change touches (pre-existing, not introduced here): - `CHANSVmNewObject()` — 22 callers, 3 callees (high) - `CHANSVmAlloc()` — 9 callers, 3 callees (medium) - `VmArrayExpandCommon()` — 5 callers, 4 callees (medium) - `CHANSVmNewObjData()` — 6 callers, 3 callees (medium) - `VmBlobPackCommon()` — 1 callers, 15 callees (high) - `VmBlobCreateDirect()` — 3 callers, 5 callees (medium) - `CHANSVmCopyObject()` — 5 callers, 3 callees (medium) - `CHANSVmAddNativeClass2()` — 3 callers, 4 callees (medium) - …and 2 more **Verification** — 151 functions in the blast radius were not formally verified this run (proofs are advisory here). ### Gate & verification ## graphify gate **PASS** — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed. Advisory (not blocking): - verification_scope: 151 function(s) in the blast radius were not formally verified this run </details>
Sign in to join this conversation.