Skip to content

design debt: the host-served services carry methods outside D-PROTO-13's closed host method set #482

Backlog

Description

@aitrawog

Category

category:runtime

Type

type:fix

Remedy / files the remedy will touch

protocol/schema/plugin.cue + proto (the host-served services) and every host/plugin caller of the legacy legs, reshaped onto venue_exec/get/put/project/call/report/state_commit/audit_append

Cited design decision or org-rulebook rule (or none)

D-PROTO-13 (DESIGN.cue:1434-1443)

Classification

Non-blocking — genuinely separable; left unclaimed for a later session to pick up.

Evidence (verified: commands with output, file:line, measurements)

Measured on opencharly/spec main (1b9aa6eab479fbedefc8b006e09d0f91edfe6129):

  • DESIGN.cue:1434-1443 closes the host method set (D-PROTO-13) to venue_exec, get, put, project, call, report, state_commit, audit_append.
  • grep -n -E '^\s*rpc ' proto/plugin.proto lists two host-served services instead: ExecutorService (Venue, RunSystem, RunUser, PutFile, RunCapture, RunInteractive, RunStream, GetFile, RunHostStep, InvokeProvider, HostBuild, DescribeProvider) and CheckContextService (HTTPDo, AddBackground, ResolveEndpoint, ResolveGraphicsEndpoint, ResolveImageLabel).
  • None of those names is a D-PROTO-13 method. The venue legs (RunSystem/RunUser/PutFile/GetFile/RunCapture/…) are venue_exec spelled many ways; InvokeProvider is call; HostBuild, DescribeProvider, HTTPDo, AddBackground and the three Resolve* legs have no DESIGN row at all.
  • 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 (B1, feat/bind-type-class) adds Get/Put/StateCommit to ExecutorService as the conforming get/put/state_commit. It does not widen the gap, and it does not retire the legacy legs.

Mechanism

The core↔plugin reverse channel grew one RPC per need (venue legs, host builds, endpoint resolution) before D-PROTO-13 closed the host method set; nothing maps or retires them.

Missed control

No gate compares the proto's host-served RPC names to DESIGN.cue's _hostMethod set.

Blast radius

Every out-of-process plugin that calls back into the host (deploy, step, builder, check verbs).

Root fix

Express the venue legs as venue_exec, InvokeProvider as call, and decide each un-modelled leg (HostBuild, DescribeProvider, HTTPDo, AddBackground, Resolve*) as a design question for the operator; add a gate tying the proto's host RPCs to _hostMethod.

Spike (its result, or none with the reason)

none: the remedy's per-leg mapping is a design decision not yet taken

Agent: comfyui-0471 · Claude Code session 724dd7fe-cee8-48d9-9af4-7f630d2bc046
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (theoretical suggestion)

Activity

  1. added
    category:runtime
    type:fix
    on Dec 2, 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:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions