Skip to content

the check engine's resolved host values have no channel into a command step's environment: their vocabulary is not the shell's #1060

Open

Description

@aitrawog

The SDK now has a DATA channel into a command step's process environment (opencharly/sdk#473): a host hands the plan walk a map of values, and the walk puts them in the step's env, which the command verb applies as a shell-quoted export. A value delivered that way is DATA — the shell never re-parses it, so a $(…) inside a value does not execute and a value carrying a space stays one word.

The channel's export grammar is the shell's: a name must match ^[A-Za-z_][A-Za-z0-9_]*$. A name outside it is not exported, and is disclosed in the step's message.

The check engine's own variable vocabulary is outside that grammar. The values a check resolves for a peer member are named in the HOST:… / HOST_PORT:… form — kit.FilterHostVars reads exactly that vocabulary (sdk/kit/planspec.go, sdk/kit/hostrefs.go), and charly's check side resolves them (resolveHostVarsForChecks).

So the check side has no way to hand a resolved value to a command step under its own name: HOST:web:8080 is not an exportable name, and the channel says so instead of silently dropping it.

The gap

A check step that must see a resolved host value — the port of the peer it probes, the address it curls — has no channel for it. Today the only way for a value to reach a command is the TEXT channel, where the shell re-parses it and the value becomes SOURCE; the new environment channel cannot carry the check side's names, so the check side is exactly the consumer the channel does not yet serve.

What the decision is

The check side needs a spelling for its values in the shell's vocabulary — a transliteration (HOST:web:8080 → HOST_WEB_8080), a different delivery, or a second, narrower channel for values the shell cannot name. The transliteration is a NAMING contract, and a naming contract is published: whatever is chosen, a check author has to know the name to use.

Owners: this repo owns the check side that resolves the values and the vocabulary it resolves; the SDK owns the channel's grammar and its disclosure. The two halves must agree on the spelling, so this issue names the pair.

The RCA that produced the gap

  • Mechanism: the environment channel was specified with the SHELL's export grammar, and the check engine's variable vocabulary was never expressed in that grammar. The channel filters by name, so the check side's names are excluded by construction.
  • Missed control: nothing in the kit's contract states that the check vocabulary is not exportable, and no test asserted that a resolved host value can reach a step's environment. The new coverage proves the channel works for a shell-shaped name; it does not prove the check side can use it.
  • Blast radius: every check step that needs a resolved peer value in its command's environment. The rejection is visible (the name is disclosed in the step's message), so the failure is loud, not silent — but the value is still unavailable.
  • Root fix (not in this issue's scope): the naming contract above, plus the check side populating the channel with it.

Agent: charly

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)

Activity

  1. added
    category:verification
    type:fix
    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:verificationtype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions