Skip to content

deps(vm): plugin-vm v0.2026251.1105 — the idempotent from:-drive clone build (kills the overlapping-lane overlay write-lock race) - #568

Closed
atrawog wants to merge 4 commits into
mainfrom
feat/plugin-vm-1105-pin
Closed

atrawog wants to merge 4 commits into
mainfrom
feat/plugin-vm-1105-pin

Conversation

@atrawog

@atrawog atrawog commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Pins github.com/opencharly/plugin-vm/candy/plugin-vm to v0.2026251.1105 (plugin-vm #29, merged, tagged). The fix gives the from:-drive clone build the idempotent-discipline every other source-kind build has: BuildClone skips re-creating the per-entity target overlay when it already materializes the resolved snapshot, instead of unconditionally clobbering output/qcow2/<entity>/disk.qcow2 while a sibling lane's domain holds it open read-write (the measured Failed to get "write" lock — 16/21 runs in the eval-omarchy 16-lane verification wave). Backing continues to resolve to the snapshot-store disk (snapshots/<tag>/disk.qcow2) opened read-only; the refcount bump / delete-refusal-while-referenced / re-capture-isolation model is unchanged. Runtime now matches the documented vm backing-chain contract. The redo wave for the 14 eval lanes that hit the race runs on this binary.

How tested

$ cd charly && go work sync && go build ./charly/...
go: downloading github.com/opencharly/plugin-vm/candy/plugin-vm v0.2026251.1105
# (build exit 0)
$ git diff --stat
 charly/go.mod | 2 +-
 charly/go.sum | 3 +--
 go.work.sum  | 3 +--
 3 files changed, 4 insertions(+), 8 deletions(-)

(go.sum + go.work.sum updated by go work sync for the new require.)

Rulebook compliance

Rule How / N/A
R1 The race was found by the 16-lane wave, RCA'd to the missing idempotent skip in plugin-vm #29, fixed there, and this PR ships the pin.
R2 N/A.
R3 One implementation: plugin-vm's snapshot/refcount model + the idempotent skip; this is the consumer pin.
R4 The fix is the remedy, not a workaround.
R4a N/A.
R5 N/A.
R6 feat/ branch; no force-push; other-session work in the checkout untouched.
R7 Build evidence pasted.
R8 N/A.
R9 N/A.
R10 The pin is consumed by the next eval bed run (redo wave) against this binary.
RDD Race measured; fix proven in plugin-vm (tests + empirical lock repro).
ADE N/A.
SDD N/A.
B14 The 16/21 measurement and the plugin-vm test evidence are on the record.
B15 N/A.
B17 N/A — dependency pin.
B18 N/A.

Change classification

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)

…ion)

Parser consolidation F2 (plan/nested-capture-architecture.md, Cutover F2). The
dual-representation member-tree IR is gone: node_parsed.go (the
JSON→yaml→JSON round-trip machine parsedNodeToGeneric/genericToParsedNode +
the normalizeNodeInto test bridge), node_parse.go (the genericNode type),
node_candy.go (the yaml-key candyIsImage + buildCandy re-conversion) and
node_build.go (decodeNodeValue's wrapper) are DELETED. Their last prod callers
(foldCandyKind, validateKindValueCUE, materializeDiscoveredNode) now operate
on the wire-safe spec.ParsedNode through the loader seam:

- foldCandyKind: pl.CandyIsImage(pn)/pl.BuildCandy(pn) (the loaderkit parsed-node
  restatement) + the SHARED spec set-body folds (spec.SetBoxInto/SetCandyInto,
  F2.4) — no genericNode reconstruction anywhere in the dispatch.
- validateKindValueCUE: the mapping-shape check reads the canonical JSON body
  directly; the CUE ingest is CueDocFromJSON (F2.3) — the
  gn→yaml.Marshal→CueDocFromYAML round trip is gone.
- materializeDiscoveredNode: pl.CandyIsImage(pn) (F2.1).
- materializeDocStream: the ONE loaderkit doc-stream composer
  (pl.ParseDocStream, F2.5) drives the embedded-vocab stream with the same
  per-document pipeline as the file walk; the hand-rolled classify/gate/parse
  loop is deleted.
- The three self-labeled (R3) one-line wrappers (isStandaloneResourceKind,
  foldStandaloneTemplateReply, decodeNodeValue) are inlined at their call
  sites / die with buildCandy; node_normalize.go disappears, ensureMap moves
  beside its consumer.
- pluginPrimaries (F2.6): the frozen 11-entry table is DELETED — the table is
  seeded at init from the compiled-in units' declared capability primaries
  (the embedded charly.yml verb_primaries: data directive, admitted by
  #NodeDoc), and the expectation is a parity assertion (node_desugar_test.go).
- KindProvider (the last type naming genericNode) + its no-op bijection gate
  die with the type; the reserved-registry test iterates the live ClassKind
  registry instead.
- R5 sweep: stale claims about the deleted bridge fixed across
  loader_threaded.go / plugin_prescan.go / materialize.go /
  materialize_seam_parity_test.go / plugin_inproc.go / the kernel manifest.
- Moved tests: the bridge test files' candy/child-form coverage lives beside
  the loaderkit implementation in sdk (candy_node_test.go,
  node_childform_test.go); the charly-side plugin e2e + node-form tests were
  rewritten against parsed-node fixtures (parsednode_helpers_test.go).

Full kernel suite green on the committed tree (with the wave's worktree
replaces; the final pin commit swaps them for the released tags).
….531, plugin-loader v0.2026251.534

The F2 bridge-deletion wave's seam surface + implementations are released
(spec #123/#124, sdk #240, plugin-loader #8). The dev worktree replaces are
dropped; the full kernel suite is green on the final committed real-pinned
tree.
…ive build

plugin-vm #29 (merged, tag v2026.251.1105) makes the from:-drive clone build idempotent: the per-entity target overlay is skipped when it already materializes the resolved snapshot (previously rebuilt unconditionally, clobbering output/qcow2/<entity>/disk.qcow2 while a sibling lane's domain holds it read-write → the measured overlapping-lane write-lock race, 16/21 in the eval wave). Backing resolves to the snapshot-store disk read-only; refcount bump/delete-refusal/re-capture isolation unchanged. Runtime now matches the documented vm backing-chain contract.
@atrawog

atrawog commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

Superseded — this branch accidentally inherited the unmerged feat/f2-bridge-deletion wave (36 files) because the local branch was created off that checkout. Clean head (3 files: go.mod/go.sum/go.work.sum pinned to plugin-vm v0.2026251.1105 on origin/main) replaces this PR.

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