You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(contract): what a harness outside this repository reads from a mesh is written down, and tests hold the code to it - #1535
A harness that rolls the mesh's workloads, reads its metrics and logs and grades a run depends on names this repository chooses. While the harness lives here, a rename and the grader that reads the name change in one pull request (#1484 and #1494 are examples). A harness outside this repository has no such guarantee: the first sign of a rename would be a query that returns nothing, which often reads exactly like a healthy zero.
This pull request writes those names down and makes bazel test fail when the code stops honouring them. It changes no production code and nothing under e2e/soak/ or charts/.
What is added
test/harnesscontract/external-harness.yaml: the contract, with a version. It lists
the agent's aether.agent.snapshot.tls_clusters, aether.agent.xds.acked_tls_clusters and aether.agent.identity.cluster_unpinned (names as registered and as stored after the OTLP translation, labels, the closed pin and reason sets);
the prober's aether_probe_requests_total (labels, the closed tier and result sets) and its service.name;
the two AETHER_PROBE_FAIL lines (marker, exact field lists, time fields, the cap and window, what a stopping prober writes);
the any-port capture stat prefix;
the labels, annotations, ports, default mesh domain and CSI driver name a workload manifest or a URL names;
per chart, the objects a harness addresses: workload names and namespaces, pod labels, container names, rolling-update strategies, and k8s.node.name in OTEL_RESOURCE_ATTRIBUTES;
a short list of names that are NOT contract because only a harness's own workloads emit them (AETHER_FAIL, AETHER_METRIC, AETHER_NEWSA, the aether_fail* counters).
test/harnesscontract (Go, test-only): the strict loader and the comparison helpers. Every failure message names the contract file and the rule.
A check in each owning package, comparing an entry with what the code really emits:
bazel test //test/harnesscontract:checks runs them all.
helm_contract_test (test/harnesscontract/defs.bzl): runs the toolchain's helm against the packaged chart and hands the render to a Go checker that reads both the render options and the expectations from the contract, so the BUILD file holds no second list. The checker never prints a render, and the loader refuses an aether render without controller.webhook.spire=true (no generated key). These tests live outside charts/ on purpose: scripts/check-chart-version-bump.sh counts any change under charts/<chart>/, a BUILD file included, and adding a contract entry is not a chart change. No chart version is bumped.
Docs: test/harnesscontract/README.md (the rule, how each kind of entry is tied, what is review-only, adding and removing an entry), a section in docs/runbook.md, and a bullet in AGENTS.md § Rules for agents.
The rule
Change the code and the contract together, in one pull request, and say so in its description. Removing an entry or changing what it means bumps version (a value ADDED to a closed set counts: a grader that knows four reason values can only fail on a fifth); adding an entry does not. A harness pins the version it was written against.
The bump is a review rule. A hermetic test cannot compare the file with its previous revision. What is enforced: closed sets are compared in both directions, and each owning test declares the entry ids it holds, so removing an entry while the code still emits the thing fails until the check is removed in the same change.
Review-only (not tied to code)
What a metrics pipeline does to a name: the node/job labels made from resource attributes, and the stored name of an Envoy stat. Only what the product sets is checked.
The meaning of the two halves of reason (no TLS published vs. TLS published without a server-identity check): the code states it in comments only. A test checks the partition covers the closed set exactly once.
The name and namespace of a generated mesh Service (its label is tied to a constant).
The version bump.
Measured
Every check was seen red by making the change in a scratch edit, running the test, and restoring the file. 59 mutations, 59 red, each naming the contract file:
agent metrics (7): each of the three instruments renamed; the pin key renamed; the value unpinned renamed; the reason tls_not_published renamed; the counter turned into an up/down counter.
prober metric (7): counter renamed; tier key renamed; timeout renamed; a result constant added; a tier constant added; a label added; service.name changed.
Envoy stat and names (11): the any-port prefix; config.aether.io/upstreams; aether.io/managed; aether.io/mesh-service; ports 18081 and 18082; the default mesh domain; endpoint.aether.io/ports; .../uds-socket; capture.aether.io/exclude-outbound-ports; the CSI driver.
charts (15): the proxy container, selector label and DaemonSet renamed; the agent DaemonSet renamed; uds-csi made to surge; mesh-dns made not to; agent.updateStrategy.surge rendering no surge; the edge's default namespace; the uds-csi component label; the CSIDriver object; k8s.node.name dropped from the agent and from the prober; the prober container renamed; a udsecho Deployment and an app label renamed.
the contract itself (9): a metric, a log line, a name, the Envoy stat and a chart entry deleted while the code still emits them; a reason dropped from a closed set; a reason left in no class; a checked_by naming a test outside the suite; a stored_name that is not the translation.
After the first review round (6 more, all red): the surge render deleted while the default aether render stays; one object deleted from a render; the udsecho entry without its namespace value; a udsecho template that ignores the value; the pinned gauge series losing pin; a pinned series gaining a reason. A chart test now lists the ids of the renders and objects it holds, a metric label is checked on each series (a conditional one is marked when), and the udsecho objects assert their namespace.
One mutation first passed: changing the helper's fallback for the edge namespace does nothing, because values.yaml sets edge.namespace. Made in values.yaml instead, it fails as expected (counted above).
Also run: bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //..., //:format.check, make gazelle (no diff), the race detector on the six go_test targets touched, //charts/... and //bazel/helm/..., and scripts/check-chart-version-bump.sh origin/main (passes: nothing under charts/ changed).
Not verified locally
make go-build-plain (the plain go build/go vet CodeQL runs). The new package uses go:embed on a file in its own directory and an already-required module, so it should build; CI decides.
…esh is written down, and tests hold the code to it
test/harnesscontract/external-harness.yaml lists the metric names, labels and
closed label sets, the AETHER_PROBE_FAIL fields, the any-port stat prefix, the
annotations and ports, and the chart objects a harness addresses. Each entry is
compared with the code that produces it by a test in the owning package; a
rename fails with a message naming the contract file.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
Adds a versioned external-harness contract and test infrastructure that detects incompatible changes to metrics, logs, constants, Envoy stats, and rendered chart objects without changing production code.
Changes:
Defines and documents the external contract.
Adds strict loaders, comparison helpers, and Helm render checks.
Integrates contract checks into owning agent and prober test suites.
Clarify no_tls entries without published TLS clusters
test/harnesscontract/external-harness.yaml:92
This description conflates the two no_tls reasons with a published TLS cluster lacking a pin. For trust_domain_unknown and tls_not_published, the node publishes no TLS at all (as reason_classes below explains), so an external grader could repeat the misclassification fixed in #1494. Describe this as entries for which no pinned TLS cluster was published and point readers to the reason classes.
Chart object IDs are excluded from duplicate validation
test/harnesscontract/chart.go:68
Chart object IDs are omitted from the global duplicate-ID validation: this loop only checks that they are nonempty. A duplicate object ID (or one colliding with a top-level entry) is therefore accepted, and OwnedIDs uses membership checks that collapse the duplicates, weakening the removal guard and contradicting the loader's documented “id used twice” rejection. Include every render object's ID in the contract-wide uniqueness check.
Quoted YAML boolean strings cannot be represented
test/harnesscontract/contract.go:308
This check runs after YAML has already been decoded into strings, so it cannot distinguish an unquoted YAML boolean from the legitimate quoted strings "true" or "false". Consequently, quoting those values as the error recommends still fails, making such a closed label value or log-field name impossible to express. Detect YAML 1.1 coercion before typed unmarshalling (for example via scalar nodes), or explicitly document and report that these strings are forbidden.
Clarify TLS publication status in cluster note
test/harnesscontract/external-harness.yaml:92
This note says the clusters were published without a pin, but trust_domain_unknown and tls_not_published mean that no TLS was published at all, as the reason partition below states. That wording can make an external consumer interpret all counter movement as a served validation gap; describe these as entries lacking a pin and note that the reason determines whether TLS was published.
Validate strategy type to enforce rolling update behavior
test/harnesscontract/chart.go:147
The checker ignores strategy.type, so a render can switch a DaemonSet to OnDelete (or a Deployment to Recreate) and still pass whenever the old rollingUpdate fields remain. That breaks the rolling behavior this contract is intended to hold. Parse and validate the strategy type as well, treating an omitted type as the Kubernetes default where appropriate.
Build chartcheck with the execution platform configuration
test/harnesscontract/defs.bzl:101
chartcheck is executed during the test, so building it in the target configuration produces a target-platform binary rather than an execution-platform tool. Cross-platform test configurations can then fail with an exec-format error. Executable tool attributes should use the exec configuration.
…ld to the rendered charts
Three review findings on the external-harness contract.
The unpinned counter's description said every reason is a cluster published
without a pin. Under trust_domain_unknown and tls_not_published the node
publishes no TLS cluster for the entry; only no_namespace_metadata is TLS
published without a pin. The notes now state both, as reason_classes and the
producer (cachemetrics.UnpinnedCause) already did.
resource.node was review-only while the chart entries hard-coded
`k8s.node.name=` beside it, so the attribute could be edited alone. A chart
container now refers to the entry by id (`resource_attributes`) and the chart
test reads the key from the entry and looks for it among the keys
OTEL_RESOURCE_ATTRIBUTES sets. The contract does not load unless the
containers that refer to an entry are exactly its components.
mesh.default_domain was compared with the Go default only. A container's
`args` now maps a flag to a `names` entry, and the aether chart's default
render must run the agent and the mesh-DNS daemon with
`--mesh-domain=<that value>`, so the chart default cannot move alone.
Both ties are listed in the chart tests' `ids`, so removing one from the
contract fails until the BUILD file changes with it.
No version bump: the wording fix and the stricter checks change no promise.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
…mp fails a test, checked_by lists every test that holds an entry, and the names a chart passes are held to its render (#1541, #1547, #1548) (#1566)
* test(contract): a promise that leaves or changes without a version bump fails a test, checked_by lists every test that holds an entry, and the names a chart passes are held to its render (#1541, #1547, #1548)
Three follow-ups to the external-harness contract (#1535). The contract's
version stays 1: checks are added, no promise changes.
#1541. external-harness.lock.yaml holds one line per promise of the current
version: "<entry id> <key> [<member>]" and a digest. TestVersionBump compares
it with the contract. A line that is gone or whose digest differs fails and
asks for the bump, without printing a digest; with the version bumped by one
the test prints the whole new lock; a promise the contract gains needs a line
and no bump, and the test prints the line. Prose (notes, comments), checked_by
and the order of a list are not promises. A key added to an entry type later
is a promise by default.
#1547. checked_by is one label or a list. Every test it names lists the entry
among the ids it holds: Contract.Owns for a Go test, `ids` for a chart test,
which is now told its own label. The contract does not load unless an entry a
render refers to names that render's chart test, and an entry that names a
chart test is referred to by one of its renders.
#1548. Audit of the entries compared with a Go constant only. Tied to the
render: the CSIDriver object's name (name_from: csi.driver), the prober
chart's default --mesh-domain and --egress (the outbound port, through a
pattern), and the prober's service.name, which the OpenTelemetry SDK lets the
environment override: the rendered container must be given neither
service.name in OTEL_RESOURCE_ATTRIBUTES nor OTEL_SERVICE_NAME. No chart file
changes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): the lock is compared with the pull request's base, and the webhook selectors, the plugin directory and an unreadable environment are held too
Review round 1.
- scripts/check-harness-contract-bump.sh compares the lock with the one at
the pull request's base (a step of the chart-version-bump job): a promise
removed together with its lock line, or changed with its digest recomputed,
passes the hermetic test and fails here unless the version is higher than
at the base. Hermetic test with a fake `git show`; it also holds ci.yaml to
running the script with the base sha.
- pod.label.managed is held to the label the controller's two pod webhooks
select by in the aether chart's render. The configuration has no name in
the contract: it is the render's one object of its kind.
- csi.driver is held to the kubelet plugin directory the uds-csi DaemonSet
mounts from the host as well as to the CSIDriver object's name.
- A container whose code sets a resource attribute fails closed when its
environment cannot be read: OTEL_RESOURCE_ATTRIBUTES from valueFrom, or
any envFrom.
- README: which changes the hermetic test cannot see, said exactly.
No chart file changes; the contract's version stays 1.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): a webhook is held to the label's value as well as its key, and the base comparison refuses a bump by more than one
Review round 2.
- A webhook selector on the mesh label with a value other than "true"
matches nothing the mesh manages: the check compares key and value.
- With the contract and the lock moved together, only the base can tell a
bump by two from a bump by one: check-harness-contract-bump.sh refuses it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): a webhook is held to the selector it selects with, not to either
Review round 3. The namespace selector and the object selector of a webhook
are not interchangeable: one selects the namespaces whose pods the webhook
sees, the other the pods. `webhooks` now says which of the two selects by the
entry, and the check reads that one.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): a webhook's selector is exactly the one label, and the plugin directory is held to its mount as well as its host path
Review round 4.
- Kubernetes requires everything a selector lists. A second matchLabels pair
or any matchExpressions beside the mesh label narrows what a fail-open
webhook sees, down to nothing: the selector the contract names must be the
one pair and nothing else.
- The uds-csi plugin writes its socket under the directory named after the
driver, in its own filesystem. The hostPath volume that ends with that
directory must be mounted by a container (not an init container) at a path
that ends the same way.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* fix(ci): the base comparison of the contract's lock fails when the base cannot be read
Review round 5. `git show` failing for any reason read as "the base has no
lock" and passed, so a base the checkout lacks (a shallow clone) switched the
check off. The base must be a commit that is here; only a base that is here
and has no lock at that path has nothing to compare; a lock that is there and
cannot be read fails. README: one sentence completed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* wip: round 6
* test(contract): the plugin directory is mounted by a listed container, a webhook's other selector is empty, and the service.name rule says what #1562 left true
Review round 6, and main merged in.
- A sidecar that mounts the plugin directory does not put the plugin's socket
in it: only the containers the contract lists for the object count.
- A webhook's two selectors are required together: the one the contract does
not name must be empty.
- Since #1562 a service.name in OTEL_RESOURCE_ATTRIBUTES no longer renames the
prober; OTEL_SERVICE_NAME still does. Both stay refused in the render; the
comments, the README and the failure message say which one matters.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* docs(contract): a change of meaning made only in notes and behaviour is a bump the lock cannot see, and the README says so
The rule table listed `notes` as free to edit. Rewording is; changing what an
entry means there (what a gauge counts, when a series is absent) is a version
bump that neither check asks for.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): every promise has a name of its own in the lock, and the base comparison reads names with a quote in them
Review round 7.
- A promise's name is words joined by spaces, so an id of several words could
collide with another entry's key: an id is one word, without spaces, quotes
or backslashes. And a contract that says the same thing twice (a field, a
component, a container or a host path listed twice) does not load: two
promises under one name are one line of the lock.
- The lock writes names with Go's %q; the script's pattern for a promise line
now accepts the escapes, so such a line takes part in the comparison.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): the plugin directory is held whole, under the kubelet root the plugin is run with
Review round 9. A host path held by its end passes with the volume and the
mount under any root, and the kubelet reads only its own. A pattern that
starts with `<arg:FLAG>` is the whole path under the value a listed container
is run with for that flag: the pod has a hostPath volume of exactly that path
and that container mounts it at exactly that path. The uds-csi object uses
`<arg:--kubelet-root>/plugins/<csi.driver>`.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): a flag the contract holds may not be given twice
Review round 10. A Go program runs with the last of a repeated flag, so the
right value followed by another passed: the first was read. Every flag the
contract holds (a container's `args`, the root of a host path) fails when the
render gives it more than once, whatever the values.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): a tie to another entry cannot be replaced by a literal unnoticed
Review round 11. `name_from: csi.driver` written out as `name: csi.aether.io`
is the same promise to a harness, so the lock did not move, and the entry was
still referred to by the plugin's host path, so the holder checks passed. The
next rename of the driver would then have reached the plugin's directory and
left the CSIDriver object behind.
Contract.Ties lists every reference under `charts` to another entry
(name_from, args, resource_attributes, code_resource_attributes, host_paths,
webhooks with the selector each is held by), and TestTies holds the
checked-in contract to that list in both directions. A tie is not in the lock:
adding or removing one needs no version bump, only the line in the list.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): the lock is held to the form the test prints, which is the form the base comparison reads
Review round 12. The base comparison reads the lock one line at a time; the
hermetic test parsed it as YAML. The same promises as an inline map, or
indented otherwise, passed the test and would have read at a later pull
request's base as no promise at all. TestVersionBump now also requires the
file to be byte for byte the one Contract.Lock writes, and prints it when it
is not.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* test(contract): a promise made through a tie is named in the lock by what the tie comes to, not by the entry it names
Review round 13. The lock line of a host path was named by its pattern, and
those of a container's resource attributes by the id of the entry: moving the
tie to another entry that says the same removed a line and asked for a
version bump, though nothing a harness reads had changed and TestTies already
holds which entry a tie names. A host path is now named by the path it comes
to and an attribute by its key, as names, arguments and webhook labels
already were. The same tie coming to something else is still a bump. The
lock is regenerated: four lines renamed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
* Merge origin/main: the lock gains the entry main added, and the README says who holds the charts' own mesh names
main added `agent.xds_acked_tls_clusters_unknown` to the contract. A new
entry needs no version bump and a line in the lock per promise: TestVersionBump
failed on the merge and printed the four lines, which are added. That failure
was also the first on a pull request's merge ref: `test` went red on the
previous head for exactly this reason.
main also holds the prober and udsecho charts' mesh names to the Go constants
(helm_mesh_names_test, #1595), so the README no longer lists them as
compared with nothing.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
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.
Why
A harness that rolls the mesh's workloads, reads its metrics and logs and grades a run depends on names this repository chooses. While the harness lives here, a rename and the grader that reads the name change in one pull request (#1484 and #1494 are examples). A harness outside this repository has no such guarantee: the first sign of a rename would be a query that returns nothing, which often reads exactly like a healthy zero.
This pull request writes those names down and makes
bazel testfail when the code stops honouring them. It changes no production code and nothing undere2e/soak/orcharts/.What is added
test/harnesscontract/external-harness.yaml: the contract, with aversion. It listsaether.agent.snapshot.tls_clusters,aether.agent.xds.acked_tls_clustersandaether.agent.identity.cluster_unpinned(names as registered and as stored after the OTLP translation, labels, the closedpinandreasonsets);aether_probe_requests_total(labels, the closedtierandresultsets) and itsservice.name;AETHER_PROBE_FAILlines (marker, exact field lists, time fields, the cap and window, what a stopping prober writes);k8s.node.nameinOTEL_RESOURCE_ATTRIBUTES;AETHER_FAIL,AETHER_METRIC,AETHER_NEWSA, theaether_fail*counters).test/harnesscontract(Go, test-only): the strict loader and the comparison helpers. Every failure message names the contract file and the rule.A check in each owning package, comparing an entry with what the code really emits:
//agent/internal/xds/cache/cachemetrics:cachemetrics_testservice.nametier*/result*constant ofprober.go(read from the source) recorded through the realrecord(); the real resource//prober/internal/prober:prober_test//prober/internal/prober:prober_test//agent/internal/xds/proxy:proxy_test//test/harnesscontract:harnesscontract_test,//agent/internal/xds/xdsconst:xdsconst_testhelm templateof the packaged chart, with the release name, namespace and--setpairs the entry gives//test/harnesscontract:{aether,prober,udsecho}_chart_testbazel test //test/harnesscontract:checksruns them all.helm_contract_test(test/harnesscontract/defs.bzl): runs the toolchain's helm against the packaged chart and hands the render to a Go checker that reads both the render options and the expectations from the contract, so the BUILD file holds no second list. The checker never prints a render, and the loader refuses anaetherrender withoutcontroller.webhook.spire=true(no generated key). These tests live outsidecharts/on purpose:scripts/check-chart-version-bump.shcounts any change undercharts/<chart>/, a BUILD file included, and adding a contract entry is not a chart change. No chart version is bumped.Docs:
test/harnesscontract/README.md(the rule, how each kind of entry is tied, what is review-only, adding and removing an entry), a section indocs/runbook.md, and a bullet inAGENTS.md§ Rules for agents.The rule
Change the code and the contract together, in one pull request, and say so in its description. Removing an entry or changing what it means bumps
version(a value ADDED to a closed set counts: a grader that knows fourreasonvalues can only fail on a fifth); adding an entry does not. A harness pins the version it was written against.The bump is a review rule. A hermetic test cannot compare the file with its previous revision. What is enforced: closed sets are compared in both directions, and each owning test declares the entry ids it holds, so removing an entry while the code still emits the thing fails until the check is removed in the same change.
Review-only (not tied to code)
node/joblabels made from resource attributes, and the stored name of an Envoy stat. Only what the product sets is checked.reason(no TLS published vs. TLS published without a server-identity check): the code states it in comments only. A test checks the partition covers the closed set exactly once.versionbump.Measured
Every check was seen red by making the change in a scratch edit, running the test, and restoring the file. 59 mutations, 59 red, each naming the contract file:
pinkey renamed; the valueunpinnedrenamed; the reasontls_not_publishedrenamed; the counter turned into an up/down counter.tierkey renamed;timeoutrenamed; a result constant added; a tier constant added; a label added;service.namechanged.window_start,suppressed,elapsed_msrenamed;trace_iddropped; a field added to the summary; cap 20 to 10; window 60 s to 30 s; a stopping prober stamping the summary one window late (the prober: the shutdown flush stamps a suppressed-failures summary with a time in the future #1463 regression); a time written in another format.config.aether.io/upstreams;aether.io/managed;aether.io/mesh-service; ports 18081 and 18082; the default mesh domain;endpoint.aether.io/ports;.../uds-socket;capture.aether.io/exclude-outbound-ports; the CSI driver.agent.updateStrategy.surgerendering no surge; the edge's default namespace; the uds-csi component label; the CSIDriver object;k8s.node.namedropped from the agent and from the prober; the prober container renamed; a udsecho Deployment and anapplabel renamed.checked_bynaming a test outside the suite; astored_namethat is not the translation.After the first review round (6 more, all red): the surge render deleted while the default aether render stays; one object deleted from a render; the udsecho entry without its
namespacevalue; a udsecho template that ignores the value; the pinned gauge series losingpin; a pinned series gaining areason. A chart test now lists the ids of the renders and objects it holds, a metric label is checked on each series (a conditional one is markedwhen), and the udsecho objects assert their namespace.One mutation first passed: changing the helper's fallback for the edge namespace does nothing, because
values.yamlsetsedge.namespace. Made invalues.yamlinstead, it fails as expected (counted above).Also run:
bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...,//:format.check,make gazelle(no diff), the race detector on the sixgo_testtargets touched,//charts/...and//bazel/helm/..., andscripts/check-chart-version-bump.sh origin/main(passes: nothing undercharts/changed).Not verified locally
make go-build-plain(the plaingo build/go vetCodeQL runs). The new package usesgo:embedon a file in its own directory and an already-required module, so it should build; CI decides.This pull request was written by an agent.
🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr