Repository navigation
Description
Owner report, 2026-09-27. Codebase Analytics panels render empty. The list is not exhaustive — the owner said so explicitly, so the population must be derived from the code, not from this list.
Reported: Import Tree Visualization (no graph) · Function Call Graph (504 from the call-graph endpoint) · Problems Report · Code Smells · Code Intelligence Analysis · Impact Analysis · Duplicate Code · Declarations · Hardcoded Values · Cross-Language Pattern Analysis · Code Pattern Analysis · Code Ownership Analysis · Environment Variable Analysis.
All thirteen are members of the same set: CodebaseAnalytics.vue defines 21 scans under analytics.codebase.scans.*, and every reported panel is one of them.
Ruled out: this is not missing or mismatched routes
Measured against the running backend, not inferred from source:
/api/health 200 2221 routes served, 228 of them analytics
Every path the frontend calls resolves. 30/32 literal paths are served; the 2 that are not are test fixtures using placeholder ids (s1, x). The 20 apparent misses in a broader sweep were all prefixes that take a task id — each has a served templated route:
/api/analytics/codebase/patterns/status/ -> /api/analytics/codebase/patterns/status/{task_id}
/api/analytics/codebase/index/status/ -> /api/analytics/codebase/index/status/{task_id}
/api/code-intelligence/ -> 37 served routes
Unauthenticated probes return 401, not 404, on declarations, duplicates, hardcodes, problems, env-analysis, cross-language/summary and analytics/call-graph. FastAPI matches the route before the auth gate, so 401 proves the route exists.
A methodological warning for whoever picks this up: the first probe run hit port 8000 and reported zero analytics routes out of 309 — a clean, confident, completely wrong answer. The backend is on 8001 (/opt/autobot/autobot-backend/venv/bin/uvicorn main:app --port 8001); 8000 is a different service. Check the port against the unit file before trusting any route census.
Partially established: some panels cannot report a failure
Panels were checked for whether they distinguish "load failed" from "no data":
| Panel | error branch | empty branch |
|---|---|---|
| CodebaseOwnershipPanel | 1 | 4 |
| CodebaseEnvironmentPanel | 1 | 3 |
| CodebaseCrossLanguagePanel | 1 | 3 |
| ProblemsReportSection | 0 | 2 |
| DeclarationsSection | 0 | 3 |
Two of five have no error branch at all — a failed load can only render as empty there. That is the #17612 defect class in a new place, and it is real regardless of what else is wrong.
It is not a sufficient explanation: panels that do have an error branch are also reported blank.
Not established, and why
The actual cause. Unauthenticated probing cannot distinguish 200 with empty data from 200 with data the panel fails to render. That needs an authenticated session, which I do not have and will not fabricate.
The leading hypothesis, untested: these panels are per-source and the scan set includes indexing (Codebase Indexing). If a source has not been indexed, or its cache is empty, every panel would be empty and a live call-graph computation would be the thing that times out — which matches the one non-blank symptom, the 504. If true, the defect is that the UI cannot say "this source has not been indexed" and shows thirteen empty panels instead.
Acceptance criteria
- The cause is measured with an authenticated request before anything is changed — record the status and body of one failing panel's endpoint
- Every panel distinguishes failed, empty, and not yet indexed; a panel that cannot report a failure is the defect even when the backend is at fault
- The 504 on the call-graph endpoint is root-caused, not merely caught — a timeout means the work is too slow, and catching it renders an honest error over an unchanged problem
- The population is derived from the 21 scans in
CodebaseAnalytics.vue, not from the owner's list, which is explicitly partial - A test per state, using fixtures, so "renders empty" cannot silently return
Not claimed
Whether the backend returns data at all, whether any source is indexed, and whether the 504 is load or an unbounded computation are all unmeasured.
Activity
mrveiss commentedon Sep 27, 2026
Root-caused. Two independent defects, both measured against the running system, and the owner has confirmed indexing HAS run — so "nothing was indexed" is ruled out.
Cause 1 — the analytics read an empty store while the data sits in another one
The populated store holds 26 collections, including
autobot_code— the exact collection the endpoints query.The path is not read from config.
api/codebase_analytics/storage.py:20,52hardcodes it:code_intelligence/pattern_analysis/storage.py:22,45does the same, andservices/knowledge/doc_searcher.py:88again. Meanwhileknowledge/base.py:89takes it from config —config_manager.get("memory.chromadb.path", "data/chromadb").So there are two conventions in one codebase, and neither reaches the db-stack.
config.yaml:83sayspath: data/chromadb, a relative path that resolves under the deploy root either way — never toautobot-db-stack/.This is the "Never hardcode — config via SSOT" rule, and the fix is not to edit the constant: it is that four call sites each compute a path that one of them should own.
Cause 2 — the type filter matches nothing even in the populated store
Fixing cause 1 alone will not fix
Declarations. Scoped toautobot_codein the real store:11,241 rows, every one
type='problem'. Zerofunction, zeroclass.endpoints/declarations.py:35-40filters:{"$and": [{"type": {"$in": ["function", "class"]}}, {"source_id": source_id}]}That matches nothing regardless of which store it opens. The producer writes one vocabulary and this consumer queries another — the same shape as #17643, where the frontend filtered on event names the backend never emits.
(A caution for whoever verifies this: my first count of
typevalues was taken across all 26 collections and showed a plausible mix offunction-like values. Scoped toautobot_codeit isproblemand nothing else. The unscoped query gave a confident, wrong answer.)What each cause predicts
problem-typed rows — Problems Report has 11,241 rows waiting.Corrected acceptance criteria
_PROJECT_ROOT / "data" / "chromadb"sites use itautobot_code, verified by a count > 0 from the running backendStill not established
Whether the other panels' filters have the same vocabulary mismatch as
declarations— I checked one endpoint's filter against one collection. The other twelve need the same comparison before anyone assumes cause 1 fixes them.mrveiss commentedon Sep 27, 2026
Evidence notice: querying the server directly measures the wrong end of the gap
Any conclusion in this issue drawn from querying the ChromaDB server describes a store the
application never opens. That applies to more than one session's evidence, including measurements
that looked confirmatory.
The defect is that no host is configured, so the client never takes the remote branch and the local
pathis authoritative. A session that checks the server to verify a panel is therefore measuring theopposite end of the gap from the one the panel reads. "The data is there" and "the panel is
empty" are both true and not in conflict.
This also reverses an elimination made earlier: the Chroma path was ruled out on the grounds that
db_pathis ignored when the client is remote. That reasoning is sound conditional on a host beingconfigured, and none is. With no host the remote branch is never taken and
pathgoverns.Three distinct locations, measured
Resolving a disagreement between two sessions that had reported different figures for "the real store":
<db-stack>/chromadb/data--path, written today<db-stack>/chromadbvenvAuthoritative probe for which store a service uses:
systemctl show <unit> -p ExecStart, and read the--pathargument. Not directory size.Two method notes, both of which cost time here
For "which of these is in use", the measurement is mtime, never size. Size tells you a store is
large; only mtime tells you anything writes to it. A frozen copy and a live store of the same size are
indistinguishable by
du.Neither of the two original figures contradicted the other, so nothing flagged them. Both were
correct answers about directories, and neither was about the live store. Contradiction is a cheap
error signal; agreement between two measurements of different things is an expensive one — it reads
as corroboration. A third measurement was needed to notice.
The stale duplicate is a diagnostic hazard, not just disk
It holds the same collection UUIDs and the same sqlite size as the live store, so it is not a
backup of something else — it is a fork of the same store that stopped being written. Anyone
diagnosing this defect can land on it, find real collections with real data, and conclude the store is
healthy. The empty directory at least announces itself; a plausible stale duplicate does not.
Disposition
All of this is deployed state on the owner's host. The configuration fix and any disposal of the
duplicate go through the builtin code-sync/self-update path, never a shell edit, and the decision is
the owner's. Nothing here has been changed.
mrveiss commentedon Sep 27, 2026
ROOT CAUSE — complete chain, and it retracts the two causes I posted earlier.
Retraction first
My previous comment claimed (1) the backend reads an empty ChromaDB store and (2) a
typevocabulary mismatch. Cause 1 is wrong — do not change the ChromaDB config, it is correct and working:AUTOBOT_CHROMADB_HOSTis not overridden, sossot_config.py:189's default127.0.0.1applies → HttpClient, never PersistentClient<deploy>/data/chromadb/is empty with no sqlite at all — a PersistentClient would have created one, so nothing ever opened it0e058363, which is exactlyautobot_codeI misread
config.yaml:80'smemory.chromadb:— a parent key of a nested mapping — asvm.chromadbwith an empty value. Cause 2 is real but moot, becausesource_idexcludes every row beforetypeis evaluated.The actual cause: a key written conditionally and required unconditionally
Every link threads
source_idcorrectly. Nothing is broken in the plumbing. The defect is that the top of the chain never supplies one and the bottom treats its absence as acceptable.Measured:
autobot_codeholds 11,241 rows; its complete metadata key set istype, suggestion, severity, problem_type, line_number, file_path, file_category, description.source_idis absent from all 11,241. Sibling collectionsautobot_code_embeddingsandcode_patternsare empty.Why every panel is blank, including ones whose data exists
Problems Report has 11,241 rows waiting and shows nothing, because the filter excludes them all. The panels are not failing to render — they are correctly rendering an empty result from a query that cannot match.
The fix, and why it is more than one line
source_id. The GUI already knows it — the route is/analytics/codebase/:sourceId.if source_id:atchromadb_storage.py:300is the real defect. It silently produces rows that no per-source query can ever reach. An optional write of a key that every reader requires is not an optional key. It should refuse, or write an explicit unscoped sentinel that queries can opt into — not omit.Still unexplained
The 504 on the call-graph endpoint is not accounted for by any of this and remains open.
mrveiss commentedon Sep 27, 2026
Non-author review of
issue-17651-source-id-scopingat201597fafeReviewed as a branch (no PR yet). Two files: the one-line-ish
useSourceRegistry.tschange and a 114-line contract guard.The guard's discovery is exhaustive today, and it is exhaustive by spelling
The predicate is a name match:
So the docstring's "the population is discovered rather than listed" is true in the sense that matters — it is no longer a hand-written five — but what it discovers is functions named a particular way, not functions that build metadata for a store write. Preparer six is caught only if it is named to match.
I checked whether that is a present gap or a future one, and it is future. Enumerating every function in
chromadb_storage.pywith a string-keyed dict, five fall outside the pattern and none of them is a preparer:make_problem_dict:245_delete_source_documents:399{"source_id": …}filter, not an emission_recreate_chromadb_collection:458_record_batch_progress:917,_update_chromadb_progress:1237So the five it finds are the five that exist. The residual risk is a differently-named seventh —
_build_*,_make_*_metadata, or a metadata dict inlined at theupsertcall site — which would be invisible with no test failing.Cheap strengthening, five lines: assert that no other function in the file constructs a dict containing a known metadata key (
file_pathwould do) without being in the discovered set. That converts "discovered by name" into "discovered by name, with a tripwire on the names I did not think of", and it would catch the differently-named case that the current form cannot.One correction to my own measurement, because it nearly became the finding
My first pass collected only
ast.Dictkeys and reportedsource_idabsent from all five preparers — which would have been a serious claim about a fix that is meant to add exactly that key. It was wrong:source_idis added by subscript assignment (metadata["source_id"] = source_id), and the guard collectsast.Subscriptslices as well as dict keys. Re-run with the guard's full predicate: all five emitsource_id. The guard is right and my extraction was narrower than the thing I was auditing — which is the evening's recurring shape, so worth recording rather than quietly fixing.The chain the fix breaks
useSourceRegistry.ts:231being the only index trigger and sending nosource_id→chromadb_storage.py:300'sif source_id:omitting the key →declarations.py:35filtering on it → zero rows from 11,241. The two contract tests (test_the_writer_emits_every_key_the_endpoints_filter_on,test_source_id_is_among_the_emitted_keys) hold both halves, and both carry a vacuity assert — "no endpoint filters found — re-derive the population, do not pass vacuously" — so an extractor that stops finding anything fails instead of passing clean. That is the part I would have asked for and it is already there.On #17665's criteria (the dropped runtime warning)
They are strong: fires from all five or a shared boundary, both directions tested, under the ceiling by splitting rather than raising, once per batch not per row, and — the best of them — "if every legitimate caller has a source, the warning should be a refusal instead", which questions whether a warning is the right instrument at all.
One gap, and it is the same shape one level out. Criterion 2 forbids the instance (a warning on one preparer) but not the mechanism: a test could satisfy it by naming the five, and preparer six then arrives with no warning and no failing test. Suggested addition — the test derives the preparer set the way
analytics_metadata_contract_17651_test.pydoes, rather than naming them. If the shared-boundary branch is taken instead, the question disappears by construction, which is the argument for preferring it.test(analytics): four review findings, and one of them is my own argu…
test(analytics): the guard examined some readers of the contract it a…
test(analytics): the vacuity check measured matches, not reach (#17651)
test(analytics): the two-population check ran in one direction only (#…
fix(analytics): the index request never sent source_id, so every pane…
fix(llc/frontend): the backlog ignored the project filter the API alr…
mrveiss commentedon Sep 28, 2026
PR #17672 merged and fixed one of the causes. Four of the five criteria are still unmet — recording that so this is not closed on the merge.
What #17672 actually fixed
The frontend's only index trigger omitted
source_id, so every indexing run wrote rows with no source id while every panel filtered on one.useSourceRegistry.ts:239now sends it:Verified in base. That is the data-reachability cause, and it explains the blank panels — 11,241 problem rows were present, healthy, and matched by no per-source query.
It does not make the panels render. The rows already written without a source id stay unreachable until the re-index the owner approved, which needs the host to take the merged code through the builtin updater first. Until both happen, the panels are still empty for the same visible reason and a different underlying one.
The criteria, honestly
CodebaseAnalytics.vuesource_idcause was traced through the shared accessor rather than panel by panel, so it covers every panel that filters on it — but I did not enumerate the 21 and check eachrepo_tests/analytics_metadata_contract_17651_test.pyguards the producer/consumer key contract, not the three render statesWhy this matters more than the arithmetic
The second criterion is the one worth keeping open on its own. "Renders empty" was indistinguishable from "failed" and from "not yet indexed" — which is why this took a filed issue to diagnose rather than being obvious from the screen. That is the same defect shape fixed in #17684 for the findings panel and in #17020 for the canvas, and it recurred here because nothing generalised it.
So: one cause down, and the criteria that make the next one visible are all still open.
mrveiss commentedon Sep 28, 2026
Third criterion: the 504 is root-caused. The endpoint AST-parses 6,293 Python files per cache miss, and its default became unlimited by a deliberate decision in #13468.
The chain
endpoints/call_graph.pydoes not read indexed data. Its only occurrence of the word "collection" is in a docstring at:488; there is no query. The call graph is computed live, from the filesystem, on every cache miss:Measured under the endpoint's own
EXCLUDED_DIRS(:128-139—.git,__pycache__,node_modules,.venv,venv,env,.env,archive,dist,build):Cache is
TTL_5_MINUTES, so a cold panel, arefresh=true, or any request more than five minutes after the last one pays the full scan.Why it is unbounded, and why that was on purpose
autobot_shared/ssot_config.py:1541:Empty means unlimited, and
AUTOBOT_CALL_GRAPH_MAX_FILESis set nowhere in the repo. The field's own description explains the choice, citing #13468: the previous hardcodedpython_files[:300]"silently analysed 8% of a 3,541-file backend and reported the result as repo-wide statistics".#13468 was right and its objection was silence, not the cap. Its words: "There is no comment explaining the cap, no configuration for it, and — critically — nothing in the response says the result was truncated." The fix added
files_scanned/files_total/truncatedto the response, which is the honesty half, and set the default to unlimited, which is what times out.So this is not a regression anyone missed. It is a bounded-but-dishonest endpoint deliberately traded for an honest-but-unbounded one, and the cost of the second half was never measured. Note also that #13468 counted 3,541 backend files; the scan scope is 6,293 today.
What I did not measure
The latency itself. I cannot run this endpoint — repo code is not executed here and the deployment is out of scope — so I have the mechanism and the file count, not a timing. What makes it a root cause rather than a hypothesis is that the unboundedness is documented in the field's own description and the scan is unconditional on a cache miss. What would settle it completely is one authenticated request with timing, which is also this issue's first unmet criterion.
Three fixes, and the choice is a design decision
AUTOBOT_CALL_GRAPH_MAX_FILESa real default; keeptruncatedreportingtruncated: trueMy recommendation is B, then C as the real answer. B removes the 504 without reintroducing an arbitrary cap and without touching the indexer; C is where this should end up, because a call graph recomputed from source on a five-minute TTL is work that belongs in the index.
A is the option I would not take silently, because picking a number I cannot justify by measurement is how the 300 got there in the first place.
Not implementing yet — this is a fork that wants an owner's call, and the other three unmet criteria on this issue are independent of it.
5 remaining items
mrveiss commentedon Sep 28, 2026
Remainder specified (AC4 → AC2 → AC5) — and two of this issue's own premises do not survive the read
Full spec at
~/17651-spec-2026-09-28.md. Read-only atorigin/main. AC1 stays parked as host evidence; AC3 is not in this spec.AC4 — there are 11 distinct scans, not 21. The 21 is a double count.
CodebaseAnalytics.vuedefines exactly twoScanDefinition[]factories:codeIntelExtraScans()at:844with 10 ids, andcodeIntelFullScans()at:857with 11 — the same ten plusindexing. 10 + 11 = 21, and the ten are the same ids in both lists.So a test that pins 21 pins the double count, and would pass while a scan is deleted from one list and left in the other. The three assertions to write instead:
codeIntelExtraScans()==codeIntelFullScans()−{indexing}— that is what extra and full mean, and nothing asserts it today;analytics.codebase.scans.<id>i18n key (the labels are alreadyt(...), so a missing key is a silent fallback).The proving mutation: remove
redisfromcodeIntelExtraScans()only. Assertion 1 still passes — the union is unchanged — and assertion 2 fails. A count of 21 catches neither.Please correct AC4's wording from 21 to 11 distinct across two factories rather than changing the code to make 21 true.
AC2 — the third state does not exist anywhere in the frontend
git grep -c "not_yet_indexed\|notYetIndexed" -- autobot-frontend/src→ zero occurrences. This is not a per-panel wiring gap; it is a missing state in the vocabulary, and it has to exist before any panel can render it.The naming template is already here, in a panel outside the eight:
__tests__/CodebaseImpactPanel.test.ts:104pins "distinguishes an unbuilt graph from a node with no callers". Unbuilt-vs-empty isnot_yet_indexed-vs-emptyunder another name. The eight panels are imported atCodebaseAnalytics.vue:482-489.The assertion that matters: an unrecognised state must render as failed, never as empty — empty is the one that reads as a working answer.
AC5 — zero of the eight panels has any test, and the four sections that do have tests assert only the state that hides the failure
Measured per component: test files anywhere under
autobot-frontend/srcreferencing each of the eightpanels/components → 0 for all eight.CodebaseImpactPanel.test.ts:124"surfaces a failed request instead of an empty result" (+:104,:114,:57,:69,:79)DeclarationsSection·DuplicatesSection·HardcodesSection·UnwiredTrackerTileSo one component in the whole analytics tree has the assertion this criterion asks for, and it is not one of the eight. Twelve components owe a test: the eight panels (none) plus the four sections (tests without the failure case). Each is a copy of
CodebaseImpactPanel.test.ts:124's shape with a different fixture.Per-component mutation: non-2xx and a thrown error must both render failed;
200with an empty payload must render empty. A single test that accepts "empty" for all three passes every mutation — which is what the four section tests do today.Order, and why it is not arbitrary
AC4 (test-only, and it corrects the count) → AC2 (the state must exist before a panel can render it) → AC5 (twelve tests of one shape, once three states are real). AC5 before AC2 produces twelve tests that can only assert two of the three states.
mrveiss commentedon Sep 28, 2026
AC4's count is a double count — proposed wording correction, not a tick.
CodebaseAnalytics.vue:844codeIntelExtraScans()returns 10 ids;:857codeIntelFullScans()returns the same 10 plusindexing= 11. 10 + 11 = 21 — the criterion summed the two arrays. A test pinning 21 would pin the double count and pass while a scan is deleted from one list and left in the other. Proposed AC4: "the 11 distinct scans are enumerated across the two factories, and a test assertsextraScans == fullScans − {indexing}" (proving mutation: removeredisfrom the extra list only — a union or count assertion passes, the subset assertion fails). AC2:not_yet_indexedis a missing state in the vocabulary, not per-panel wiring — template atCodebaseImpactPanel.test.ts:104(unbuilt-vs-empty); an unrecognised state renders as failed, never empty. AC5: measured per component, 0 of the 8 panels have any test; of the four sections, onlyCodebaseImpactPanel.test.ts:124asserts failure-not-empty — twelve components owe that test. Order AC4 → AC2 → AC5. Spec: a4's pointer above. Owner may veto the wording; nothing is ticked.mrveiss commentedon Oct 5, 2026
Owner re-reported 2026-10-05, still unfixed — and here is the root cause the original did not have
Re-reported today against an up-to-date deployment (backend at
02a10e5, synced the same day). The panel list has grown: Problems Report, Code Smells, Code Ownership, Environment Variable Analysis, Cross-Language ("never finished"), Hardcoded Values, Impact Analysis — plus API Endpoint Coverage showingendpoint-analysis returned 504.This issue ruled out missing routes. That still holds. The panels are empty because the source has never been indexed, and indexing cannot be started.
The source is healthy; the index does not exist
Synced, never scanned. Every panel that reads the index therefore has nothing to show, and each renders that as its own flavour of "none found".
Indexing cannot be started — this is the blocker
POST /api/analytics/codebase/indexwith the source id:and immediately afterwards:
No task was created. A job for a different source was sitting in the queue ten minutes earlier with
running: null; it is now gone without having run.This matches the owner's observation that the progress bar runs to completion while the UI still says "This project hasn't been indexed yet" — there is no task id to poll, so the bar is not reporting real task state.
Where it hangs — narrowed, not proven
index_codebasesets_current_indexing_task_idinsideasync with _tasks_lock(endpoints/indexing.py), and/index/currentreads that variable. It is stillnull, so the handler never reached the lock body. The hang is before it, in one of:get_current_user(http_request)/authorize_source_access(...)— but ordinary authorized GETs on/sources/<id>answer in milliseconds with the same token, which argues against this._validate_and_get_path(request)— aget_sourceread plusPath(...).is_dir(); nothing there should take 60s.async with _tasks_lockitself — if a previous coroutine took the lock and died without releasing it, every later POST blocks on it for the life of the process.(3) is a hypothesis and cannot be proven from the API side — it needs process state, not HTTP. Flagging rather than asserting, because I made exactly this mistake earlier today on #18013: I read "nothing is running" from an endpoint answering a different question and had to withdraw the claim. What is established is only that the handler never reaches the lock body and no task is produced.
The shape is familiar, though:
/duplicateshas an independently-confirmed version of the same failure (#18013), where a never-released single-flight guard makes every call return instantly with a fabricated reason.The second defect, which this issue already names and today confirms
Every one of these panels renders did not look as nothing found:
total_count: 0/problemsreturnsstatus: "success", total_count: 0— the API asserting a clean result for an analysis that never ran. Three of the four say "detected", which is a positive claim about the codebase.Ownership, Environment and Cross-Language are better: they say "no data available" / "Click Full Scan", which is honest. The fix for the other four is to make them say the same thing.
Related, filed separately
/duplicatesreturns a fabricated "timed out after 120.0s" in 0.2s; two differentNonereturns collapse onto one response.source_idparameter at all; it scans the server's working directory, so that panel shows the deployed tree whichever source is selected. Payloads with and withoutsource_idare byte-identical (sha2568a2801b9...), all 6,374 files rooted in the deployed install.What unblocks this issue
Indexing is the gate. Until
POST /indexproduces a task, no panel that reads the index can be fixed or even tested — and the empty-state work would be verified against a system that is empty for a second reason. Suggested order:POST /indexeither start a task or fail loudly; it must never hang past its own@bounded._tasks_lockthe same treatment bug(codebase-analytics): /duplicates returns a fabricated "timed out after 120s" in 0.2s — the single-flight lock is never released #18013 needs — a held guard must be observable and bounded.task_id: nullit currently animates to 100% against nothing.Owner's note today: "these problems have been reported before and were never fixed" — this issue is from 2026-09-27 and is still open on v0.9.4.
fix(codebase-analytics): the indexing worker's sys.path guard made it…
fix(codebase-analytics): the indexing worker's sys.path guard made it…
mrveiss commentedon Oct 6, 2026
Indexing works. Verified on the live host at
991257ff665f.The #18033 fix is deployed and the runtime tree is clean this time:
A triggered index now runs instead of dying at import:
That is the blocker this issue named, cleared. The earlier failure to verify was not the fix — it was #18052: code-sync had advanced
code_sourcewhile leaving the running tree on older code, so the fix was on main and in the checkout but not in the process doing the importing.This issue stays open. Indexing running is necessary, not sufficient. The panels read empty for a second, independent reason: the stored findings carry no
source_id, so every source-scoped query returns 0 (#17631). What this unblocks is the ability to re-index at all — whether the panels then populate depends on the indexer stampingsource_id, which it does not yet do.Next check is whether this run completes and what
last_indexedand/statsreport afterwards. I will report the result either way rather than assuming the scan finishing means the panels fill.mrveiss commentedon Oct 8, 2026
Authenticated probe of every panel endpoint, live node, 2026-10-08
Source: the AutoBot repo source, synced at commit
2b2a12b. An index run had just ended (18:18 UTC) withlast_indexed: null, which is #18055 reproduced. Calls were sequential,?source_id=<source>, with a 45 s cap each.This answers the leading hypothesis above: the source was never persisted as indexed, and most panels cannot say so.
problems(0),declarations(0),hardcodes(0),config-duplicates("✅ No configuration duplicates found!"),embedding-stats(all 0)analytics/charts: 1,500 problems across 18 types, 455 files, for the same source thatproblemsreports 0 for. The total is exactly 1,500, which looks like a cap, not a countanalytics/dependencies/cached: an error from 2026-10-07 saying the source "does not resolve to a code source; nothing scanned". The source existsduplicates/cached:status: partial,storage_type: timeout, 0 duplicates (see #17983)errorenv-analysis,env-recommendations: "EnvironmentAnalyzer not available" (#17629 §2)no_data/empty(honest)analytics/import-tree/cached,patterns/cached-patterns,patterns/cached-summary,cross-language/summary;cross-language/*400 "run analyze first"analytics/dependencies,api-calls,duplicates,report,used-endpoints,patterns/{summary,report,duplicates,complexity-hotspots,refactoring-suggestions,regex-opportunities},statsanalysis,expertise,knowledge-gaps: likely mounted under another prefix, not verifiedanalytics/call-graph(33 s),analytics/import-tree(20 s, live walk),api-endpoints(29 s),endpoint-analysis,endpoint-coverage,orphaned-endpoints,missing-endpointsNew:
statsansweredno_datain 0.1 s while the index job was running, and timed out at 20 s on three consecutive tries after the job ended./api/healthanswered in 0.8 s at the same moment, so the backend was up. Cause not determined.mrveiss commentedon Oct 8, 2026
A precision note on the
duplicates/cachedrow above. That row describes the API response, which still returnsstatus: partialwith an empty list after a timeout. The frontend already treats that shape as a failure:duplicatePayload.ts:45-48maps partial with an empty list tofailed, merged in #17977 (d0f57610f7). It will not reach users until the node serves a current frontend build, though. The bundle served on the node predates that merge, as tracked in #18100, so every frontend fix since then is dark. Every row in the table is an API observation, not a rendered-panel observation.mrveiss commentedon Nov 1, 2026
Static check on main: the panels' URLs match mounted routes, so outdated routes are not the cause. Fixes are in two PRs: failed loads now show an error in four sections, and
/declarationsand/problemsno longer answer an outage as an empty success. Local install, read only: the ChromaDB service is running on its own data directory; no authenticated call was made. Next to settle: whether the selected source was indexed withsource_idafter #18055, since older rows stay invisible until re-indexed.mrveiss commentedon Nov 2, 2026
Part of this landed in the merge train (PR #20594,
655489c4e6) via #20539 and #20543. #20539: failed loads show an error inCodeSmellsSection.vue,DeclarationsSection.vue,HardcodesSection.vue,ProblemsReportSection.vue(testcomponents/analytics/__tests__/sectionLoadFailed.test.ts). #20543:autobot-backend/api/codebase_analytics/endpoints/store_state.pyseparates a failed read, an unindexed source and an empty result for declarations and stats, andusePatternAnalysis.tsreports errors (testsstore_state_17651_test.py,usePatternAnalysis.errors.test.ts). Stays open: the earlier per-criterion pass on this issue is not redone here, and panel behaviour on a live host is unverified.