Public: anyone can read this; nobody can change it.

workbenchthis machine

wb-gate: activate whole whiteboard on fresh germination (lib.sh trim fix + set-u fix + CIBTAG 0.2.0) + seed refresh (mcp 0.26.0/agents 0.7.5 + _app-template#6) #19

Closed opened this view on origin

Closed without the crew

opened this view on origin

What

Makes a fresh germination activate the WHOLE whiteboard and ship apps first-try — validated live on a from-scratch k3d germination (wb-gate2).

Code fixes

  • bin/lib.sh trim_gitops_lean — stop regenerating platform/kustomization.yaml + flux-kustomizations.yaml from a hardcoded lean template that silently dropped every component main grew since it was written (kyverno, kyverno-policies, letsencrypt, cosign-signing). Now the kept set is derived from the tree: platform kustomization keeps every declared resource minus the observability trims (monitoring/grafana/pgadmin) + keda; flux-kustomizations is trusted as-is, with _ensure_flux_kust only self-healing an older tree (kyverno→cert-manager, kyverno-policies→kyverno). Cannot drift again.
  • bin/lib.sh unbound-var fix — local g="$1" P="$g/…" on one line threw g: unbound variable under set -u (bash expands all RHS words before binding). Split so g is declared first. (This bug meant the dynamic-trim commit had never actually run — germinate died at the trim step; caught + fixed by this live validation.)
  • bin/germinate CIBTAG 0.1.0 → 0.2.0 + derive the full ci-builder tag set from what the seed's workflows pin, so both 0.2.0 (POL-3 cosign toolchain for _app-template) and 0.1.0 (mcp/agents) get built. No version skew.

Seed refresh (genesis/seed.tar.gz)

Rebuilt from GITOPS_REF=feat/wb-gate-release-pins (mcp 0.26.0 / agents 0.7.5; kyverno/kyverno-policies/letsencrypt/cosign-signing in the tree), with the seed's _app-template main fast-forwarded to PR #6 so create_app generates apps whose CI skips cosign gracefully when no key is provisioned.

Live proof (wb-gate2, fresh cluster, no manual wiring)

  • Kyverno deployed BY germination: kyverno pods Running, all 12 ClusterPolicies Ready (POL-1..5); kyverno + kyverno-policies Flux Kustomizations Applied. Whole whiteboard reconciled (letsencrypt/cosign-signing secrets present, 10/10 Flux Kustomizations True).
  • App ships FIRST-TRY: create_app → CI green (ci-builder:0.2.0, cosign skipped) → release_app → wbgate-smoke Running in plat--wbgate-smoke--prod, HTTP 200. No manual intervention, no known_hosts fix.
  • Policy governs the app ns: Kyverno-generated tenant-quota + plat-kyverno-dos-bound ResourceQuotas and default-deny/allow-egress/allow-ingress-traefik/allow-ingress-from-workflows NetworkPolicies (labeled managed-by: kyverno, POL-1/2).

Merge order

  1. plat/_app-template#6 (cosign conditional) — so origin _app-template main matches the seed
  2. plat/gitops#10 (mcp 0.26.0 + agents 0.7.5 pins) — so origin gitops main matches the seed
  3. this PR (code fix + refreshed seed that already embeds both)

Follow-up (not a blocker): after this merges, one GITOPS_REF=main bin/seed reseed embeds the fixed lib.sh into the seed's own mitosis bundle so granddaughters also activate the whiteboard (the seed's mitosis bundle is built from origin main).

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs