Skip to content

feat(design): give a cluster its policy surface (batch 25) - #874

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/design-batch25
Nov 5, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/design-batch25

Conversation

@aitrawog

@aitrawog aitrawog commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Batch 25 of the DESIGN amendments the capability ledger records (tracked in #838). A kubernetes: cluster
template carried a whole policy surface — default namespace, admission policy, kubeconfig context,
storage and ingress defaults — and #KubernetesFields was {node?} alone.

The five fields with authored use are back:

field authored use
storage (#ClusterStorage) 50 manifests
ingress (#ClusterIngress) 12
kubeconfig_context 7
default_namespace 4
admission_policy 4

image_default and pod_default have 0 authored uses and stay out — the row now says exactly that
instead of counting the whole surface as missing.

class is a §2 Not term, so a storage or ingress provisioner is named by its name. That is not a
cosmetic rename: the vocabulary rule exists so the design does not borrow a layering word for a
provisioner.

file what changed
DESIGN.cue #KubernetesFields gains five policy fields; #ClusterStorage, #ClusterIngress
DESIGN.md §17.1's kubernetes row names the policy fields; the deploy-kubernetes example sets all five
design/dulling.tsv kind:kubernetes and kind:kindcluster (which quotes the same definition)
design/dulling-disposition.md regenerated

How tested

The owning gate, on the committed tree this body describes:

$ git rev-parse HEAD
fb2b9731b5346a0be7bb152764428981130bf016
$ bash scripts/design-check.sh

== 1/4 toolchain
cue version v0.18.0-rc.1

== 2/4 DESIGN.md ↔ DESIGN.cue
consistency: tables, table shape, word lists, rule tags, ids and § references, vocabulary, grammar — all agree

== 3/4 examples and negative cases
examples: 14 validated
negatives: 106 checked

== 4/4 the capability ledger
design-ledger: 264 rows vs 264 parity capabilities; citations resolve and name their subject; enums hold

design-check: all controls pass

All five fields are exercised by the deploy-kubernetes example (default_namespace: demo,
admission_policy: [restricted], kubeconfig_context: kind-demo, storage: {name: local-path},
ingress: {name: traefik, issuer: letsencrypt}), so removing any fails validation. The definition sweep:

$ grep -n "KubernetesFields" design/dulling.tsv
113:kind:kindcluster	`kindcluster:` is a cluster template: box, engine, digest-pinned node_image, a `nodes` topology (role, per-node image, extra_port_mappings), kubeconfig_context, default_namespace, admission_policy, and the storage/ingress/image_default/pod_default/defaults policy blocks	§17.1; §17.6; D-HW-5	a created `kubernetes` (`node:`) under the `kind` cluster driver	dulled	the NODE image and the extra port mappings (the ingress/NodePort reach path) have fields on `#ClusterNode` (`image`, `port`), and the cluster's policy blocks now have fields on `#KubernetesFields` (`default_namespace`, `admission_policy`, `kubeconfig_context`, `storage`, `ingress`); `image_default`/`pod_default` still have none, and the template's engine/box/digest-pinned node_image are the deployment's own `from:`/`image:` rather than a cluster template's	spec/schema/kindcluster.cue:20-58; plugin-substrate/candy/plugin-substrate/charly.yml; DESIGN.cue:#ClusterNode; DESIGN.cue:#KubernetesFields; DESIGN.md:D-HW-5; DESIGN.md:§17.1; DESIGN.md:§17.6; DESIGN.cue:#ClusterPort; DESIGN.cue:#ClusterStorage; DESIGN.cue:#ClusterIngress	amend D-DEP-1
114:kind:kubernetes	`kubernetes:` is a cluster template: box, kubeconfig (a FILE path) plus kubeconfig_context, admission_policy, default_namespace, storage, ingress (class, cert issuer), image_default (pull policy/secrets), pod_default (priority, tolerations, node selector), the kubevirt platform knobs and defaults (labels/annotations)	§17.1; §17.7; D-HW-5	a `kubernetes:` node — `node:` to create the cluster by the configured driver, or `connect: {kube: {context, namespace}}`	dulled	the cluster policy surface is back in part: `default_namespace`, `admission_policy`, `kubeconfig_context`, `storage` (`#ClusterStorage`) and `ingress` (`#ClusterIngress`) all have fields, and `#ClusterNode` carries `control_plane`, `image` and `port`; `image_default` and `pod_default` (0 authored uses), the kubeconfig FILE path and the kubevirt platform knobs still have no field	spec/schema/kubernetes.cue:13-45; plugin-substrate/candy/plugin-substrate/charly.yml; DESIGN.cue:#ClusterNode; DESIGN.cue:#KubernetesFields; DESIGN.md:D-HW-5; DESIGN.md:§17.1; DESIGN.md:§17.7; DESIGN.cue:#ClusterStorage; DESIGN.cue:#ClusterIngress	amend D-DEP-1

Two rows, both swept — the second is the one this batch edits and the first quotes the same definition.

  • Disposable target / fresh rebuild: N/A — nothing is deployed by this change.
  • Changed code path executed live: N/A — design schema, prose and ledger data; all executed by the
    gate's consistency checks, example loader and negative suite.

Rulebook compliance

  • R0 — the dispatched skills were loaded before the first action, including
    /charly-internals:git-workflow before any git/gh step.
  • R1 — no review round yet on this batch. Three findings were caught by the owning gates before the
    commit: the fields had to be registered in _deployField; class is a §2 Not term (both as a field and
    in D-NAME-1's own exception list), and ingress had to be listed as singular under D-NAME-1.
  • R2 — two named shapes rather than anonymous structs, and one field set per cluster kind.
  • R3 — no sleep, retry or fallback.
  • R4 — the schema leads the example and the ledger in one commit.
  • R5 — both rows that quote #KubernetesFields are swept, and §17.1's kubernetes row is updated.
  • R6 — clean tree at branch time; only this session's worktree was written; nothing self-merged.
  • R7 — every field is exercised by the example; the name and shape controls resolve all four
    definitions; the self-test is unchanged at 16 mutations.
  • R8 — N/A: no live service is crossed.
  • R9 — N/A: no binary is rebuilt.
  • R10 — change class: design schema, prose and ledger data; non-runtime. The owning gate passed 4/4.

Change classification

  • Change class: design schema, prose and ledger data; non-runtime.
  • Verification gate: bash scripts/design-check.sh (4/4) on fb2b973.
  • Attribution tier: fully tested and validated.
  • Compatibility: no ! marker. Additive: five optional fields accept documents that were previously
    rejected and reject none that were accepted. Rollback is git revert.

Filed issues

None from this change. Open from earlier rounds: #839 and #841.

Ref #838 — the tracking issue.

Agent: lead (DeepSeek Harness, deepseek-v4.1-flash)

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

Batch 25 of the DESIGN amendments (refs #838). A `kubernetes:` cluster template carried
a whole policy surface -- default namespace, admission policy, kubeconfig context,
storage and ingress defaults -- and `#KubernetesFields` was `{node?}` alone.

The five fields with authored use are back (`default_namespace`, `admission_policy`,
`kubeconfig_context`, `storage` (`#ClusterStorage`), `ingress` (`#ClusterIngress`));
`image_default` and `pod_default` have 0 authored uses and stay out, and the row now
says exactly that instead of counting the whole surface as missing. The kindcluster
row, which quoted the same definition, is swept with it.

`class` is a Not term, so a storage or ingress provisioner is named by its `name`.

Refs #838

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: fb2b9731b5346a0be7bb152764428981130bf016 (branch: feat/design-batch25)

Security screen: PASS — no secrets, no code execution, no guardrail/validator/rulebook edits, no scope mismatch; the diff matches the stated additive schema + prose + ledger change.
Checklist: All applicable rules PASS or NA (design schema/prose/ledger, non-runtime; owning gate scripts/design-check.sh pasted 4/4 on the named head; example exercises all five fields so the new surface is proven; single squash commit; no bed/rebuild/deploy applicable).

Comment thread is empty (0 comments) — nothing to disposition.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 5, 2026 01:06
@github-actions
github-actions Bot merged commit 4d24370 into main Nov 5, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant