Repository navigation
feat(proto): Bind/Unbind carry the host broker id so a type owner can reach the host (§8.3 B1b) - #489
Conversation
… reach the host (§8.3 B1b) BindRequest and UnbindRequest gain `executor_broker_id` (field 2), exactly as InvokeRequest carries it: the type owner reaches the host's get/put/state_commit and the deployment's venue through the ExecutorService served on that broker while it delivers or removes a binding (DESIGN §4.6, D-PROTO-12). Without it a `bind` call could not write the venue file it delivers nor read a secret. Relates to #370. Agent: comfyui-0471 · Claude Code session 724dd7fe-cee8-48d9-9af4-7f630d2bc046 Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
Review — BLOCKHead SHA: Change class: contract / library module ( Blocks
Non-blocking (tool-limited, cannot adjudicate without Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
HOLDING HOLDING — #489 (blocking side) holds opencharly/sdk#681 (blocked side). sdk#681 (phase B2 of the §8.3 bind/realize program, #370) serves Agent: |
Review — PASSHead SHA: Security screen: PASS — no secrets, no network egress, no guardrail/rulebook/validator-spec change, no new dependency;
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
CLEARED CLEARED: #489 merged as Agent: |
Summary
Phase B1b of the DESIGN §8.3 bind/realize program (#370). This is a producer fix B2 cannot work around.
BindRequestandUnbindRequestgainexecutor_broker_id(field 2), exactly asInvokeRequestcarries it (field 6). Without it, a capability type's owner servingbindhas no way back to the host. It could not:#BindInput/#BindOutputdescribe a dispatch that does not exist, and no leg resolves a binding to bytes #370);get/put/state_commitmethods feat(schema): the host state store, thetypeprovider class and the binding record (§8.3 bind/realize B1) #483 just added.Found while designing B2 (opencharly/sdk#681):
BindRequestcarried onlyinput_json.Files
protocol/schema/plugin.cueexecutor_broker_id(uint32, field 2) onBindRequestandUnbindRequest, with its docproto/plugin.proto,proto/plugin.pb.gocharly task cue-gen→ wire-gen)proto/bind_grpc_test.goTestBindCarriesTheHostBroker: the id crossesBindandUnbindover a real gRPC connectionHow tested
The umbrella design controls, run on this head by pointing my session umbrella worktree's
specindex entry at it (restored afterwards), against the same run on specorigin/main:Both controls are already red on spec
main, tracked in opencharly/opencharly#1410. This change adds no finding to either.Spike
RCA claim: a
bind/unbindcall carries no route back to the host, becauseBindRequest/UnbindRequesthold onlyinput_jsonwhileInvokeRequestcarriesexecutor_broker_id. So a type owner cannot deliver a binding into the venue, or record it, during the call.Candidates spiked:
input_json(#BindInput).#BindInputis DESIGN.cue's closed shape (need,provided_by,deployment), probed with the sharedunifyConcretehelper:Fails. The closed def refuses the field, and widening it would be a DESIGN edit (C3).
input_jsonon both requests, mirroringInvokeRequest.executor_broker_id.TestBindCarriesTheHostBrokerpasses (How tested). Onorigin/main's proto the same test cannot compile (C8 block above). Works.Winner: the transport field on
BindRequest/UnbindRequest. The broker is call metadata, likeInvokeRequest's, not part of the domain payload DESIGN closes.RCA verdict: confirmed. The winner gives the owner its route back to the host.
Rulebook compliance
Plan conformance
Winning candidate: the transport field on
BindRequest/UnbindRequest.BindRequest.executor_broker_id/UnbindRequest.executor_broker_idvenue_exec."call_idof the core call it serves; core derives the caller's plugin from the socket the request arrives on and its permissions from that call, never from anything the plugin asserts."Why both requirements: D-PROTO-13 is why the owner needs a route to the host at all: the host service is its only way to state and to the venue. D-PROTO-12 is why that route is a per-call broker rather than something the plugin asserts: a host request is tied to the
bind/unbindcall it serves by the socket the request arrives on. The field's doc comments (plugin.cue/plugin.proto) cite D-PROTO-12, the per-call property; this map carries both.charly-internals:git-workflow,strict-policy,design,goandcharly-check:check, and read spec'sAGENTS.md.#BindInputand everyDESIGN.*/design/file are untouched.InvokeRequest's; the test reuses the shareddialBufconn.origin/main's proto (above).origin/main; one commit, no force-push, no hook bypass.HOLDINGis posted on this PR andWAITINGon sdk#681, each naming both sides. Both are owned bycomfyui-0471, and CLEARED follows on merge.Change classification
spec). No disposable target exists:git grep -nE '^[[:space:]]*disposable:' -- '*.yml' '*.yaml'→ rc=1.go build ./...,go test ./...,gofmt -landgolangci-lint run ./.... All are green on head86435b1805459e4396021d515019ec3619fecf4e.fully tested and validated. The new field crosses a real gRPC connection inTestBindCarriesTheHostBroker.Bindexists yet (core dispatch is B3). Rollback is reverting the commit.claude-opus-5-5(Anthropic Claude Opus 5.5).Filed issues
None this round. The red design controls on spec
mainare already tracked in opencharly/opencharly#1410.Agent:
comfyui-0471· Claude Code session724dd7fe-cee8-48d9-9af4-7f630d2bc046Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)