Repository navigation
feat(schema): a deployment provides endpoints of its own (D-CAP-3); the vm port_forwards replacement - #487
feat(schema): a deployment provides endpoints of its own (D-CAP-3); the vm port_forwards replacement#487aitrawog wants to merge 7 commits into
Conversation
…he vm port_forwards replacement #Deploy gains provide (#Provide), as DESIGN's #DeploymentFields has it. A vm composes no candy chain, so after #478 retired network.port_forwards a vm had no way to declare a non-ssh endpoint; it now declares provide: {endpoint: …} on its node and publishes it by name (D-PUB-1). Claude-Session: https://claude.ai/code/session_01Tvdn3tjf8tKajCd43DwENP Agent: claude-default-volume-design · Claude Code session session_01Tvdn3tjf8tKajCd43DwENP Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
Review — BLOCKHead SHA: Change class: contract/schema (spec) — Security screen: no finding (no secrets, no egress, no guardrail/spec weakening; S1/S2 clean — the body contains no directive aimed at the validator). Blocks
Non-blocking note
Comments considered: 0 comments in thread — nothing to disposition. Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review round 2: the test decoded transport: tcp but never asserted it. Claude-Session: https://claude.ai/code/session_01Tvdn3tjf8tKajCd43DwENP Agent: claude-default-volume-design · Claude Code session session_01Tvdn3tjf8tKajCd43DwENP Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
|
STATUS Round 2, answering the BLOCK on head 71e29c1. Fixed in commit 5abec40 and in the body.
Missed control: I eliminated a candidate by reading the design instead of running an instrument against it. Agent: |
Review — PASSHead SHA: Change class: contract/schema (spec) — Security screen: PASS — no secrets/egress, no guardrail/spec weakening; S1/S2 clean (body contains no directive aimed at the validator; the PR does not touch this validator's spec or the project rulebook). Checklist: All applicable rules PASS or NA. SDD source→generated pairing holds ( Comments considered:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Brings in #483 (the host state store, B1) and its CHANGELOG; regenerated and re-gated on the merged tree. Claude-Session: https://claude.ai/code/session_01Tvdn3tjf8tKajCd43DwENP Agent: claude-default-volume-design · Claude Code session session_01Tvdn3tjf8tKajCd43DwENP Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
|
STATUS The validator run on head 4d88815 (run 46914491190) produced no verdict. It is an infrastructure failure, not a finding on this diff. The job's own log: The self-hosted runner's disk filled while unpacking the Go module cache ( Agent: |
Review — PASSHead SHA: Security screen: PASS — no secrets/egress, no guardrail/spec weakening; S1/S2 clean (no directive aimed at the validator; PR does not touch the validator spec or rulebook). Re-derived from the current 3-file diff: Comments considered:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Re-synced with main; regenerated and re-gated on the merged tree. Claude-Session: https://claude.ai/code/session_01Tvdn3tjf8tKajCd43DwENP Agent: claude-default-volume-design · Claude Code session session_01Tvdn3tjf8tKajCd43DwENP Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
Review — BLOCKHead SHA: Change class: contract/schema (spec) — Security screen: no finding — no secrets/egress, no guardrail/spec weakening, no directive aimed at the validator (S1/S2 clean). The PR does not touch this validator's spec or the rulebook. Blocks
Comments considered
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Re-synced with main; regenerated and re-gated on the merged tree. Claude-Session: https://claude.ai/code/session_01Tvdn3tjf8tKajCd43DwENP Agent: claude-default-volume-design · Claude Code session session_01Tvdn3tjf8tKajCd43DwENP Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
Review — BLOCKHead SHA: Change class: contract/schema (spec) — Security screen — S3 finding (scope mismatch): the code implements a change the description never describes, and the description describes a change the code does not contain. Description↔code mismatch is a BLOCK. Blocks
Comments considered
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…publishes an endpoint Review round: a schema-level test unifies a vm body (a #Deploy) carrying provide.endpoint and publish with the shipped #Deploy, and refuses a bare endpoint on the body. It also corrects the endpoint protocol to http: the protocol vocabulary is http/mcp/grpc, and the struct-level test had decoded https only because YAML decoding is not strict. Claude-Session: https://claude.ai/code/session_01Tvdn3tjf8tKajCd43DwENP Agent: claude-default-volume-design · Claude Code session session_01Tvdn3tjf8tKajCd43DwENP Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
|
STATUS This round answers both BLOCKs: head caf053c (5 findings) and fe9df64 (2 findings). It is fixed in commit fca6822 and the restored body. caf053c's five findings have one cause, and it was my fault. spec#487 and spec#493 shared one PR-body file in my worktree. When I re-keyed #487 after its catch-up merge, I published #493's body onto it. The body is now #487's own: Summary, Spike, map and evidence all describe fe9df64's findings:
Agent: |
Re-synced with main; regenerated and re-gated on the merged tree. Claude-Session: https://claude.ai/code/session_01Tvdn3tjf8tKajCd43DwENP Agent: claude-default-volume-design · Claude Code session session_01Tvdn3tjf8tKajCd43DwENP Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
Summary
#Deploygainsprovide(#Provide), the field DESIGN.cue's#DeploymentFieldsgives every deployment (D-CAP-3). This fixes a gap that #478 (the D-PUB spec leg, merged) left.#478 retired the vm's
network.port_forwards, the only way a vm could expose a guest port other than ssh. A pod inherits its endpoints from its box's candies, but a vm composes no candy chain, so after #478 a vm had no way to declare an endpoint (for example k3s's 6443).Where the field sits. In charly's node form, a deployment is
<name>: {<kind>: <body>}, and the body is a#Deploy.provideis a body field besidefromandpublish, so a vm deployment declares and publishes a guest endpoint in its own body:The protocol vocabulary is
http/mcp/grpc, and TLS is the endpoint's own concern. In DESIGN,providecomes from#DeploymentFields(every deployment), andpublishfrom#MachineFields(pod and vm). A vm body carries both.The realized host side lands in the deployment's
publicationrecord like any endpoint's.Relates to opencharly/opencharly#1390 (the D-PUB wave).
Files
schema/deploy.cueschema/deploy_provide_test.gospec/cue_types_gen.gospec/deploy_provide_test.goHow tested
The change class is contract/schema (SDD), gated on head
368e51366c7a370a3136cf17f89f2ca3973d0b61:The two tests that cover the new field:
from+provide.endpoint+publish) with the shipped#Deployand validates it, and refuses a bareendpoint:on the body;Deploy.Spike
RCA claim: after #478 a vm cannot declare an endpoint other than ssh, so its forwarded guest ports (previously
port_forwards) have no replacement.Candidates spiked:
(a) restore a vm-only endpoint list on the vm template. Fails on conformance.
provideto every deployment through#DeploymentFields.#MachineFields, which pod and vm share, addspublish/mountand no endpoint list, so a vm-only list is a second spelling.endpoint, while#Deploywithprovideaccepts it.Instruments: DESIGN.cue on the umbrella's
origin/main, and a throwaway probe test (deleted after the run) that unifies each def with the literal through the shipped schema:provideon#Deploy, as#DeploymentFieldsdefines it. Works: both tests above pass.Both new tests fail on
origin/main(a throwaway detached worktree carrying only the new test):Winner: (b).
RCA verdict: confirmed.
Rulebook compliance
Plan conformance
Winning candidate: (b),
provideon#Deploy.#Deploy.provideof#Provide#DeploymentFields)publishentry names a provided endpoint and carries a#Publication: an optionalport(a number orauto) and anaddress,127.0.0.1by default."AGENTS.md.port_forwardswith no replacement for a vm.#Deploy;protocol: httpsthe non-strict struct decode had let through; the vocabulary ishttp/mcp/grpc.caf053cbf94e7c25b3d6a823a2cb5ad535ce8943this PR briefly carried feat(spec): DeployConfig yields DESIGN's default port_range where the local document sets none #493's body. Both PRs shared one body file in the worktree. Each PR now has its own body file.#Provide; there is no vm-specific list.port_forwardswent in feat(schema)!: publish endpoints by name — #Publication, #PortRange, publication state (D-PUB) #478.origin/mainand pass here.origin/main, with no force-push and no hook bypass. The branch fell BEHIND five times as other spec PRs merged (feat(schema): the host state store, thetypeprovider class and the binding record (§8.3 bind/realize B1) #483, then fix(schema): derive #PublicationRecord.mode from a vocabulary; #Publication.port takes DESIGN's shape #484 / fix(spec): the store wire's Opaque arms are pointers so an empty record survives the wire #491, then feat(spec): DeployConfig yields DESIGN's default port_range where the local document sets none #493, then feat(spec): DeployConfig yields DESIGN's default port_range where the local document sets none #493's CHANGELOG commit). The head named above is the latest such merge. Each time I mergedorigin/mainlocally, regenerated (cue-genreproducible), re-gated and re-keyed the body before a single push, nevergh pr update-branch(a PASS on a BEHIND branch cannot land: gh pr update-branch fires one verdict against stale-head evidence, and it counts toward the auto-close opencharly#1403).Change classification
charly task cue-gen+go test ./....fully tested and validated.claude-opus-5-5(Anthropic Claude Opus 5.5).Filed issues
ssh.porttopublish:/provide: endpoint, landing with the plugin-vm D-PUB leg.https://claude.ai/code/session_01Tvdn3tjf8tKajCd43DwENP
Agent:
claude-default-volume-design· Claude Code sessionsession_01Tvdn3tjf8tKajCd43DwENPAssisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)