Repository navigation
feat(agentteams): higress AI gateway candy + gateway 8080 labels fix (Unit 2) - #246
Conversation
…(Unit 2) The fourth AgentTeams foundation candy: re-declare the whole Higress stack (apiserver, controller, pilot, envoy gateway, console) as five rootless supervisord services on the cachyos core box, every binary and asset extract-ed from higress/all-in-one:2.2.1, every start script charly-owned. Root-cause fix: the gateway 8080 listener never materialized because the upstream image bakes /etc/istio/pod/labels (app=higress-gateway, higress=higress-system-higress-gateway) which the istio-agent folds into envoy node-metadata LABELS; without it the pilot cannot match the proxy to the Gateway resource's selector, so no gateway listeners are generated. The candy now writes that file, and the LDS 8080 listener + gateway->console proxy on :8080 are proven live. The check-agentteams-core-pod bed extends with four Higress checks (apiserver /version, gateway healthz, gateway ingress proxy, console), including the 8080 check that FAILS without the labels fix. R10: charly check run check-agentteams-core-pod (disposable) PASS, run 2026.223.2150, steps=13, zero warnings. check-live 46/0/3 and check-live- rebuild both pass the gateway-health + gateway-http checks; fresh-rebuild re-verified after commit. Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
|
Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated) |
pr-validator — APPROVED ✅Change class: candy/box-config (new candy + box composition + bed extension + CHANGELOG; no Go source, no submodule-pointer bump). Head validated: Checklist (independent re-derivation, not the author's word):
Independent empirical re-verification of the root-cause fix (throwaway
Comments considered:
Cross-PR interactions considered:
Decision: PASS — every rule independently verified from the diff, the on-disk bed artifacts, and my own live re-verification. Proceeding to merge-time CalVer finalization, squash-merge, and tag. Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated) |
Rename the placeholder CHANGELOG and stamp the merge-time version (the release tag will be v2026.223.2211). Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
… seam (#579) The namespace-qualified (git-linked) entity reference seam (the RCA'd divergence between the load-time validator and the runtime resolver): - sdk v0.2026251.531 → v0.2026253.1714 (ResolveEntityRef #246 + the namespace-aware runtime resolution #247) - spec v0.2026251.1735 → v0.2026253.1700 (the deploy from: regex allows the ns.entity form, #127) - plugin-vm v0.2026253.830 → v0.2026253.1802 (the namespace-qualified vm entity resolution #31 + the clone-drive leaf #32 + the entity-keyed leaf paths #33) Effect: EVERYTHING in charly is referenceable — locally AND via git-linked imports (ns.entity) — validated once, resolved everywhere. The X3 spike (from: omarchy.check-charly-omarchy-vm:golden) proves it end to end.
Summary of changes
Unit 2 of the AgentTeams full-integration cutover: the fourth foundation candy — the Higress AI gateway — re-declared as five rootless supervisord services on the
cachyoscore box, plus a root-cause fix for the gateway's 8080 listener and the bed checks that prove it.candy/agentteams-higress/charly.yml— the new candy: every binary and assetextract:ed fromhigress/all-in-one:2.2.1(apiserver, higress controller, pilot-discovery, pilot-agent, envoy, supercronic, yq →/usr/local/bin/;/app,/opt/data/defaultConfigseed resources,/var/lib/istio/envoybootstrap template), re-declared as five services matching the upstream priorities (apiserver 200 / controller 300 / pilot 400 / gateway 500 / console 600), every start script charly-owned (wait-on-chain, rootless mTLS cert gen into uid-1000-writable/etc/certs, mesh config rendered from the seeded ConfigMap, access log → stdout, log-rotation cron). Rootless throughout:working_directory: /(matches upstreamdirectory=/), privileged paths pre-created uid-1000-writable at build time, Arch JVM pinned so the console jar runs onjre-openjdk./etc/istio/pod/labels(app="higress-gateway"/higress="higress-system-higress-gateway"), which the istio-agent folds into envoy node-metadataLABELS. Without it the pilot can never match the proxy to the Gateway resource'shigress: higress-system-higress-gatewayselector, so no gateway listeners are generated. The candy now writes that file (write:step) — proven empirically (LDS0.0.0.0_8080::0.0.0.0:8080+http://127.0.0.1:8080/→ 200 console HTML) and by the bed check that FAILS without it.charly.yml— theagentteams-core-appbox composesagentteams-higress(boxversion:→ 2026.223.1500, description updated); thecheck-agentteams-core-podbed extends with four Higress checks (apiserver/version, gateway15021/healthz/ready, gateway serves console on:8080, console on:8001).CHANGELOG/2026.223.2150.md— the Unit-2 changelog (placeholder CalVer).Change class
candy/box-config. The touched code path is the composing pod bed (
check-agentteams-core-pod): a new candy + box composition + the bed checks that exercise it. No Go source, no cross-repo producer — all artifacts areextract:ed from the upstreamhigress/all-in-one:2.2.1image (already in the local store), no gitlink bump.How R10-tested — exact gate, commands, and pasted output
charly box validate(clean) +charly check run check-agentteams-core-pod— the composing disposable bed for the new candy + the changed bed (per /charly-check:check "R10 gate by change class": a candy →charly box validate+ build + the composing bed).check-agentteams-core-pod | pod | ok | 13 steps | ~6m50s | run 2026.223.2150— the FINAL-TREE run on binary2026.223.1958(the Unit-1 binary: this change is YAML-only — candy + box composition + bed checks — no Go source changed, so the binary is current by R9).All 13 steps PASS (image-build / check-image / deploy-add / config / start / bring-up-members / check-live / feature-run / update / check-live-rebuild / feature-run-rebuild / cleanup / cleanup-members), R10_EXIT=0, zero warnings. check-live 46 passed / 0 failed / 3 skipped (the 3 skips are the candy's build-time
run:install steps — verify-only mode, executed at build); feature-run 38 passed / 0 failed / 3 skipped (same build-time runs). Both check-live AND check-live-rebuild pass the two new gateway checks (agentteams-higress-gateway-healthexit=0,agentteams-higress-gateway-httpstatus=200) — the fresh-rebuild leg re-verified the JUST-BUILT image via the per-run bed tagcheck-agentteams-core-pod-2026.223.2150.charly update— theupdatestep +check-live-rebuild+feature-run-rebuildverify the just-built image via the per-run bed tag threaded through update.log (never a stale cached one). The image was freshly built from this source (charly box build agentteams-core-appin theimage-buildstep, tag 2026.223.2140).agentteams-higress-gateway-healthexit=0,agentteams-higress-gateway-httpstatus=200);cat /etc/istio/pod/labels= the two upstream lines, envoy node-metadata now carriesLABELS:{"app":"higress-gateway","higress":"higress-system-higress-gateway"}, envoy admin/listenersshows0.0.0.0_8080::0.0.0.0:8080, andcurl http://127.0.0.1:8080/(host 18080) → HTTP 200 serving the Higress Console — the exact symptom (no 8080 listener) is gone;check:coverage FAILS without the change:agentteams-higress-gateway-http(8080 → 200) is connection-refused on the pre-fix image.Attribution tier
fully tested and validated— the cutover's NEW/CHANGED code paths (the higress candy, the labels root-cause fix, the four new bed checks) all EXECUTED against the fresh rebuild on the affected disposable target, with the complete fresh-rebuild R10 passing at zero warnings and the outputs pasted above.Harness rulebook compliance — state HOW each is satisfied
/charly-image:layer(candy authoring: extract + service + plan),/charly-image:image(box composition),/charly-check:check(the bed + ADE),/charly-internals:git-workflow(landing). All honored: the candy is a compact name-first node with mandatoryversion:/description:/plan:+check:; the bed isdisposable: true; every service is a unifiedservice:entry (no<name>-host/<name>-podsiblings)./node/cluster+LABELSwere the only functional differences;LABELStraced to the upstream-baked/etc/istio/pod/labelsfile that my candy never extracted — the fix writes it). Gate output has ZERO warnings on the R10 run (the single "warning" grep hit in image-build.log is the word "warning" inside the supervisord skill prose baked into theai.opencharly.skilllabel, not a charly warning).:8080/statuschecks (candy + bed) surfaced during this cutover were fixed in the same tree (replaced with the healthz + gateway→console 8080 checks); nothing parked as "pre-existing/follow-up".charlyCLI end to end; the labels file is a real root-cause fix (the agent's LABELS metadata source), not a retry or port hack.charly check run check-agentteams-core-pod), not justgo test— the R10 run above.charly box labels-equivalent evidence: the build emitted the full service/env label set (ai.opencharly.servicelists all 9 services incl. the five higress programs with their env + priorities +working_directory);ai.opencharly.candy_version=agentteams-higress: 2026.223.1500; the box version label = 2026.223.1500.charly version= 2026.223.1958, the Unit-1 build) IS this source's binary; the gate ran on it. No new runtime OS deps (the Arch packages openbsd-netcat/openssl/curl/jre-openjdk/libxcrypt-compat aredistro.arch.packageadditions in the candy, notpkg/arch/PKGBUILD).disposable: trueonly, fresh rebuild, zero warnings. Coverage that fails without the change:agentteams-higress-gateway-http(8080 → 200, connection-refused without the labels fix) + the gateway-healthz and apiserver/console checks (would fail without the candy/services);charly box validateenforces the candy's ADE plan.description:+plan:with ≥1 deterministiccheck:(charly box validatepasses, exit 0). SDD — no.cueschema edit in this change;task cue:genis a no-op.candy/agentteams-higress) + box composition + bed checks.disposable: truecheck-agentteams-core-podtarget; the empirical proof containers were throwawaypodman runinstances removed after verification.gofmt/golangci-lint/go vet/go testunaffected; the candy is pure declarative YAML).CHANGELOG/2026.223.2150.mdstaged with a placeholder CalVer (the pr-validator finalizes the merge-time version).Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)