Repository navigation
Description
kind has failed every scheduled run since 2026-11-10 — green through
11-09, so seven consecutive red days. Not a required check, which is why it
went unnoticed.
Rescoped. This issue originally covered
drift (core)as well. That half
is diagnosed and now owned by #1107: theer-alertsSNS email
subscription has never been confirmed, AWS deleted the pending subscription
about three days after the alarms were created, and
tf-drift-classify.shcorrectly reported it as real drift. The drift gate
was working; onlykindis actually broken.
Diagnosis — a sixth cause
kind probe (executor e2e) fails; kind probe assertions (fixtures) passes.
check_kind: phase 1: the green path
KeyError: 'token_hash'
scripts/check_kind.sh:293 asserts
assert t["token_hash"] is None, "the fallback token hash is nulled at finish"against GET /v1/orgs/{org}/datasets/{ds}/jobs/{id}/tasks. But 7cad4ad
("fix(api): omit internal credentials from public task listings", #1075,
2026-11-09) reprojected that handler through
er_entities::task_instance::TaskInstanceWire, which does not carry
token_hash at all — and added a test asserting "the public task list must
omit the internal token_hash field".
So a deliberate security fix removed the field, and the probe still subscripts
it. The dates match exactly: the API change landed 11-09, the probe went red
11-10.
The fix, and why it is not just .get()
Swapping to t.get("token_hash") is None would stop the crash and assert
nothing — the key is now always absent, so the condition can never fail.
That is a guard whose precondition always holds.
The assertion worth having at this layer is the security property the wire
projection now guarantees, end-to-end through a real cluster rather than at the
handler:
assert "token_hash" not in t, "the public task listing must not expose the internal token hash"That has a real failure mode — re-exposing the field through TaskInstanceWire
— which the Rust test covers at the handler level and this covers against a
live API. The original intent ("nulled at finish") is already covered by
rust/crates/er-server/tests/pg_task_instances.rs.
Reading this job's log
The failure is not at the tail. The probe's log is flooded with repeating
OTLP span export batch failed / BatchSpanProcessor.ExportError against
otel-collector.observability.svc.cluster.local:4318 — expected noise in a
kind cluster with no collector. Grep for check_kind: or KeyError; piping to
tail shows only the noise and makes this look like a telemetry problem.
Verifying a fix
kind.yml's probe is if: github.event_name != 'pull_request', so a pull
request cannot run it. Exercise it on the branch before merging:
gh workflow run kind.yml --ref <branch>
Activity
[-]kind red 7 days, drift (core) red 5 days — both unticketed push-only gates[/-][+]kind probe red since 2026-11-10: KeyError 'token_hash' after the credential-omission fix[/+]