Skip to content

The bind wire has no host side: #BindInput/#BindOutput describe a dispatch that does not exist, and no leg resolves a binding to bytes #370

Open

Description

@aitrawog

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 in charly or sdk. The transport exists (spec/proto/plugin.proto:448, spec/schema/bind.cue:40-53); the dispatch does not.
  • type is not in #ProviderClassNames — the vocabulary is closed, so a providers: [- type:secret] entry is refused.
  • #BindOutput carries binding!: #Opaque and #UnbindInput carries binding back. There is no leg that resolves a binding to bytes — bind is 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:

  1. Who calls bind? The provider registry derives from #ProviderClassNames, and type is not a class there. Either type becomes a class (a schema change with its own consumers), or the secret capability's owner is dispatched some other way that the contract already names — read DESIGN.md:685 and #ProviderClassNames together before choosing.
  2. Where does the handle live in state? #BindOutput.binding is #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. Is binding meant to be that name, or something the owner mints?
  3. What resolves a binding at realize? No leg exists. A secret use 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 in spec/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 the bind/unbind RPCs 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

  1. added
    category:runtime
    type:design
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:runtimetype:design

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions