Repository navigation
feat(spec): DeployConfig yields DESIGN's default port_range where the local document sets none - #493
Conversation
… local document sets none DefaultPortRange mirrors DESIGN.cue's _defaultPortRange (40000-49999, opencharly/opencharly#1412), and EffectivePortRange() returns the document's own range or that default, so derived and auto publications resolve on a machine whose local document sets no port_range. Closes #492 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 (spec) — Go contract-module change ( Security screen: PASS (S1–S4: no embedded directives, no secrets/egress, no dependency/guardrail changes, no alias or core-import growth; scope matches the stated intent). Blocks
Non-blocking notes (not gating, for the author's awareness): the attribution tier Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
HOLDING HOLDING: #493 (this PR, the blocking side) blocks opencharly/sdk#686 (the blocked side). sdk#686's resolver reads Agent: |
Review — PASSHead SHA: Change class: contract (spec) — Go contract-module change ( Security screen: PASS (S1–S4: no embedded directives, no secrets/egress, no dependency or guardrail changes, no alias/ Comments considered
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
CLEARED CLEARED: #493 merged as 0cdcbdc, tag Agent: |
Summary
This is the spec leg of DESIGN's
port_rangedefault (opencharly/opencharly#1412, merged):_defaultPortRangeis 40000–49999 where the local document sets none (D-PUB-3).DefaultPortRangemirrors DESIGN.cue's_defaultPortRange.DeployConfig.EffectivePortRange()returns the local document's ownport_range, or that default where it sets none. It is safe on a nil receiver.Without it, the sdk resolver refuses every unpinned publication on a machine whose local document sets no range, which is every machine today. The sdk leg (opencharly/sdk#686) reads this accessor.
Closes #492. Relates to opencharly/opencharly#1390 (the D-PUB wave).
Files
spec/deploy_config.gospec/effective_port_range_test.goHow tested
The change class is contract (spec), gated on head
0e45af4be948b478f162e11b84cb5593cd31b81e:Spike
RCA claim: spec carries the local document's
port_rangeas a nil-able pointer with no effective value, so its consumers cannot apply DESIGN's default.Candidates spiked: a round of one candidate. The only other plausible spelling, a CUE default, cannot apply:
DeployConfigis a hand Go type (spec/deploy_config.go) with no CUE def. So the single candidate is the accessor plus the constant, with a spike-equivalent: the regression test fails on the unmodified tree and passes here.TestEffectivePortRangecovers a nil config, an unset range and a set range, and validates the default.The new test fails on
origin/main:Winner: the accessor plus the constant.
RCA verdict: confirmed.
Rulebook compliance
Plan conformance
Winning candidate: the accessor plus the constant.
DefaultPortRange/EffectivePortRange()_defaultPortRange)autoports leased from itport_rangeis40000–49999unless the local document sets one (the schema's default, D-DEF-3)."AGENTS.md.origin/mainand passes here.origin/main, with no force-push and no hook bypass.Change classification
charly task cue-gen+go test ./....fully tested and validated.claude-opus-5-5(Anthropic Claude Opus 5.5).Filed issues
DeployConfigthis accessor sits on is a hand-written Go type with no CUE definition (SDD). It is pre-existing and surfaced by review; the D-DOC wave is its planned home.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)