Tocharian AI — release test checklist
Run this list for every release and for every Kibana version the plugin is built for. Write the results into a copy of the table at the end (one row per item: pass / fail / not applicable, plus a note).
- First run the automated release check of that version:
tools/tests/remote.sh <kibana version>(seetools/tests/README.md). It builds the plugin, starts a temporary Elasticsearch + Kibana of that version, seeds test data and checks the API and the browser (charts in answers, selections, dashboard panels, masking, a read-only user) with a scripted model, and writes a report with screenshots. Preparation P1–P5 and most of §10a are covered by it. - [A] items are covered by
tools/smoke-test.mjs(API level). Run the script first; then do the [M] items by hand in the browser, with a real model. - “Admin” means a user with the
allprivilege of the Tocharian AI feature (for exampleelastic). “Limited user” means a user with thereadfeature privilege and read access to only one or two indices. - Check every UI item in both light and dark theme (Profile menu → Appearance) and at a narrow window (about 1000 px wide).
0. Preparation
Section titled “0. Preparation”| ID | Step | Expected |
|---|---|---|
| P1 | Build: node ../../scripts/plugin_helpers build --kibana-version <version> | The build log contains no ERROR; the zip is in build/. |
| P2 | Install the zip in a test Kibana of that version and restart. | Kibana starts. The log has no ERROR mentioning tocharian. GET /api/status is available. |
| P3 | Create the limited user: a role with feature privilege Tocharian AI read, read + view_index_metadata on one test index, and nothing else. | The user can sign in. |
| P4 | Configure a model (settings page) and press Test connection. | “Connected · <n> ms”. |
| P5 | Have test data: one index with e-mail addresses, phone numbers and card numbers in text and keyword fields (for masking), and one with a time field (for questions). | — |
1. Install, upgrade, storage
Section titled “1. Install, upgrade, storage”| ID | Step | Expected |
|---|---|---|
| S1 [A] | GET /internal/tocharian_ai/config as admin. | status.pluginVersion is the new version; status.profileIndex is .kibana-tocharian-ai-profiles, status.auditDataStream is .kibana-tocharian-ai-audit. |
| S2 [A] | Upgrade from the previous version with data (profiles, notes, conversations, activity records), then open the app as admin. | Everything is still there; counts match the ones before the upgrade. |
| S3 [A] | Ask a question as the limited user. | An tocharian_ai.ask record with user.name = limited user appears in .kibana-tocharian-ai-audit (no API key configured). |
| S4 | Limited user adds a personal note in the catalog. | Saved (no permission error). |
| S5 | Restart Kibana. | Starts; the app works; nothing is migrated twice. |
2. License
Section titled “2. License”| ID | Step | Expected |
|---|---|---|
| L1 [A] | GET /internal/tocharian_ai/license | Shows the installed license (or none). |
| L2 | Upload a valid license (settings page, file and paste). | Status active, company, type, expiry and features shown. |
| L3 | Upload a tampered license (change one character of issuedTo). | Rejected: signature invalid. Previous license stays. |
| L4 | License with maxVersion lower than the plugin version. | Status invalid / not valid for this version. |
| L5 | License expired less than 14 days ago. | Status grace, days left shown; enterprise features still work. |
| L6 | License expired more than 14 days ago. | Masking keeps applying its rules but they cannot be changed; read-write mode still works and its limits keep their last values, which can only be removed; dashboards install refused. |
| L7 | Remove the license. | Free edition: chat and read-write mode work; masking, the read-write controls and the dashboards are locked with a hint. Restrictions saved earlier stay and can only be removed. |
| L8 | Export the usage report. | JSON file downloads; contains counts for the last 30 days; nothing is sent anywhere. |
3. Chat and evidence
Section titled “3. Chat and evidence”| ID | Step | Expected |
|---|---|---|
| C1 [A] | Ask a simple counting question about the test index. | Answer with evidence: query, hit count, table. The number matches a manual query. |
| C2 | Ask a follow-up (“and yesterday?”). | Uses the earlier context. |
| C3 | Ask about data the limited user cannot read (as the limited user). | The AI says it has no access; no data from that index appears. |
| C4 | Ask in English and in another language (e.g. Chinese). | The UI stays English; the answer is in the language of the question. |
| C5 | Long question that needs several queries. | Steps show live; final answer cites evidence ids; no empty answer. |
| C6 | Press Stop during a run. | Run stops on the server; “Stopped” shown; draft kept. |
| C7 | Conversation list: new conversation appears at once; rename / delete work; the running icon shows while a run is active. | — |
| C8 | Evidence table: open in Discover link works; copy query works. | — |
4. Background runs
Section titled “4. Background runs”| ID | Step | Expected |
|---|---|---|
| B1 | Start a question, close the tab, reopen the conversation after a few seconds. | The run continued; progress is replayed; final answer arrives. |
| B2 | Switch on Background investigation, start, go to Discover. | A toast “finished” appears with View result; it opens the conversation. |
| B3 [A] | GET /internal/tocharian_ai/runs/active while a run is active. | Lists the run. |
| B4 | Restart Kibana while a run is active, then open the conversation. | Marked “interrupted” with a retry button; retry works. (Same on every version in this release; see “Version-specific behaviour”.) |
| B5 | Two users ask at the same time; one user asks in two conversations at the same time. | All run in parallel. A second question in the same conversation while one is running is refused with “still being answered”. |
5. Automation API
Section titled “5. Automation API”| ID | Step | Expected |
|---|---|---|
| A1 [A] | POST /api/tocharian_ai/investigations with wait: 120. | status: done, answer and evidence. |
| A2 [A] | Same with wait: 0, then GET /api/tocharian_ai/investigations/{id} until done. | First running, later done. |
| A3 | Call with an API key of a user who cannot read the index. | No data from that index. |
| A4 | Call from a webhook connector of an alerting rule. | Investigation recorded; visible in the user’s conversations. |
6. Masking (license feature)
Section titled “6. Masking (license feature)”| ID | Step | Expected |
|---|---|---|
| M1 | Scan the test index in the catalog. | E-mail / phone / name fields are suggested as sensitive. |
| M2 | Admin changes a field to not sensitive, partly hidden, not provided. | Saved; a rescan keeps the admin’s choice. |
| M3 | Limited user opens the catalog. | Sensitivity shown as badges, not editable. |
| M4 | Ask for the e-mail addresses of some records. | Answer shows real values; the request sent to the model contains only code names (check with a logging proxy as the model base URL, or the model provider’s request log). |
| M5 | Ask to filter by one e-mail address the user types. | The query runs with the real value; hits are correct. |
| M6 | Masking switched off in settings. | Real values are sent (and the settings show it is off). |
| M7 | Card numbers that fail the Luhn check, normal numbers, dates, IPs. | Not masked (no false positives). |
7. Kibana tools and read-write
Section titled “7. Kibana tools and read-write”Read-write mode allowed in the settings, every kind of change allowed. For every K item: the card shows exactly what will happen; nothing changes before Confirm; Cancel changes nothing; after confirming, the link opens the object. Use names starting with TEST and delete everything afterwards.
| ID | Step | Expected |
|---|---|---|
| K1 | Ask “which dashboards do we have about X”. | Lists dashboards with links. |
| K2 | On a dashboard, ask about one of its panels (header button). | Uses the panel definitions. |
| K3 | Ask about recent alerts / rules / cases / connectors. | Lists them; numbers match the Kibana pages. |
| K4 | Create a dashboard with dataset panels (metric, line over time split by a field, bar top N, donut, table) and an options control. | Preview has real rows per panel; after confirm every panel renders without error; the control filters the panels; a missing data view for the control is created and named on the card. |
| K5 | Change that dashboard: add ES|QL panels (area over time, heatmap, tag cloud, gauge), replace one panel, remove one. | Same; the replaced panel keeps its place; the removed one is gone; nothing else changes. |
| K6 | Ask for a panel with a wrong field or a broken ES|QL query. | No card; the model gets the error (with similar field names) and fixes it. |
| K7 | Create a case; update status, severity, tags, assignee; attach alerts (by filter); push it (with and without a case connector). | All applied in the case. Without a Jira / ServiceNow … connector the push is refused with the reason. |
| K8 | Change the status and tags of a few security alerts, then revert. | Only the listed alerts change. A filter matching more than intended shows the larger count on the card (cancel it). |
| K9 | Create rules of each type (esql, kql per field, index_threshold, custom_threshold), disabled, one with a server-log connector action. | The card shows the dry-run result, “Enabled: no” and the action; the rules exist with these settings. |
| K10 | Create security detection rules (query, eql; optionally esql, threshold, new_terms), disabled. | Created in Security → Rules with the given severity; dry-run counts on the card. |
| K11 | Manage a rule: enable, snooze, unsnooze, update interval and tags, clone and rename, disable, delete; update a detection rule’s severity. | Each applied; other rules untouched. |
| K12 | Index write: propose documents, edit them in the card, confirm. | Written with the user’s own privileges (fails for a user without write access). |
| K13 | The model’s description of a card differs from the card. | The model states what the card says (the card is the truth). |
| K14 | Any K item in read-only mode, or with its kind cleared under Changes it can propose. | Refused with the reason; no card. |
| K15 | Read-write limited to a role the user lacks; then to one kind of change; then a card confirmed after its kind was cleared. | Switch greyed out with the reason; only that kind’s tools offered; the card ends in not allowed by the read-write settings. The release check covers this (api_test.py). |
8. Catalog and knowledge
Section titled “8. Catalog and knowledge”| ID | Step | Expected |
|---|---|---|
| D1 [A] | GET /internal/tocharian_ai/catalog as admin and as limited user. | Limited user sees only readable datasets, and no notes about other datasets. |
| D2 | Open a dataset: fields, types, top values, time range. | Correct; no layout overflow. |
| D3 | Edit a field meaning; confirm it (admin). | Saved; with data view sync on, the data view field description is updated. |
| D4 | AI proposes a note in chat; save as personal and as shared. | Saved with the right scope; shared needs admin confirmation. |
| D5 | Delete a note as its author and as another non-admin user. | Author: deleted. Other user: refused. |
9. Entry points and UI
Section titled “9. Entry points and UI”| ID | Step | Expected |
|---|---|---|
| U1 | Header button on Discover, Dashboard, Lens, Index Management. | Flyout opens; current query / time range / open document / dashboard panels are passed. |
| U2 | Click a document in Discover, then ask “explain this document”. | The open document is used. |
| U3 | Dashboard panel action “Ask Tocharian AI”. | Opens with that panel as context. |
| U4 | Settings page: every section saves; read-only view for users without all. | No console errors. |
| U5 | All pages in light and dark theme, also with the browser and Kibana set to another language. | Everything is in English; no unreadable text, no overlapping elements, no horizontal scroll. |
| U6 | Logo in the side navigation, app tile and flyout header. | Shown correctly in both themes. |
9a. Page awareness
Section titled “9a. Page awareness”Open the flyout on the page, click the inspect icon (What Tocharian AI sees), then ask “what am I looking at, and is anything wrong here?”.
| ID | Step | Expected |
|---|---|---|
| W1 | Every route of docs/page-awareness.md through POST /internal/tocharian_ai/page_context/preview (route + time range, as admin). | Each returns its provider; no call errors except “not available” for missing features; each call result within its limit; response in seconds. |
| W2 | Same as a user with read on one index only. | Protected calls say “not available (… unauthorized …)”; nothing from other indices, users, keys, rules. |
| W3 | ML overview: ask which jobs run and which have problems. | Job counts and states match the page; failed job and datafeed reason named; no guessing from .ml-anomalies documents. |
| W4 | Security alerts with the default page filters. | Alert total equals the page’s count (status filter applied, building block alerts hidden); rule health counts all rules. |
| W5 | Dashboard: ask for the highest point and the total of one chart. | Exactly the chart’s values (from its summary); times in the user’s time zone. |
| W6 | Dashboard with 20+ charts. | Every chart named (untitled ones by their value labels); size within the limit; nothing overflows. |
| W7 | Index management, Fleet agents, Dev Tools console, Discover with a document open. | Table rows (with names), messages, the console request, the open document are in “What Tocharian AI sees”. |
| W8 | read_api: cluster health / ILM errors; then ask for _security/api_key. | Answers with evidence; the API key path is refused by the allow-list. |
| W9 | API key and Fleet enrollment token pages. | Names, owners, expiry only; never key or token values. |
| W10 | Dashboard with a time chart (30 min buckets, last 24 h): ask “which time is the highest?” and “what is the total?”. | Same value and time as the chart’s tooltip, in the user’s time zone; total equals the sum of every bar; 0 queries. |
| W11 | Same dashboard: ask the share of one slice of a pie chart and of one bar of a top-N chart. | Same percentage as the pie shows (same decimals); for bars the answer says it is a share of the categories the chart shows. |
| W12 | Ask “which time is the highest, in another time zone” (e.g. Stockholm when Kibana shows Shanghai). | Correct conversion from the chart time; no new query. |
| W13 | Ask for a comparison with the previous period. | Current numbers from the chart; previous-period numbers marked as coming from a new query or the re-run. |
9b. Conversations
Section titled “9b. Conversations”| ID | Step | Expected |
|---|---|---|
| E1 | Open the flyout twice on a page. | Opens empty each time; the latest conversations are listed; one click continues one. |
| E2 | Conversations menu in the flyout: search, switch. | The chosen conversation loads in place; the running icon shows for running ones. |
| E3 | Background run finishes while on another page. | The toast’s View result opens it in the flyout on that page. |
| E4 | Regenerate the last answer. | One question, one new answer; old evidence gone (ids start again). |
| E5 | Ask two questions, edit the first. | Note “answers after this question are replaced”; afterwards one question and its new answer; the model does not remember the removed turns. |
| E6 | Edit while a run is active / in someone else’s conversation. | Not possible (no edit icon while running; not found for others). |
10. Dashboards (license feature)
Section titled “10. Dashboards (license feature)”| ID | Step | Expected |
|---|---|---|
| G1 [A] | Install the dashboards in the default space and in another space. | Both dashboards open. |
| G2 | Reload the dashboards. | Every panel renders: no “error”, no empty charts while there are records, metric titles shown once. |
| G3 | After asking a few questions, the counts, tokens and cost move. | — |
| G4 | A user without read access to .kibana-tocharian-ai-audit opens the dashboard. | Empty panels / permission message (expected: grant read on that data stream to people who need the dashboards). |
| G5 [A] | Open the flyout on a dashboard with time series panels (e.g. [Logs Nginx] Access and error logs, last 24 h). | “N noticeable change(s)” with the strongest ones, or “no noticeable changes”; skipped panels listed in the tooltip. |
| G6 | Click Explain these changes. | The answer cites the re-run panel evidence and breaks the changes down (source, host, status…). |
| G7 | Change the time range / add a filter, reopen the flyout. | The check uses the new search state. |
| G8 | Dashboards with formulas, last value, ad hoc data views, legacy visualizations (e.g. [Metrics System] Host overview, Kubernetes, a custom one). | Panels re-run; panels with time shift, reduced time range or counter rate are skipped, never shown with wrong numbers. |
10a. Charts in answers
Section titled “10a. Charts in answers”| ID | Step | Expected |
|---|---|---|
| L1 | On a dashboard, ask “show me the <panel title> panel”. | A card with that one panel rendered by the dashboard itself (same look, panel menu, controls if any), badge “From dashboard: <title>”; same picture as on the dashboard (same time, query, filters). |
| L2 | Change the dashboard time range or add a filter, ask again. | The new card follows what is on screen; the earlier card keeps its own time range. |
| L3 | From the app (not on the dashboard), ask to show a panel of a named dashboard. | The panel shows with the dashboard’s saved time (if it stores time) or the current time range. |
| L4 | Ask for a Markdown, TSVB, Vega, map or saved-search panel. | It shows like any other panel. |
| L5 | Ask about an old period (“orders on 1–7 March 2025, as a chart”). | The answer’s numbers and the chart match: the chart card says “chart of evidence E<n>” and shows the same window. If a dashboard panel is shown instead, its time range is that period. |
| L6 | Ask for a top-N bar chart, a pie and a metric on data without a fitting dashboard. | Each draws from an evidence; labels are readable column names. |
| L7 | Click Open in Lens on a temporary chart; save it, add it to a dashboard. | Lens opens in a new tab with the chart; saving works as in Lens. |
| L8 | Click Open dashboard on a dashboard panel card, in the default space and in another space. | The right dashboard opens in the right space. |
| L9 | Reload the conversation (or open it later). | The cards render again over their saved time ranges. |
| L10 | A user without read access to the panel’s data. | The panel shows Kibana’s own permission error; the rest of the answer is unaffected. |
| L11 | Ask for more than four charts. | At most four cards; the answer says no more are shown. |
| L12 | Open the dashboard itself after L1–L5. | Nothing changed on it (no unsaved-changes badge, same time range and view mode). |
11. Cleanup after testing
Section titled “11. Cleanup after testing”Delete test users, roles, spaces, cases, rules, test indices and their profile documents (POST .kibana-tocharian-ai-profiles/_delete_by_query with dataset_id).
Version-specific behaviour
Section titled “Version-specific behaviour”| Behaviour | 8.17, 8.18, 9.0 | 8.19, 9.1 and later |
|---|---|---|
| Runs after a Kibana restart | Interrupted, user retries | Same today (Task Manager with user API keys is available on these versions but not used yet) |
Add a row here whenever a version behaves differently.
Result sheet
Section titled “Result sheet”| Version | Date | Tester | Failed items | Notes |
|---|---|---|---|---|