Skip to content

Umbrella: silent failures and telemetry gaps — 4 incidents where systemctl said active and the service was not working #13852

Open
7 of 13 issues completed

Description

@mrveiss

Summary

Eleven findings from a live-deployment diagnostic session, grouped because they share one property: the
system was failing and nothing said so
— or worse, something said the opposite.

They are not one bug. They are three distinct classes with different fixes and very different costs, and
the ordering below reflects cost, not filing date.

The three classes

A — no signal at all. Something fails and produces nothing: no log, no metric, no state change.
Costs discovery time, once, per incident.

B — signal exists, nothing consumes it. The value is computed and thrown away, or the failure state is
one systemd never surfaces. Costs an unbounded window: the condition persists until a human happens to look.

C — signal exists and is wrong. A detector reports failure on a healthy system, or success on a broken
one. This is the most expensive class, because it does not merely fail to inform — it trains everyone to
discount an entire category of alert. Two of the three C items already did exactly that during the session
that found them, to the person who found them.

Task tree

Wave 1 — class C, wrong signals (do first: they corrupt judgement about everything else)

Wave 2 — class B, unconsumed signals (depends on nothing; parallel with Wave 1)

Wave 3 — class A, silent failures

Reference — the pattern to copy

Session status (2026-08-11)

Merged: #13851, #13125, #13570, #4090, #13765, #10294 — plus #13862 (a CI-signal defect found while
asking why a PR showed 8/10 rather than 10/10). Content verified in Dev_new_gui for each, not merge
evidence alone.

Only #10294 is closed. Every other merged item stays open because the fix is verified in code and NOT on a
host, and this umbrella's own acceptance is about what a host actually reports. Each carries a comment saying
precisely what would close it.

Spun out rather than folded in: #13859 (vault-owned gh token) · #13861 (co-located-smoke has never
completed — 20 of 20 runs cancelled) · #13870 (two roles race over one unit file) · #13927 (promtool never
runs in CI) · #13966 (dependency check resolves pip names against the plugin registry) · #13967 (logger-plugin
hardcodes /tmp).

Pattern worth keeping. Nearly every fix here was wrong on its first attempt, in the same direction: the
correction for a wrong signal became a wrong signal pointing the other way, and the new direction was always
the reassuring one. #13851's refusal guard fired on an entry the deploy itself creates. #13125's fallback
would have reported the previous run's clean verdict over a live failure. #13765 shipped an alert that could
never fire, then a permanent false alarm, then a test file that would have stopped Prometheus booting.
#13677's own loaded N of M signal named five healthy plugins as casualties.

The test that catches it is never the one asserting the false positive is gone — that passes equally against a
detector that says nothing. It is the one exercising the failure the detector was built for.

Deliberately not included

Acceptance for the umbrella

Closes when every child closes, plus one property holds that none of them own individually:

  • A service that is running but not working must be distinguishable from one that is working, by something
    a check can query — not by reading logs.

systemctl is-active returned active throughout the chroma crash loop, the memory throttle, the plugin
subsystem failure, and the celery staleness. Four separate incidents in one session where the platform's
primary health signal was green and wrong.

Keeping this umbrella accurate

Every child carries a comment naming its wave and stating this duty, so the obligation is visible from
whichever end someone enters from.

Whoever moves a child updates this issue:

  • Opening a PR → note the PR number against that child's checklist item here.
  • Closing a child → tick its box here, and record what the host evidence was. Merged-to-Dev_new_gui
    is not evidence; several issues in this repo have closed while the condition persisted on the host.
  • Deciding a child is not real, or already fixed → say so here, not only on the child. A child that
    disappears without explanation leaves the wave ordering wrong for everything downstream.
  • Re-scoping or splitting a child → update its wave placement here. The waves encode dependency, not
    priority
    — Wave 1 first because a lying detector corrupts judgement about every other item, not because
    those bugs are individually worse.

This umbrella is the only place the ordering rationale and the shared acceptance criterion live. The
children each describe one defect; none of them describes the property that connects them, so a stale
checklist here loses information that exists nowhere else.

