Repository navigation
Description
What
#BindInput/#BindOutput and their two proto RPCs describe a mechanism that has no host side: core never calls a provider's bind, so no handle can ever be minted into state, and the wire has no resolve-to-bytes leg either.
This is the finding that redirected plugin-deploy-pod#78. That PR closed D-SEC-1's state limb without it — by deleting a duplicate delivery. This issue tracks the wire's own gap, which remains.
Measured
$ grep -rn '\.Bind(\|BindRequest{' --include='*.go' charly/ sdk/ | grep -v _test.go
(no matches)
$ git -C spec grep -A1 'ProviderClassNames:' origin/main -- schema/candy.cue
655:#ProviderClassNames: ["kind", "deploy", "verb", "step", "build", "builder", "command",
"engine", "workflow", "loader", "refs", "agent-runtime", "terminal"]- Zero
.Bind(/BindRequest{call sites incharlyorsdk. The transport exists (spec/proto/plugin.proto:448,spec/schema/bind.cue:40-53); the dispatch does not. typeis not in#ProviderClassNames— the vocabulary is closed, so aproviders: [- type:secret]entry is refused.#BindOutputcarriesbinding!: #Opaqueand#UnbindInputcarriesbindingback. There is no leg that resolves a binding to bytes —bindis specified to deliver at realize and return a handle naming what it delivered.
Why this is not a defect in #78
#78 was scoped as "the state limb". It closed that limb by removing a duplicate write, and the bed proves both halves (the container receives the token; the unit carries no Environment=). Nothing in #78 depends on bind.
But per R1, a finding surfaced while a cutover is open is fixed in-tree or filed. This is the filed half.
What the issue is FOR
Three questions the wire raises and no code answers:
- Who calls
bind? The provider registry derives from#ProviderClassNames, andtypeis not a class there. Eithertypebecomes a class (a schema change with its own consumers), or thesecretcapability's owner is dispatched some other way that the contract already names — readDESIGN.md:685and#ProviderClassNamestogether before choosing. - Where does the handle live in
state?#BindOutput.bindingis#Opaque— core stores it and never inspects it. Today the deployment's unit stores a podman-secret name (Secret=<name>,type=env,target=<VAR>), which is a handle shape that works. Isbindingmeant to be that name, or something the owner mints? - What resolves a binding at realize? No leg exists. A
secretuse delivers bytes (DESIGN.md:387), so something must turn a handle into them.
A spike answered one of these and only one: a type:secret provider's bind cannot return a handle core stores today, because there is no dispatch. That is a fact about the code, not a design conclusion.
Acceptance
- One of the three questions above is answered by a design statement in
DESIGN.md(or a schema comment inspec/schema/bind.cue), not by a new mechanism invented in a PR. - If the answer is "the podman-secret name IS the binding", then
#BindOutput.binding's doc comment says so, and thebind/unbindRPCs are either dispatched or deleted — a wire with no host side is R2's duplication and R5's legacy in one place.
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Activity
chore(review): file the bind-wire gap as spec#370, and correct a test…
chore(review): R1 and Filed issues now say the same thing
fix(config): keep a secret's value out of the pod unit — the duplicat…