Repository navigation
Description
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)
- CRITICAL(deploy): drift checker reports 3 false-positive stale components — resolving them would remove 34 plugin files and the audit logs #13851 — (PR fix(deploy): drift checker reports foreign files as stale, and its remediation deletes them (#13851) #13857 merged
0b6724322; issue open for host evidence — 5 of 9 components unverified) — drift checker reports 3 false-positive stale components on a fully-synced host; the
obvious remediation removes 34 plugin files and the audit logs. Dangerous because the signal is
wrong — "update every component" is a reasonable operator instruction that this makes unsafe. - deploy: no host-side signal when a role-owned change never lands — detection half of #12959 #13125 — (PR fix(deploy): self-update verdict calls a healthy run "cut short" every day after logrotate (#13125) #13858 merged
274114e90— the copytruncate half only; the issue BODY, role-delivery detection, is untouched) — self-update verdict reports "run was cut short" for most of every day, because
copytruncateempties the log at 01:00 and present-but-empty is treated as failure. Was discounted
once before the cause was found. - CRITICAL(audit): gh CLI unauthenticated for the service account — findings 'deferred' to a dead-letter queue that holds nothing #13570 — (PR fix(audit): findings reported as preserved in a dead-letter queue that never held them (#13570) #13860 merged
ea3a216a6; 2 of 3 fixes — the credential is audit worker files issues via ambient gh CLI auth — no vault-owned credential, no revocation path #13859. Open for host evidence) — audit worker logs findings "deferred to the dead-letter queue instead of being filed";
LLEN audit:deferred_findingsis 0. Reports preservation that did not happen.
Wave 2 — class B, unconsumed signals (depends on nothing; parallel with Wave 1)
- bug(ai-stack): chromadb service fails to start — possible permission or venv issue #4090 — (PR fix(ansible): crash-looping units restart forever and never reach
failed(#4090) #13871 merged; 23 unit templates. Open for host evidence. Spun out two roles ship the same autobot-chromadb.service unit with different ExecStart paths and race #13870) — chroma crash-looped 1681 times over ~4h45m and never enteredfailed, because
Restart=alwayskeeps it out ofsystemctl --failed. NeedsStartLimitBurst, or a check that does
not rely on unit state. - CRITICAL(ops): autobot-backend throttled by an out-of-band MemoryHigh drop-in — 21,052 reclaim events, STAT=D, health timing out, systemd reporting active #13765 — (PR feat(monitoring): a throttled service reports healthy by every measure except the reclaim counter (#13765) #13909 merged
daaa5906d; 4 review rounds. Open for host evidence. Spun out promtool never runs in CI, so Prometheus rule behaviour is verified by nothing #13927) —memory.events highreached 21,052 while systemd reportedactiveand/health
passed. Alert on the reclaim counter, not on memory usage — a throttled service looks normal by
every other measure. - bug(plugin-sdk): all 7 core plugins fail at startup — dependency check resolves pip packages against the plugin registry, and discovery runs twice #13677 — (PR fix(plugin-sdk): one plugin's code can run under another's manifest and report healthy (#13677) #13988 merged
92eba8bf1; 3 review rounds, all 6 fixes mutation-verified. Open for host evidence. Spun out plugin dependency check resolves pip package names against the plugin registry, so they can never be satisfied #13966, logger-plugin cannot load when /tmp/plugin_events.log is owned by another user #13967, A crashed plugin discovery wedges PluginManager permanently — startup() is never retried and the flag says it succeeded #14000) — all 7 core plugins fail at startup and it looks identical to "no plugins installed",
because nothing emitsloaded N of M. depends on core-plugins entry_point (plugins.core_plugins.*) not importable — plugin-loader tool registration silently fails #10294 (one of the three failure routes). - core-plugins entry_point (plugins.core_plugins.*) not importable — plugin-loader tool registration silently fails #10294 — (PR fix(plugin-sdk): file-path fallback located the plugin file and could not execute it (#10294) #13944 merged
79b526b62; issue CLOSED — verified end-to-end) — plugin entry-point import fails; the file-path fallback added for it re-attempts a
dotted import instead of loading from the located file.
Wave 3 — class A, silent failures
- security(sso): failed SAML SLO audit-log write is swallowed by a bare except — 7 sibling handlers in the same file log it, this one does not #13849 — (PR fix(sso): a failed SAML SLO audit write left no record that it failed (#13849) #13989 merged
9b8ecd999; the guard's own detector was fixed too — it matched a log method name without checking the receiver, so a handler bumping a metrics counter read as compliant. Open for host evidence) — failed SAML SLO audit-log write swallowed by a bareexcept Exception: pass; seven
sibling handlers in the same file log the identical failure, including the SLO success path. - bug(codebase-analytics): report and duplicates hang indefinitely with no error logged; ownership/analysis 400s its own source as a traversal attempt #13602 — (PR fix(analytics): stop /report and /duplicates hanging, and scope the ownership panels (#13602) #14014 merged
d018373e1; 4 defects + the ownership 400 and its siblings' silent cross-project leakage. 2 review rounds, 21/21 mutations caught. Open for host evidence. Spun out No server-side deadline exists for API handlers — every timeout is hand-rolled, and one was simply forgotten #14015) — analyticsreportandduplicateshang past 180 s with zero log output: no exception,
no timeout, no trace. - CRITICAL(deploy): update rewrites 2000+ .py files under the live interpreter — 22-minute window where late first-imports raise ImportError for symbols that exist #13539 — two defects in one issue. Celery never restarted: DONE (PR fix(deploy): restart celery workers so they run the code the update just synced (#13539) #13802 merged, verified
on host — celery now starts newer than the synced code, first time in 11 deploys). Sync-under-
live-interpreter window: NOT DONE — the update still rewrites ~3,800.pyfiles under a running
interpreter and restarts later; measured at 3 min 44 s on a clean run and 22 min on a bad one.
Box stays unticked until the window closes.
Reference — the pattern to copy
- voice: TTS output has large lag and drops text — slow non-streaming worker (3.8s/49ch, 14s/209ch) + per-sentence fallback cancels prior audio #12460 / fix(voice): pre-roll audio against a below-real-time TTS worker + make the real-time factor observable (#12460) #13736 — the TTS real-time factor was computed on every synthesis and consumed by
nothing. The fix addedautobot_tts_realtime_factor{_last},autobot_tts_synthesis_below_realtime_total,
autobot_tts_first_chunk_seconds, and two alert rules (TTSSynthesisBelowRealTime,
TTSRealTimeFactorCollapsed). Verified end-to-end on a live host: the exported value matched the
worker's own log for the same synthesis. This is the shape the Wave 2 items should take.
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
- The 238 candidate silent exception handlers found by a repo-wide sweep. After filtering, 8 wrapped a
persistence call, and 7 of those carry inline justifications (duplicate-key skip,
asyncio.CancelledError, "file write failure must not mask the original error"). Only security(sso): failed SAML SLO audit-log write is swallowed by a bare except — 7 sibling handlers in the same file log it, this one does not #13849 had neither
comment nor logging. The codebase is mostly right about this — a broad "add logging everywhere"
campaign would be noise, and is not proposed. - Log verbosity in general. Every item here is a missing signal, not a missing log line.
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
mrveiss commentedon Aug 9, 2026
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_sharedis a symlink the deploy itself creates, so every unforced backendresolve refused over it. An operator who cannot avoid a refusal learns to pass
forcereflexively — whichswitches 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
copytruncateempties the log at 01:00) unless the owner prefers a different order.mrveiss commentedon Aug 9, 2026
Wave 1 progress: 2 of 3 in PRs.
copytruncatefinding; the issue stays open for its body, which is therole-delivery half of CRITICAL(deploy): Update-All uses inline tasks and applies only backend/env_only — every fix landing in an Ansible role is inert on hosts (#12777 faulthandler, #12907 consolidation, #12886 TTS all merged but never delivered) #12959)
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
forcereflexively and switchesthe 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 logrotatestanza rather than verified on a host. Per the host-evidence rule, neither closes on merge alone.
mrveiss commentedon Aug 9, 2026
Wave 1 is complete — all three class-C items are in PRs.
Spun out along the way: #13859 (audit worker uses ambient
ghCLI auth — needs a vault-owned credential;three named decisions) and #13861 (
co-located-smokehas never completed — 20 of 20 runs cancelled at its15-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:
itself creates, so every unforced backend resolve refused. An operator who cannot avoid a refusal learns to
pass
forcereflexively, which disables the guard exactly when it matters.that log, so it would have reported the previous run's clean verdict over a live failure.
queue and returned
issues_deferred: 0as a success.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:
statically from the ansible roles; 5 need a live
--dry-runper component).self_update_incompleteis false after 01:00 with no run since.mrveiss commentedon Aug 10, 2026
Wave 1 merged
0b6724322274114e90ea3a216a6Content verified in
Dev_new_guifor each, not just "PR merged" —Closes #Ndoes not fire on this branch,so nothing auto-closed and all three issues stay open on purpose:
--dry-run.copytruncateverdict bug landed; the issue body (role-delivery detection, the otherhalf of CRITICAL(deploy): Update-All uses inline tasks and applies only backend/env_only — every fix landing in an Ansible role is inert on hosts (#12777 faulthandler, #12907 consolidation, #12886 TTS all merged but never delivered) #12959) is untouched.
authenticating the service account drains the queue.
Also merged: #13863 (
638b2bf25) — required checks now report a verdict instead of resolving asskipped, filed as #13862 while answering "why is this 8/10 and not 10/10". That question turned out to be areal instance of this umbrella:
skippedreads identically tonever ran, and a paths filter that broke andstarted 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, isproven 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, becauseRestart=alwayskeeps a unit out ofsystemctl --failed. It is the cleanest statement of class B — thesignal 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.
fix(plugin-sdk): 7 plugins failed and it looked like none were instal…
fix(plugin-sdk): all 7 core plugins failed and it looked like none we…
test(sso): check the receiver, not just the method name (#13849)
fix(sso): a failed SAML SLO audit write left no record that it failed (…
fix(analytics): stop /report and /duplicates hanging, and scope the o…
fix(ci): two checks that could not report anything (#13927, #13861) (#…
mrveiss commentedon Aug 12, 2026
Adjacent finding: #14144 — the repo's push guard reports correctly but matches the branch name in argv, so
git push origin HEADand 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.mrveiss commentedon Aug 13, 2026
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 ProvidersGrafana dashboard is provisioned and scraped,LLMProviderMetricsRecorderdefines ~21 metrics (#470), and nothing calls it — all 16 data panels renderNo Data, includingDaily Budget Remainingand both TTFT percentile panels.Root cause of the missing wiring is itself documented in the child:
docs/developer/PROMETHEUS_METRICS_USAGE.md:480-531names four entry points that do not exist, so anyone following the how-to gets anAttributeErroron the first call.Bundled:
llm_shared/observability/prometheus_observer.py:44-46feedstoken_count / 1000.0into a seconds histogram, so latency panels built oninference_stage_durationare reading token counts.mrveiss commentedon Aug 16, 2026
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:
downon the old address; the fix is in base but not yet rendered.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
slmjob 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
redisjob carried the same defect. It reportsupon the host, so there was nothing to file.17 remaining items
github-actions commentedon Oct 29, 2026
needs-structure: this issue is missing:M<n> - ...:v0.13.0is not a goal milestonephase:M<n>.<k>label whose<n>matches the goal milestone: found noneThe label clears on the next issue event once all three are present (#19522).