Activity

  1. mrveiss commented on Aug 9, 2026

    @mrveiss
    OwnerAuthor

    Wave 1 started — #13851 is in PR #13857, awaiting CI + review.

    Picked first because it is the most expensive of the three class-C items by the umbrella's own argument: it is
    not merely a wrong signal, it is a wrong signal whose obvious remediation is destructive. A dry run of the
    remediation on the live host reported 55 deletions, including the audit trail.

    Two things worth carrying into the remaining items:

    The "wrong signal" and the "unsafe remedy" are separable, and both need fixing. Correcting the detector
    alone would have left force-style paths able to delete the same files the next time a mapping bug appears.
    The PR does both: the detector no longer counts foreign files as drift, and the resolve refuses rather than
    deleting anything source does not have.

    A guard that always fires is the same failure as no guard. The first version of the refusal was correct
    and unusable: <backend>/autobot_shared is a symlink the deploy itself creates, so every unforced backend
    resolve refused over it. An operator who cannot avoid a refusal learns to pass force reflexively — which
    switches the guard off precisely when it matters. This is the class-C failure mode in miniature: a signal that
    is always on trains people to discount it. Worth checking for in #13125 and #13570 too, since both are about
    detectors that were already discounted once.

    Next in Wave 1: #13125 (self-update verdict reports "run was cut short" for most of every day because
    copytruncate empties the log at 01:00) unless the owner prefers a different order.

  2. mrveiss commented on Aug 9, 2026

    @mrveiss
    OwnerAuthor

    Wave 1 progress: 2 of 3 in PRs.

    Both landed the same lesson from review, from opposite directions, and it is worth writing down for the rest
    of this umbrella:

    Fixing a class-C signal is two moves, and doing only one makes things worse. In #13851 the first pass
    corrected the detector and added a refusal guard — but the guard fired on an entry the deploy itself creates,
    so every unforced backend resolve refused, which teaches operators to pass force reflexively and switches
    the guard off exactly when it matters. In #13125 the first pass removed the daily false alarm by reading the
    rotated log — but a run that starts also empties that log, so it would have reported the previous run's clean
    verdict over a live failure. Both are the same shape: the fix for a wrong signal quietly became a wrong
    signal in the other direction
    , and in both cases the new wrong direction was the reassuring one.

    Concretely, for #13570 and Wave 2: after correcting a detector, ask what it now says in the failure case it was
    built for, and write the test for that, not for the false positive. A test proving "the false alarm is gone"
    passes just as well against a detector that says nothing at all.

    Both PRs are honest about what they cannot show: #13851's guard is evidenced for 4 of 9 resolve-capable
    components (2 more cleared statically, 5 need a live --dry-run), and #13125 is reasoned from the logrotate
    stanza rather than verified on a host. Per the host-evidence rule, neither closes on merge alone.

  3. mrveiss commented on Aug 9, 2026

    @mrveiss
    OwnerAuthor

    Wave 1 is complete — all three class-C items are in PRs.

    Issue PR State
    #13851 #13857 2 review passes; a blocker and a high-severity bug found and fixed
    #13125 #13858 1 review pass; a false-negative the first attempt introduced, fixed
    #13570 #13860 2 review passes; a data-loss path the first attempt left open, fixed

    Spun out along the way: #13859 (audit worker uses ambient gh CLI auth — needs a vault-owned credential;
    three named decisions) and #13861 (co-located-smoke has never completed — 20 of 20 runs cancelled at its
    15-minute job timeout, on every branch, for a week).

    #13861 is worth reading in this umbrella's terms even though it is CI rather than product: a check that can
    only ever be cancelled carries no information in either direction.
    It cannot pass, so it never confirms; it
    cannot fail, so nobody investigates. It is not in the required set, which is exactly why it stayed broken
    unnoticed. Same shape as the four incidents in the summary above, one layer up.

    What the three fixes had in common

    Every one of them was wrong on the first attempt, in the same way, and reviews caught all three:

    The fix for a wrong signal kept becoming a wrong signal in the other direction, and the new direction was
    always the reassuring one.
    That is not coincidence: the reassuring branch is the one nobody writes a test
    for, because the test you naturally write after fixing a false positive is "the false positive is gone" — and
    that passes just as well against a detector that says nothing at all.

    Concretely for Wave 2 and #13570's remaining half: after correcting a detector, write the test for the
    failure case it was built for
    , not for the false positive you just removed. In all three PRs that test is
    the one that caught the regression.

    Closure

    None of these close on merge. Per the host-evidence rule:

  4. mrveiss commented on Aug 10, 2026

    @mrveiss
    OwnerAuthor

    Wave 1 merged

    Issue PR Commit
    #13851 #13857 0b6724322
    #13125 #13858 274114e90
    #13570 #13860 ea3a216a6

    Content verified in Dev_new_gui for each, not just "PR merged" — Closes #N does not fire on this branch,
    so nothing auto-closed and all three issues stay open on purpose:

    Also merged: #13863 (638b2bf25) — required checks now report a verdict instead of resolving as
    skipped, filed as #13862 while answering "why is this 8/10 and not 10/10". That question turned out to be a
    real instance of this umbrella: skipped reads identically to never ran, and a paths filter that broke and
    started reporting "no relevant changes" would have looked exactly like a healthy PR.

    #13862 stays open too — both workflow files are members of their own paths filters, so the PR fixing this
    necessarily exercised only the success branch. The (success, skipped) path, which is the whole point, is
    proven by the next PR touching neither path set. Wave 2's first PR is that proof.

    Starting Wave 2 — class B, unconsumed signals

    Beginning with #4090: chroma crash-looped 1681 times over ~4h45m and never entered failed, because
    Restart=always keeps a unit out of systemctl --failed. It is the cleanest statement of class B — the
    signal exists in full (1681 restarts is not subtle), and the one thing an operator checks structurally cannot
    show it.

    Carrying forward the lesson Wave 1 paid for three times: after correcting a detector, the test to write is for
    the failure it was built for, not for the false positive just removed. In all three Wave 1 PRs the first
    attempt was wrong in the reassuring direction, and in all three the test that caught it was that one.

  5. mrveiss commented on Aug 12, 2026

    @mrveiss
    OwnerAuthor

    Adjacent finding: #14144 — the repo's push guard reports correctly but matches the branch name in argv, so git push origin HEAD and 4 other forms reach the protected base unblocked. Same family as this umbrella's lying-detector theme: the guard's own tests assert the deny message, which a silent bypass cannot fail.

  6. mrveiss commented on Aug 13, 2026

    @mrveiss
    OwnerAuthor

    Adding child: #14211 — observability(llm): the LLM provider metrics recorder has zero callers.

    Same failure class as the incidents this umbrella tracks: the detector is installed and reports nothing wrong because it is never fed. The AutoBot LLM Providers Grafana dashboard is provisioned and scraped, LLMProviderMetricsRecorder defines ~21 metrics (#470), and nothing calls it — all 16 data panels render No Data, including Daily Budget Remaining and both TTFT percentile panels.

    Root cause of the missing wiring is itself documented in the child: docs/developer/PROMETHEUS_METRICS_USAGE.md:480-531 names four entry points that do not exist, so anyone following the how-to gets an AttributeError on the first call.

    Bundled: llm_shared/observability/prometheus_observer.py:44-46 feeds token_count / 1000.0 into a seconds histogram, so latency panels built on inference_stage_duration are reading token counts.

  7. mrveiss commented on Aug 16, 2026

    @mrveiss
    OwnerAuthor

    Status — all code landed; what remains is three host actions and one decision

    Closed with evidence (6 of 12): #13851, #4090, #13677, #10294, #13849, #13915.

    #13849 closed today on host evidence: zero bare except Exception: remain in the SSO file, the SLO failure path logs alongside its seven siblings, its guard is 15 tests asserting the invariant rather than the reported line, and the deployed copy is byte-identical to base.

    #14328 merged (13dcaa7a9), closing #14315 and unblocking #13765. It took four review rounds, and the reason is worth recording because it is this umbrella's own subject: three separate blockers, each one the same mistake in a new place — a value that looks resolved but is not. First a port claimed to be "derived" from a role default that never crossed plays; then a branch on a flag another role sets, undefined in exactly the redeploy path a fix like this ships through; then that same flag kept as a fallback, when its producer answers a different question entirely (it means the frontend is co-located, not the backend). The final detection observes deployed state — is the unit here, is the vhost gone — because what decides reachability is what is on disk, not the flag that governed it.

    Still open, and none of it is code:

    Issue Blocked on
    #13765 A monitoring redeploy. The live target still shows down on the old address; the fix is in base but not yet rendered.
    #13602, #13125 An authenticated request. Both endpoints return 401 to an unauthenticated probe, and I am not minting a session token ad hoc.
    #13570 A filing credential. The lying half is fixed and verified — the queue genuinely holds 1,644 findings, matching what the log claims — but the service account still cannot file.
    #13539 A design decision. Options and a recommendation are posted on the issue, labelled needs-decision.

    Filed from live host state while verifying: #14337 (the config is written once, before the roles it describes are provisioned, and nothing re-renders it — the deployed file carries 5 scrape jobs against the template's 6) and #14339 (the slm job gets 401 on every scrape, so SLM performance metrics have never been collected). Both are this umbrella's pattern exactly: a configured-but-unreachable target and an absent one look identical downstream.

    One thing deliberately not filed: review speculated the redis job carried the same defect. It reports up on the host, so there was nothing to file.

  8. 17 remaining items

  9. added
    area: observabilityWave 1 · cluster S — Observability & silent failures
    umbrellaEpic/umbrella tracking issue grouping member issues
    on Sep 1, 2026
  10. added this to the Backlog milestone on Sep 12, 2026
  11. modified the milestones: Backlog, v0.13.0 on Sep 14, 2026
  12. added
    needs-structureMissing goal milestone, matching phase label or native parent (#19522)
    on Oct 29, 2026
  13. github-actions commented on Oct 29, 2026

    @github-actions
    Contributor

    needs-structure: this issue is missing:

    • a goal milestone M<n> - ...: v0.13.0 is not a goal milestone
    • a phase:M<n>.<k> label whose <n> matches the goal milestone: found none

    The label clears on the next issue event once all three are present (#19522).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: observabilityWave 1 · cluster S — Observability & silent failuresbackendinfrastructuremonitoringneeds-structureMissing goal milestone, matching phase label or native parent (#19522)umbrellaEpic/umbrella tracking issue grouping member issues

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions