Repository navigation
chore: "one release" is one chart minor; mesh-DNS reads only the snapshot envelope, and an older file fails closed - #1658
Merged
Conversation
…shot envelope The compatibility window is written down once: one minor version of the aether chart (deprecated in 2.5.x, removable in 2.6.0, never within the same minor). AGENTS.md has the rule for contributors, charts/README.md the operator's side (supported skew, where a deprecation is announced), and the comments that said "for one release" now name a chart version. AGENTS.md and CLAUDE.md also allow removing a production function that only tests reference, with the test that only calls it, when whole-module analysis shows nothing else references it. The optional namespace group of the proxy bootstrap's aether.pod extractor (#1634) is recorded for removal in chart 2.6.0, beside the test that pins it and in the runbook; the rendered bootstrap is unchanged. The mesh-DNS snapshot reader no longer accepts the bare record map written before the envelope (#586, chart 0.87.0). A file without a records object is a parse error: the resolver starts cold or keeps the table it serves, warns and counts parse_error. Before, a JSON object without records was read as an empty table, and a reload of it answered NXDOMAIN for every mesh name. Chart 2.5.7. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
bpalermo
added a commit
that referenced
this pull request
Oct 11, 2026
…auge is removed (#1667) The labelled info gauge aether.registrar.snapshot.content{content_hash} (Prometheus aether_registrar_snapshot_content) was deprecated in chart 2.4.12 (#1329, #1346) in favour of aether.registrar.snapshot.content_hash, which carries the hash as its value and is what the shipped rule AetherRegistrarSnapshotDiverged reads. Deprecated in 2.4.x means removable from 2.5.0 on; the "chart 2.6.0 at the earliest" written beside it by #1658 was one minor too cautious and is corrected here. - registrar: the instrument, its content_hash attribute key and the helper that observed both gauges are gone; the value gauge and the revision gauges are untouched. A test asserts the exported metric set does not contain the name, and that no gauge data point carries a content_hash attribute. - docs: the runbook's transitional `or` arm and its order of work, the "Deprecated" sections of the runbook and docs/observability/README.md, and the upgrade comment in registrar-alerts.yml are replaced by a short account in the past tense. The shipped rule and its promtool tests never read the metric and are unchanged. - chart 2.5.9: a runbook section says what an operator sees (a rule or a dashboard still reading the metric returns no data, silently), the query to use instead, and closes the row of the "Chart 2.5.7" deprecation table. The upgrade rolls the registrar Deployment (new image); no template changed. Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Four owner decisions from the 2026-10-10 codebase audit, in one change. Written by an AI coding agent.
1. "One release" is one minor version of the
aetherchartDeprecated in 2.5.x, removable in 2.6.0, never within the same minor. Written once:
AGENTS.md, "Rules for agents", new group Compatibility window: the rule, the skew to design for, and how a deprecation is announced (the runbook's "Chart X.Y.Z" section, and where the thing is defined), with the removing minor written as a version.charts/README.md, new section Compatibility window: the operator's side. The table of supported skew is derived from the rule (adjacent minors side by side for the length of a roll; an upgrade that skips a minor is not supported). Please read that table as a proposal: only the one-minor rule itself was decided.cni/internal/cmd/root.go,root_test.go,docs/configuration.md,charts/aether/BUILD.bazel--otlp-endpoint/--otlp-pin-endpointregistrar/internal/server/metrics.go(comment),metrics_test.go,docs/observability/registrar-alerts.yml,docs/runbook.mdaether.registrar.snapshot.content{content_hash}AGENTS.md(protos),.claude/agents/aether-adversarial-reviewer.md,aether-chart-engineer.mdNot dated (listed, unchanged):
registrar/internal/server/metrics.go, the exported description of the deprecated gauge ("removed in the release after it"): the gauge is left exactly as it is in this change.agent/internal/xds/proxy/networkfilter.go:25anddocs/runbook.md("Rollback floor: chart 0.93.0" and the Make the source-identity filter state Hashable so the mesh can drop connection_pool_per_downstream_connection #842 rollback note) on theaether.source.spiffe_idkey retired by proxy/agent: retire the pre-#842aether.source.spiffe_idfilter-state key — the "one release" dual-key window closed on 2026-09-20 #1165;docs/configuration.mdon the removedagent proxy-supervisoralias.edge.xffNumTrustedHops/edge.geoip"deprecated aliases for one release": both values are still invalues.yamlwith no deprecation note), 037 Phase 4 (the portless floor chain, gated on a counter staying at zero, not on a version), 038 (the18081/udpredirect, already gone from the code), 039.agent/internal/xds/proxy/outcome.go("a caller of one release reads what a destination of another wrote"), and every "one release per cluster" (a Helm release).2. Removing a production function only tests reference
AGENTS.md("Tests and findings") andCLAUDE.md("Testing"): an agent may remove such a function together with the test that only calls it, when the pull request shows by whole-module analysis, not grep alone, that nothing else references it. It is the one exception to "never remove existing test cases unless explicitly asked".3. The 2.5.0
aether.podtolerance goes in chart 2.6.0The optional namespace group of the proxy bootstrap's
aether.podstats extractor (#1634) is recorded for removal in chart 2.6.0 incharts/aether/BUILD.bazel, besideaether_proxy_bootstrap_pod_stats_tags_test, and in the runbook's "Chart 2.5.0" section. The template is not touched: the explanation there is a YAML comment inside the rendered bootstrap, and any changed byte of it hot-restarts every Envoy on upgrade.Chart
2.5.6->2.5.7(origin/mainwas at 2.5.6 when this was pushed).helm templateof the packaged 2.5.6 and 2.5.7 charts, offline (an empty stub kubeconfig), default values and--set controller.webhook.spire=true:templates/agent-proxy-configmap.yaml: one line differs,helm.sh/chart: aether-2.5.6->aether-2.5.7.helm.sh/chartlabel (29 objects), and the agent and mesh-dns image digests (three lines: the two images and the controller's--identity-gate-image, which names the agent image). Those come from item 4. With default values the generated webhook certificate differs too, as it does between any two renders.The first render also showed new registrar and cni-install digests, from comment edits that moved line numbers. Those two comments were rewritten to keep their line count, and both digests are now the same as on
main.4. mesh-DNS reads only the snapshot envelope
meshdns.WriteSnapshot, called fromagent/internal/xds/cache/capture.goon a record change and on the heartbeat). Theaether-mesh-dnsdaemon reads (loadSnapshotat start,ReloadFromSnapshotfrom its watch loop inagent/cmd/mesh-dns/main.go); both go throughmeshdns.ReadSnapshot, the only reader.997cc99e(mesh-dns: close the observability gaps (snapshot staleness, log shipping, forward-path blindness) #586/feat(mesh-dns): close the observability gaps (#586) #587, 2026-07-25, chart 0.87.0) changedWriteSnapshotfromjson.Marshal(records)tojson.Marshal(&Snapshot{…}); it is the only function that writes the file, then and now.parseSnapshotfallback and its mtime back-fill, withTestReadSnapshotLegacyBareMapandTestReadSnapshotLegacyEnvelopeShapedKeys.TestWarmStartLoadsSnapshotwrote a bare map as its fixture; it now writes the envelope throughWriteSnapshotand asserts what it did before.recordsobject isErrSnapshotParse. At start the resolver stays cold, so a mesh name answersSERVFAIL; on a reload it keeps the table it serves. Both log a warning with the reason and countaether_mesh_dns_snapshot_reloads_total{result="parse_error"}, which the shipped alert rule onresult!="success"reads.TestReadSnapshotBareMapIsParseError,TestBareMapSnapshotFailsClosed) were red against the old reader, and are red again with theRecords == nilcheck mutated away: in that case a reload replaces the served table with an empty one and the resolver answersNXDOMAINfor the whole mesh.recordskey ({}included) used to be read as an empty table. It is now a parse error.//agent/cmd/mesh-dns:deps_testis green; the module set did not change.Verification
bazel testof//agent/internal/meshdns:all,//agent/cmd/mesh-dns:all,//agent/internal/xds/cache:cache_test,//cni/internal/cmd:all,//registrar/internal/server:all,//charts/...,//website:site_test,//test/harnesscontract:checks: 282 tests pass.--config=raceon the five touchedgo_testtargets: pass.bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...: clean.make format-check: clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr