Repository navigation
feat(plugin): the connected plugin record carries the words it serves - #1140
Conversation
The loader registers a unit's providers when it connects it, and the manifest a delivered plugin tree needs is built from exactly those words. Until now the record carried key/leaf/view_path/ src_dir and dropped them, so a delivering step had to re-derive "what does this plugin serve" - or, as the measured defect showed, deliver a tree of binaries that no command/verb word could reach because the `<leaf>.providers` manifest could not be written (#1131). So `recordConnectedPluginFromLoad` takes the words and stores them, and the words come from `unitProviderKeys(unit)` - the unit the engine CONNECTED, rendered by the ONE identity renderer the rest of the loader uses. Nothing scrapes the plugin's binary and nothing re-parses its candy. The tests assert the field survives both ends: the registry entry (a word list, in order) and the step input the construct seam injects (the entry's providers array). Adopts github.com/opencharly/spec v0.2026317.2143 (opencharly/spec#313, the field's wire home) and github.com/opencharly/sdk v0.2026317.2240 (opencharly/sdk#506, the released repoint of the manifest writer this field feeds). Refs #1131 Agent: charly-plugins Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: Security screen: PASS. Blocks
Comment dispositions:
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS — additive wire field + org-owned Checklist: All applicable rules PASS or NA (A1–A3, R0–R10, CONC, HC, ARCH, DISP, QUAL). The R1 anomaly ( Comment dispositions: 6867081994 #1/#2/#3 — stale-superseded (RCA+filings added; R1 answer now acknowledges the anomaly; Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
The red `go` job on the previous head was `TestContractPinsMatchShared`: the three lockstep `tools/*` modules still required sdk v0.2026317.712 / spec v0.2026317.1828 while this change adopts sdk v0.2026317.2240 / spec v0.2026317.2143. `charly task mods-tidy` writes the shared pins into every lockstep module; its own check step then verifies it, and the canonical test passes locally (GOWORK=off go test ./... in tools/gomod-canonical: ok). Refs #1131 Agent: charly-plugins Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS — additive Comment dispositions:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
The loader registers a unit's providers when it connects it — and the manifest a delivered plugin tree needs is built from exactly those words (
spec.PluginManifest, adopted inspec v0.2026317.2143). Until now the connected record carriedkey/leaf/view_path/src_dirand dropped the words, so a delivering step had to re-derive "what does this plugin serve" — and the measured defect (charly <word>answering with usage text while every file was present) is what happens when it cannot.Two lines of behaviour, plus the assertions:
recordConnectedPluginFromLoadtakes the words and stores them inspec.DeployConnectedPlugin.Providers.unitProviderKeys(unit)— the unit the engine CONNECTED, rendered by the ONE identity renderer (providerIdentity/providerKey) the rest of the loader already uses. Nothing scrapes the plugin's binary, nothing re-parses its candy, and there is no second spelling of a capability word.go.mod/go.sum— adoptgithub.com/opencharly/spec v0.2026317.2143(the field's wire home) andgithub.com/opencharly/sdk v0.2026317.2240(the released repoint of the manifest writer, sdk#506).The tests assert the field at BOTH ends: the registry entry (the word list, in order) and the step input the
construct-stepseam injects (the entry'sprovidersarray), because a record that loses the field in transit is exactly the class this cutover exists to remove.Head
3f84797155820366a1283e707db2db410209a6cfHow tested
Change class:
charlyGo code. The gate is the module's Go gates on the committed tree, the R9 worktree build, and the LIVE witness for the changed behaviour.R9 — the binary is the source:
The changed path, live, on a real deploy plan. The step input the engine injects for a deploying project whose deploy declares two plugin candies — read from
deploy add --dry-run --format=jsonwith the binary above:Those are the words each unit REGISTERED (not what its candy happens to declare in a file this process never reads), which is the property the delivering step depends on.
R10 — this PR's OWN gate:
check-plugin-buildcache-local, on the CURRENT head3f847971.The binary is the build of the CURRENT head:
bootstrap-charly.shwas re-run aftergh pr update-branchproduced the merge commit, andcharly versionplusgit rev-parse HEADabove are from the same shell as the bed.go build ./...andgo vet ./...on that tree are green too (part of the same run).That is the bed that owns the CONNECT path this change threads through (the connected-plugin record IS the build-cache seam's output), run on a
disposable: truelocal deploy with the worktree binary: it builds, realizes, checks live, rebuilds fresh withcharly update, checks again, and removes it.The consumer bed is REHEARSAL, not this PR's gate. During development
plugin-deploy-firecracker'scheck-plugin-tree-vmwas run against this source several times (calvers2226–2347, binaries2026.317.2258/2026.318.0001). It is recorded as a rehearsal only: it cannot witness the PR the consumer depends on (opencharly/charly#987's producer/consumer split), one of its arms failed once on a byte-identical assertion set, and that failure is tracked inopencharly/plugin-deploy-firecracker#18rather than explained by repeated green runs. The discriminating half belongs to the plugin leg, which owns the delivery, the manifest and the resolution assertion.Rulebook compliance
git-workflow,go,go-quality,plugin,check,disposable,strict-policy,root-cause-analyzer, pluscharly/AGENTS.md(R9 build discipline, SDD, the boundary law).gojob on the previous head:TestContractPinsMatchSharedfound the three locksteptools/*modules still onsdk v0.2026317.712/spec v0.2026317.1828while this change adopts.2240/.2143; fixed IN-TREE bycharly task mods-tidy(2dd1fe2e), whose own check step verifies it, and the canonical test passes locally. (b) The consumer-bed anomaly, handled by FIXING the class and FILING the defect rather than by re-running. The anomaly:plugin-deploy-firecracker'scheck-plugin-tree-vmfailed once (2026.317.2220) and passed five times on a byte-identical assertion set. The RCA establishes the DEFECT CLASS (a delivery step that writes two files — binary, then<leaf>.providers— and never reads back what landed cannot tell whether both arrived; every observation is consistent with the manifest not being there while the binary was, and the runner's stderr-tail truncation, bug(check): a failing step's output is truncated to a stderr tail, so a bed cannot show the evidence that decides its own assertion #1141, cut the line that would have named the exact branch). It does NOT establish which of two candidate triggers fired in that run, and this body does not claim it does. Recorded as bug(step): a plugin-tree delivery reports success without checking that the manifest arrived plugin-deploy-firecracker#18 under## Filed issues, and FIXED in the leg that will close it (the handler reads both files back and fails loudly by name). Everything else in this leg is green: build, the full suite, gofmt, lint.providerIdentityhelper — no second renderer, no scraping, and the record's type is the engine's own wire entry. The manifest FORMAT has one home (spec.PluginManifest), which this leg consumes rather than re-implementing.git statusread before committing; branchcharly-plugins/leg-cofforigin/main(336341e0); one appended commit per round (0755bc03the change,2dd1fe2ethe tools-pin alignment the redgojob demanded) plus thegh pr update-branchmerge commit (3f847971) that the BEHIND state required, never an amend after the first push; no force-push; no submodule touched.scripts/bootstrap-charly.shin this worktree producedbin/charly2026.318.0001, and every run above uses it; the version is pasted beside the head.Filed issues
bug(step): a plugin-tree delivery reports success without checking that the manifest arrived plugin-deploy-firecracker#18 — a
plugin-treedelivery reports success without checking that the manifest arrived: two non-atomicPutFilecalls and no read-back, so a partial delivery is invisible to the step and a later assertion has to reconstruct it. Measured as calver2026.317.2220FAIL / five PASS on a byte-identical assertion set. Fixed in the leg that closes that issue (read-back + a loud, named refusal), which is why this producer PR does not carry the consumer bed as its witness.bug(check): a failing step's output is truncated to a stderr tail, so a bed cannot show the evidence that decides its own assertion #1141 —
charly checkkeeps only a failing step's stderr TAIL, so a bed cannot show the evidence that decides its own assertion. Found while diagnosing acheck-plugin-tree-vmfailure in this session: the line that would have named the mechanism was cut by the truncation, at the cost of two review rounds. Separable from this cutover (a runner/observation defect, not a plugin-tree one), hence filed rather than folded in.Change classification
charlyGo code (one field threaded through the connected-set record) plus aspecpin bump.Providersis optional and additive, and a deployment whose plugins are connected without words behaves exactly as before (the wire field is absent). Rollback isgit revert, returning spec tov0.2026317.1828.spec v0.2026317.2143(spec#313) → this leg → the delivering plugin (plugin-deploy-firecracker, which writes the manifest and asserts resolution) →plugin-firecracker#11andlayer-fireactions-runner#2. The sdk repoint (sdk#506) is the same format's other writer and is independent of this field.Agent: charly-plugins
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)