Skip to content

docs: correct stale facts found by the 2026-09-15 review (#772) - #773

Merged
bpalermo merged 4 commits into
mainfrom
docs/772-e1-wrong-facts
Sep 15, 2026
Merged

bpalermo merged 4 commits into
mainfrom
docs/772-e1-wrong-facts

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Phase E1 of #772 (wrong facts only; E2 'document what shipped' is separate).

docs: correct stale facts found by the 2026-09-15 review (#772)

Phase E1 of #772: correct every statement the stale-docs review found to be
factually wrong. Comment- and doc-only; no behaviour change, no Go code touched
outside doc comments.

Go package / declaration doc comments:

  • agent/internal/meshdns/server.go:1-6 — "the node agent's in-process resolver
    ... answers . ... and forwards everything else to the upstream
    resolver (kube-dns)" → the name shape is .. (proposal 020;
    the same file answers the flat form NODATA at :726), and upstream forwarding
    belongs to the standalone agent/cmd/mesh-dns daemon (Mesh DNS: decouple the resolver into a surge-capable daemon to make agent rolls hitless #578/mesh-dns: build a dedicated slim binary for the daemon instead of reusing the full /agent #583), not the agent.
  • agent/internal/gamma/reconciler.go:1-5 — "watches HTTPRoutes ... projects into
    the outbound routing" → also GRPCRoute, ReferenceGrant and HTTPFilter, and the
    projection feeds the capture (cap_http) path as well as outbound.
  • common/constants/annotations/annotations.go:23 — "REQUIRES the agent
    --capture-redirect-all flag" → that flag was retired by proposal 031; the
    passthrough chain is always rendered and redirect-all is the managed-pod
    default. (The old text made a working feature read as unusable.)
  • controller/internal/podmutate/mutator.go:14 — "ndots is opt-in (default off)"
    → the chart ships it ON (controller.injectPodNdots: true). Also :2 "does two
    things" → three (it lists three bullets).
  • agent/internal/xds/cache/cache.go:268 — "Empty unless --l4-routes is enabled"
    → gated on the TCPRoute CRD being installed (flag retired by 031).
  • agent/internal/xds/proxy/l4route.go:173 — "when --l4-routes is enabled" → the
    CNI UDP redirect is unconditional; the listener exists only when UDPRoute
    backends do.
  • registry/internal/k8s/kubernetes.go:103 — "HTTP/h2 over :15008" → :18008
    (proposal 030); :108 — "true for etcd/ddb" → "true for etcd" (the DynamoDB
    backend was removed in Drop the DynamoDB registry backend (stack follow-up to #747–#758) #760).
  • registry/registry.go:3 — "(e.g., etcd)" → names the three real backends
    (Kubernetes, etcd, registrar).

Proposal status lines:

CLAUDE.md / AGENTS.md:

  • CLAUDE.md:11 — "Go 1.26.x" → Go 1.27.x (MODULE.bazel:43 go_sdk.download =
    1.27.1; README.md and AGENTS.md already said 1.27.1). Same line now records
    nogo, which runs as a build-time validation action on every Go target.
  • CLAUDE.md:38 — notes that make deps-audit is also the required deps-audit
    CI job.
  • CLAUDE.md:61 — "### Binaries (under cmd/)" → there is no top-level cmd/;
    states the real layout (agent/cmd, cni/cmd, registrar/cmd, controller/cmd,
    prober/cmd).
  • AGENTS.md:26 — mirrors the nogo note.
  • AGENTS.md:81 — "SPIRE integration enabled by default" → true for agent and
    registrar; the controller's --spire-enabled defaults to false.

Other docs:

charts/README.md sits outside any charts// directory, so no Chart.yaml bump
is required (and none of the chart directories are touched).

Not done here (Phase E2, "document what shipped"): the prober CLI section,
--lame-duck-max, --spire-wait-warn-after, the edge.config.* value table, and the
CLAUDE.md/AGENTS.md package/binary additions. Proposal 032's v1.6.1-vs-v1.6.2
mention is left alone: the proposal is historical and the report marked it skip.

Verification: bazel build //... //test/e2e:e2e_test; bazel test //...
--test_output=errors (98 pass); bazel run //:format.check; bazel build
--config=lint --@aspect_rules_lint//lint:fail_on_violation //...; bazel run
//:gazelle (no churn); bazel test //website:all (site_test PASSED — docs feed the
site); scripts/go-deps-audit.sh exit 0.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

bpalermo and others added 4 commits September 15, 2026 19:08
Phase E1 of #772: correct every statement the stale-docs review found to be
factually wrong. Comment- and doc-only; no behaviour change, no Go code touched
outside doc comments.

Go package / declaration doc comments:

- agent/internal/meshdns/server.go:1-6 — "the node agent's in-process resolver
  ... answers <svc>.<meshDomain> ... and forwards everything else to the upstream
  resolver (kube-dns)" → the name shape is <svc>.<ns>.<meshDomain> (proposal 020;
  the same file answers the flat form NODATA at :726), and upstream forwarding
  belongs to the standalone agent/cmd/mesh-dns daemon (#578/#583), not the agent.
- agent/internal/gamma/reconciler.go:1-5 — "watches HTTPRoutes ... projects into
  the outbound routing" → also GRPCRoute, ReferenceGrant and HTTPFilter, and the
  projection feeds the capture (cap_http) path as well as outbound.
- common/constants/annotations/annotations.go:23 — "REQUIRES the agent
  --capture-redirect-all flag" → that flag was retired by proposal 031; the
  passthrough chain is always rendered and redirect-all is the managed-pod
  default. (The old text made a working feature read as unusable.)
- controller/internal/podmutate/mutator.go:14 — "ndots is opt-in (default off)"
  → the chart ships it ON (controller.injectPodNdots: true). Also :2 "does two
  things" → three (it lists three bullets).
- agent/internal/xds/cache/cache.go:268 — "Empty unless --l4-routes is enabled"
  → gated on the TCPRoute CRD being installed (flag retired by 031).
- agent/internal/xds/proxy/l4route.go:173 — "when --l4-routes is enabled" → the
  CNI UDP redirect is unconditional; the listener exists only when UDPRoute
  backends do.
- registry/internal/k8s/kubernetes.go:103 — "HTTP/h2 over :15008" → :18008
  (proposal 030); :108 — "true for etcd/ddb" → "true for etcd" (the DynamoDB
  backend was removed in #760).
- registry/registry.go:3 — "(e.g., etcd)" → names the three real backends
  (Kubernetes, etcd, registrar).

Proposal status lines:

- docs/proposals/035_vanity-import-path.md:3 — "Accepted ... the module rename is
  the follow-up PR and is gated on the meta being live" → Implemented; go.mod is
  already `module aethermesh.dev` (#631-#633) and every import uses it.
- docs/proposals/021_per-gateway-addressing.md:3 — "is the default
  (edge.perGatewayAddressing=true)" → unconditional; that chart value was deleted
  by proposal 031, so an operator --setting it gets a no-op.

CLAUDE.md / AGENTS.md:

- CLAUDE.md:11 — "Go 1.26.x" → Go 1.27.x (MODULE.bazel:43 go_sdk.download =
  1.27.1; README.md and AGENTS.md already said 1.27.1). Same line now records
  nogo, which runs as a build-time validation action on every Go target.
- CLAUDE.md:38 — notes that `make deps-audit` is also the required `deps-audit`
  CI job.
- CLAUDE.md:61 — "### Binaries (under `cmd/`)" → there is no top-level cmd/;
  states the real layout (agent/cmd, cni/cmd, registrar/cmd, controller/cmd,
  prober/cmd).
- AGENTS.md:26 — mirrors the nogo note.
- AGENTS.md:81 — "SPIRE integration enabled by default" → true for agent and
  registrar; the controller's --spire-enabled defaults to false.

Other docs:

- charts/README.md:26 — the proxy image is digest-pinned too (tag + digest, and
  the aether.image helper prefers the digest).
- charts/README.md:46 — prober chart 0.2.0 → 0.3.0, and the hard-coded aether
  chart version (0.92.4, now 0.92.18) replaced by a `<version>` placeholder plus
  a pointer to Chart.yaml / the publish workflow output.
- charts/README.md:88-91 — the copy-pasteable `helm install --version
  0.92.4-<git-commit>` (14 chart versions stale) replaced with
  `<aether-version>`/`<crds-version>` placeholders and an explicit "do not copy a
  version out of this file". Chose placeholders over a fresh literal so the one
  file whose job is "how to install" cannot go stale again.
- charts/README.md:116-124 — image table was missing the prober and proxy images.
- docs/observability/README.md:12-20 — the mesh-DNS alert table listed 7 of the 8
  alerts in mesh-dns-alerts.yml; added MeshDNSForwardConnsRecyclingOnError (#674).
- proxy/README.md:55 — proxy.yml is the PR check; the release path is
  proxy-release.yml (multi-arch push + automated chart pin PR, #703/#727), which
  the file never mentioned.
- docs/conformance/gateway-api-features.md:11 — "e2e-validated on talos (aether
  0.41.0)" read as never-revalidated; now says first validated at 0.41.0, carried
  since (0.92.x), with the e2e.yaml conformance jobs as the standing gate.
- docs/runbook.md:528-529 — `spire.NotReadyDwell` / `spire.ServiceNotReadyDwell`
  are Go constants, not values.yaml paths; the notation said otherwise.

charts/README.md sits outside any charts/<name>/ directory, so no Chart.yaml bump
is required (and none of the chart directories are touched).

Not done here (Phase E2, "document what shipped"): the prober CLI section,
--lame-duck-max, --spire-wait-warn-after, the edge.config.* value table, and the
CLAUDE.md/AGENTS.md package/binary additions. Proposal 032's v1.6.1-vs-v1.6.2
mention is left alone: the proposal is historical and the report marked it skip.

Verification: bazel build //... //test/e2e:e2e_test; bazel test //...
--test_output=errors (98 pass); bazel run //:format.check; bazel build
--config=lint --@aspect_rules_lint//lint:fail_on_violation //...; bazel run
//:gazelle (no churn); bazel test //website:all (site_test PASSED — docs feed the
site); scripts/go-deps-audit.sh exit 0.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit e985de2 into main Sep 15, 2026
20 checks passed
@bpalermo
bpalermo deleted the docs/772-e1-wrong-facts branch September 15, 2026 23:35
bpalermo added a commit that referenced this pull request Sep 16, 2026
…review (#772) (#787)

Phase E2 of the review: the docs were not wrong here, they were silent. Each
addition below is sourced from the code or chart it describes.

docs/configuration.md
- New § 3 `prober` section (proposal 013, `charts/prober`): the binary's whole
  flag set with defaults from `prober/internal/prober/prober.go`
  DefaultConfig + `prober/internal/cmd/root.go`; the two metrics it exports
  (`aether_probe_requests_total`, `aether_probe_request_duration_seconds`),
  their tier/target/result attributes and the full `result` value set; why
  per-node identity is an OTel *resource* attribute rather than a metric label;
  and the chart's deployment shape (DaemonSet into a mesh-managed namespace,
  derived `config.aether.io/upstreams`, deliberately no CPU limit, #735).
  The prober takes none of the shared manager flags, which the section says.
- `--lame-duck-max` (`10s`, #729) added to the `mesh-dns` flag list, with the
  successor-observation semantics and the derived
  terminationGracePeriodSeconds.
- `--spire-wait-warn-after` (`2m`, #740) added to the agent identity flag list,
  with a paragraph saying it is a logging threshold everywhere except the node
  agent, where it doubles as the readiness dwell.
- Chart values that shipped undocumented: `spire.waitWarnAfter`,
  `agent.meshDnsDaemon.{forwardPoolSize,lameDuckMax,debug}`, and a new
  `edge.config` table covering all 11 keys of the proposal-029 fleet-default
  EdgeConfig (`name`, `useRemoteAddress`, `headersWithUnderscoresAction`,
  `streamIdleTimeout`, `requestTimeout`, `idleTimeout`,
  `perConnectionBufferLimitBytes`, `http2.*` ×3, `http3.enabled`), sourced from
  values.yaml, `edge-defaultconfig.yaml` and `api/aether/config/v1/edge_config.proto`.
  The rest of the review's "28 undocumented keys" turned out to be false
  positives of its dotted-path matcher: `edge.httpsPort`,
  `edge.geoip.database.fileName`, `edge.gateway.tlsSecretNamespace`,
  `edge.admin.*`, `edge.service.*`, `edge.overload.*`,
  `edge.spire.clusterSpiffeID.*`, `registrar.service.*` and
  `proxy.hotRestart.adminUnresponsiveDeadline` are all already documented in
  combined table rows.

CLAUDE.md / AGENTS.md
- Binaries that existed but were listed nowhere: `agent/cmd/proxy-ready` (#673),
  `agent/cmd/mesh-dns-ready` (#683), `prober/cmd/prober` (proposal 013).
- Packages that existed but were described nowhere: `common/spire` (the #740
  identity-wait/readiness model), `agent/internal/identity`,
  `agent/internal/node` + `controller/internal/nodetaint` (proposal 033 taint
  lifecycle, split across its two writers), `agent/internal/cniconflist` (#645),
  `registrar/internal/replicator` (proposal 006 Phase 2).
- The race detector next to the build/test commands, and the
  `scripts/go-deps-audit.sh` "reclassify, don't drop" rule next to
  `make deps-audit`. nogo and the `deps-audit` CI job were added by #773 and are
  not duplicated here.

docs/runbook.md
- New "The race gate" subsection under § 3 Test: the `--config=race` spelling
  from .bazelrc, the scoped and `--runs_per_test=3 --nocache_test_results`
  forms, why a bare `//...` run currently reports failures that are not yours
  (#772 phase A2), and why a clean run is not evidence of absence.
- Cross-reference from the standalone-charts paragraph to the new prober
  section. The § "Go dependency hygiene" cross-reference from #769 was verified
  present and left alone.

No race CI job is claimed: `.bazelrc` ships `--config=race` and the Makefile
ships `make test-race`, but ci.yaml has no `race` job on main (it arrives with
#776), so the docs describe only the commands that exist today.

Verification: `bazel run //:format.check`, `bazel test //website:all` (the docs
feed the site; its link/nav check passes), `bazel build //... //test/e2e:e2e_test`.


Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Co-authored-by: Claude Fable 5.1 <[email protected]>
bpalermo added a commit that referenced this pull request Sep 16, 2026
… tests, no sleeps in sync_test; stop proxy/*.md edits triggering Envoy releases (#772) (#788)

* test: delete the two duplicate :server_integration_test targets (#772, C1)

`//agent/internal/cni/server:server_integration_test` and
`//agent/internal/xds/server:server_integration_test` added no assertions.
Each declared a strict *subset* of the srcs of the sibling `:server_test` in
the same package, and `:server_test` already lists `server_integration_test.go`
itself — so every `TestIntegration_*` executed twice on a full
`bazel test //...`. Re-proved on this tree with
`comm -23 <(bazel query 'labels(srcs, <pkg>:server_integration_test)') <(bazel query 'labels(srcs, <pkg>:server_test)')`,
empty for both packages:

  cni/server  :server_integration_test = {pod_test.go, server_integration_test.go}
              :server_test             = those + ghostsweep_lock_test.go,
                                         ghostsweep_test.go, identity_test.go,
                                         lifecycle_race_test.go, liveness_test.go,
                                         metrics_test.go, resubscribe_test.go,
                                         termination_test.go
  xds/server  :server_integration_test = {server_integration_test.go, server_test.go}
              :server_test             = those + identity_hold_test.go,
                                         initial_snapshot_test.go, odcds_test.go,
                                         refresh_identity_test.go, refresh_test.go

No Go test file and no test function is removed: after the deletion
`--test_filter=TestIntegration_` still runs 9 cases in cni/server and 4 in
xds/server, from the surviving `:server_test` targets.

The `integration` tag was the expensive part. `scripts/ci-impacted-targets.sh:41`
selects the CI `integration` leg purely by
`attr(tags, "integration", tests(//...))`, so any change touching either package
scheduled a whole extra GitHub runner (checkout + setup-bazel + artifact
download) to re-run tests the `test` leg had just run. Nothing in
`.github/workflows/` or `bazel/` selects these targets by name, and the
`integration` job is already conditional on `has_integration == 'true'`, so no
workflow change is needed — the job simply stops being scheduled for
agent-only changes. After the deletion the tag selects only the two genuine
testcontainers targets:

  $ bazel query 'attr(tags, integration, tests(//...))'
  //registrar/internal/replicator:replicator_test
  //registry/internal/etcd:etcd_test

(which also retires the false `no-remote-exec` justification comment on the
deleted targets — neither imported testcontainers, and `.bazelrc:71` already
pins every test action to the runner.)

Verification: `bazel query` output above; both `:server_test` targets pass with
`--test_filter=TestIntegration_`; `bazel run //:gazelle` produces no churn.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

* test(etcd): make -test.short actually Docker-free (#772, C1)

`registry/internal/etcd/etcd_test.go` guards all 17 container-backed tests with
`testing.Short()`, but `TestMain` started, waited on, and terminated the etcd
container before `m.Run()` regardless — so `--test_arg=-test.short` skipped
every test and still required a working Docker daemon and still paid the
pull/start/readiness cost.

Parse the test flags and check `testing.Short()` before touching testcontainers,
exactly as `registrar/internal/replicator/replicator_test.go:29` already does.
`flag.Parse()` is required: `testing.Short()` reads a flag value that is not
populated until the test flags are parsed, and in `TestMain` that has not
happened yet.

The short path still runs the suite rather than exiting, because
`TestEtcdRegistry_CloseWithoutStart` deliberately has no short guard — it closes
a registry that was never started and needs no endpoint. #776's
`TestEtcdRegistry_CloseRacesWatchLoop` does carry the guard and is unaffected.

No production code and no test case changed.

Verification:
  # short: Docker untouched
  $ docker ps -aq | wc -l                       -> 2  (before)
  $ bazel test //registry/internal/etcd:etcd_test --nocache_test_results \
      --test_arg=-test.short --test_arg=-test.v
    PASSED in 0.1s      (was ~4.6s)
  $ docker ps -aq | wc -l                       -> 2  (after, no etcd container ever created)
    17 SKIP + 1 PASS (TestEtcdRegistry_CloseWithoutStart)

  # full: unchanged, 18/18 pass incl. #776's test
  $ bazel test //registry/internal/etcd:etcd_test --nocache_test_results --test_arg=-test.v
    PASSED in 4.4s, --- PASS: TestEtcdRegistry_CloseRacesWatchLoop

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

* test(proxy): delete the misnamed TestSortRoutesBySpecificity_HeaderCountRanksHigher (#772, C1)

This is the one sanctioned test deletion in C1 (the tests report's move #10).

`agent/internal/xds/proxy/edge_test.go:859` was named for
`sortRoutesBySpecificity`, but it never called it — it cannot: that function is
unexported and lives in a different package
(`agent/internal/xds/cache/edge.go:90`). What the body actually did was build
two routes with `BuildEdgeRoute` and assert that one ended up with two
`HeaderMatcher` entries and the other with one, then comment "the route with 2
headers must sort before the route with 1" without asserting any ordering. So
it tested header copying under a name that promised specificity ordering — the
worst failure mode for a test, because the name is what a reader trusts when
deciding whether a behaviour is covered.

Both halves are already covered, properly, elsewhere:

  - header copying: `TestBuildEdgeRoute_HeaderMatch`
    (`agent/internal/xds/proxy/edge_test.go:730`) asserts the exact and regex
    `HeaderMatcher` shapes this one only counted.
  - specificity ordering: `agent/internal/xds/cache/edge_test.go` calls the real
    `sortRoutesBySpecificity` directly at :1030, :1051, :1157, :1171, :1185 and
    :1213 and asserts the resulting order.

Deleting it rather than renaming it, because a rename would leave a third
BuildEdgeRoute header-count assertion with nothing to say that
`TestBuildEdgeRoute_HeaderMatch` does not already say more precisely.

Verification: `bazel test //agent/internal/xds/proxy:proxy_test
//agent/internal/xds/cache:cache_test` both pass.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

* test(registrar): synchronise sync_test on conditions, not on time.Sleep (#772, C1)

`registrar/internal/server/sync_test.go` was the one package in the tree that
consistently slept instead of waiting: 10 `time.Sleep` calls (30–200 ms) used as
synchronisation, ~930 ms of hard-coded wall time and the target's only flake
surface. A sleep that is long enough today is a flake on a loaded CI runner and
dead time on every other run.

Each one is replaced by the narrowest observable condition:

  - Waiting for the initial sync now uses `Syncer.Synced()`, the channel the
    production code already closes after the first successful cycle
    (`sync.go:184`) — exact, not approximate. `requireSynced` wraps it with a
    5 s deadline. Used by InitialSync, VersionAdvancesOnSync,
    EmptyRegistryPopulatesEmptySnapshot, MultipleEndpointsAcrossServices,
    NoEventsAfterInitialSync, RegistryErrorOnSubsequentSyncDoesNotCrash and
    StopsOnContextCancellation.
  - BroadcastsChangesOnSubsequentSync waits for the event to reach the watcher
    (`len(eventCh) > 0`) rather than for two poll intervals to elapse.
  - RegistryErrorDoesNotCrash has no observable effect to wait on — a failing
    cycle closes neither `Synced()` nor the snapshot — so `mockRegistry` gains
    an atomic `listCalls` counter and the test waits for the call itself.
  - RegistryErrorOnSubsequentSyncDoesNotCrash's cycle counter `httpCalls` became
    an `atomic.Int64` so the test goroutine can read it; the test waits for two
    failing periodic cycles instead of 200 ms.
  - NoEventsAfterInitialSync waits for `2*len(syncedProtocols)` further list
    calls, i.e. two real cycles, derived from the production protocol list
    instead of hard-coded.

The two remaining `time.After` calls are assertion deadlines (Start must return
within 500 ms of cancellation), not synchronisation, and stay. The poll
intervals of the two change-detecting tests drop 60 ms → 20 ms now that nothing
depends on a sleep lining up with them.

No production code changed and no test case was removed or renamed.

Verification:
  $ bazel test //registrar/internal/server:server_test --runs_per_test=10 --config=race
    PASSED in 2.8s, Stats over 10 runs: max = 2.8s, min = 2.8s, dev = 0.0s
  $ grep -c time.Sleep registrar/internal/server/sync_test.go   -> 0
  TestSyncer subset, uncached: 1.2s -> 0.4s

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

* ci: stop a proxy docs edit from rebuilding Envoy (#772, C1)

PR #773 changed one line of `proxy/README.md`. `proxy-release.yml`'s push
trigger filters on `paths: ["proxy/**"]`, so the merge compiled Envoy on both
RBE pools, pushed a new multi-arch image and opened chart-pin PR #786 — for a
comment. `proxy.yml` had the same hole at PR time: its `changes` job's
dorny/paths-filter pattern is also `proxy/**`, so a README-only PR ran the
heavy compile on both arches before anyone could review it.

Exclude Markdown under proxy/ from both.

proxy-release.yml (GitHub-native `paths`): GitHub rejects `paths` and
`paths-ignore` on the same event, so the exclusion has to be a negated pattern
inside `paths`. GitHub evaluates the list in order and a later negative wins,
so `"!proxy/**/*.md"` must follow `"proxy/**"`; the trailing workflow-self
entry is unaffected because the negation does not match it. `proxy/**/*.md`
covers `proxy/README.md` as well as nested files — in GitHub's filter patterns
`**/` matches zero directories (their own cheat sheet lists `docs/README.md`
under `docs/**/*.md`).

proxy.yml (dorny/paths-filter@v4): the same `!` spelling would NOT work under
the action's default quantifier. It ORs the compiled patterns, and picomatch
compiles a leading `!` into "matches everything the positive pattern does not",
so `'!proxy/**/*.md'` would match `.github/**`, `agent/**`, … and the filter
would be permanently true. v4 ships `predicate-quantifier: 'some-with-excludes'`
for exactly this: a file matches when at least one positive pattern matches it
and no negated pattern does. Set it, then add the same `'!proxy/**/*.md'`.
Verified against the action's own matching logic (filter.ts `isInclude` /
`isExclude`, the latter being `excludes.some(m => !m(path))`) with picomatch:

  proxy/README.md                 -> false      proxy/BUILD.bazel      -> true
  proxy/docs/a.md                 -> false      proxy/MODULE.bazel     -> true
  agent/main.go                   -> false      .github/workflows/proxy.yml -> true

Exclusion is per changed file, so a PR touching both `proxy/README.md` and a
real proxy source file still builds. The `proxy` gate job is `if: always()`
(proxy.yml:120), so a docs-only proxy PR still reports the required check —
same path a control-plane-only PR already takes.

Verification: both files parse under `python3 -c 'import yaml,sys;
yaml.safe_load(open(sys.argv[1]))'`; dorny behaviour simulated as above.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
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