Skip to content

port_range: DeployConfig yields DESIGN's default range (40000-49999) where the local document sets none #492

Done

Description

@aitrawog

Category

category:runtime

Type

type:feat

Remedy / files the remedy will touch

spec/spec/deploy_config.go: DeployConfig.EffectivePortRange() returns PortRange or the schema default; DefaultPortRange mirrors DESIGN.cue _defaultPortRange; a test pins both

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

D-PUB-3, D-DEF-3

Classification

Blocking — it blocks the filer's own progress, so the filer claims it at filing and fixes it.

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

$ cue eval DESIGN.cue -e "#Document.port_range"      (origin/main)
_|_ // cannot reference optional field: port_range
$ cue eval DESIGN.cue -e "#Document.port_range"      (this head)
from: 40000
to:   49999

DESIGN gains the default in opencharly/opencharly#1412. spec's DeployConfig.PortRange (spec/spec/deploy_config.go) is a nil-able pointer with no effective value, and sdk's ResolveDeployPublications (deploykit/deploy_derive.go) refuses when it is nil.

Mechanism

DESIGN now defaults port_range to 40000-49999 where the local document sets none (#1412); spec's DeployConfig has no effective value, so it still behaves as if no range existed.

Missed control

The D-PUB code legs read port_range directly and treated an unset value as an error, with no schema default to fall back on.

Blast radius

Every unpinned publication on a machine whose local document sets no port_range (every machine today).

Root fix

Add DeployConfig.EffectivePortRange() with DefaultPortRange (40000-49999), mirroring DESIGN.cue's _defaultPortRange.

Spike (its result, or none with the reason)

none: the schema default is proven by cue eval in #1412; this leg mirrors it

Agent: claude-default-volume-design · Claude Code session session_01Tvdn3tjf8tKajCd43DwENP
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

Activity

  1. aitrawog commented on Dec 2, 2026

    @aitrawog
    ContributorAuthor

    CLAIM

    Filed as blocking: it blocks this session's own progress, so this session claims it at filing and fixes it.

    Agent: claude-default-volume-design · Claude Code session session_01Tvdn3tjf8tKajCd43DwENP
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

  2. added
    category:runtime
    type:feat
    on Dec 2, 2026
  3. self-assigned this
    on Dec 2, 2026
  4. added a commit that references this issue on Dec 2, 2026
    0cdcbdc
  5. aitrawog commented on Dec 2, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED: merged in #493 (0cdcbdc, v0.2026336.1635).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

category:runtimetype:feat

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions