Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

docs: OSS-release scaffolding (README, LICENSE, CONTRIBUTING, CoC, SECURITY, templates)

xerj-orga2903f4bc746
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
new file mode 100644
index 000000000..e1074c301
--- /dev/null
+++ b/.github/FUNDING.yml
@@ -0,0 +1,7 @@
+# Funding links shown on the repository's "Sponsor" button.
+# Populate a platform below to enable it (e.g. github: [xerj-org]).
+# Left commented until an official sponsorship account exists so the
+# Sponsor button is not shown pointing at a non-existent destination.
+
+# github: [xerj-org]
+custom: ["https://xerj.org"]
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
new file mode 100644
index 000000000..286d6cd59
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -0,0 +1,121 @@
+name: "\U0001F41B Bug report"
+description: Report a defect in XERJ — including any divergence from Elasticsearch wire behavior.
+title: "[bug]: "
+labels: ["bug", "triage"]
+body:
+ - type: markdown
+ attributes:
+ value: |
+ Thanks for taking the time to file a bug report. XERJ aims to be a
+ drop-in, wire-compatible alternative to Elasticsearch, so please tell us
+ as precisely as possible what you did, what you expected, and what
+ actually happened.
+
+ Before filing, please:
+ - Search [existing issues](https://github.com/xerj-org/xerj/issues) to avoid duplicates.
+ - If this is a usage question rather than a defect, please use
+ [Discussions](https://github.com/xerj-org/xerj/discussions) instead.
+ - type: input
+ id: version
+ attributes:
+ label: XERJ version
+ description: Output of `xerj --version`, a release tag (e.g. `v1.0.0-rc.1`), or the commit SHA you built from.
+ placeholder: "1.0.0-rc.1"
+ validations:
+ required: true
+ - type: dropdown
+ id: install-method
+ attributes:
+ label: How did you install / run XERJ?
+ options:
+ - Prebuilt release binary
+ - Built from source (cargo build --release)
+ - Docker / container image
+ - Other (describe in steps below)
+ validations:
+ required: true
+ - type: input
+ id: os
+ attributes:
+ label: Operating system & architecture
+ description: e.g. `Ubuntu 24.04 x86_64`, `macOS 14 aarch64`, `Windows 11 x86_64`.
+ placeholder: "Ubuntu 24.04 x86_64"
+ validations:
+ required: true
+ - type: textarea
+ id: steps
+ attributes:
+ label: Steps to reproduce
+ description: |
+ A minimal, self-contained reproduction. Prefer copy-pasteable `curl`
+ commands against the REST API (`http://localhost:9200`) including the
+ request body, so we can replay it exactly.
+ placeholder: |
+ 1. Start the server: `xerj --data-dir ./data --insecure`
+ 2. Create the index / index a document:
+ curl -s -XPUT localhost:9200/books/_doc/1 -H 'Content-Type: application/json' -d '{"title":"..."}'
+ 3. Run the query that misbehaves:
+ curl -s -XPOST localhost:9200/books/_search -H 'Content-Type: application/json' -d '{"query":{"match":{"title":"..."}}}'
+ render: shell
+ validations:
+ required: true
+ - type: textarea
+ id: expected
+ attributes:
+ label: Expected behavior
+ description: What did you expect XERJ to return or do?
+ validations:
+ required: true
+ - type: textarea
+ id: actual
+ attributes:
+ label: Actual behavior
+ description: What actually happened? Include the full response body and HTTP status code if relevant.
+ validations:
+ required: true
+ - type: dropdown
+ id: es-compat
+ attributes:
+ label: Is this an Elasticsearch wire-compatibility divergence?
+ description: |
+ i.e. XERJ returns something different from what Elasticsearch returns for
+ the same request. If yes, please include the ES response you compared
+ against in the section below.
+ options:
+ - "Unknown / not sure"
+ - "Yes — XERJ diverges from Elasticsearch"
+ - "No — this is a XERJ-native issue (not an ES-compat concern)"
+ validations:
+ required: true
+ - type: textarea
+ id: es-reference
+ attributes:
+ label: Elasticsearch reference (if a compat divergence)
+ description: |
+ If you compared against Elasticsearch, tell us the ES version and paste
+ the response ES returned for the identical request. This lets us treat
+ the divergence as a conformance bug.
+ placeholder: |
+ Elasticsearch 8.13.0 returns:
+ { "hits": { "total": { "value": 5, "relation": "eq" }, ... } }
+ validations:
+ required: false
+ - type: textarea
+ id: logs
+ attributes:
+ label: Relevant logs
+ description: |
+ Server logs around the failure. Re-run with `RUST_LOG=debug` (or
+ `RUST_LOG=xerj=debug`) for more detail. Please redact any secrets.
+ render: shell
+ validations:
+ required: false
+ - type: checkboxes
+ id: checks
+ attributes:
+ label: Confirmations
+ options:
+ - label: I searched existing issues and did not find a duplicate.
+ required: true
+ - label: I can reproduce this with a minimal example on a clean data directory.
+ required: false
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 000000000..cae543c2e
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,11 @@
+blank_issues_enabled: false
+contact_links:
+ - name: "\U0001F4AC Questions & discussion"
+ url: https://github.com/xerj-org/xerj/discussions
+ about: Ask usage questions, share ideas, or discuss migrating from Elasticsearch. Please use Discussions instead of opening an issue for questions.
+ - name: "\U0001F4D6 Documentation & website"
+ url: https://xerj.org
+ about: Project documentation, getting-started guides, and API reference.
+ - name: "\U0001F4CA Benchmarks"
+ url: https://xerj.org/benchmarks
+ about: Reproducible, head-to-head benchmarks against Elasticsearch 8.13 — honest about both wins and losses.
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml
new file mode 100644
index 000000000..bded35a90
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.yml
@@ -0,0 +1,71 @@
+name: "\U00002728 Feature request"
+description: Suggest a new capability, an Elasticsearch API/feature to support, or an improvement.
+title: "[feature]: "
+labels: ["enhancement", "triage"]
+body:
+ - type: markdown
+ attributes:
+ value: |
+ Thanks for helping shape XERJ. For open-ended ideas or discussion,
+ [Discussions](https://github.com/xerj-org/xerj/discussions) is often a
+ better fit — use this form when you have a concrete proposal.
+ - type: textarea
+ id: problem
+ attributes:
+ label: Problem / motivation
+ description: What are you trying to do, and what makes it hard or impossible today?
+ placeholder: "When migrating from Elasticsearch I need X, but XERJ currently ..."
+ validations:
+ required: true
+ - type: textarea
+ id: proposal
+ attributes:
+ label: Proposed solution
+ description: Describe the feature or behavior you would like. Be as concrete as you can.
+ validations:
+ required: true
+ - type: dropdown
+ id: category
+ attributes:
+ label: Area
+ description: Which part of XERJ does this touch?
+ options:
+ - Query DSL / search
+ - Aggregations
+ - Vector / kNN search
+ - Bulk / indexing / ingest
+ - Index management (mappings, templates, aliases)
+ - Log analytics
+ - Cluster / distribution
+ - REST API / wire compatibility
+ - Performance
+ - Operability (config, metrics, deployment)
+ - Other
+ validations:
+ required: true
+ - type: input
+ id: es-feature
+ attributes:
+ label: Elasticsearch equivalent (if any)
+ description: |
+ If this maps to an existing Elasticsearch API, query type, or aggregation,
+ name it and link the ES docs. This helps us prioritize for wire compatibility.
+ placeholder: "e.g. `significant_terms` aggregation, or the `_reindex` API"
+ validations:
+ required: false
+ - type: textarea
+ id: alternatives
+ attributes:
+ label: Alternatives considered
+ description: Workarounds you have tried, or other designs you weighed.
+ validations:
+ required: false
+ - type: checkboxes
+ id: checks
+ attributes:
+ label: Confirmations
+ options:
+ - label: I searched existing issues and discussions and did not find a duplicate.
+ required: true
+ - label: I would be willing to help implement or test this.
+ required: false
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index fb69c8ea6..875658f34 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -6,10 +6,50 @@ on:
pull_request:
branches: [main]
+# Least-privilege by default for an OSS repo; jobs opt into more if needed.
+permissions:
+ contents: read
+
+# Cancel superseded runs on the same ref (e.g. rapid pushes to a PR branch).
+concurrency:
+ group: ci-${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
+ CARGO_TERM_COLOR: always
jobs:
+ lint:
+ name: Format + Clippy
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Install Rust
+ uses: dtolnay/rust-toolchain@stable
+ with:
+ components: rustfmt, clippy
+
+ - name: Cache
+ uses: actions/cache@v4
+ with:
+ path: |
+ ~/.cargo/registry/cache
+ ~/.cargo/registry/index
+ ~/.cargo/git/db
+ engine/target
+ key: ci-lint-cargo-${{ hashFiles('engine/Cargo.lock') }}
+ restore-keys: ci-lint-cargo-
+
+ - name: rustfmt (check)
+ working-directory: engine
+ run: cargo fmt --all --check
+
+ - name: clippy (deny warnings)
+ working-directory: engine
+ run: cargo clippy --workspace --all-targets -- -D warnings
+
build-test:
name: Build + Test
runs-on: ubuntu-latest
@@ -71,3 +111,57 @@ jobs:
# and prints the hot-path benchmark. Deterministic — no model needed.
- name: API smoke + liveness + benchmark
run: bash demo/playbooks/ci-check.sh
+
+ conformance:
+ name: ES-compat YAML conformance
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Install Rust
+ uses: dtolnay/rust-toolchain@stable
+
+ - name: Cache
+ uses: actions/cache@v4
+ with:
+ path: |
+ ~/.cargo/registry/cache
+ ~/.cargo/registry/index
+ ~/.cargo/git/db
+ engine/target
+ key: ci-cargo-${{ hashFiles('engine/Cargo.lock') }}
+ restore-keys: ci-cargo-
+
+ - name: Build server + conformance runner (release)
+ working-directory: engine
+ run: cargo build --release -p xerj-server -p es-yaml-runner
+
+ - name: Boot xerj
+ working-directory: engine
+ run: |
+ set -euo pipefail
+ DATA="$(mktemp -d)"
+ echo "XERJ_DATA=$DATA" >> "$GITHUB_ENV"
+ ./target/release/xerj --insecure --data-dir "$DATA" > "$DATA/server.log" 2>&1 &
+ echo "XERJ_PID=$!" >> "$GITHUB_ENV"
+ for _ in $(seq 1 80); do
+ if curl -fs -m1 localhost:9200/_cluster/health >/dev/null 2>&1; then
+ echo "xerj is up"; exit 0
+ fi
+ sleep 0.25
+ done
+ echo "xerj failed to become healthy"; cat "$DATA/server.log"; exit 1
+
+ # The runner exits non-zero if any case fails. The 3 skipped cases do not
+ # count as failures, so a clean run gates the PR at 1326 passing / 0 failing.
+ - name: Run ES-compat YAML suite (0 failures required)
+ working-directory: engine
+ run: cargo run --release -p es-yaml-runner -- --dir tests/es-compat-yaml/yaml
+
+ - name: Server log on failure
+ if: failure()
+ run: cat "$XERJ_DATA/server.log" || true
+
+ - name: Stop xerj
+ if: always()
+ run: kill "${XERJ_PID:-}" 2>/dev/null || true
diff --git a/.gitignore b/.gitignore
index 9709f7de9..fd3d744b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -65,3 +65,33 @@ engine/demo-data/
!engine/IMPLEMENTATION_*.md
scratchpad/
engine/build.log
+
+# ----------------------------------------------------------------------
+# OSS release hygiene (added by RELEASE_HYGIENE_AUDIT). Additive only —
+# NOTE: ignoring a path does not untrack files already committed. To stop
+# shipping the internal dirs below, maintainers must also run:
+# git rm -r --cached brief xerj-ux landing/resources/xerj-sales-kit.zip
+# ----------------------------------------------------------------------
+
+# Local Cloudflare Wrangler state (may contain account/session data).
+.wrangler/
+
+# Internal go-to-market material — not part of the OSS engine.
+# (Recommended for a separate repo; see docs/RELEASE_HYGIENE_AUDIT.md.)
+brief/
+xerj-ux/
+landing/resources/xerj-sales-kit.zip
+
+# Re-include root OSS scaffolding so the default *.md / no-extension
+# ignore above does not swallow the standard public-repo files.
+!README.md
+!LICENSE
+!LICENSE.md
+!NOTICE
+!CONTRIBUTING.md
+!CODE_OF_CONDUCT.md
+!SECURITY.md
+!CHANGELOG.md
+
+# Re-include the public architecture doc (Markdown is ignored by default above).
+!docs/ARCHITECTURE.md
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 000000000..b749994f8
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,92 @@
+# Changelog
+
+All notable changes to XERJ are documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## [Unreleased]
+
+## [1.0.0-rc.1] - 2026-07-06
+
+First public release candidate of XERJ — an Elasticsearch-wire-compatible search,
+vector, and log-analytics engine written in Rust and licensed under Apache-2.0. This
+is a release candidate: the wire protocol and on-disk format are considered stable
+for evaluation, but may still change before the final 1.0.0.
+
+### Added
+
+- **Elasticsearch-compatible REST API.** Drop-in wire compatibility with the ES
+ 8.x HTTP surface, served from `xerj-api` (`es_compat.rs`) on port `9200`:
+ - Document APIs: `PUT`/`GET`/`DELETE /{index}/_doc/{id}` and
+ `POST /{index}/_update/{id}`.
+ - Search: `POST /{index}/_search` with `query`, `from`, `size`, `sort`, `aggs`,
+ `_source`, and `highlight`.
+ - Bulk API: `POST /_bulk` with `index`, `create`, `update`, and `delete` actions.
+ - Scroll API: `POST /{index}/_search?scroll=1m` and `POST /_search/scroll`.
+ - `POST /{index}/_delete_by_query`, index templates (`PUT /_index_template/{name}`),
+ and aliases (`POST /_aliases` with `add`/`remove`).
+- **Full-text search (`xerj-fts`).** BM25 scoring with an analyzer registry and
+ on-disk postings lists. Supported query types include `match_all`, `match_none`,
+ `match`, `match_phrase`, `match_phrase_prefix`, `multi_match`, `term`, `terms`,
+ `range`, `prefix`, `wildcard`, `exists`, `ids`, `bool`, `fuzzy`, `regexp`,
+ `query_string`, `simple_query_string`, `constant_score`, `boosting`, `dis_max`,
+ and `geo_distance`.
+- **Vector search (`xerj-vector`).** Dense-vector HNSW index for k-NN and semantic
+ search, exposed through the `knn`, `semantic`, and `hybrid` query types.
+- **Aggregations.** `terms`, `stats`, `avg`, `sum`, `min`, `max`, `value_count`,
+ `cardinality`, `range`, `histogram`, `date_histogram`, `percentiles`, `filter`,
+ `missing`, and `composite`, with a columnar fast path for `size: 0` aggregations.
+- **Sharded ingest and storage (`xerj-storage`).** Write-ahead log with a single
+ monotonic sequence-number writer, a 16-shard in-memory memtable
+ (`shard = xxh3_64(doc_id) & 15`), flush to immutable segments, and background
+ segment merging. WAL replay rebuilds both the storage and FTS memtables on restart.
+- **Log analytics (`xerj-logs`).** Columnar log ingestion with retention.
+- **AI helpers (`xerj-ai`).** Text chunking, an embedding proxy, and a memory store
+ for semantic workflows.
+- **Clustering (`xerj-cluster`).** Embedded Raft consensus for cluster metadata with
+ no external dependencies.
+- **Bundled console (`xerj-console-api`).** Dashboards, auth, preferences, and
+ cluster awareness, compiled into the `xerj` binary and mounted under
+ `/_xerj-console/api/v1/*`.
+- **Transform pipeline (`xerj-wasm`).** Built-in transform plugins with an optional
+ WASM backend.
+- **Block compression (`xerj-compress`).** LZ4 and Zstd codecs for segment blocks.
+- **Single static binary.** `cargo build --release -p xerj-server` produces `xerj`;
+ run with `./target/release/xerj --data-dir ./data --insecure`.
+- **ES-YAML conformance harness.** A workspace test runner (`es-yaml-runner`) that
+ executes the ES 8.13 REST-API-spec YAML suites (search, aggregations, vectors,
+ bulk, indices, scroll, cluster) against a live server. XERJ passes 1,326 of 1,329
+ cases.
+- **Reproducible head-to-head benchmarks.** A 91-cell XERJ-vs-Elasticsearch-8.13
+ matrix (ingest, read, vector, and disk dimensions), published and reproducible at
+ <https://xerj.org/benchmarks>. The scorecard is honest about both wins and losses.
+
+### Changed
+
+- `_forcemerge` is now synchronous and quiescent, matching Elasticsearch semantics,
+ and merge status is exposed through `_stats`.
+- Search hit materialization for `size > 0` is bounded to the top `from + size`
+ candidates, reducing per-query cost from O(N) toward O(from + size).
+- Bulk ingest avoids redundant JSON round-trips and batches schema evolution to
+ raise throughput under concurrent load.
+
+### Fixed
+
+- Consecutive `_bulk` `delete` actions that were previously dropped are now applied
+ correctly.
+- `hits.total` for `size > 0` searches is delete-aware, resolving a conformance
+ regression.
+- Corrected top-N sort behavior and delete-awareness across the memtable/segment
+ merge path.
+
+### Known limitations
+
+- 3 of 1,329 ES-YAML conformance cases do not yet pass.
+- This is a release candidate; some Elasticsearch APIs and query/aggregation options
+ outside the list above are not yet implemented. See
+ [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) and `engine/CLAUDE.md` for the
+ current supported surface.
+
+[Unreleased]: https://github.com/xerj-org/xerj/compare/v1.0.0-rc.1...HEAD
+[1.0.0-rc.1]: https://github.com/xerj-org/xerj/releases/tag/v1.0.0-rc.1
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 000000000..f8201c0b8
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1,132 @@
+# Contributor Covenant Code of Conduct
+
+## Our Pledge
+
+We as members, contributors, and leaders pledge to make participation in our
+community a harassment-free experience for everyone, regardless of age, body
+size, visible or invisible disability, ethnicity, sex characteristics, gender
+identity and expression, level of experience, education, socio-economic status,
+nationality, personal appearance, race, caste, color, religion, or sexual
+identity and orientation.
+
+We pledge to act and interact in ways that contribute to an open, welcoming,
+diverse, inclusive, and healthy community.
+
+## Our Standards
+
+Examples of behavior that contributes to a positive environment for our
+community include:
+
+* Demonstrating empathy and kindness toward other people
+* Being respectful of differing opinions, viewpoints, and experiences
+* Giving and gracefully accepting constructive feedback
+* Accepting responsibility and apologizing to those affected by our mistakes,
+ and learning from the experience
+* Focusing on what is best not just for us as individuals, but for the overall
+ community
+
+Examples of unacceptable behavior include:
+
+* The use of sexualized language or imagery, and sexual attention or advances of
+ any kind
+* Trolling, insulting or derogatory comments, and personal or political attacks
+* Public or private harassment
+* Publishing others' private information, such as a physical or email address,
+ without their explicit permission
+* Other conduct which could reasonably be considered inappropriate in a
+ professional setting
+
+## Enforcement Responsibilities
+
+Community leaders are responsible for clarifying and enforcing our standards of
+acceptable behavior and will take appropriate and fair corrective action in
+response to any behavior that they deem inappropriate, threatening, offensive,
+or harmful.
+
+Community leaders have the right and responsibility to remove, edit, or reject
+comments, commits, code, wiki edits, issues, and other contributions that are
+not aligned to this Code of Conduct, and will communicate reasons for moderation
+decisions when appropriate.
+
+## Scope
+
+This Code of Conduct applies within all community spaces, and also applies when
+an individual is officially representing the community in public spaces.
+Examples of representing our community include using an official e-mail address,
+posting via an official social media account, or acting as an appointed
+representative at an online or offline event.
+
+## Enforcement
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be
+reported to the community leaders responsible for enforcement at
+All complaints will be reviewed and investigated promptly and fairly.
+
+All community leaders are obligated to respect the privacy and security of the
+reporter of any incident.
+
+## Enforcement Guidelines
+
+Community leaders will follow these Community Impact Guidelines in determining
+the consequences for any action they deem in violation of this Code of Conduct:
+
+### 1. Correction
+
+**Community Impact**: Use of inappropriate language or other behavior deemed
+unprofessional or unwelcome in the community.
+
+**Consequence**: A private, written warning from community leaders, providing
+clarity around the nature of the violation and an explanation of why the
+behavior was inappropriate. A public apology may be requested.
+
+### 2. Warning
+
+**Community Impact**: A violation through a single incident or series of
+actions.
+
+**Consequence**: A warning with consequences for continued behavior. No
+interaction with the people involved, including unsolicited interaction with
+those enforcing the Code of Conduct, for a specified period of time. This
+includes avoiding interactions in community spaces as well as external channels
+like social media. Violating these terms may lead to a temporary or permanent
+ban.
+
+### 3. Temporary Ban
+
+**Community Impact**: A serious violation of community standards, including
+sustained inappropriate behavior.
+
+**Consequence**: A temporary ban from any sort of interaction or public
+communication with the community for a specified period of time. No public or
+private interaction with the people involved, including unsolicited interaction
+with those enforcing the Code of Conduct, is allowed during this period.
+Violating these terms may lead to a permanent ban.
+
+### 4. Permanent Ban
+
+**Community Impact**: Demonstrating a pattern of violation of community
+standards, including sustained inappropriate behavior, harassment of an
+individual, or aggression toward or disparagement of classes of individuals.
+
+**Consequence**: A permanent ban from any sort of public interaction within the
+community.
+
+## Attribution
+
+This Code of Conduct is adapted from the [Contributor Covenant][homepage],
+version 2.1, available at
+[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
+
+Community Impact Guidelines were inspired by
+[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
+
+For answers to common questions about this code of conduct, see the FAQ at
+[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
+[https://www.contributor-covenant.org/translations][translations].
+
+[homepage]: https://www.contributor-covenant.org
+[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
+[Mozilla CoC]: https://github.com/mozilla/diversity
+[FAQ]: https://www.contributor-covenant.org/faq
+[translations]: https://www.contributor-covenant.org/translations
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 000000000..0859c3b54
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,109 @@
+# Contributing to XERJ
+
+Thanks for your interest in XERJ — an Elasticsearch-wire-compatible search, vector, and log engine written in Rust. Contributions of all kinds are welcome: bug reports, documentation, tests, and code.
+
+By contributing, you agree that your contributions will be licensed under the project's [Apache License 2.0](./LICENSE).
+
+## Prerequisites
+
+- **Rust** (stable). Install via [rustup](https://rustup.rs/). The workspace uses the Rust 2021 edition.
+- **Node.js** (v20+) — only needed to run the benchmark tooling under `demo/playbooks`.
+- A POSIX-ish environment (Linux/macOS). XERJ builds to a single native binary.
+
+The Cargo workspace lives in the [`engine/`](./engine) directory — run all `cargo` commands from there.
+
+## Building
+
+```bash
+cd engine
+cargo build --release -p xerj-server # the server binary
+cargo build --release # everything
+```
+
+Run the server locally (insecure = no TLS, no auth; listens on `http://0.0.0.0:9200`):
+
+```bash
+./target/release/xerj --data-dir ./data --insecure
+```
+
+## Testing
+
+```bash
+cd engine
+cargo test # unit + integration tests
+cargo test -p xerj-engine --test integration
+```
+
+### ES-YAML conformance suite (required)
+
+XERJ's compatibility contract is the Elasticsearch REST API YAML test suite (1,329 cases extracted from ES 8.13). **100% pass is the target — there is no "known failures" list.** If a test expects one response and XERJ returns another, XERJ is wrong; fix the engine, not the test.
+
+```bash
+cd engine
+# Start XERJ in a scratch data dir first:
+target/release/xerj --insecure --data-dir /tmp/xerj-test &
+
+# Run the full suite:
+cargo run -p es-yaml-runner -- --dir tests/es-compat-yaml/yaml
+
+# Or a single suite / file:
+cargo run -p es-yaml-runner -- --dir tests/es-compat-yaml/yaml/search
+cargo run -p es-yaml-runner -- --file tests/es-compat-yaml/yaml/bulk/10_basic.yml --verbose
+```
+
+Run the full suite before opening a PR. A test that was passing yesterday and fails today is a P0 regression.
+
+## Code style
+
+- Format with `cargo fmt` and keep `cargo clippy` clean (`cargo clippy --all-targets -- -D warnings`). CI enforces both.
+- Match the style, naming, and comment density of the surrounding code.
+- Comments should explain constraints and non-obvious *why*, not narrate the code.
+
+## Git workflow
+
+Every non-trivial change lands on a task-named branch, gets a commit with a body explaining the motivation (and before/after benchmark numbers for perf work), and is fast-forwarded into `main`. The git history is the project's engineering log.
+
+```bash
+git checkout main && git pull
+git checkout -b <type>/<short-slug> # e.g. perf/shard-wal, fix/merge-hang
+# ...edit, build, test...
+git commit # detailed body: motivation, what changed, trade-offs
+git push origin <type>/<short-slug> # open a PR against main
+```
+
+**Commit bodies should include:** motivation, what changed, before/after benchmark numbers (for perf), known trade-offs, and pointers to the files a future contributor needs. Do not force-push to `main`, and don't `git commit --amend` a commit that's already been pushed.
+
+## Pull requests
+
+Before opening a PR, please make sure:
+
+- [ ] `cargo build --release` succeeds.
+- [ ] `cargo test`, `cargo fmt --check`, and `cargo clippy -D warnings` pass.
+- [ ] The ES-YAML conformance suite still passes (no new failures).
+- [ ] New ES-compatible behavior has a matching YAML test (add one under `engine/tests/es-compat-yaml/yaml/` if none exists).
+- [ ] Docs are updated if you changed user-facing behavior.
+
+The PR template will prompt you for this checklist.
+
+## Benchmarks
+
+Performance claims must be reproducible. The head-to-head-vs-Elasticsearch harness lives under [`demo/playbooks`](./demo/playbooks):
+
+```bash
+node demo/playbooks/bench-matrix.mjs --docs 100k,1m --clients 1,8 --knn --mixed
+```
+
+Read latencies are measured with a lean keep-alive HTTP client applied identically to both engines (see the methodology note the harness emits). If your change touches a hot path, include before/after numbers in the commit body.
+
+## Reporting bugs and requesting features
+
+Use the GitHub issue templates:
+
+- **Bug report** — include the version, OS, reproduction steps, and (importantly) whether the behavior is an Elasticsearch wire-compatibility divergence.
+- **Feature request** — describe the use case and, where relevant, the corresponding Elasticsearch behavior.
+
+Please do **not** open public issues for security vulnerabilities — see [SECURITY.md](./SECURITY.md) for private disclosure.
+
+## Code of Conduct
+
+This project follows the [Contributor Covenant](./CODE_OF_CONDUCT.md). By participating, you are expected to uphold it.
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000000000..261eeb9e9
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/NOTICE b/NOTICE
new file mode 100644
index 000000000..a06d6acf3
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,4 @@
+XERJ
+Copyright 2026 The XERJ Authors
+
+This product includes software developed by the XERJ project (https://xerj.org).
diff --git a/README.md b/README.md
new file mode 100644
index 000000000..19c87cf7e
--- /dev/null
+++ b/README.md
@@ -0,0 +1,244 @@
+# XERJ
+
+**A truly-open, Elasticsearch-wire-compatible search, vector, and log engine — written in Rust.**
+
+[![CI](https://github.com/xerj-org/xerj/actions/workflows/ci.yml/badge.svg)](https://github.com/xerj-org/xerj/actions/workflows/ci.yml)
+[![License: Apache-2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](./LICENSE)
+[![Version](https://img.shields.io/badge/version-1.0.0--rc.1-orange.svg)](https://github.com/xerj-org/xerj/releases)
+[![Rust](https://img.shields.io/badge/Rust-stable-000000.svg?logo=rust)](https://www.rust-lang.org/)
+[![ES conformance](https://img.shields.io/badge/ES%20conformance-1326%2F1329-brightgreen.svg)](https://xerj.org/benchmarks)
+
+XERJ speaks the Elasticsearch REST wire protocol, so your existing ES clients, dashboards, and tooling talk to it unchanged. Under the hood it combines full-text search (BM25), dense-vector kNN (HNSW), aggregations, and log analytics in a single native binary — no JVM, sub-second cold start. It is released under **Apache-2.0**, a genuinely open license, as an alternative to Elasticsearch's move to SSPL.
+
+---
+
+## Why XERJ
+
+- **Drop-in ES wire compatibility.** Implements the Elasticsearch REST surface — index/document APIs, `_search`, `_bulk`, aggregations, kNN, scroll, aliases, templates. Validated against **1,326 of 1,329** ES-YAML conformance cases extracted from Elasticsearch 8.13 source.
+- **Truly open.** Apache-2.0 licensed. No SSPL, no source-available asterisks, no per-feature license gates.
+- **One engine, four workloads.** Full-text BM25, vector kNN over HNSW, the standard aggregation suite, and columnar log analytics — all in the same process, over the same wire protocol.
+- **A single native binary.** Roughly a ~23 MB statically-linked executable. Sub-second start, no JVM, no heap-tuning ritual.
+- **Honest, reproducible benchmarks.** XERJ is measured head-to-head against Elasticsearch 8.13 across a 91-cell matrix. Results — wins *and* losses — are published at [xerj.org/benchmarks](https://xerj.org/benchmarks) and reproducible from the scripts in this repo.
+- **Written in Rust.** Memory-safe, `panic = "abort"`, fat-LTO release builds. Embedded Raft consensus (no external Raft dependency) for cluster metadata.
+
+---
+
+## Quickstart
+
+> The Cargo workspace lives in the `engine/` directory. Run build and test commands from there.
+
+### Build
+
+```bash
+git clone https://github.com/xerj-org/xerj.git
+cd xerj/engine
+cargo build --release -p xerj-server
+```
+
+### Run
+
+```bash
+# Insecure mode: no TLS, no auth — great for local development
+./target/release/xerj --data-dir ./data --insecure
+```
+
+XERJ listens on `http://0.0.0.0:9200` — the same default port as Elasticsearch.
+
+```bash
+curl http://localhost:9200
+```
+
+### A copy-pasteable walkthrough
+
+**1. Create an index** with a text field and a 3-dimensional vector field:
+
+```bash
+curl -X PUT http://localhost:9200/articles -H 'Content-Type: application/json' -d '{
+ "mappings": {
+ "properties": {
+ "title": { "type": "text" },
+ "category": { "type": "keyword" },
+ "views": { "type": "integer" },
+ "embedding": { "type": "dense_vector", "dims": 3 }
+ }
+ }
+}'
+```
+
+**2. Index documents via the Bulk API:**
+
+```bash
+curl -X POST http://localhost:9200/_bulk -H 'Content-Type: application/x-ndjson' -d '
+{ "index": { "_index": "articles", "_id": "1" } }
+{ "title": "Rust for search engines", "category": "engineering", "views": 1200, "embedding": [0.10, 0.20, 0.30] }
+{ "index": { "_index": "articles", "_id": "2" } }
+{ "title": "Vector search explained", "category": "engineering", "views": 850, "embedding": [0.11, 0.19, 0.28] }
+{ "index": { "_index": "articles", "_id": "3" } }
+{ "title": "Scaling log analytics", "category": "ops", "views": 430, "embedding": [0.90, 0.10, 0.05] }
+'
+```
+
+**3. Full-text search** with BM25 scoring:
+
+```bash
+curl -X POST http://localhost:9200/articles/_search -H 'Content-Type: application/json' -d '{
+ "query": { "match": { "title": "search" } }
+}'
+```
+
+**4. An aggregation** — total views per category:
+
+```bash
+curl -X POST http://localhost:9200/articles/_search -H 'Content-Type: application/json' -d '{
+ "size": 0,
+ "aggs": {
+ "by_category": {
+ "terms": { "field": "category" },
+ "aggs": { "total_views": { "sum": { "field": "views" } } }
+ }
+ }
+}'
+```
+
+**5. kNN vector search** (ES 8.x top-level `knn`):
+
+```bash
+curl -X POST http://localhost:9200/articles/_search -H 'Content-Type: application/json' -d '{
+ "knn": {
+ "field": "embedding",
+ "query_vector": [0.10, 0.20, 0.29],
+ "k": 2,
+ "num_candidates": 10
+ }
+}'
+```
+
+Every request and response above follows the Elasticsearch shape, so the same calls work through the official ES client libraries.
+
+---
+
+## Elasticsearch compatibility
+
+XERJ implements the Elasticsearch REST wire protocol. Because it is wire-compatible, existing ES client libraries and Kibana-style tooling can point at XERJ without code changes.
+
+**Document & index APIs**
+
+- `PUT` / `GET` / `DELETE /{index}/_doc/{id}`, `POST /{index}/_update/{id}`
+- `POST /_bulk` with `index`, `create`, `update`, and `delete` actions
+- `POST /{index}/_delete_by_query`
+- Index creation with mappings, `PUT /_index_template/{name}`, `POST /_aliases` (`add` / `remove`)
+- Scroll pagination: `POST /{index}/_search?scroll=1m`, `POST /_search/scroll`
+
+**Search** — `POST /{index}/_search` accepts a standard ES request body with `query`, `from`, `size`, `sort`, `aggs`, `_source`, and `highlight`. Comma-separated multi-index and wildcard index patterns are supported.
+
+**Supported query types**
+
+`match_all`, `match_none`, `match`, `match_phrase`, `match_phrase_prefix`, `multi_match`, `term`, `terms`, `range`, `prefix`, `wildcard`, `exists`, `ids`, `bool`, `fuzzy`, `regexp`, `query_string`, `simple_query_string`, `constant_score`, `boosting`, `dis_max`, `geo_distance`, `knn`, `semantic`, `hybrid`.
+
+**Supported aggregations**
+
+`terms`, `stats`, `avg`, `sum`, `min`, `max`, `value_count`, `cardinality`, `range`, `histogram`, `date_histogram`, `percentiles`, `filter`, `missing`, `composite`.
+
+The [ES-YAML conformance suite](#running-the-conformance-tests) — 1,329 cases across search, aggregations, vectors, bulk, indices, scroll, and cluster suites — is the source of truth for compatibility. XERJ currently passes 1,326 of them.
+
+---
+
+## Benchmarks
+
+XERJ is benchmarked head-to-head against **Elasticsearch 8.13** across a 91-cell matrix covering ingest, full-text search, aggregations, and vector search. The methodology and the full results — including the cases where Elasticsearch wins — are published at **[xerj.org/benchmarks](https://xerj.org/benchmarks)**.
+
+The benchmarks are reproducible: the harness and playbooks live under [`demo/playbooks`](./demo/playbooks) in this repository. We publish results warts-and-all rather than cherry-picking; treat any number you cannot reproduce with skepticism.
+
+---
+
+## Architecture / project layout
+
+XERJ is a Cargo workspace under [`engine/`](./engine). The crates:
+
+| Crate | Purpose |
+|---|---|
+| `xerj-server` | Binary entry point: CLI parsing, config loading, starts the API. |
+| `xerj-api` | Axum HTTP layer — ES-compatible REST handlers (`es_compat.rs`) and the native API. |
+| `xerj-engine` | Integration crate: the `Engine` and `Index` types that tie everything together. |
+| `xerj-query` | Query DSL — AST, ES JSON parser, planner, rewriter, and executor. |
+| `xerj-storage` | WAL, segments, version map, and the index store. |
+| `xerj-fts` | Full-text search: BM25 scoring, analyzer registry, postings lists. |
+| `xerj-vector` | Dense-vector HNSW index for kNN / semantic search. |
+| `xerj-logs` | Columnar log ingestion and retention. |
+| `xerj-ai` | Text chunking, embedding proxy, and memory store. |
+| `xerj-compress` | Block compression codecs (LZ4, Zstd). |
+| `xerj-common` | Shared types: `Config`, `Schema`, `FieldType`, `XerjError`. |
+| `xerj-cluster` | Embedded Raft consensus for cluster metadata (no external Raft dependency). |
+| `xerj-wasm` | Trait-based document-transform pipeline with an optional WASM backend. |
+| `xerj-console-api` | Backend for the Xerj Console (dashboards, auth, cluster awareness). |
+
+A search request flows: **HTTP → `xerj-api` (Axum) → `xerj-query` parse → `Engine::get_index` → `Index::search` (memtable + segment BM25, term/geo matching, aggregations, source filtering, highlighting) → JSON response.** On restart, the engine replays the WAL to rebuild in-memory state.
+
+---
+
+## Building from source
+
+Requirements: a stable Rust toolchain.
+
+```bash
+cd engine
+
+# Just the server binary
+cargo build --release -p xerj-server
+
+# The whole workspace
+cargo build --release --workspace
+```
+
+Run the unit and integration tests:
+
+```bash
+cd engine
+cargo test --workspace
+```
+
+---
+
+## Running the conformance tests
+
+The ES-YAML runner replays test cases extracted from Elasticsearch 8.13 against a live XERJ instance. Start the server, then run the suite:
+
+```bash
+# Terminal 1 — start XERJ
+./target/release/xerj --insecure --data-dir /tmp/xerj-test
+
+# Terminal 2 — run all 1,329 cases
+cd engine
+cargo run -p es-yaml-runner -- --dir tests/es-compat-yaml/yaml --verbose
+
+# Or a single suite
+cargo run -p es-yaml-runner -- --dir tests/es-compat-yaml/yaml/search
+cargo run -p es-yaml-runner -- --dir tests/es-compat-yaml/yaml/aggregations
+cargo run -p es-yaml-runner -- --dir tests/es-compat-yaml/yaml/vectors
+```
+
+If a test expects a response and XERJ returns something different, that's a bug in XERJ — not an accepted divergence.
+
+---
+
+## Contributing
+
+Contributions are welcome. Please read [CONTRIBUTING.md](./CONTRIBUTING.md) for how to build, test, and structure changes. A few conventions:
+
+- Changes land on a task-named branch with a descriptive commit body (motivation, what changed, and — for performance work — before/after numbers).
+- Run the full ES-YAML conformance suite before opening a release-bound PR; a test that passed yesterday and fails today is a P0 regression.
+- Keep the wire protocol honest: match Elasticsearch's behavior rather than inventing new semantics.
+
+---
+
+## License
+
+XERJ is licensed under the **Apache License 2.0**. See [LICENSE](./LICENSE) for the full text.
+
+---
+
+## Links
+
+- Website: **[xerj.org](https://xerj.org)**
+- Benchmarks: **[xerj.org/benchmarks](https://xerj.org/benchmarks)**
+- Source: **[github.com/xerj-org/xerj](https://github.com/xerj-org/xerj)**
diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 000000000..f0c8f8372
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,80 @@
+# Security Policy
+
+We take the security of XERJ seriously. Thank you for helping keep XERJ and its
+users safe.
+
+## Supported Versions
+
+XERJ is currently in the release-candidate phase leading up to 1.0.0. Security
+fixes are provided for the latest release-candidate line.
+
+| Version | Supported |
+| -------------- | ------------------ |
+| 1.0.0-rc.x | :white_check_mark: |
+| < 1.0.0-rc.1 | :x: |
+
+Once 1.0.0 is released, this table will be updated to reflect the supported
+stable release line. We recommend always running the most recent release.
+
+## Reporting a Vulnerability
+
+**Please do not report security vulnerabilities through public GitHub issues,
+discussions, or pull requests.** Public disclosure before a fix is available
+puts all users at risk.
+
+Instead, report vulnerabilities privately via email:
+
+
+Alternatively, you may use GitHub's private vulnerability reporting for the
+`xerj-org/xerj` repository (Security → Report a vulnerability), which routes the
+report to the maintainers confidentially.
+
+To help us triage and resolve the issue quickly, please include as much of the
+following as you can:
+
+- A description of the vulnerability and its potential impact
+- The affected component, version, or commit (e.g. `1.0.0-rc.1`)
+- Step-by-step instructions to reproduce the issue
+- A proof-of-concept, if available
+- Any known mitigations or workarounds
+- How you would like to be credited in the advisory (optional)
+
+## Our Commitment
+
+When you report a vulnerability to us, we will:
+
+- **Acknowledge** receipt of your report within **72 hours**.
+- Provide an **initial assessment** and triage, typically within **7 days**.
+- Keep you informed of our progress toward a fix and a remediation timeline.
+- Notify you when the vulnerability has been resolved.
+- Credit you in the security advisory for your responsible disclosure, unless
+ you prefer to remain anonymous.
+
+Please make a good-faith effort to avoid privacy violations, data destruction,
+and service disruption while investigating, and only interact with systems and
+accounts you own or for which you have explicit permission to test.
+
+## Disclosure Policy
+
+We follow a **coordinated disclosure** process:
+
+1. You report the vulnerability privately using one of the channels above.
+2. We confirm the issue, determine the affected versions, and develop a fix.
+3. We prepare a release containing the fix and, where appropriate, a published
+ security advisory (via GitHub Security Advisories / CVE).
+4. We publicly disclose the vulnerability after a fix is available, coordinating
+ the timing with you where possible.
+
+We ask that reporters give us a reasonable opportunity to remediate an issue
+before any public disclosure. We aim to resolve critical issues promptly and
+will work with you to agree on a disclosure timeline.
+
+## Scope
+
+This policy applies to the XERJ engine and its official crates in the
+`xerj-org/xerj` repository. Vulnerabilities in third-party dependencies should be
+reported to the respective upstream projects; if a dependency issue affects
+XERJ, we welcome a report so we can update or mitigate accordingly.
+
+Thank you for helping to keep XERJ secure.
diff --git a/brief/_arch-brief.rendered.html b/brief/_arch-brief.rendered.html
deleted file mode 100644
index 8a33aa60d..000000000
--- a/brief/_arch-brief.rendered.html
+++ /dev/null
@@ -1,2438 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ — Architecture Brief — V1 — 2026-04</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<style>
- :root {
- --bg: #0b0b0d;
- --ink: #f4f2ec;
- --mute: #8a8680;
- --faint: #2b2a28;
- --line: #3a3836;
- --accent: #ffc400;
-
- --z-bg: var(--bg); --z-ink: var(--ink); --z-mute: var(--mute);
- --z-line: var(--line); --z-accent: var(--accent); --z-faint: var(--faint);
-
- --font-display: 'Big Shoulders Display', 'Inter', system-ui, sans-serif;
- --font-prose: 'Inter', system-ui, sans-serif;
- --font-data: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
- --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
-
- --track-ui: 0.14em;
- --track-label: 0.08em;
- }
-
- @page { size: Letter; margin: 0; }
- * { box-sizing: border-box; margin: 0; padding: 0; }
-
- html, body {
- background: var(--bg);
- color: var(--ink);
- font-family: var(--font-prose);
- font-size: 10.5pt;
- line-height: 1.45;
- -webkit-font-smoothing: antialiased;
- text-rendering: optimizeLegibility;
- }
-
- .page {
- width: 8.5in;
- height: 11in;
- padding: 0.55in 0.6in;
- position: relative;
- page-break-after: always;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- }
- .page:last-child { page-break-after: auto; }
-
- .kicker {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- display: flex;
- gap: 0.5em;
- align-items: center;
- flex-wrap: wrap;
- }
- .kicker .dash { color: var(--faint); }
- .kicker .accent { color: var(--accent); }
-
- .accent { color: var(--accent); }
- .mute { color: var(--mute); }
- .mono { font-family: var(--font-mono); }
-
- h1, h2, h3, h4 {
- font-family: var(--font-display);
- font-weight: 900;
- text-transform: uppercase;
- letter-spacing: 0.02em;
- line-height: 0.92;
- }
-
- .hero { font-size: 64pt; line-height: 0.92; }
- .scene { font-size: 38pt; }
- h3 { font-size: 18pt; }
- h4 { font-size: 11pt; letter-spacing: var(--track-ui); color: var(--accent); }
-
- p.lead { font-size: 12pt; line-height: 1.5; max-width: 6.5in; }
- p.body { font-size: 9.5pt; line-height: 1.55; max-width: 6.5in; }
- p.body.wide { max-width: 100%; }
-
- em { font-style: italic; }
- code, .code { font-family: var(--font-mono); font-size: 9pt; color: var(--ink); }
-
- .sp-1 { height: 4px; }
- .sp-2 { height: 8px; } .sp-3 { height: 12px; } .sp-4 { height: 16px; }
- .sp-6 { height: 24px; } .sp-8 { height: 32px; } .sp-10 { height: 48px; }
-
- .flex { display: flex; } .col { flex-direction: column; }
- .grow { flex: 1 1 auto; min-height: 0; }
- .between { justify-content: space-between; }
-
- /* page frame */
- .head-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-bottom: 10px;
- border-bottom: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .head-row .brand { color: var(--ink); }
- .head-row .brand .accent { color: var(--accent); }
-
- .foot-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-top: 10px;
- border-top: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 500;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .foot-row .num { color: var(--ink); }
-
- /* key-value row */
- .kv-row {
- display: grid;
- grid-template-columns: 1.3in 1fr;
- gap: 0.25in;
- padding: 7px 0;
- border-bottom: 1px solid var(--line);
- align-items: baseline;
- }
- .kv-row .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .kv-row .v { font-size: 9.5pt; line-height: 1.5; }
- .kv-row .v .mono { font-size: 9pt; color: var(--ink); }
-
- /* 4-up value quadrant */
- .quad-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- grid-template-rows: 1fr 1fr;
- border-top: 1px solid var(--line);
- border-left: 1px solid var(--line);
- }
- .quad-grid > .cell {
- padding: 16px;
- border-right: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 6px;
- min-height: 1.7in;
- }
- .quad-grid .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .quad-grid .t {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 18pt;
- color: var(--ink);
- line-height: 1;
- text-transform: uppercase;
- letter-spacing: 0.01em;
- }
- .quad-grid .t .accent { color: var(--accent); }
- .quad-grid .b {
- font-size: 9.5pt;
- line-height: 1.45;
- color: var(--ink);
- margin-top: auto;
- }
-
- /* 3-column cards */
- .topo-grid {
- display: grid;
- grid-template-columns: 1fr 1fr 1fr;
- gap: 16px;
- }
- .topo-grid > .cell {
- padding: 14px 16px;
- border-top: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 6px;
- }
- .topo-grid .k {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .topo-grid .t {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 16pt;
- line-height: 1;
- text-transform: uppercase;
- letter-spacing: 0.01em;
- }
- .topo-grid .t .accent { color: var(--accent); }
- .topo-grid .b { font-size: 9pt; line-height: 1.45; }
- .topo-grid .facts {
- font-family: var(--font-mono);
- font-size: 8.5pt;
- color: var(--mute);
- line-height: 1.5;
- margin-top: 6px;
- }
-
- /* feature / capability matrix */
- .matrix {
- display: grid;
- grid-template-columns: 1.6in 1fr 0.7in;
- gap: 0;
- }
- .matrix > div {
- padding: 5px 10px;
- border-bottom: 1px solid var(--line);
- font-size: 9pt;
- line-height: 1.42;
- }
- .matrix .h {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- border-bottom: 1px solid var(--ink);
- }
- .matrix .k {
- font-family: var(--font-mono);
- font-size: 9pt;
- color: var(--accent);
- }
- .matrix .status {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- text-align: right;
- }
- .matrix .status.ga { color: var(--accent); }
- .matrix .status.beta { color: var(--ink); }
- .matrix .status.road { color: var(--mute); }
-
- /* status pill */
- .pill {
- display: inline-block;
- font-family: var(--font-data);
- font-size: 7.5pt;
- font-weight: 700;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- padding: 1px 6px;
- border: 1px solid;
- margin-left: 4px;
- vertical-align: 1px;
- }
- .pill.ga { color: var(--accent); border-color: var(--accent); }
- .pill.beta { color: var(--ink); border-color: var(--ink); }
- .pill.road { color: var(--mute); border-color: var(--line); }
-
- /* perf table */
- .perf {
- display: grid;
- grid-template-columns: 1.6in repeat(4, 1fr);
- width: 100%;
- }
- .perf > div {
- padding: 7px 10px;
- border-bottom: 1px solid var(--line);
- font-size: 9pt;
- }
- .perf .h {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- border-bottom: 1px solid var(--ink);
- }
- .perf .n { font-family: var(--font-mono); text-align: right; color: var(--ink); }
-
- /* architecture SVG block — preserves square geometry */
- .arch {
- width: 100%;
- margin: 6px 0 0 0;
- color: var(--ink);
- }
- .arch svg {
- display: block;
- width: 100%;
- height: auto;
- color: var(--ink);
- }
- .arch .legend {
- margin-top: 10px;
- font-family: var(--font-data);
- font-size: 8pt;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- display: flex;
- gap: 18px;
- flex-wrap: wrap;
- }
- .arch .legend .ink { color: var(--ink); }
- .arch .legend .yel { color: var(--accent); }
- .arch .legend .swatch {
- display: inline-block;
- width: 14px; height: 1px;
- background: currentColor;
- vertical-align: 3px;
- margin-right: 6px;
- }
- .arch .legend .swatch.dashed {
- height: 0;
- border-top: 1px dashed currentColor;
- background: transparent;
- }
-
- /* cover hero */
- .cover-hero {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 72pt;
- line-height: 0.9;
- letter-spacing: 0.01em;
- }
-
- /* big stat row (used on perf page) */
- .bigstat {
- display: grid;
- grid-template-columns: 1fr 1fr 1fr 1fr;
- border-top: 1px solid var(--line);
- }
- .bigstat > .b {
- padding: 14px 12px;
- border-right: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 4px;
- }
- .bigstat > .b:last-child { border-right: 0; }
- .bigstat .k {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .bigstat .v {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 30pt;
- line-height: 1;
- color: var(--accent);
- letter-spacing: 0.01em;
- }
- .bigstat .u {
- font-family: var(--font-data);
- font-size: 8pt;
- color: var(--mute);
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- }
-
- /* principle list */
- .principle {
- display: grid;
- grid-template-columns: 0.55in 1fr;
- gap: 18px;
- padding: 10px 0;
- border-top: 1px solid var(--line);
- align-items: baseline;
- }
- .principle .num {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 22pt;
- line-height: 1;
- color: var(--accent);
- }
- .principle .head {
- font-family: var(--font-data);
- font-size: 9pt;
- font-weight: 700;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--ink);
- margin-bottom: 3px;
- }
- .principle .body {
- font-size: 9pt;
- line-height: 1.5;
- color: var(--ink);
- }
-</style>
-</head>
-<body>
-
-<!-- =========================================================== -->
-<!-- P1 · COVER -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>ARCHITECTURE BRIEF · V1 · 2026-04</span>
- </div>
-
- <div class="grow flex col between">
- <div class="sp-10"></div>
-
- <div>
- <div class="kicker" style="margin-bottom:20px;">
- <span>FOR EXECUTIVES</span>
- <span class="dash">·</span>
- <span>ARCHITECTS</span>
- <span class="dash">·</span>
- <span>AI PROGRAM LEADS</span>
- </div>
-
- <div class="cover-hero">
- THE AI-NATIVE<br>
- DATA PLANE.<br>
- <span class="accent">ONE ENGINE.</span><br>
- <span class="accent">EVERY SIGNAL.</span>
- </div>
-
- <div class="sp-8"></div>
-
- <p class="lead" style="max-width:6in;">
- An architecture brief for the data platform that turns the
- retrieval stack — full-text, vectors, columnar logs, and agent
- memory — into a single Elasticsearch-compatible engine. Built
- in Rust. Shipped as one binary. Deployed in your cloud, your
- rack, or behind your air-gap.
- </p>
- </div>
-
- <div class="flex between" style="gap:24px;">
- <div class="kicker">
- <span>RELEASE V1.0.0-RC.1</span>
- <span class="dash">·</span>
- <span>ES 8.13 WIRE-COMPATIBLE</span>
- <span class="dash">·</span>
- <span>SELF-HOSTED</span>
- <span class="dash">·</span>
- <span>AGENT-READY</span>
- </div>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">01 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P2 · AI TRANSFORMATION THESIS -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>02 · AI TRANSFORMATION THESIS</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>WHY ARCHITECTURE MATTERS NOW</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">EVERY ENTERPRISE<br>IS BECOMING<br><span class="accent">A RETRIEVAL ENGINE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The shift from ten-blue-link search to agentic, retrieval-augmented
- applications is not a UI change. It is an infrastructure change.
- Every product team is now standing up the same primitive:
- <em>find the right context, in the right form, fast enough for a
- model to use it</em>. Today they assemble that primitive from four
- vendors and a Python orchestrator. The result is a retrieval
- stack that is brittle, expensive, and impossible to certify.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="quad-grid">
- <div class="cell">
- <span class="k">FRAGMENTATION TAX</span>
- <span class="t">FOUR STORES.<br><span class="accent">ONE QUERY.</span></span>
- <span class="b">A typical agentic application reads from full-text, vector, columnar, and session-memory stores in a single turn — over four wire protocols, four vendors, and four bills.</span>
- </div>
- <div class="cell">
- <span class="k">DATA GRAVITY</span>
- <span class="t">CONTEXT IS<br><span class="accent">DATA-LOCAL.</span></span>
- <span class="b">Logs, embeddings, metrics, and sessions describe the same events. Joining them in a Python orchestrator is an architecture mistake; the join belongs in storage.</span>
- </div>
- <div class="cell">
- <span class="k">SOVEREIGNTY</span>
- <span class="t">YOUR DATA.<br><span class="accent">YOUR PERIMETER.</span></span>
- <span class="b">Enterprise data — security telemetry, customer records, regulated content — does not leave the customer's control. The retrieval engine has to be self-hostable, top to bottom.</span>
- </div>
- <div class="cell">
- <span class="k">DETERMINISM</span>
- <span class="t">SLOS THAT<br><span class="accent">HOLD.</span></span>
- <span class="b">Agent loops amplify tail latency by the number of retrieval calls per turn. A 99th-percentile spike upstream is a user-visible stall downstream. Latency must be predictable, not average-good.</span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <h4>WHAT XERJ ARGUES</h4>
- <div class="sp-2"></div>
- <p class="body">
- The right architectural answer is a unified data plane —
- one engine that natively understands every retrieval modality,
- speaks the wire protocol enterprises already use, and runs
- inside the customer's security boundary.
- </p>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">02 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P3 · SYSTEM AT A GLANCE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>03 · SYSTEM AT A GLANCE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>SYSTEM AT A GLANCE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">CONTROL PLANE.<br><span class="accent">DATA PLANE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Xerj is one binary that exposes one cluster as one engine.
- The control plane carries cluster state, schema, identity, and
- audit. The data plane carries ingest, storage, search, and
- retrieval. Both are observable through one Prometheus endpoint.
- Both speak the same wire protocols every existing client
- already speaks.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
-
-<svg class="arch-svg" viewBox="0 0 1400 720" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-h { font-family: 'Big Shoulders Display','IBM Plex Sans',sans-serif; font-size: 18px; font-weight: 900; letter-spacing: 0.10em; fill: currentColor; text-transform: uppercase; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <!-- frame -->
- <rect x="0.5" y="0.5" width="1399" height="719" class="bx" opacity="0.18"/>
-
- <!-- ROW HEADER -->
- <text x="40" y="42" class="lbl-h">DATA PLANE</text>
- <text x="1100" y="42" class="lbl-h">CONTROL PLANE</text>
- <line x1="40" y1="58" x2="1360" y2="58" class="ln" opacity="0.35"/>
-
- <!-- ===== DATA PLANE — left/main column (40..1060) ===== -->
-
- <!-- Layer label: CLIENTS -->
- <text x="40" y="92" class="lbl-x">CLIENTS · APPLICATIONS · AGENTS</text>
- <rect x="40" y="100" width="1020" height="70" class="bx"/>
- <text x="80" y="142" class="lbl">ELASTICSEARCH SDKs</text>
- <text x="350" y="142" class="lbl">LANGCHAIN · LLAMAINDEX</text>
- <text x="700" y="142" class="lbl">DASHBOARDS · KIBANA</text>
- <text x="930" y="142" class="lbl">AGENTS</text>
-
- <!-- arrow down to API -->
- <line x1="550" y1="170" x2="550" y2="200" class="ln-a"/>
- <polyline points="540,192 550,202 560,192" class="ln-a"/>
-
- <!-- Layer: API SURFACE -->
- <text x="40" y="222" class="lbl-x">API SURFACE</text>
- <rect x="40" y="230" width="320" height="70" class="bx-a"/>
- <text x="60" y="262" class="lbl-a">ES WIRE · :9200</text>
- <text x="60" y="284" class="lbl-s">38 query types · bulk · scroll · kNN · hybrid</text>
-
- <rect x="380" y="230" width="320" height="70" class="bx"/>
- <text x="400" y="262" class="lbl">NATIVE REST · :8080</text>
- <text x="400" y="284" class="lbl-s">explain-plan · OTLP · syslog · pipelines</text>
-
- <rect x="720" y="230" width="340" height="70" class="bx"/>
- <text x="740" y="262" class="lbl">gRPC · :8081 / EMBEDDED UI</text>
- <text x="740" y="284" class="lbl-s">reserved · Xerj Console SPA at /_xerj-console/</text>
-
- <!-- arrow down to engine -->
- <line x1="550" y1="300" x2="550" y2="332" class="ln"/>
- <polyline points="540,324 550,334 560,324" class="ln"/>
-
- <!-- Layer: QUERY ENGINE -->
- <text x="40" y="354" class="lbl-x">QUERY ENGINE</text>
- <rect x="40" y="362" width="1020" height="70" class="bx"/>
- <text x="80" y="394" class="lbl">PARSER</text>
- <text x="280" y="394" class="lbl">PLANNER</text>
- <text x="500" y="394" class="lbl">EXECUTOR</text>
- <text x="730" y="394" class="lbl">HYBRID FUSION</text>
- <text x="940" y="394" class="lbl">EXPLAIN</text>
- <text x="80" y="416" class="lbl-s">ES JSON DSL · AST · cost model · rewriter · reciprocal-rank-fusion · per-query plan + counts</text>
-
- <!-- arrows down to stores -->
- <line x1="180" y1="432" x2="180" y2="468" class="ln"/>
- <polyline points="170,460 180,470 190,460" class="ln"/>
- <line x1="430" y1="432" x2="430" y2="468" class="ln"/>
- <polyline points="420,460 430,470 440,460" class="ln"/>
- <line x1="680" y1="432" x2="680" y2="468" class="ln"/>
- <polyline points="670,460 680,470 690,460" class="ln"/>
- <line x1="930" y1="432" x2="930" y2="468" class="ln"/>
- <polyline points="920,460 930,470 940,460" class="ln"/>
-
- <!-- Layer: STORES (4 boxes) -->
- <text x="40" y="490" class="lbl-x">UNIFIED STORES</text>
- <rect x="40" y="498" width="240" height="80" class="bx"/>
- <text x="60" y="528" class="lbl">FULL-TEXT</text>
- <text x="60" y="550" class="lbl-s">BM25 · 38 ES query types</text>
- <text x="60" y="566" class="lbl-s">10 analyzers · postings</text>
-
- <rect x="290" y="498" width="240" height="80" class="bx"/>
- <text x="310" y="528" class="lbl">VECTOR</text>
- <text x="310" y="550" class="lbl-s">HNSW · M=16 · ef tunable</text>
- <text x="310" y="566" class="lbl-s">SQ8 · nibble · float32 re-rank</text>
-
- <rect x="540" y="498" width="240" height="80" class="bx"/>
- <text x="560" y="528" class="lbl">COLUMNAR LOGS</text>
- <text x="560" y="550" class="lbl-s">delta-of-delta timestamps</text>
- <text x="560" y="566" class="lbl-s">dictionary + ZSTD</text>
-
- <rect x="790" y="498" width="270" height="80" class="bx"/>
- <text x="810" y="528" class="lbl">AGENT MEMORY</text>
- <text x="810" y="550" class="lbl-s">semantic dedup</text>
- <text x="810" y="566" class="lbl-s">recency-blended recall</text>
-
- <!-- Bracket joining stores -->
- <line x1="40" y1="585" x2="1060" y2="585" class="ln" opacity="0.35"/>
- <line x1="550" y1="585" x2="550" y2="612" class="ln"/>
- <polyline points="540,604 550,614 560,604" class="ln"/>
-
- <!-- Layer: STORAGE SUBSTRATE -->
- <text x="40" y="634" class="lbl-x">STORAGE SUBSTRATE</text>
- <rect x="40" y="642" width="1020" height="60" class="bx"/>
- <text x="80" y="676" class="lbl">SHARDED MEMTABLE · 16 SHARDS</text>
- <text x="500" y="676" class="lbl">SEGMENTS · MMAP · MERGE</text>
- <text x="860" y="676" class="lbl">WAL · FSYNC</text>
-
- <!-- ===== CONTROL PLANE — right column (1090..1360) ===== -->
- <line x1="1080" y1="80" x2="1080" y2="700" class="ln" opacity="0.30"/>
-
- <text x="1100" y="92" class="lbl-x">IDENTITY · STATE · OPS</text>
-
- <rect x="1100" y="100" width="260" height="56" class="bx"/>
- <text x="1118" y="124" class="lbl">AUTH · RBAC</text>
- <text x="1118" y="146" class="lbl-s">api keys · 7 privileges · roles</text>
-
- <rect x="1100" y="170" width="260" height="56" class="bx"/>
- <text x="1118" y="194" class="lbl">AUDIT LOG</text>
- <text x="1118" y="216" class="lbl-s">SHA-256 hash chain · WORM</text>
-
- <rect x="1100" y="240" width="260" height="56" class="bx"/>
- <text x="1118" y="264" class="lbl">SCHEMA REGISTRY</text>
- <text x="1118" y="286" class="lbl-s">field types · evolution</text>
-
- <rect x="1100" y="310" width="260" height="56" class="bx"/>
- <text x="1118" y="334" class="lbl">CLUSTER · RAFT</text>
- <text x="1118" y="356" class="lbl-s">embedded · no etcd / zk</text>
-
- <rect x="1100" y="380" width="260" height="56" class="bx"/>
- <text x="1118" y="404" class="lbl">METRICS · /HEALTHZ</text>
- <text x="1118" y="426" class="lbl-s">prometheus · k8s probes</text>
-
- <rect x="1100" y="450" width="260" height="56" class="bx"/>
- <text x="1118" y="474" class="lbl">SLOW-QUERY · ADMIN</text>
- <text x="1118" y="496" class="lbl-s">ring buffer · runtime tunable</text>
-
- <rect x="1100" y="520" width="260" height="56" class="bx"/>
- <text x="1118" y="544" class="lbl">TLS · ENCRYPTION</text>
- <text x="1118" y="566" class="lbl-s">rustls · BYOK · KMS</text>
-
- <!-- Cross-cutting dashed bracket -->
- <line x1="1100" y1="600" x2="1360" y2="600" class="ln-d"/>
- <text x="1100" y="624" class="lbl-x">CROSS-CUTTING · OBSERVES EVERY LAYER</text>
-
- <!-- footer caption -->
- <text x="40" y="710" class="lbl-x">EVERY LAYER · ONE BINARY · ONE CONFIG · ONE METRICS REGISTRY</text>
-</svg>
-
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">DATA PATH</span></span>
- <span><span class="swatch yel"></span><span class="yel">PRIMARY API · :9200</span></span>
- <span><span class="swatch dashed"></span><span>CONTROL PATH</span></span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>KEY PROPERTY</span>
- <span class="dash">·</span>
- <span>DATA PLANE AND CONTROL PLANE SCALE INDEPENDENTLY</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">03 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P4 · ARCHITECTURAL PRINCIPLES -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>04 · ARCHITECTURAL PRINCIPLES</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>ARCHITECTURAL PRINCIPLES</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SIX RULES.<br><span class="accent">ONE ENGINE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The shape of the engine is a direct consequence of six commitments.
- Every internal trade-off — sharded memtables, mmap-resident
- segments, embedded consensus, in-process embedding proxy — is the
- cheapest implementation of one of these principles.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="principle">
- <span class="num">01</span>
- <div>
- <div class="head">UNIFIED RETRIEVAL</div>
- <div class="body">Full-text, dense-vector, columnar logs, and agent memory share a single segment cache, a single write-ahead log, and a single permission model. There is no cross-store orchestrator because there is no cross-store boundary.</div>
- </div>
- </div>
- <div class="principle">
- <span class="num">02</span>
- <div>
- <div class="head">DROP-IN COMPATIBILITY</div>
- <div class="body">The primary API is the Elasticsearch 8.13 wire protocol. Existing clients, dashboards, and ingest collectors connect unchanged. Migration is a configuration change, not a rewrite.</div>
- </div>
- </div>
- <div class="principle">
- <span class="num">03</span>
- <div>
- <div class="head">DETERMINISTIC RUNTIME</div>
- <div class="body">Rust, no garbage collector, no JVM warm-up. Cold start is single-digit milliseconds. Tail latency is governed by code paths, not heap pressure. SLOs measured at p99.9 mean what they say.</div>
- </div>
- </div>
- <div class="principle">
- <span class="num">04</span>
- <div>
- <div class="head">SOVEREIGN BY DEFAULT</div>
- <div class="body">A single static binary. Air-gap installable. No mandatory cloud dependency. Identity, encryption keys, and audit data live wherever the customer's policy says they live.</div>
- </div>
- </div>
- <div class="principle">
- <span class="num">05</span>
- <div>
- <div class="head">EXPLAINABLE BY CONSTRUCTION</div>
- <div class="body">Every query produces an explain-plan with cost and row counts. Every privileged action produces an audit entry. Every release ships with reproduction scripts for every published number.</div>
- </div>
- </div>
- <div class="principle">
- <span class="num">06</span>
- <div>
- <div class="head">ONE OPERATIONAL SURFACE</div>
- <div class="body">One config file. One metrics endpoint. One audit trail. One backup story. The platform that runs SIEM also runs RAG, observability, and agent memory — same on-call rotation, same dashboards, same upgrade procedure.</div>
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">04 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P5 · SYSTEM LAYERS -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>05 · SYSTEM LAYERS</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>SYSTEM LAYERS</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FROM WIRE<br>TO <span class="accent">SEGMENT.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The engine is a stack of well-bounded layers. Wire protocols
- live at the top. The query planner sits in the middle. The
- storage substrate lives at the bottom. Each layer has one
- responsibility and one downstream contract — which is what
- makes the engine fast to read for a new architect and safe to
- modify for a contributor.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
-
-<svg class="arch-svg" viewBox="0 0 1400 600" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-h { font-family: 'Big Shoulders Display','IBM Plex Sans',sans-serif; font-size: 22px; font-weight: 900; letter-spacing: 0.08em; fill: currentColor; text-transform: uppercase; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <!-- frame -->
- <rect x="0.5" y="0.5" width="1399" height="599" class="bx" opacity="0.18"/>
-
- <!-- Left rail labels -->
- <text x="40" y="50" class="lbl-x">LAYER</text>
- <text x="40" y="70" class="lbl-x">RESPONSIBILITY</text>
-
- <!-- Right rail labels -->
- <text x="1180" y="50" class="lbl-x">DOWNSTREAM CONTRACT</text>
-
- <!-- Vertical guide lines -->
- <line x1="280" y1="90" x2="280" y2="560" class="ln" opacity="0.20"/>
- <line x1="1140" y1="90" x2="1140" y2="560" class="ln" opacity="0.20"/>
-
- <!-- ============ Stack of layers ============ -->
-
- <!-- L1: WIRE -->
- <text x="40" y="125" class="lbl">L1 · WIRE</text>
- <text x="40" y="145" class="lbl-s">protocol surface</text>
-
- <rect x="290" y="100" width="840" height="60" class="bx-a"/>
- <text x="310" y="132" class="lbl-a">HTTP · ES 8.13 · NATIVE REST · gRPC</text>
- <text x="310" y="152" class="lbl-s">routes · auth · rate-limit · TLS · request validation · response codec</text>
-
- <text x="1180" y="132" class="lbl">PARSED REQUEST</text>
- <text x="1180" y="152" class="lbl-s">typed query DSL</text>
-
- <line x1="710" y1="160" x2="710" y2="180" class="ln-a"/>
- <polyline points="700,172 710,182 720,172" class="ln-a"/>
-
- <!-- L2: QUERY -->
- <text x="40" y="215" class="lbl">L2 · QUERY</text>
- <text x="40" y="235" class="lbl-s">plan &amp; execute</text>
-
- <rect x="290" y="190" width="840" height="60" class="bx"/>
- <text x="310" y="222" class="lbl">PARSE · PLAN · REWRITE · EXECUTE · FUSE</text>
- <text x="310" y="242" class="lbl-s">cost model · per-pass concurrency · reciprocal-rank fusion · explain capture</text>
-
- <text x="1180" y="222" class="lbl">FANOUT TO STORES</text>
- <text x="1180" y="242" class="lbl-s">per-modality calls</text>
-
- <line x1="710" y1="250" x2="710" y2="270" class="ln"/>
- <polyline points="700,262 710,272 720,262" class="ln"/>
-
- <!-- L3: ENGINE -->
- <text x="40" y="305" class="lbl">L3 · ENGINE</text>
- <text x="40" y="325" class="lbl-s">indexes &amp; sessions</text>
-
- <rect x="290" y="280" width="840" height="60" class="bx"/>
- <text x="310" y="312" class="lbl">INDEX · MEMTABLE · BULK · TURBO INGEST · AUDIT · RBAC</text>
- <text x="310" y="332" class="lbl-s">per-index lifecycle · admit / flush / merge · privileged-action journal</text>
-
- <text x="1180" y="312" class="lbl">DOC OPERATIONS</text>
- <text x="1180" y="332" class="lbl-s">read · write · evolve</text>
-
- <line x1="710" y1="340" x2="710" y2="360" class="ln"/>
- <polyline points="700,352 710,362 720,352" class="ln"/>
-
- <!-- L4: RETRIEVAL -->
- <text x="40" y="395" class="lbl">L4 · RETRIEVAL</text>
- <text x="40" y="415" class="lbl-s">modality engines</text>
-
- <rect x="290" y="370" width="200" height="60" class="bx"/>
- <text x="310" y="402" class="lbl">FTS · BM25</text>
- <text x="310" y="422" class="lbl-s">postings · analyzers</text>
-
- <rect x="500" y="370" width="200" height="60" class="bx"/>
- <text x="520" y="402" class="lbl">VECTOR · HNSW</text>
- <text x="520" y="422" class="lbl-s">graph · quantizer</text>
-
- <rect x="710" y="370" width="200" height="60" class="bx"/>
- <text x="730" y="402" class="lbl">COLUMNAR LOGS</text>
- <text x="730" y="422" class="lbl-s">columns · doc-values</text>
-
- <rect x="920" y="370" width="210" height="60" class="bx"/>
- <text x="940" y="402" class="lbl">AI · CHUNK · MEMORY</text>
- <text x="940" y="422" class="lbl-s">embed · dedup · recall</text>
-
- <text x="1180" y="402" class="lbl">SEGMENT READS</text>
- <text x="1180" y="422" class="lbl-s">mmap · doc-values</text>
-
- <line x1="710" y1="430" x2="710" y2="450" class="ln"/>
- <polyline points="700,442 710,452 720,442" class="ln"/>
-
- <!-- L5: STORAGE -->
- <text x="40" y="485" class="lbl">L5 · STORAGE</text>
- <text x="40" y="505" class="lbl-s">durable substrate</text>
-
- <rect x="290" y="460" width="840" height="60" class="bx-a"/>
- <text x="310" y="492" class="lbl-a">WAL · SHARDED MEMTABLE · SEGMENTS · MERGE · CACHE</text>
- <text x="310" y="512" class="lbl-s">fsync per batch · 16-shard hash routing · sealed segments · background compaction</text>
-
- <text x="1180" y="492" class="lbl">FILESYSTEM</text>
- <text x="1180" y="512" class="lbl-s">single data dir</text>
-
- <!-- caption -->
- <text x="40" y="565" class="lbl-x">FIVE LAYERS · ONE PROCESS · NO CROSS-LAYER SHORTCUTS · NO HIDDEN COUPLING</text>
-</svg>
-
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">REQUEST PATH</span></span>
- <span><span class="swatch yel"></span><span class="yel">CRITICAL HOT PATH</span></span>
- <span><span class="swatch dashed"></span><span>DURABILITY · STATE</span></span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>EVERY LAYER</span>
- <span class="dash">·</span>
- <span>OWNS ONE CONCERN · EXPOSES ONE CONTRACT</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">05 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P6 · AI / RAG PLANE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>06 · AI &amp; RAG PLANE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>06</span><span class="dash">·</span><span>AI &amp; RAG PLANE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">CHUNK. EMBED.<br>RECALL. <span class="accent">REASON.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The AI plane turns documents and conversations into retrievable
- context. Three primitives — chunking, embedding, agent memory —
- sit in-process with the retrieval engine, so the round trip
- between the model and the right context is one network hop and
- one cache.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
-
-<svg class="arch-svg" viewBox="0 0 1400 620" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <!-- frame -->
- <rect x="0.5" y="0.5" width="1399" height="619" class="bx" opacity="0.18"/>
-
- <!-- column headers -->
- <text x="40" y="42" class="lbl-x">INGEST · INDEX-TIME</text>
- <text x="700" y="42" class="lbl-x">RETRIEVAL · QUERY-TIME</text>
- <line x1="40" y1="56" x2="1360" y2="56" class="ln" opacity="0.30"/>
-
- <!-- ============== INGEST PATH (top half) ============== -->
-
- <!-- documents -->
- <rect x="40" y="80" width="200" height="64" class="bx"/>
- <text x="60" y="112" class="lbl">DOCUMENTS</text>
- <text x="60" y="132" class="lbl-s">policies · tickets · code · pdf</text>
-
- <line x1="240" y1="112" x2="290" y2="112" class="ln"/>
- <polyline points="282,102 292,112 282,122" class="ln"/>
-
- <!-- chunker -->
- <rect x="290" y="80" width="220" height="64" class="bx"/>
- <text x="310" y="112" class="lbl">TEXT CHUNKER</text>
- <text x="310" y="132" class="lbl-s">sentence-aware · overlap</text>
-
- <line x1="510" y1="112" x2="560" y2="112" class="ln"/>
- <polyline points="552,102 562,112 552,122" class="ln"/>
-
- <!-- embedder -->
- <rect x="560" y="80" width="240" height="64" class="bx"/>
- <text x="580" y="112" class="lbl">EMBEDDING PROXY</text>
- <text x="580" y="132" class="lbl-s">openai-compatible · retry</text>
-
- <line x1="800" y1="112" x2="850" y2="112" class="ln"/>
- <polyline points="842,102 852,112 842,122" class="ln"/>
-
- <!-- vector index -->
- <rect x="850" y="80" width="220" height="64" class="bx-a"/>
- <text x="870" y="112" class="lbl-a">VECTOR · HNSW</text>
- <text x="870" y="132" class="lbl-s">M=16 · quantized</text>
-
- <line x1="1070" y1="112" x2="1120" y2="112" class="ln"/>
- <polyline points="1112,102 1122,112 1112,122" class="ln"/>
-
- <!-- ft index parallel -->
- <rect x="1120" y="80" width="220" height="64" class="bx"/>
- <text x="1140" y="112" class="lbl">FTS · BM25</text>
- <text x="1140" y="132" class="lbl-s">postings · analyzers</text>
-
- <!-- external embedder side note -->
- <line x1="680" y1="160" x2="680" y2="200" class="ln-d"/>
- <rect x="560" y="200" width="240" height="48" class="bx" opacity="0.7" stroke-dasharray="3 4"/>
- <text x="580" y="222" class="lbl-s">EXTERNAL MODEL</text>
- <text x="580" y="240" class="lbl-s">openai · voyage · in-house</text>
-
- <!-- ============== DIVIDER ============== -->
- <line x1="40" y1="300" x2="1360" y2="300" class="ln" opacity="0.30"/>
-
- <!-- ============== RETRIEVAL PATH (bottom half) ============== -->
-
- <!-- agent / model -->
- <rect x="40" y="340" width="220" height="64" class="bx"/>
- <text x="60" y="372" class="lbl">AGENT · APP</text>
- <text x="60" y="392" class="lbl-s">user turn · tool call</text>
-
- <line x1="260" y1="372" x2="310" y2="372" class="ln-a"/>
- <polyline points="302,362 312,372 302,382" class="ln-a"/>
-
- <!-- query -->
- <rect x="310" y="340" width="240" height="64" class="bx-a"/>
- <text x="330" y="372" class="lbl-a">HYBRID QUERY</text>
- <text x="330" y="392" class="lbl-s">keyword + vector + filter</text>
-
- <!-- planner / fusion -->
- <line x1="550" y1="372" x2="600" y2="372" class="ln-a"/>
- <polyline points="592,362 602,372 592,382" class="ln-a"/>
-
- <rect x="600" y="340" width="280" height="64" class="bx"/>
- <text x="620" y="372" class="lbl">PLANNER · RRF FUSION</text>
- <text x="620" y="392" class="lbl-s">single pass · in-process</text>
-
- <!-- fanout -->
- <line x1="740" y1="404" x2="740" y2="440" class="ln"/>
-
- <!-- 3 retrieval calls -->
- <line x1="200" y1="440" x2="1280" y2="440" class="ln"/>
- <line x1="200" y1="440" x2="200" y2="470" class="ln"/>
- <line x1="500" y1="440" x2="500" y2="470" class="ln"/>
- <line x1="800" y1="440" x2="800" y2="470" class="ln"/>
- <line x1="1100" y1="440" x2="1100" y2="470" class="ln"/>
- <polyline points="190,462 200,472 210,462" class="ln"/>
- <polyline points="490,462 500,472 510,462" class="ln"/>
- <polyline points="790,462 800,472 810,462" class="ln"/>
- <polyline points="1090,462 1100,472 1110,462" class="ln"/>
-
- <rect x="80" y="475" width="240" height="58" class="bx"/>
- <text x="100" y="502" class="lbl">FTS</text>
- <text x="100" y="522" class="lbl-s">keyword recall</text>
-
- <rect x="380" y="475" width="240" height="58" class="bx"/>
- <text x="400" y="502" class="lbl">VECTOR</text>
- <text x="400" y="522" class="lbl-s">semantic neighbours</text>
-
- <rect x="680" y="475" width="240" height="58" class="bx"/>
- <text x="700" y="502" class="lbl">COLUMNAR</text>
- <text x="700" y="522" class="lbl-s">structured filters</text>
-
- <rect x="980" y="475" width="240" height="58" class="bx"/>
- <text x="1000" y="502" class="lbl">AGENT MEMORY</text>
- <text x="1000" y="522" class="lbl-s">recency-blended</text>
-
- <!-- merge bracket -->
- <line x1="200" y1="555" x2="1100" y2="555" class="ln-a"/>
- <line x1="200" y1="533" x2="200" y2="555" class="ln"/>
- <line x1="500" y1="533" x2="500" y2="555" class="ln"/>
- <line x1="800" y1="533" x2="800" y2="555" class="ln"/>
- <line x1="1100" y1="533" x2="1100" y2="555" class="ln"/>
- <line x1="650" y1="555" x2="650" y2="582" class="ln-a"/>
- <polyline points="640,574 650,584 660,574" class="ln-a"/>
-
- <text x="500" y="606" class="lbl-a">FUSED RANKING · ONE RESPONSE</text>
-</svg>
-
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">DOCUMENT FLOW</span></span>
- <span><span class="swatch yel"></span><span class="yel">RETRIEVAL FLOW</span></span>
- <span><span class="swatch dashed"></span><span>EXTERNAL EMBEDDER</span></span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>WHAT THIS BUYS THE BUSINESS</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">CONTEXT QUALITY</div>
- <div class="v">Chunking is sentence-aware with configurable overlap, so semantic boundaries survive the split. Recall draws from keyword and vector signals at once, then blends with recency for memory tasks.</div>
- </div>
- <div class="kv-row">
- <div class="k">VENDOR INDEPENDENCE</div>
- <div class="v">The embedding proxy speaks the OpenAI-compatible HTTP API. Use OpenAI today, Voyage tomorrow, an in-house model next quarter — without re-indexing, and without re-architecting the application.</div>
- </div>
- <div class="kv-row">
- <div class="k">AGENT MEMORY</div>
- <div class="v">An append-only memory store with semantic dedup and a recency-blended scoring function. Agents stop re-asking, stop forgetting, and stop drifting across sessions.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">06 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P7 · HYBRID QUERY LIFECYCLE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>07 · HYBRID QUERY LIFECYCLE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>07</span><span class="dash">·</span><span>HYBRID QUERY LIFECYCLE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">PARSE. PLAN.<br>FAN OUT. <span class="accent">FUSE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- A hybrid query is the default. One request can express a keyword
- match, a vector neighbourhood, an aggregation, and a structured
- filter. The planner decomposes that into independent passes,
- runs them concurrently against the right index, and fuses the
- results with reciprocal rank fusion in a single pass — no
- external orchestrator, no cross-store HTTP calls.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
-
-<svg class="arch-svg" viewBox="0 0 1400 620" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <!-- frame -->
- <rect x="0.5" y="0.5" width="1399" height="619" class="bx" opacity="0.18"/>
-
- <!-- column rails: ingress · planner · fanout · merge · egress -->
- <text x="60" y="42" class="lbl-x">INGRESS</text>
- <text x="320" y="42" class="lbl-x">PARSE · PLAN</text>
- <text x="640" y="42" class="lbl-x">FAN OUT · EXECUTE</text>
- <text x="990" y="42" class="lbl-x">FUSE · ASSEMBLE</text>
- <text x="1230" y="42" class="lbl-x">EGRESS</text>
-
- <line x1="40" y1="56" x2="1360" y2="56" class="ln" opacity="0.30"/>
-
- <!-- INGRESS column -->
- <rect x="40" y="80" width="240" height="60" class="bx-a"/>
- <text x="60" y="112" class="lbl-a">CLIENT REQUEST</text>
- <text x="60" y="132" class="lbl-s">ES JSON DSL · :9200</text>
-
- <line x1="280" y1="110" x2="320" y2="110" class="ln-a"/>
- <polyline points="312,100 322,110 312,120" class="ln-a"/>
-
- <!-- PARSE -->
- <rect x="320" y="80" width="280" height="60" class="bx"/>
- <text x="340" y="112" class="lbl">PARSE</text>
- <text x="340" y="132" class="lbl-s">JSON → typed AST</text>
-
- <line x1="460" y1="140" x2="460" y2="180" class="ln"/>
- <polyline points="450,172 460,182 470,172" class="ln"/>
-
- <!-- PLAN -->
- <rect x="320" y="180" width="280" height="60" class="bx"/>
- <text x="340" y="212" class="lbl">PLAN · COST · REWRITE</text>
- <text x="340" y="232" class="lbl-s">cost model · per-pass concurrency</text>
-
- <line x1="600" y1="210" x2="640" y2="210" class="ln-a"/>
- <polyline points="632,200 642,210 632,220" class="ln-a"/>
-
- <!-- FANOUT central node -->
- <rect x="640" y="180" width="280" height="60" class="bx-a"/>
- <text x="660" y="212" class="lbl-a">EXECUTOR · FANOUT</text>
- <text x="660" y="232" class="lbl-s">parallel passes</text>
-
- <!-- 4 parallel passes -->
- <line x1="780" y1="240" x2="780" y2="280" class="ln-a"/>
-
- <line x1="200" y1="280" x2="1280" y2="280" class="ln"/>
- <line x1="200" y1="280" x2="200" y2="320" class="ln"/>
- <line x1="540" y1="280" x2="540" y2="320" class="ln"/>
- <line x1="880" y1="280" x2="880" y2="320" class="ln"/>
- <line x1="1220" y1="280" x2="1220" y2="320" class="ln"/>
- <polyline points="190,312 200,322 210,312" class="ln"/>
- <polyline points="530,312 540,322 550,312" class="ln"/>
- <polyline points="870,312 880,322 890,312" class="ln"/>
- <polyline points="1210,312 1220,322 1230,312" class="ln"/>
-
- <rect x="80" y="325" width="240" height="56" class="bx"/>
- <text x="100" y="350" class="lbl">FTS · BM25</text>
- <text x="100" y="370" class="lbl-s">postings · scoring</text>
-
- <rect x="420" y="325" width="240" height="56" class="bx"/>
- <text x="440" y="350" class="lbl">VECTOR · HNSW</text>
- <text x="440" y="370" class="lbl-s">graph traversal</text>
-
- <rect x="760" y="325" width="240" height="56" class="bx"/>
- <text x="780" y="350" class="lbl">FILTERS</text>
- <text x="780" y="370" class="lbl-s">range · term · exists</text>
-
- <rect x="1100" y="325" width="240" height="56" class="bx"/>
- <text x="1120" y="350" class="lbl">AGGREGATIONS</text>
- <text x="1120" y="370" class="lbl-s">terms · histo · percentiles</text>
-
- <!-- merge bracket -->
- <line x1="200" y1="381" x2="200" y2="410" class="ln"/>
- <line x1="540" y1="381" x2="540" y2="410" class="ln"/>
- <line x1="880" y1="381" x2="880" y2="410" class="ln"/>
- <line x1="1220" y1="381" x2="1220" y2="410" class="ln"/>
- <line x1="200" y1="410" x2="1220" y2="410" class="ln-a"/>
- <line x1="710" y1="410" x2="710" y2="445" class="ln-a"/>
- <polyline points="700,437 710,447 720,437" class="ln-a"/>
-
- <!-- FUSE -->
- <rect x="540" y="445" width="340" height="60" class="bx-a"/>
- <text x="560" y="477" class="lbl-a">RECIPROCAL RANK FUSION</text>
- <text x="560" y="497" class="lbl-s">single pass · in-process · no orchestrator</text>
-
- <line x1="710" y1="505" x2="710" y2="545" class="ln-a"/>
- <polyline points="700,537 710,547 720,537" class="ln-a"/>
-
- <!-- ASSEMBLE -->
- <rect x="320" y="545" width="780" height="60" class="bx"/>
- <text x="340" y="577" class="lbl">SOURCE FILTER · HIGHLIGHT · AGGS · EXPLAIN</text>
- <text x="340" y="597" class="lbl-s">final response shape · explain-plan side-channel populated</text>
-
- <!-- EGRESS arrow -->
- <line x1="1100" y1="575" x2="1140" y2="575" class="ln-a"/>
- <polyline points="1132,565 1142,575 1132,585" class="ln-a"/>
-
- <rect x="1140" y="545" width="220" height="60" class="bx-a"/>
- <text x="1160" y="577" class="lbl-a">CLIENT RESPONSE</text>
- <text x="1160" y="597" class="lbl-s">JSON · ES wire shape</text>
-
- <!-- explain dashed link -->
- <line x1="600" y1="210" x2="320" y2="80" class="ln-d"/>
- <text x="40" y="74" class="lbl-x">EXPLAIN-PLAN · COST + ROW COUNTS · QUERYABLE</text>
-
-</svg>
-
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">REQUEST · RESPONSE</span></span>
- <span><span class="swatch yel"></span><span class="yel">PARALLEL EXECUTION</span></span>
- <span><span class="swatch dashed"></span><span>EXPLAIN · OBSERVABILITY</span></span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>EVERY QUERY</span>
- <span class="dash">·</span>
- <span>RETURNS AN EXPLAIN-PLAN WITH COST AND ROW COUNTS</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">07 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P8 · STORAGE &amp; DURABILITY -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>08 · STORAGE &amp; DURABILITY</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>08</span><span class="dash">·</span><span>STORAGE &amp; DURABILITY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SHARDED MEMTABLE.<br><span class="accent">SEALED SEGMENTS.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Writes hit a sharded in-memory table to spread contention across
- cores. Durability is anchored in a single write-ahead log with
- monotonic sequence numbers, fsynced once per batch. Periodic
- flushes drain the memtable into immutable segments — compressed,
- memory-mapped, and merged in the background. Restart replays
- the log; orphan segments are re-attached on open.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
-
-<svg class="arch-svg" viewBox="0 0 1400 580" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-m { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.04em; fill: currentColor; opacity: 0.55; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <rect x="0.5" y="0.5" width="1399" height="579" class="bx" opacity="0.18"/>
-
- <!-- column headers -->
- <text x="40" y="42" class="lbl-x">ADMIT</text>
- <text x="320" y="42" class="lbl-x">ROUTE · SHARD</text>
- <text x="780" y="42" class="lbl-x">DURABLE LOG</text>
- <text x="1100" y="42" class="lbl-x">FLUSH · SEAL</text>
- <line x1="40" y1="56" x2="1360" y2="56" class="ln" opacity="0.30"/>
-
- <!-- inbound batch -->
- <rect x="40" y="80" width="220" height="64" class="bx"/>
- <text x="60" y="112" class="lbl">INGEST BATCH</text>
- <text x="60" y="132" class="lbl-s">_bulk · NDJSON · OTLP</text>
-
- <line x1="260" y1="112" x2="310" y2="112" class="ln-a"/>
- <polyline points="302,102 312,112 302,122" class="ln-a"/>
-
- <!-- shard router -->
- <rect x="310" y="80" width="220" height="64" class="bx-a"/>
- <text x="330" y="112" class="lbl-a">HASH ROUTE</text>
- <text x="330" y="132" class="lbl-m">xxh3_64(doc_id) &amp; 15</text>
-
- <!-- 16 sharded memtable cells -->
- <text x="600" y="74" class="lbl">SHARDED MEMTABLE · 16 SHARDS</text>
-
- <g stroke="currentColor" stroke-width="1" fill="none" stroke-linecap="square">
- <!-- 4×4 grid of shards -->
- <rect x="600" y="80" width="40" height="40"/>
- <rect x="650" y="80" width="40" height="40"/>
- <rect x="700" y="80" width="40" height="40"/>
- <rect x="750" y="80" width="40" height="40"/>
- <rect x="600" y="130" width="40" height="40"/>
- <rect x="650" y="130" width="40" height="40"/>
- <rect x="700" y="130" width="40" height="40"/>
- <rect x="750" y="130" width="40" height="40"/>
- </g>
- <!-- second row of 4×2 -->
- <g stroke="currentColor" stroke-width="1" fill="none" stroke-linecap="square">
- <rect x="600" y="180" width="40" height="40"/>
- <rect x="650" y="180" width="40" height="40"/>
- <rect x="700" y="180" width="40" height="40"/>
- <rect x="750" y="180" width="40" height="40"/>
- <rect x="600" y="230" width="40" height="40"/>
- <rect x="650" y="230" width="40" height="40"/>
- <rect x="700" y="230" width="40" height="40"/>
- <rect x="750" y="230" width="40" height="40"/>
- </g>
-
- <!-- highlight one shard yellow -->
- <rect x="700" y="130" width="40" height="40" class="bx-a"/>
-
- <!-- arrow from router to shard grid -->
- <line x1="530" y1="112" x2="600" y2="100" class="ln"/>
- <line x1="530" y1="112" x2="600" y2="150" class="ln"/>
- <line x1="530" y1="112" x2="600" y2="200" class="ln"/>
- <line x1="530" y1="112" x2="600" y2="250" class="ln"/>
-
- <!-- WAL writer -->
- <line x1="790" y1="170" x2="900" y2="170" class="ln-a"/>
- <polyline points="892,160 902,170 892,180" class="ln-a"/>
-
- <rect x="900" y="100" width="240" height="120" class="bx-a"/>
- <text x="920" y="130" class="lbl-a">WAL · SINGLE WRITER</text>
- <text x="920" y="156" class="lbl-s">monotonic seq_no</text>
- <text x="920" y="174" class="lbl-s">batched fsync</text>
- <text x="920" y="192" class="lbl-s">CRC32C per batch</text>
- <text x="920" y="212" class="lbl-m">2xx ← after fsync return</text>
-
- <!-- ===== bottom half: flush -> segment ===== -->
- <line x1="40" y1="310" x2="1360" y2="310" class="ln" opacity="0.30"/>
- <text x="40" y="338" class="lbl-x">PERIODIC FLUSH · ORDER BY SEQ_NO</text>
-
- <line x1="700" y1="270" x2="700" y2="372" class="ln"/>
- <polyline points="690,364 700,374 710,364" class="ln"/>
-
- <rect x="40" y="380" width="200" height="80" class="bx"/>
- <text x="60" y="412" class="lbl">DRAIN ALL SHARDS</text>
- <text x="60" y="432" class="lbl-s">single sorted stream</text>
- <text x="60" y="450" class="lbl-m">order: seq_no asc</text>
-
- <line x1="240" y1="420" x2="290" y2="420" class="ln"/>
- <polyline points="282,410 292,420 282,430" class="ln"/>
-
- <rect x="290" y="380" width="200" height="80" class="bx"/>
- <text x="310" y="412" class="lbl">BUILD SEGMENT</text>
- <text x="310" y="432" class="lbl-s">postings · doc-values</text>
- <text x="310" y="450" class="lbl-s">columnar logs · vectors</text>
-
- <line x1="490" y1="420" x2="540" y2="420" class="ln"/>
- <polyline points="532,410 542,420 532,430" class="ln"/>
-
- <rect x="540" y="380" width="200" height="80" class="bx"/>
- <text x="560" y="412" class="lbl">COMPRESS · SEAL</text>
- <text x="560" y="432" class="lbl-s">LZ4 / ZSTD codecs</text>
- <text x="560" y="450" class="lbl-s">dictionary · low-card</text>
-
- <line x1="740" y1="420" x2="790" y2="420" class="ln"/>
- <polyline points="782,410 792,420 782,430" class="ln"/>
-
- <rect x="790" y="380" width="200" height="80" class="bx-a"/>
- <text x="810" y="412" class="lbl-a">SEALED SEGMENT</text>
- <text x="810" y="432" class="lbl-s">immutable · mmap</text>
- <text x="810" y="450" class="lbl-s">indexed · queryable</text>
-
- <!-- merge background -->
- <line x1="890" y1="460" x2="890" y2="500" class="ln-d"/>
- <rect x="790" y="500" width="200" height="56" class="bx" stroke-dasharray="3 4" opacity="0.85"/>
- <text x="810" y="525" class="lbl-s">BACKGROUND MERGE</text>
- <text x="810" y="544" class="lbl-s">amortized · per-policy</text>
-
- <!-- recovery branch -->
- <line x1="990" y1="420" x2="1040" y2="420" class="ln"/>
- <polyline points="1032,410 1042,420 1032,430" class="ln"/>
- <rect x="1040" y="380" width="220" height="80" class="bx"/>
- <text x="1060" y="412" class="lbl">RESTART · OPEN</text>
- <text x="1060" y="432" class="lbl-s">replay WAL · re-attach</text>
- <text x="1060" y="450" class="lbl-s">orphan segments</text>
-
- <text x="40" y="558" class="lbl-x">DURABILITY · 2XX AFTER FSYNC · 100 % RESTART RECOVERY ON 5 M-DOC TEST</text>
-</svg>
-
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">WRITE PATH</span></span>
- <span><span class="swatch yel"></span><span class="yel">DURABLE STATE</span></span>
- <span><span class="swatch dashed"></span><span>BACKGROUND TASK</span></span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <div class="kv-row">
- <div class="k">DURABILITY</div>
- <div class="v">Every accepted batch is persisted to the WAL with fsync and a per-batch CRC before the client sees a 2xx. Crash recovery replays from the last checkpoint, idempotent per sequence number.</div>
- </div>
- <div class="kv-row">
- <div class="k">BACK-PRESSURE</div>
- <div class="v">When the WAL queue exceeds its watermark, ingest returns 429 with a structured retry hint. Producers slow down; the engine never silently drops.</div>
- </div>
- <div class="kv-row">
- <div class="k">RECOVERY</div>
- <div class="v">Open re-scans the data directory and re-attaches any orphan segments left by a concurrent flush and exit. Restart on a five-million-document workload preserves every accepted document.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">08 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P9 · VECTOR SUBSYSTEM -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>09 · VECTOR SUBSYSTEM</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>09</span><span class="dash">·</span><span>VECTOR SUBSYSTEM</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">HNSW.<br>QUANTIZED.<br><span class="accent">RE-RANKED.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The vector engine is an in-process HNSW graph with three
- distance metrics, three quantization levels, and an optional
- full-precision re-ranking pass. Recall and latency are
- runtime-tunable through a single parameter, so the same index
- can serve a low-latency conversational lookup and a high-recall
- offline batch from the same on-disk artifact.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
-
-<svg class="arch-svg" viewBox="0 0 1400 580" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-m { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.04em; fill: currentColor; opacity: 0.55; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- .pt { stroke: currentColor; stroke-width: 1; fill: none; opacity: 0.7; }
- .pt-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <rect x="0.5" y="0.5" width="1399" height="579" class="bx" opacity="0.18"/>
-
- <!-- HEADER columns -->
- <text x="40" y="42" class="lbl-x">QUERY VECTOR</text>
- <text x="380" y="42" class="lbl-x">HNSW GRAPH · LAYERED</text>
- <text x="980" y="42" class="lbl-x">QUANTIZE · RE-RANK · RETURN</text>
- <line x1="40" y1="56" x2="1360" y2="56" class="ln" opacity="0.30"/>
-
- <!-- query box -->
- <rect x="40" y="80" width="240" height="74" class="bx-a"/>
- <text x="60" y="112" class="lbl-a">QUERY VECTOR</text>
- <text x="60" y="132" class="lbl-s">N-dim float32 · max 4096</text>
- <text x="60" y="148" class="lbl-m">distance ∈ {cos, l2, dot}</text>
-
- <line x1="280" y1="116" x2="370" y2="116" class="ln-a"/>
- <polyline points="362,106 372,116 362,126" class="ln-a"/>
-
- <!-- HNSW illustration: 3 stacked layers with nodes connected -->
- <!-- Layer 2 (top, sparsest) -->
- <text x="380" y="80" class="lbl-x">LAYER 2 · SPARSE</text>
- <line x1="380" y1="92" x2="940" y2="92" class="ln" opacity="0.20"/>
- <g class="ln" opacity="0.7">
- <line x1="430" y1="115" x2="640" y2="115"/>
- <line x1="640" y1="115" x2="850" y2="115"/>
- <line x1="430" y1="115" x2="540" y2="135"/>
- <line x1="850" y1="115" x2="740" y2="135"/>
- </g>
- <circle cx="430" cy="115" r="3" fill="currentColor"/>
- <circle cx="640" cy="115" r="3" fill="currentColor"/>
- <circle cx="850" cy="115" r="3" fill="currentColor"/>
-
- <!-- Layer 1 -->
- <text x="380" y="170" class="lbl-x">LAYER 1 · MEDIUM</text>
- <line x1="380" y1="180" x2="940" y2="180" class="ln" opacity="0.20"/>
- <g class="ln" opacity="0.65">
- <line x1="430" y1="205" x2="540" y2="205"/>
- <line x1="540" y1="205" x2="640" y2="205"/>
- <line x1="640" y1="205" x2="740" y2="205"/>
- <line x1="740" y1="205" x2="850" y2="205"/>
- <line x1="430" y1="205" x2="500" y2="235"/>
- <line x1="540" y1="205" x2="600" y2="235"/>
- <line x1="640" y1="205" x2="700" y2="235"/>
- <line x1="740" y1="205" x2="800" y2="235"/>
- </g>
- <circle cx="430" cy="205" r="3" fill="currentColor"/>
- <circle cx="540" cy="205" r="3" fill="currentColor"/>
- <circle cx="640" cy="205" r="3" fill="currentColor"/>
- <circle cx="740" cy="205" r="3" fill="currentColor"/>
- <circle cx="850" cy="205" r="3" fill="currentColor"/>
-
- <!-- Layer 0 (bottom, densest) -->
- <text x="380" y="250" class="lbl-x">LAYER 0 · ALL VECTORS</text>
- <line x1="380" y1="260" x2="940" y2="260" class="ln" opacity="0.20"/>
- <g class="ln" opacity="0.55">
- <line x1="420" y1="295" x2="500" y2="285"/>
- <line x1="500" y1="285" x2="580" y2="305"/>
- <line x1="580" y1="305" x2="640" y2="290"/>
- <line x1="640" y1="290" x2="720" y2="300"/>
- <line x1="720" y1="300" x2="800" y2="285"/>
- <line x1="800" y1="285" x2="870" y2="305"/>
- <line x1="500" y1="285" x2="560" y2="320"/>
- <line x1="640" y1="290" x2="690" y2="325"/>
- <line x1="800" y1="285" x2="860" y2="320"/>
- <line x1="420" y1="295" x2="470" y2="330"/>
- </g>
- <g fill="currentColor" opacity="0.85">
- <circle cx="420" cy="295" r="2.5"/>
- <circle cx="470" cy="330" r="2.5"/>
- <circle cx="500" cy="285" r="2.5"/>
- <circle cx="560" cy="320" r="2.5"/>
- <circle cx="580" cy="305" r="2.5"/>
- <circle cx="640" cy="290" r="2.5"/>
- <circle cx="690" cy="325" r="2.5"/>
- <circle cx="720" cy="300" r="2.5"/>
- <circle cx="800" cy="285" r="2.5"/>
- <circle cx="860" cy="320" r="2.5"/>
- <circle cx="870" cy="305" r="2.5"/>
- </g>
-
- <!-- Highlighted top-K candidate ring -->
- <g class="pt-a" stroke-width="1" fill="none" opacity="1">
- <circle cx="640" cy="290" r="6"/>
- <circle cx="690" cy="325" r="6"/>
- <circle cx="720" cy="300" r="6"/>
- <circle cx="580" cy="305" r="6"/>
- </g>
-
- <!-- traversal path (entry on layer 2 → down) -->
- <g class="ln-a">
- <line x1="640" y1="115" x2="640" y2="205"/>
- <line x1="640" y1="205" x2="640" y2="290"/>
- </g>
- <text x="650" y="160" class="lbl-a">DESCENT</text>
-
- <!-- HNSW caption -->
- <text x="380" y="365" class="lbl-x">M = 16 BIDIRECTIONAL CONNECTIONS · EF_CONSTRUCTION = 200 · EF_SEARCH RUNTIME-TUNABLE</text>
-
- <!-- Right column: candidate set + quantization -->
- <line x1="940" y1="80" x2="940" y2="360" class="ln" opacity="0.30"/>
- <line x1="940" y1="290" x2="980" y2="290" class="ln-a"/>
- <polyline points="972,280 982,290 972,300" class="ln-a"/>
-
- <rect x="980" y="260" width="280" height="64" class="bx-a"/>
- <text x="1000" y="290" class="lbl-a">TOP-K CANDIDATES</text>
- <text x="1000" y="310" class="lbl-s">quantized distances</text>
-
- <line x1="1120" y1="324" x2="1120" y2="360" class="ln"/>
- <polyline points="1110,352 1120,362 1130,352" class="ln"/>
-
- <rect x="980" y="360" width="280" height="62" class="bx" stroke-dasharray="3 4"/>
- <text x="1000" y="388" class="lbl">FLOAT32 RE-RANK</text>
- <text x="1000" y="408" class="lbl-s">optional · final precision</text>
-
- <line x1="1120" y1="422" x2="1120" y2="458" class="ln"/>
- <polyline points="1110,450 1120,460 1130,450" class="ln"/>
-
- <rect x="980" y="458" width="280" height="58" class="bx"/>
- <text x="1000" y="484" class="lbl">RANKED RESULT</text>
- <text x="1000" y="504" class="lbl-s">final top-K · for fusion</text>
-
- <!-- Quantization legend on the LEFT (under HNSW) -->
- <text x="40" y="400" class="lbl-x">QUANTIZATION</text>
- <line x1="40" y1="412" x2="900" y2="412" class="ln" opacity="0.30"/>
-
- <rect x="40" y="425" width="200" height="80" class="bx"/>
- <text x="60" y="455" class="lbl">FLOAT 32</text>
- <text x="60" y="475" class="lbl-s">baseline</text>
- <text x="60" y="494" class="lbl-m">1× · full precision</text>
-
- <rect x="260" y="425" width="200" height="80" class="bx-a"/>
- <text x="280" y="455" class="lbl-a">SCALAR · U8</text>
- <text x="280" y="475" class="lbl-s">8-bit per dim</text>
- <text x="280" y="494" class="lbl-m">4× · recommended</text>
-
- <rect x="480" y="425" width="200" height="80" class="bx"/>
- <text x="500" y="455" class="lbl">NIBBLE</text>
- <text x="500" y="475" class="lbl-s">4-bit per dim</text>
- <text x="500" y="494" class="lbl-m">8× · max compression</text>
-
- <rect x="700" y="425" width="200" height="80" class="bx" stroke-dasharray="3 4"/>
- <text x="720" y="455" class="lbl">RE-RANK PASS</text>
- <text x="720" y="475" class="lbl-s">on top-K · float32</text>
- <text x="720" y="494" class="lbl-m">accuracy restoration</text>
-
- <text x="40" y="558" class="lbl-x">QUERY-TIME PARAMETER · TRADE RECALL FOR LATENCY · NO INDEX REBUILD</text>
-</svg>
-
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">GRAPH TRAVERSAL</span></span>
- <span><span class="swatch yel"></span><span class="yel">CANDIDATE SET</span></span>
- <span><span class="swatch dashed"></span><span>OPTIONAL RE-RANK</span></span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <div class="kv-row">
- <div class="k">QUANTIZATION</div>
- <div class="v">Three modes: float32 baseline, scalar 8-bit (4× compression), nibble (8× compression). The HNSW traversal uses the quantized form; an optional float32 re-ranking pass restores precision on the final top-K.</div>
- </div>
- <div class="kv-row">
- <div class="k">DISTANCE METRICS</div>
- <div class="v">Cosine, L2, and dot product. Per-index choice. The metric is part of the on-disk format header; a loader rejects any index with a mismatched metric or format version.</div>
- </div>
- <div class="kv-row">
- <div class="k">RECALL · LATENCY DIAL</div>
- <div class="v">A single runtime parameter trades recall for latency without rebuilding the index. Low-latency UIs and high-recall analytics share one artifact.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">09 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P10 · CLUSTER &amp; STATE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>10 · CLUSTER &amp; STATE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>10</span><span class="dash">·</span><span>CLUSTER &amp; STATE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">EMBEDDED CONSENSUS.<br><span class="accent">NO CO-PROCESS.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Cluster metadata — index schemas, shard assignments, the node
- roster — is replicated by an embedded Raft state machine. There
- is no separate ZooKeeper, etcd, or Consul to deploy, license,
- page on, or upgrade in lock-step with the engine. The data
- plane stays out of the consensus path: only metadata changes
- take a Raft round-trip.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
-
-<svg class="arch-svg" viewBox="0 0 1400 580" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-m { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.04em; fill: currentColor; opacity: 0.55; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <rect x="0.5" y="0.5" width="1399" height="579" class="bx" opacity="0.18"/>
-
- <!-- Header -->
- <text x="40" y="42" class="lbl-x">CLIENTS</text>
- <text x="700" y="42" class="lbl-x">XERJ NODES · IDENTICAL BINARIES</text>
- <line x1="40" y1="56" x2="1360" y2="56" class="ln" opacity="0.30"/>
-
- <!-- clients -->
- <rect x="40" y="80" width="240" height="80" class="bx"/>
- <text x="60" y="112" class="lbl">CLIENTS</text>
- <text x="60" y="132" class="lbl-s">ES SDKs · agents · UI</text>
- <text x="60" y="150" class="lbl-m">load-balanced over nodes</text>
-
- <!-- LB / data path -->
- <line x1="280" y1="120" x2="380" y2="120" class="ln-a"/>
- <polyline points="372,110 382,120 372,130" class="ln-a"/>
-
- <!-- 3 nodes arranged in triangle/raster -->
- <g>
- <!-- Node 1 (Leader) -->
- <rect x="380" y="80" width="280" height="180" class="bx-a"/>
- <text x="400" y="110" class="lbl-a">NODE A · LEADER</text>
- <text x="400" y="130" class="lbl-s">data plane · port :9200</text>
-
- <!-- inner sub-blocks -->
- <rect x="400" y="148" width="240" height="32" class="bx" opacity="0.85"/>
- <text x="412" y="170" class="lbl-s">RAFT · LEADER</text>
-
- <rect x="400" y="188" width="240" height="28" class="bx" opacity="0.85"/>
- <text x="412" y="207" class="lbl-s">METADATA STORE</text>
-
- <rect x="400" y="222" width="240" height="28" class="bx" opacity="0.85"/>
- <text x="412" y="241" class="lbl-s">DATA · INDICES · SHARDS</text>
- </g>
-
- <g>
- <!-- Node 2 (Follower) -->
- <rect x="700" y="80" width="280" height="180" class="bx"/>
- <text x="720" y="110" class="lbl">NODE B · FOLLOWER</text>
- <text x="720" y="130" class="lbl-s">data plane · port :9200</text>
-
- <rect x="720" y="148" width="240" height="32" class="bx" opacity="0.85"/>
- <text x="732" y="170" class="lbl-s">RAFT · FOLLOWER</text>
-
- <rect x="720" y="188" width="240" height="28" class="bx" opacity="0.85"/>
- <text x="732" y="207" class="lbl-s">METADATA STORE</text>
-
- <rect x="720" y="222" width="240" height="28" class="bx" opacity="0.85"/>
- <text x="732" y="241" class="lbl-s">DATA · INDICES · SHARDS</text>
- </g>
-
- <g>
- <!-- Node 3 (Follower) -->
- <rect x="1020" y="80" width="280" height="180" class="bx"/>
- <text x="1040" y="110" class="lbl">NODE C · FOLLOWER</text>
- <text x="1040" y="130" class="lbl-s">data plane · port :9200</text>
-
- <rect x="1040" y="148" width="240" height="32" class="bx" opacity="0.85"/>
- <text x="1052" y="170" class="lbl-s">RAFT · FOLLOWER</text>
-
- <rect x="1040" y="188" width="240" height="28" class="bx" opacity="0.85"/>
- <text x="1052" y="207" class="lbl-s">METADATA STORE</text>
-
- <rect x="1040" y="222" width="240" height="28" class="bx" opacity="0.85"/>
- <text x="1052" y="241" class="lbl-s">DATA · INDICES · SHARDS</text>
- </g>
-
- <!-- Raft links between nodes (yellow) -->
- <line x1="660" y1="164" x2="700" y2="164" class="ln-a"/>
- <polyline points="692,154 702,164 692,174" class="ln-a"/>
- <line x1="980" y1="164" x2="1020" y2="164" class="ln-a"/>
- <polyline points="1012,154 1022,164 1012,174" class="ln-a"/>
- <!-- and back-edges -->
- <line x1="660" y1="180" x2="1020" y2="180" class="ln-a" stroke-dasharray="2 4" opacity="0.5"/>
-
- <!-- gossip dashed underneath -->
- <line x1="540" y1="270" x2="1160" y2="270" class="ln-d"/>
- <text x="700" y="290" class="lbl-x">HEARTBEAT · GOSSIP · MEMBERSHIP</text>
-
- <!-- lower half: data replication -->
- <line x1="40" y1="340" x2="1360" y2="340" class="ln" opacity="0.30"/>
- <text x="40" y="368" class="lbl-x">DATA REPLICATION · PER-INDEX · NOT RAFT</text>
-
- <rect x="40" y="380" width="280" height="100" class="bx"/>
- <text x="60" y="412" class="lbl">CLIENT WRITE</text>
- <text x="60" y="432" class="lbl-s">_bulk · NDJSON · OTLP</text>
- <text x="60" y="450" class="lbl-m">routed to primary shard</text>
- <text x="60" y="468" class="lbl-m">based on metadata</text>
-
- <line x1="320" y1="425" x2="380" y2="425" class="ln"/>
- <polyline points="372,415 382,425 372,435" class="ln"/>
-
- <rect x="380" y="380" width="280" height="100" class="bx-a"/>
- <text x="400" y="412" class="lbl-a">PRIMARY SHARD</text>
- <text x="400" y="432" class="lbl-s">on owning node</text>
- <text x="400" y="450" class="lbl-m">WAL fsync</text>
- <text x="400" y="468" class="lbl-m">2xx after durable</text>
-
- <line x1="660" y1="425" x2="720" y2="425" class="ln"/>
- <polyline points="712,415 722,425 712,435" class="ln"/>
-
- <rect x="720" y="380" width="280" height="100" class="bx"/>
- <text x="740" y="412" class="lbl">REPLICA SHARDS</text>
- <text x="740" y="432" class="lbl-s">N copies · sync</text>
- <text x="740" y="450" class="lbl-m">quorum acknowledgement</text>
- <text x="740" y="468" class="lbl-m">read-path continuity</text>
-
- <line x1="1000" y1="425" x2="1060" y2="425" class="ln"/>
- <polyline points="1052,415 1062,425 1052,435" class="ln"/>
-
- <rect x="1060" y="380" width="280" height="100" class="bx"/>
- <text x="1080" y="412" class="lbl">FAILURE · FAILOVER</text>
- <text x="1080" y="432" class="lbl-s">replica promotes</text>
- <text x="1080" y="450" class="lbl-m">in-flight reads finish</text>
- <text x="1080" y="468" class="lbl-m">new writes hit new primary</text>
-
- <text x="40" y="555" class="lbl-x">METADATA · RAFT · CONSENSUS · DATA · PER-INDEX REPLICATION · NO CO-PROCESS</text>
-</svg>
-
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">DATA TRAFFIC</span></span>
- <span><span class="swatch yel"></span><span class="yel">RAFT (METADATA)</span></span>
- <span><span class="swatch dashed"></span><span>HEARTBEAT · GOSSIP</span></span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <div class="kv-row">
- <div class="k">METADATA SCOPE</div>
- <div class="v">Indices, schemas, shard placement, node membership. Replicated by Raft. Reads of metadata never block on consensus; the leader acknowledges, and followers serve.</div>
- </div>
- <div class="kv-row">
- <div class="k">DATA SCOPE</div>
- <div class="v">Documents, segments, vectors, and logs flow over the data ports. They are not Raft-replicated — replication for durability is per-index, governed by the metadata that Raft owns.</div>
- </div>
- <div class="kv-row">
- <div class="k">FAILURE MODEL</div>
- <div class="v">A leader loss costs one election round-trip on the metadata plane only. Reads and writes against existing indices continue uninterrupted.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">10 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P11 · SECURITY · COMPLIANCE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>11 · SECURITY &amp; COMPLIANCE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>11</span><span class="dash">·</span><span>SECURITY &amp; COMPLIANCE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">TAMPER-EVIDENT.<br><span class="accent">RBAC-NATIVE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Every privileged operation is a journal entry in an append-only
- audit log whose entries chain by SHA-256. Tampering with any
- entry breaks the chain at that point and at every subsequent
- entry. A single endpoint verifies the chain end-to-end;
- operators pin known-good chain heads externally for
- cross-restart attestation.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
-
-<svg class="arch-svg" viewBox="0 0 1400 380" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-m { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.04em; fill: currentColor; opacity: 0.55; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <rect x="0.5" y="0.5" width="1399" height="379" class="bx" opacity="0.18"/>
-
- <text x="40" y="42" class="lbl-x">PRIVILEGED OPERATION · WRITES ONE JOURNAL ENTRY</text>
- <line x1="40" y1="56" x2="1360" y2="56" class="ln" opacity="0.30"/>
-
- <!-- 5 entries chained -->
- <!-- Entry geometry -->
- <g>
- <!-- Entry 1 -->
- <rect x="40" y="80" width="240" height="170" class="bx"/>
- <text x="58" y="110" class="lbl-a">ENTRY · SEQ 1</text>
- <text x="58" y="135" class="lbl-s">op · search</text>
- <text x="58" y="153" class="lbl-s">subject · admin@</text>
- <text x="58" y="171" class="lbl-s">resource · idx-orders</text>
- <text x="58" y="189" class="lbl-s">outcome · ok</text>
- <text x="58" y="215" class="lbl-x">PREV-HASH</text>
- <text x="58" y="232" class="lbl-m">0000…0000</text>
- </g>
-
- <!-- chain link 1→2 -->
- <line x1="280" y1="165" x2="320" y2="165" class="ln-a"/>
- <polyline points="312,155 322,165 312,175" class="ln-a"/>
-
- <g>
- <rect x="320" y="80" width="240" height="170" class="bx"/>
- <text x="338" y="110" class="lbl-a">ENTRY · SEQ 2</text>
- <text x="338" y="135" class="lbl-s">op · index</text>
- <text x="338" y="153" class="lbl-s">subject · ingest-svc</text>
- <text x="338" y="171" class="lbl-s">resource · idx-logs</text>
- <text x="338" y="189" class="lbl-s">outcome · ok</text>
- <text x="338" y="215" class="lbl-x">PREV-HASH</text>
- <text x="338" y="232" class="lbl-m">d4f3…ae21</text>
- </g>
-
- <line x1="560" y1="165" x2="600" y2="165" class="ln-a"/>
- <polyline points="592,155 602,165 592,175" class="ln-a"/>
-
- <g>
- <rect x="600" y="80" width="240" height="170" class="bx"/>
- <text x="618" y="110" class="lbl-a">ENTRY · SEQ 3</text>
- <text x="618" y="135" class="lbl-s">op · admin.role.put</text>
- <text x="618" y="153" class="lbl-s">subject · admin@</text>
- <text x="618" y="171" class="lbl-s">resource · role/auditor</text>
- <text x="618" y="189" class="lbl-s">outcome · ok</text>
- <text x="618" y="215" class="lbl-x">PREV-HASH</text>
- <text x="618" y="232" class="lbl-m">9b1c…77fe</text>
- </g>
-
- <line x1="840" y1="165" x2="880" y2="165" class="ln-a"/>
- <polyline points="872,155 882,165 872,175" class="ln-a"/>
-
- <g>
- <rect x="880" y="80" width="240" height="170" class="bx"/>
- <text x="898" y="110" class="lbl-a">ENTRY · SEQ 4</text>
- <text x="898" y="135" class="lbl-s">op · delete</text>
- <text x="898" y="153" class="lbl-s">subject · ops@</text>
- <text x="898" y="171" class="lbl-s">resource · idx-orders</text>
- <text x="898" y="189" class="lbl-s">outcome · denied</text>
- <text x="898" y="215" class="lbl-x">PREV-HASH</text>
- <text x="898" y="232" class="lbl-m">52a7…04c1</text>
- </g>
-
- <line x1="1120" y1="165" x2="1160" y2="165" class="ln-a"/>
- <polyline points="1152,155 1162,165 1152,175" class="ln-a"/>
-
- <g>
- <rect x="1160" y="80" width="200" height="170" class="bx-a"/>
- <text x="1178" y="110" class="lbl-a">CHAIN HEAD</text>
- <text x="1178" y="135" class="lbl-s">verifier walks</text>
- <text x="1178" y="153" class="lbl-s">top-to-bottom</text>
- <text x="1178" y="171" class="lbl-s">stops on first</text>
- <text x="1178" y="189" class="lbl-s">mismatch</text>
- <text x="1178" y="215" class="lbl-x">EXPORT · ATTEST</text>
- <text x="1178" y="232" class="lbl-m">/_audit/_verify</text>
- </g>
-
- <!-- bottom bracket showing tamper detection -->
- <line x1="40" y1="290" x2="1360" y2="290" class="ln" opacity="0.30"/>
- <text x="40" y="314" class="lbl-x">TAMPER MODEL</text>
- <text x="40" y="340" class="lbl-s">EDITING ANY ENTRY · INVALIDATES THAT HASH · BREAKS EVERY SUBSEQUENT LINK · VERIFIER REPORTS THE FIRST BAD INDEX</text>
- <text x="40" y="362" class="lbl-x">SHA-256 LINK · APPEND-ONLY · WORM SEMANTICS · AUDIT-READ PRIVILEGE GATED</text>
-</svg>
-
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">JOURNAL ENTRY</span></span>
- <span><span class="swatch yel"></span><span class="yel">SHA-256 LINK</span></span>
- <span><span class="swatch dashed"></span><span>VERIFY · EXPORT</span></span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <div class="matrix">
- <div class="h">CONTROL</div>
- <div class="h">IMPLEMENTATION</div>
- <div class="h">STATUS</div>
-
- <div class="k">API-KEY AUTH</div>
- <div>Admin key generated on first start; subsequent keys minted under RBAC. Auth on every endpoint.</div>
- <div class="status ga">GA</div>
-
- <div class="k">RBAC</div>
- <div>Seven privileges; six seeded roles (admin, write, read, read-only-index, snapshot-admin, auditor). Per-pattern index scoping.</div>
- <div class="status beta">BETA</div>
-
- <div class="k">AUDIT LOG</div>
- <div>Append-only, hash-chained, queryable. Verify endpoint walks the chain end-to-end.</div>
- <div class="status ga">GA</div>
-
- <div class="k">TLS · TRANSIT</div>
- <div>rustls-based listener, modern ciphers. In-process integration scaffolded; final wiring lands at v1.0.0.</div>
- <div class="status beta">BETA</div>
-
- <div class="k">ENCRYPTION AT REST</div>
- <div>AES-GCM on segment + WAL files; keys held by an external KMS or BYOK-style integration.</div>
- <div class="status road">ROAD V1.0</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">11 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P12 · OPERATIONS &amp; OBSERVABILITY -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>12 · OPERATIONS &amp; OBSERVABILITY</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>12</span><span class="dash">·</span><span>OPERATIONS &amp; OBSERVABILITY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ONE BINARY.<br><span class="accent">DAY-TWO READY.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Day-two operations are baked in. Liveness and readiness probes
- ship on both API ports for Kubernetes. A built-in slow-query
- log surfaces regressions before they reach production. The
- embedded admin UI gives an operator everything an SRE needs
- without installing a second product.
- </p>
-
- <div class="sp-6"></div>
-
- <h4>OPERATIONAL SURFACE</h4>
- <div class="sp-2"></div>
-
- <div class="matrix">
- <div class="h">CAPABILITY</div>
- <div class="h">SHAPE</div>
- <div class="h">STATUS</div>
-
- <div class="k">LIVENESS · READINESS</div>
- <div>Standard Kubernetes probes on both data-plane ports. Listeners only bind after WAL replay; readiness then tracks cluster health — rolling restart is fleet-safe by default.</div>
- <div class="status ga">GA</div>
-
- <div class="k">METRICS</div>
- <div>Prometheus exposition. Counters, histograms, and gauges across ingest, query, flush, cache. Per-instance registry — no global-singleton label collisions.</div>
- <div class="status ga">GA</div>
-
- <div class="k">SLOW-QUERY LOG</div>
- <div>Bounded ring buffer of slow queries, threshold runtime-tunable. List, clear, and re-threshold from a single admin endpoint.</div>
- <div class="status ga">GA</div>
-
- <div class="k">EMBEDDED UI</div>
- <div>The Xerj Console playground SPA is compiled into the binary and served at a reserved path. Zero external dependency to operate the cluster.</div>
- <div class="status ga">GA</div>
-
- <div class="k">EXPLAIN PLAN</div>
- <div>Per-query cost and row counts queryable as a first-class endpoint. Quotas and circuit breakers enforce per-tenant ceilings before execution.</div>
- <div class="status ga">GA</div>
-
- <div class="k">HELM &amp; DOCKER</div>
- <div>StatefulSet chart with PVC, headless service, non-root security context, multi-arch image, HEALTHCHECK wired to readiness.</div>
- <div class="status ga">GA</div>
-
- <div class="k">SLOW · ADMIN APIS</div>
- <div>List, clear, threshold-set on the slow-query buffer; audit search and verify; security role list and put.</div>
- <div class="status ga">GA</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">12 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P13 · MEASURED PERFORMANCE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>13 · MEASURED PERFORMANCE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>13</span><span class="dash">·</span><span>MEASURED PERFORMANCE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">REAL HARDWARE.<br><span class="accent">REAL WORKLOAD.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The numbers below come from the v1.0.0-rc.1 verification run on
- a 32-core NVMe host against a real OpenSSH log corpus and a
- thousand-vector RAG workload. Every comparison number against
- Elasticsearch 8.13 was measured on the same host with identical
- wire payloads — not extrapolated.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="bigstat">
- <div class="b">
- <span class="k">COLD START</span>
- <span class="v">4 ms</span>
- <span class="u">vs ES 6.05 s · 863×</span>
- </div>
- <div class="b">
- <span class="k">BURST INGEST</span>
- <span class="v">5.97 M</span>
- <span class="u">docs/sec · loghub OpenSSH</span>
- </div>
- <div class="b">
- <span class="k">SUSTAINED</span>
- <span class="v">1.43 M</span>
- <span class="u">docs/sec · 5 M-doc run</span>
- </div>
- <div class="b">
- <span class="k">BINARY</span>
- <span class="v">19.6 MB</span>
- <span class="u">single static · no JVM</span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>HEAD-TO-HEAD vs ELASTICSEARCH 8.13</h4>
- <div class="sp-2"></div>
-
- <div class="perf">
- <div class="h">DIMENSION</div>
- <div class="h n">ES 8.13</div>
- <div class="h n">XERJ</div>
- <div class="h n">DELTA</div>
- <div class="h n">SOURCE</div>
-
- <div>Cold start</div>
- <div class="n">6.05 s</div>
- <div class="n">4 ms</div>
- <div class="n accent">863×</div>
- <div class="n">verify run</div>
-
- <div>RSS · 1 K-vector index</div>
- <div class="n">2,857 MB</div>
- <div class="n">727 MB</div>
- <div class="n accent">3.9×</div>
- <div class="n">verify run</div>
-
- <div>Index creation</div>
- <div class="n">93.9 ms</div>
- <div class="n">2.4 ms</div>
- <div class="n accent">39×</div>
- <div class="n">verify run</div>
-
- <div>Term query · p50</div>
- <div class="n">0.79 ms</div>
- <div class="n">0.31 ms</div>
- <div class="n accent">2.5×</div>
- <div class="n">verify run</div>
-
- <div>Match query · p50</div>
- <div class="n">1.28 ms</div>
- <div class="n">0.33 ms</div>
- <div class="n accent">3.9×</div>
- <div class="n">verify run</div>
-
- <div>Top-K sort · p50</div>
- <div class="n">4.28 ms</div>
- <div class="n">0.34 ms</div>
- <div class="n accent">12.6×</div>
- <div class="n">verify run</div>
-
- <div>Bulk · 1 K vectors</div>
- <div class="n">10,219 d/s</div>
- <div class="n">22,974 d/s</div>
- <div class="n accent">2.25×</div>
- <div class="n">verify run</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>WIRE COMPATIBILITY</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">ES YAML CONFORMANCE</div>
- <div class="v">1,305 / 1,329 cases pass — 98.2 % against the published Elasticsearch 8.13 REST conformance suite. Existing clients, dashboards, and ingest collectors connect unchanged.</div>
- </div>
- <div class="kv-row">
- <div class="k">DURABILITY UNDER RESTART</div>
- <div class="v">Five-million-document workload: every accepted document survives a process restart. Orphan-segment recovery on open closes the historical concurrent-flush-and-exit data-loss window.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">13 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P14 · GET STARTED · CONTACT -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>14 · GET STARTED</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-10"></div>
- <div class="kicker"><span>14</span><span class="dash">·</span><span>GET STARTED</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">PROVE IT<br><span class="accent">ON YOUR DATA.</span></h2>
-
- <div class="sp-6"></div>
-
- <p class="body">
- The fastest path is a two-week pilot on a real workload. We
- send the binary, the Helm chart, and the reproduction scripts
- for every number in this brief. You send one workload — SIEM,
- RAG, observability, or agent memory. We meet again in two
- weeks with your numbers, on your hardware, behind your
- perimeter.
- </p>
-
- <div class="sp-8"></div>
-
- <div style="padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);">
- <div class="kicker"><span>CONTACT</span></div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-display); font-weight: 900; font-size: 42pt; line-height:1; letter-spacing: 0.01em;">
- HELLO<span class="accent">@</span>XERJ.AI
- </div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-data); font-size: 9pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--mute);">
- XERJ.AI · XERJ.COM · XERJ.DEV
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>PILOT PROCESS</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">WEEK 0</div>
- <div class="v">Scoping call · pick workload · sign mutual NDA if needed (not required to receive the binary).</div>
- </div>
- <div class="kv-row">
- <div class="k">WEEK 1</div>
- <div class="v">Deploy in your environment · reproduce the published numbers on sample data · smoke-test ES client compatibility.</div>
- </div>
- <div class="kv-row">
- <div class="k">WEEK 2</div>
- <div class="v">Shadow against your workload · compare latency, footprint, cost. Decision meeting: your numbers, your hardware, your call.</div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>XERJ.AI</span>
- <span class="dash">·</span>
- <span>ARCHITECTURE BRIEF · V1</span>
- <span class="dash">·</span>
- <span>ENGINE V1.0.0-RC.1 · 2026-04</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">14 / 14</span>
- </div>
-</section>
-
-</body>
-</html>
diff --git a/brief/_compare-brief.rendered.html b/brief/_compare-brief.rendered.html
deleted file mode 100644
index 25737bd4e..000000000
--- a/brief/_compare-brief.rendered.html
+++ /dev/null
@@ -1,1887 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ — Head-to-Head vs Elasticsearch / ELK — V1 — 2026-04</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<style>
- :root {
- --bg: #0b0b0d;
- --ink: #f4f2ec;
- --mute: #8a8680;
- --faint: #2b2a28;
- --line: #3a3836;
- --accent: #ffc400;
-
- --font-display: 'Big Shoulders Display', 'Inter', system-ui, sans-serif;
- --font-prose: 'Inter', system-ui, sans-serif;
- --font-data: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
- --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
-
- --track-ui: 0.14em;
- --track-label: 0.08em;
- }
-
- @page { size: Letter; margin: 0; }
- * { box-sizing: border-box; margin: 0; padding: 0; }
-
- html, body {
- background: var(--bg);
- color: var(--ink);
- font-family: var(--font-prose);
- font-size: 10.5pt;
- line-height: 1.45;
- -webkit-font-smoothing: antialiased;
- text-rendering: optimizeLegibility;
- }
-
- .page {
- width: 8.5in;
- height: 11in;
- padding: 0.55in 0.6in;
- position: relative;
- page-break-after: always;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- }
- .page:last-child { page-break-after: auto; }
-
- .kicker {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- display: flex;
- gap: 0.5em;
- align-items: center;
- flex-wrap: wrap;
- }
- .kicker .dash { color: var(--faint); }
- .kicker .accent { color: var(--accent); }
-
- .accent { color: var(--accent); }
- .mute { color: var(--mute); }
- .mono { font-family: var(--font-mono); }
-
- h1, h2, h3, h4 {
- font-family: var(--font-display);
- font-weight: 900;
- text-transform: uppercase;
- letter-spacing: 0.02em;
- line-height: 0.92;
- }
-
- .hero { font-size: 64pt; line-height: 0.92; }
- .scene { font-size: 36pt; }
- h3 { font-size: 18pt; }
- h4 { font-size: 11pt; letter-spacing: var(--track-ui); color: var(--accent); }
-
- p.lead { font-size: 12pt; line-height: 1.5; max-width: 6.5in; }
- p.body { font-size: 9.5pt; line-height: 1.55; max-width: 6.5in; }
- p.body.wide { max-width: 100%; }
-
- em { font-style: italic; }
- code, .code { font-family: var(--font-mono); font-size: 9pt; color: var(--ink); }
-
- .sp-1 { height: 4px; }
- .sp-2 { height: 8px; } .sp-3 { height: 12px; } .sp-4 { height: 16px; }
- .sp-6 { height: 24px; } .sp-8 { height: 32px; } .sp-10 { height: 48px; }
-
- .flex { display: flex; } .col { flex-direction: column; }
- .grow { flex: 1 1 auto; min-height: 0; }
- .between { justify-content: space-between; }
-
- /* page frame */
- .head-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-bottom: 10px;
- border-bottom: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .head-row .brand { color: var(--ink); }
- .head-row .brand .accent { color: var(--accent); }
-
- .foot-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-top: 10px;
- border-top: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 500;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .foot-row .num { color: var(--ink); }
-
- /* key-value row */
- .kv-row {
- display: grid;
- grid-template-columns: 1.3in 1fr;
- gap: 0.25in;
- padding: 7px 0;
- border-bottom: 1px solid var(--line);
- align-items: baseline;
- }
- .kv-row .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .kv-row .v { font-size: 9.5pt; line-height: 1.5; }
-
- /* 4-up value quadrant */
- .quad-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- grid-template-rows: 1fr 1fr;
- border-top: 1px solid var(--line);
- border-left: 1px solid var(--line);
- }
- .quad-grid > .cell {
- padding: 16px;
- border-right: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 6px;
- min-height: 1.6in;
- }
- .quad-grid .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .quad-grid .t {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 18pt;
- color: var(--ink);
- line-height: 1;
- text-transform: uppercase;
- letter-spacing: 0.01em;
- }
- .quad-grid .t .accent { color: var(--accent); }
- .quad-grid .b {
- font-size: 9.5pt;
- line-height: 1.45;
- color: var(--ink);
- margin-top: auto;
- }
-
- /* feature / capability matrix */
- .matrix {
- display: grid;
- grid-template-columns: 1.6in 1fr 0.7in;
- gap: 0;
- }
- .matrix > div {
- padding: 5px 10px;
- border-bottom: 1px solid var(--line);
- font-size: 9pt;
- line-height: 1.42;
- }
- .matrix .h {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- border-bottom: 1px solid var(--ink);
- }
- .matrix .k {
- font-family: var(--font-mono);
- font-size: 9pt;
- color: var(--accent);
- }
- .matrix .status {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- text-align: right;
- }
- .matrix .status.ga { color: var(--accent); }
- .matrix .status.beta { color: var(--ink); }
- .matrix .status.road { color: var(--mute); }
-
- /* perf table */
- .perf {
- display: grid;
- grid-template-columns: 1.7in repeat(4, 1fr);
- width: 100%;
- }
- .perf > div {
- padding: 7px 10px;
- border-bottom: 1px solid var(--line);
- font-size: 9pt;
- }
- .perf .h {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- border-bottom: 1px solid var(--ink);
- }
- .perf .n { font-family: var(--font-mono); text-align: right; color: var(--ink); }
-
- /* architecture SVG block — preserves square geometry */
- .arch {
- width: 100%;
- margin: 6px 0 0 0;
- color: var(--ink);
- }
- .arch svg {
- display: block;
- width: 100%;
- height: auto;
- color: var(--ink);
- }
- .arch .legend {
- margin-top: 10px;
- font-family: var(--font-data);
- font-size: 8pt;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- display: flex;
- gap: 18px;
- flex-wrap: wrap;
- }
- .arch .legend .ink { color: var(--ink); }
- .arch .legend .yel { color: var(--accent); }
- .arch .legend .swatch {
- display: inline-block;
- width: 14px; height: 1px;
- background: currentColor;
- vertical-align: 3px;
- margin-right: 6px;
- }
- .arch .legend .swatch.dashed {
- height: 0;
- border-top: 1px dashed currentColor;
- background: transparent;
- }
-
- /* cover hero */
- .cover-hero {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 60pt;
- line-height: 0.9;
- letter-spacing: 0.01em;
- }
-
- /* big stat row */
- .bigstat {
- display: grid;
- grid-template-columns: 1fr 1fr 1fr 1fr;
- border-top: 1px solid var(--line);
- }
- .bigstat > .b {
- padding: 14px 12px;
- border-right: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 4px;
- }
- .bigstat > .b:last-child { border-right: 0; }
- .bigstat .k {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .bigstat .v {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 30pt;
- line-height: 1;
- color: var(--accent);
- letter-spacing: 0.01em;
- }
- .bigstat .u {
- font-family: var(--font-data);
- font-size: 8pt;
- color: var(--mute);
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- }
-
- /* VS two-column grid */
- .vs {
- display: grid;
- grid-template-columns: 1fr 1fr;
- border-top: 1px solid var(--line);
- border-left: 1px solid var(--line);
- }
- .vs > .col-h, .vs > .col-c {
- padding: 12px 14px;
- border-right: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- }
- .vs > .col-h {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 700;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- background: transparent;
- }
- .vs > .col-h.es { color: var(--ink); }
- .vs > .col-h.xa { color: var(--accent); }
- .vs > .col-c { font-size: 9pt; line-height: 1.5; }
- .vs > .col-c .lbl {
- font-family: var(--font-data);
- font-size: 8pt;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- display: block;
- margin-bottom: 3px;
- }
- .vs > .col-c.xa .lbl { color: var(--accent); }
-
- /* QUOTE WALL */
- .quote-wall {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 0;
- border-top: 1px solid var(--line);
- border-left: 1px solid var(--line);
- }
- .quote-wall .qc {
- padding: 14px 16px;
- border-right: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 8px;
- min-height: 1.55in;
- }
- .quote-wall .qc .q {
- font-family: var(--font-prose);
- font-size: 10pt;
- line-height: 1.5;
- color: var(--ink);
- font-style: italic;
- }
- .quote-wall .qc .q::before { content: "\201C"; color: var(--accent); margin-right: 2px; }
- .quote-wall .qc .q::after { content: "\201D"; color: var(--accent); margin-left: 2px; }
- .quote-wall .qc .a {
- margin-top: auto;
- font-family: var(--font-data);
- font-size: 7.5pt;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- line-height: 1.55;
- }
- .quote-wall .qc .a .who { color: var(--ink); }
-
- /* full-width feature quote */
- .pull-quote {
- border-top: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- padding: 16px 0;
- }
- .pull-quote .q {
- font-family: var(--font-display);
- font-weight: 800;
- font-size: 22pt;
- line-height: 1.05;
- text-transform: uppercase;
- letter-spacing: 0.005em;
- color: var(--ink);
- }
- .pull-quote .q .accent { color: var(--accent); }
- .pull-quote .a {
- margin-top: 10px;
- font-family: var(--font-data);
- font-size: 8.5pt;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .pull-quote .a .who { color: var(--ink); }
-
- /* sources block */
- .src {
- font-family: var(--font-data);
- font-size: 7.5pt;
- line-height: 1.55;
- color: var(--mute);
- letter-spacing: 0.04em;
- }
- .src .url { font-family: var(--font-mono); color: var(--ink); font-size: 7.5pt; }
-</style>
-</head>
-<body>
-
-<!-- =========================================================== -->
-<!-- P1 · COVER -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>HEAD-TO-HEAD · ES / ELK · V1 · 2026-04</span>
- </div>
-
- <div class="grow flex col between">
- <div class="sp-10"></div>
-
- <div>
- <div class="kicker" style="margin-bottom:20px;">
- <span>FOR ARCHITECTS</span>
- <span class="dash">·</span>
- <span>SRE LEADS</span>
- <span class="dash">·</span>
- <span>AI PROGRAM OWNERS</span>
- </div>
-
- <div class="cover-hero">
- ELASTICSEARCH<br>
- + VECTOR DB<br>
- + ELK + REDIS?<br>
- <span class="accent">ONE BINARY.</span>
- </div>
-
- <div class="sp-8"></div>
-
- <p class="lead" style="max-width:6in;">
- A head-to-head architecture brief for teams running — or about to
- run — the legacy retrieval stack under AI workloads. Vector,
- full-text, histograms, and agent memory through one engine, one
- wire protocol, and one bill. The voices in this brief are real,
- public, and dated.
- </p>
- </div>
-
- <div class="flex between" style="gap:24px;">
- <div class="kicker">
- <span>RELEASE V1.0.0-RC.1</span>
- <span class="dash">·</span>
- <span>ES 8.13 WIRE-COMPATIBLE</span>
- <span class="dash">·</span>
- <span>SELF-HOSTED</span>
- <span class="dash">·</span>
- <span>AGENT-READY</span>
- </div>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">01 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P2 · WHY THIS COMPARISON, NOW -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>02 · WHY THIS COMPARISON, NOW</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>AI WORKLOADS BREAK THE OLD STACK</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">AGENTS DON'T REPLACE<br>THE RETRIEVAL STACK.<br><span class="accent">THEY AMPLIFY ITS CRACKS.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Elasticsearch and the wider ELK stack carried a decade of search,
- logging, and SIEM workloads. They were not designed for the
- retrieval pattern an LLM agent imposes — many small, latency-bound,
- cross-modality calls per turn. Vendor-grade hybrid search, vector
- indexes, and agent memory have been bolted on. The architectural
- consequences land on the team running the cluster.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="quad-grid">
- <div class="cell">
- <span class="k">JVM HEAP</span>
- <span class="t">31 GB CEILING.<br><span class="accent">GC PAUSES.</span></span>
- <span class="b">Above 31 GB heap, compressed object pointers turn off and usable memory halves. Below that, GC pauses and circuit breakers govern tail latency. Vector graphs want everything in RAM.</span>
- </div>
- <div class="cell">
- <span class="k">QUERY SHAPE</span>
- <span class="t">HYBRID RETRIEVAL<br><span class="accent">IS A HAIR-BALL.</span></span>
- <span class="b">kNN + filter + BM25 + agg in one request requires post-filter workarounds, doubled scores, and rank-fusion in app code or a paid ranker. Score normalisation is the architect's problem.</span>
- </div>
- <div class="cell">
- <span class="k">SCALE TAX</span>
- <span class="t">RECOVERY STORMS.<br><span class="accent">FIELD EXPLOSIONS.</span></span>
- <span class="b">Tens of thousands of small shards each consume a fixed slice of heap. A node restart triggers a recovery storm. Dynamic mappings turn ingest mistakes into cluster-state bloat.</span>
- </div>
- <div class="cell">
- <span class="k">VENDOR FAN-OUT</span>
- <span class="t">FOUR STORES.<br><span class="accent">FOUR BILLS.</span></span>
- <span class="b">Most AI-native shops now run ES + a vector DB + Redis + something for logs. Four wire protocols, four quotas, four on-calls. The agent loop is one turn. The tail is four tails added together.</span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <h4>WHAT THIS BRIEF DOES</h4>
- <div class="sp-2"></div>
- <p class="body">
- Walks an architect through the head-to-head: where the legacy
- stack hurts under AI workloads, where Xerj is structurally
- different, and what the published, real-user voices actually say.
- Quotes are dated. Sources are listed.
- </p>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">02 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P3 · STACK CHOICE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>03 · THE STACK CHOICE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>THE STACK CHOICE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FOUR VENDORS.<br><span class="accent">OR ONE BINARY.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Today's AI shop runs the retrieval stack as a federation of point
- products, glued together in Python. Xerj collapses that
- federation into a single Rust binary that already speaks the
- Elasticsearch wire protocol. The agent code does not change. The
- architecture diagram does.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
-
-<svg class="arch-svg" viewBox="0 0 1400 720" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-h { font-family: 'Big Shoulders Display','IBM Plex Sans',sans-serif; font-size: 18px; font-weight: 900; letter-spacing: 0.10em; fill: currentColor; text-transform: uppercase; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <rect x="0.5" y="0.5" width="1399" height="719" class="bx" opacity="0.18"/>
-
- <!-- HEADERS -->
- <text x="40" y="42" class="lbl-h">TODAY · MULTI-VENDOR STACK</text>
- <text x="780" y="42" class="lbl-h">XERJ · UNIFIED DATA PLANE</text>
- <line x1="40" y1="58" x2="700" y2="58" class="ln" opacity="0.35"/>
- <line x1="780" y1="58" x2="1360" y2="58" class="ln-a" opacity="0.5"/>
-
- <!-- DIVIDER -->
- <line x1="740" y1="40" x2="740" y2="700" class="ln-d"/>
-
- <!-- ============================ LEFT: FRANKENSTACK ============================ -->
-
- <!-- AGENT / APP -->
- <text x="40" y="92" class="lbl-x">AGENT · APPLICATION</text>
- <rect x="40" y="100" width="660" height="46" class="bx"/>
- <text x="60" y="128" class="lbl">PYTHON ORCHESTRATOR · LANGCHAIN</text>
-
- <!-- 4 fan-out arrows -->
- <line x1="120" y1="146" x2="120" y2="186" class="ln"/>
- <polyline points="110,178 120,188 130,178" class="ln"/>
- <line x1="290" y1="146" x2="290" y2="186" class="ln"/>
- <polyline points="280,178 290,188 300,178" class="ln"/>
- <line x1="470" y1="146" x2="470" y2="186" class="ln"/>
- <polyline points="460,178 470,188 480,178" class="ln"/>
- <line x1="630" y1="146" x2="630" y2="186" class="ln"/>
- <polyline points="620,178 630,188 640,178" class="ln"/>
-
- <!-- 4 stores -->
- <text x="40" y="208" class="lbl-x">FOUR STORES · FOUR VENDORS · FOUR BILLS</text>
-
- <rect x="40" y="216" width="160" height="120" class="bx"/>
- <text x="58" y="244" class="lbl">FULL-TEXT</text>
- <text x="58" y="266" class="lbl-s">elasticsearch</text>
- <text x="58" y="284" class="lbl-s">JVM · 64–256 GB</text>
- <text x="58" y="302" class="lbl-s">shards · zen / raft</text>
- <text x="58" y="320" class="lbl-s">api-keys · audit</text>
-
- <rect x="210" y="216" width="160" height="120" class="bx"/>
- <text x="228" y="244" class="lbl">VECTORS</text>
- <text x="228" y="266" class="lbl-s">pinecone / weaviate</text>
- <text x="228" y="284" class="lbl-s">managed only</text>
- <text x="228" y="302" class="lbl-s">separate tenancy</text>
- <text x="228" y="320" class="lbl-s">separate audit</text>
-
- <rect x="380" y="216" width="160" height="120" class="bx"/>
- <text x="398" y="244" class="lbl">LOGS</text>
- <text x="398" y="266" class="lbl-s">ELK · loki · OS</text>
- <text x="398" y="284" class="lbl-s">JVM · disks · GBs</text>
- <text x="398" y="302" class="lbl-s">own pipeline</text>
- <text x="398" y="320" class="lbl-s">own dashboards</text>
-
- <rect x="550" y="216" width="150" height="120" class="bx"/>
- <text x="568" y="244" class="lbl">MEMORY</text>
- <text x="568" y="266" class="lbl-s">redis · postgres</text>
- <text x="568" y="284" class="lbl-s">manual TTL</text>
- <text x="568" y="302" class="lbl-s">no semantic</text>
- <text x="568" y="320" class="lbl-s">dedup</text>
-
- <!-- CONSEQUENCE BLOCK -->
- <text x="40" y="372" class="lbl-x">CONSEQUENCE — WHAT THE ARCHITECT INHERITS</text>
- <rect x="40" y="380" width="660" height="170" class="bx"/>
-
- <text x="60" y="410" class="lbl-a">FRAGMENTATION TAX</text>
- <text x="60" y="428" class="lbl-s">4 wire protocols · 4 client libs · 4 quota systems</text>
-
- <text x="60" y="456" class="lbl-a">JOIN-IN-PYTHON</text>
- <text x="60" y="474" class="lbl-s">RRF runs in app code · cross-store HTTP · no plan, no cost</text>
-
- <text x="60" y="502" class="lbl-a">TAIL × 4</text>
- <text x="60" y="520" class="lbl-s">one slow store stalls every agent turn · p99.9 multiplies</text>
-
- <text x="60" y="540" class="lbl-s" style="opacity:0.85;">ONE QUERY → FOUR HOPS · FOUR FAILURE DOMAINS · FOUR ON-CALL ROTATIONS</text>
-
- <!-- footnote -->
- <text x="40" y="600" class="lbl-x">JVM HEAP · GC PAUSES · SHARD STORMS · CIRCUIT BREAKERS · FIELD-EXPLOSION · PRICING JUMPS</text>
- <text x="40" y="624" class="lbl-x">EVERY LAYER OWNED BY A DIFFERENT VENDOR</text>
-
- <!-- ============================ RIGHT: XERJ ============================ -->
-
- <!-- AGENT / APP -->
- <text x="780" y="92" class="lbl-x">AGENT · APPLICATION</text>
- <rect x="780" y="100" width="580" height="46" class="bx"/>
- <text x="800" y="128" class="lbl">ANY CLIENT · ES SDK · LANGCHAIN · AGENT</text>
-
- <!-- single arrow -->
- <line x1="1070" y1="146" x2="1070" y2="186" class="ln-a"/>
- <polyline points="1060,178 1070,188 1080,178" class="ln-a"/>
-
- <!-- ONE BINARY -->
- <text x="780" y="208" class="lbl-x">ONE BINARY · ONE ENGINE · ONE BILL</text>
- <rect x="780" y="216" width="580" height="334" class="bx-a"/>
-
- <text x="800" y="248" class="lbl-a">XERJ</text>
- <text x="800" y="270" class="lbl-s">RUST · NO JVM · NO GC · STATIC LINK · 19.6 MB</text>
-
- <!-- 4 inner stores, side by side -->
- <rect x="800" y="290" width="125" height="78" class="bx"/>
- <text x="816" y="316" class="lbl">FULL-TEXT</text>
- <text x="816" y="334" class="lbl-s">BM25 · 38 ES queries</text>
- <text x="816" y="350" class="lbl-s">10 analyzers</text>
-
- <rect x="935" y="290" width="125" height="78" class="bx-a"/>
- <text x="951" y="316" class="lbl">VECTOR</text>
- <text x="951" y="334" class="lbl-s">HNSW · M=16</text>
- <text x="951" y="350" class="lbl-s">SQ8 · nibble · re-rank</text>
-
- <rect x="1070" y="290" width="125" height="78" class="bx"/>
- <text x="1086" y="316" class="lbl">LOGS</text>
- <text x="1086" y="334" class="lbl-s">columnar · ZSTD</text>
- <text x="1086" y="350" class="lbl-s">delta-of-delta ts</text>
-
- <rect x="1205" y="290" width="135" height="78" class="bx-a"/>
- <text x="1221" y="316" class="lbl">MEMORY</text>
- <text x="1221" y="334" class="lbl-s">semantic dedup</text>
- <text x="1221" y="350" class="lbl-s">recency-blended</text>
-
- <!-- shared substrate -->
- <text x="800" y="394" class="lbl-x">ONE SEGMENT CACHE · ONE WAL · ONE PERMISSION MODEL · ONE EXPLAIN PLAN</text>
- <line x1="800" y1="402" x2="1340" y2="402" class="ln" opacity="0.35"/>
-
- <!-- single hop arrow back to client -->
- <line x1="1070" y1="408" x2="1070" y2="438" class="ln-a"/>
- <polyline points="1060,430 1070,440 1080,430" class="ln-a"/>
-
- <text x="800" y="464" class="lbl-a">PROPERTY</text>
- <rect x="800" y="476" width="540" height="62" class="bx"/>
- <text x="820" y="502" class="lbl">ONE QUERY → ONE HOP → ONE PLAN → ONE BILL</text>
- <text x="820" y="522" class="lbl-s">data-plane sees no consensus · metadata only over Raft · drop-in ES wire</text>
-
- <!-- footnote -->
- <text x="780" y="600" class="lbl-x">DETERMINISTIC RUNTIME · STATIC BINARY · AIR-GAP · ES-COMPATIBLE</text>
- <text x="780" y="624" class="lbl-x">ONE ON-CALL · ONE DASHBOARD · ONE UPGRADE</text>
-
- <!-- footer caption -->
- <text x="40" y="700" class="lbl-x">FOUR VENDORS COLLAPSE INTO ONE BINARY · NO RE-ARCHITECTURE FROM THE CLIENT'S POINT OF VIEW</text>
-</svg>
-
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">DATA PATH</span></span>
- <span><span class="swatch yel"></span><span class="yel">XERJ PATH · :9200</span></span>
- <span><span class="swatch dashed"></span><span>BOUNDARY</span></span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>FROM THE CLIENT'S POINT OF VIEW</span>
- <span class="dash">·</span>
- <span>NOTHING CHANGES — THE NUMBER OF VENDORS DOES</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">03 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P4 · JVM TRAP -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>04 · THE JVM TRAP</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>HEAP, GC, AND THE 31 GB WALL</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">A CEILING YOU<br>CAN'T <span class="accent">UPGRADE OUT OF.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The single most persistent source of instability in production
- Elasticsearch clusters is JVM memory management. Vector workloads
- raise the stakes: the HNSW graph wants the full vector set in RAM,
- filtered kNN can fall back to brute force, and a stop-the-world
- pause becomes a user-visible stall in every agent turn that
- touches the node.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
-
-<svg class="arch-svg" viewBox="0 0 1400 700" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-h { font-family: 'Big Shoulders Display','IBM Plex Sans',sans-serif; font-size: 18px; font-weight: 900; letter-spacing: 0.10em; fill: currentColor; text-transform: uppercase; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <rect x="0.5" y="0.5" width="1399" height="699" class="bx" opacity="0.18"/>
-
- <!-- ===== TOP: ELASTICSEARCH HEAP ZONES ===== -->
- <text x="40" y="42" class="lbl-h">ELASTICSEARCH · JVM HEAP REGIME</text>
- <line x1="40" y1="58" x2="1360" y2="58" class="ln" opacity="0.35"/>
-
- <!-- horizontal bar diagram of heap pressure -->
- <text x="40" y="92" class="lbl-x">HEAP PRESSURE → GC THRASH → CIRCUIT BREAKER → OOM</text>
-
- <!-- bar background -->
- <rect x="40" y="110" width="1280" height="46" class="bx"/>
-
- <!-- zones -->
- <line x1="680" y1="110" x2="680" y2="156" class="ln"/>
- <line x1="900" y1="110" x2="900" y2="156" class="ln"/>
- <line x1="1120" y1="110" x2="1120" y2="156" class="ln-a"/>
- <line x1="1240" y1="110" x2="1240" y2="156" class="ln-a"/>
-
- <text x="60" y="138" class="lbl-s">SAWTOOTH · HEALTHY</text>
- <text x="700" y="138" class="lbl-s">RISING · SUSTAINED</text>
- <text x="920" y="138" class="lbl-s">FLATLINE · GC THRASH</text>
- <text x="1140" y="138" class="lbl-a">BREAKER 95%</text>
- <text x="1255" y="138" class="lbl-a">OOM</text>
-
- <!-- percent ticks under bar -->
- <text x="40" y="178" class="lbl-x">0 %</text>
- <text x="668" y="178" class="lbl-x">50 %</text>
- <text x="888" y="178" class="lbl-x">75 %</text>
- <text x="1108" y="178" class="lbl-x">85 %</text>
- <text x="1228" y="178" class="lbl-x">95 %</text>
- <text x="1308" y="178" class="lbl-x">100 %</text>
-
- <!-- annotation -->
- <text x="40" y="210" class="lbl-x">ABOVE 31 GB · COMPRESSED OOPS LOST · USABLE HEAP HALVES</text>
-
- <!-- THREE FAILURE MODES -->
- <rect x="40" y="232" width="420" height="120" class="bx"/>
- <text x="60" y="262" class="lbl-a">STOP-THE-WORLD</text>
- <text x="60" y="282" class="lbl-s">a major collection freezes the node</text>
- <text x="60" y="298" class="lbl-s">tail latency multiplies under agent loops</text>
- <text x="60" y="318" class="lbl-s">one node's pause becomes everyone's stall</text>
- <text x="60" y="338" class="lbl-s">no GC tuning makes it deterministic</text>
-
- <rect x="490" y="232" width="420" height="120" class="bx"/>
- <text x="510" y="262" class="lbl-a">SHARD COST</text>
- <text x="510" y="282" class="lbl-s">each shard takes a fixed slice of heap</text>
- <text x="510" y="298" class="lbl-s">tens of thousands of small shards starve queries</text>
- <text x="510" y="318" class="lbl-s">restart triggers a recovery storm</text>
- <text x="510" y="338" class="lbl-s">field explosion bloats cluster state</text>
-
- <rect x="940" y="232" width="380" height="120" class="bx"/>
- <text x="960" y="262" class="lbl-a">VECTOR APPETITE</text>
- <text x="960" y="282" class="lbl-s">HNSW wants the graph in RAM</text>
- <text x="960" y="298" class="lbl-s">disk spill = order-of-magnitude latency</text>
- <text x="960" y="318" class="lbl-s">filtered-kNN can fall back to brute force</text>
- <text x="960" y="338" class="lbl-s">int8 / nibble narrow it — until you re-rank</text>
-
- <!-- ===== BOTTOM: XERJ RUNTIME ===== -->
- <text x="40" y="406" class="lbl-h">XERJ · DETERMINISTIC RUSTIME</text>
- <text x="780" y="406" class="lbl-h">SAME WORKLOAD · DIFFERENT REGIME</text>
- <line x1="40" y1="422" x2="1360" y2="422" class="ln-a" opacity="0.5"/>
-
- <!-- properties matrix -->
- <text x="40" y="456" class="lbl-x">RUNTIME PROPERTIES</text>
-
- <rect x="40" y="468" width="310" height="120" class="bx-a"/>
- <text x="60" y="498" class="lbl-a">NO GC PAUSES</text>
- <text x="60" y="518" class="lbl-s">no JVM, no managed heap</text>
- <text x="60" y="534" class="lbl-s">tail set by code paths, not memory</text>
- <text x="60" y="554" class="lbl-s">cold start: 4 ms vs ES 6.05 s</text>
- <text x="60" y="574" class="lbl-s">p99.9 means what it says</text>
-
- <rect x="370" y="468" width="310" height="120" class="bx-a"/>
- <text x="390" y="498" class="lbl-a">MMAP SEGMENTS</text>
- <text x="390" y="518" class="lbl-s">OS page cache, not heap</text>
- <text x="390" y="534" class="lbl-s">no 31 GB compressed-oops cliff</text>
- <text x="390" y="554" class="lbl-s">RSS scales with corpus, not nodes</text>
- <text x="390" y="574" class="lbl-s">RSS · 1 K-vector index: 727 MB vs 2 857 MB</text>
-
- <rect x="700" y="468" width="310" height="120" class="bx-a"/>
- <text x="720" y="498" class="lbl-a">SHARDED MEMTABLE</text>
- <text x="720" y="518" class="lbl-s">16 in-memory shards</text>
- <text x="720" y="534" class="lbl-s">ingest scales with cores, not heap size</text>
- <text x="720" y="554" class="lbl-s">no recovery storm — WAL replay is bounded</text>
- <text x="720" y="574" class="lbl-s">5 M-doc restart preserves every batch</text>
-
- <rect x="1030" y="468" width="290" height="120" class="bx-a"/>
- <text x="1050" y="498" class="lbl-a">VECTOR APPETITE</text>
- <text x="1050" y="518" class="lbl-s">HNSW M=16 · ef tunable at runtime</text>
- <text x="1050" y="534" class="lbl-s">SQ8 · nibble · float32 re-rank</text>
- <text x="1050" y="554" class="lbl-s">filter goes through the planner, not around it</text>
- <text x="1050" y="574" class="lbl-s">one parameter trades recall for latency</text>
-
- <text x="40" y="624" class="lbl-x">NO HEAP · NO GC · NO 31 GB CEILING</text>
- <text x="40" y="650" class="lbl-x">NO JVM TUNING · NO STOP-THE-WORLD · NO RECOVERY STORM</text>
-
- <!-- footer caption -->
- <text x="40" y="690" class="lbl-x">SAME TWO-HOST WORKLOAD · MEASURED AT V1.0.0-RC.1</text>
-</svg>
-
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">ELASTICSEARCH HEAP REGIME</span></span>
- <span><span class="swatch yel"></span><span class="yel">XERJ RUNTIME</span></span>
- <span><span class="swatch dashed"></span><span>ZONE BOUNDARY</span></span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>SOURCE</span>
- <span class="dash">·</span>
- <span>ELASTIC TROUBLESHOOTING DOCS · SIRIUS OPEN SOURCE OPS NOTES · 2024–26</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">04 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P5 · HYBRID QUERY REALITY -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>05 · HYBRID QUERY REALITY</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>HYBRID QUERY REALITY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FOUR HOPS.<br><span class="accent">OR ONE PLAN.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Hybrid retrieval — keyword + dense vector + filter + aggregation,
- fused — is the default request shape for an AI agent. In
- Elasticsearch it is several requests stitched together, each with
- its own scoring regime. In Xerj it is one request the planner
- decomposes, runs in parallel, and fuses in-engine.
- </p>
-
- <div class="sp-4"></div>
-
- <div class="pull-quote">
- <div class="q">
- BUILDING HYBRID SEARCH WITH ELASTICSEARCH REQUIRES <span class="accent">WRESTLING WITH ONE OF THE HAIRIEST QUERIES OUT THERE</span> — THE KNN QUERY.
- </div>
- <div class="a">
- <span class="who">DOUG TURNBULL</span> · INDEPENDENT SEARCH CONSULTANT · SOFTWAREDOUG LLC · FEB 2025
- </div>
- </div>
-
- <div class="sp-4"></div>
-
- <div class="arch">
-
-<svg class="arch-svg" viewBox="0 0 1400 700" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-h { font-family: 'Big Shoulders Display','IBM Plex Sans',sans-serif; font-size: 18px; font-weight: 900; letter-spacing: 0.10em; fill: currentColor; text-transform: uppercase; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <rect x="0.5" y="0.5" width="1399" height="699" class="bx" opacity="0.18"/>
-
- <!-- ===== HEADER ===== -->
- <text x="40" y="42" class="lbl-h">ELASTICSEARCH HYBRID PATH</text>
- <text x="780" y="42" class="lbl-h">XERJ HYBRID PATH</text>
- <line x1="40" y1="58" x2="700" y2="58" class="ln" opacity="0.35"/>
- <line x1="780" y1="58" x2="1360" y2="58" class="ln-a" opacity="0.5"/>
-
- <line x1="740" y1="40" x2="740" y2="660" class="ln-d"/>
-
- <!-- ============= LEFT: ES PATH ============= -->
- <text x="40" y="92" class="lbl-x">ONE TURN · MULTI-PASS · EXTERNAL FUSION</text>
-
- <!-- App / orchestrator -->
- <rect x="40" y="106" width="660" height="46" class="bx"/>
- <text x="60" y="134" class="lbl">APP · ORCHESTRATOR (PYTHON)</text>
-
- <line x1="370" y1="152" x2="370" y2="180" class="ln"/>
- <polyline points="360,172 370,182 380,172" class="ln"/>
-
- <!-- Build big query -->
- <rect x="40" y="190" width="660" height="46" class="bx"/>
- <text x="60" y="218" class="lbl">BUILD KNN + BOOL + FILTER QUERY</text>
-
- <line x1="120" y1="236" x2="120" y2="270" class="ln"/>
- <polyline points="110,262 120,272 130,262" class="ln"/>
- <line x1="280" y1="236" x2="280" y2="270" class="ln"/>
- <polyline points="270,262 280,272 290,262" class="ln"/>
- <line x1="440" y1="236" x2="440" y2="270" class="ln"/>
- <polyline points="430,262 440,272 450,262" class="ln"/>
- <line x1="600" y1="236" x2="600" y2="270" class="ln"/>
- <polyline points="590,262 600,272 610,262" class="ln"/>
-
- <!-- Three passes plus filter -->
- <rect x="40" y="280" width="150" height="78" class="bx"/>
- <text x="58" y="308" class="lbl">KNN PASS</text>
- <text x="58" y="328" class="lbl-s">post-filter only</text>
- <text x="58" y="346" class="lbl-s">graph re-traversal</text>
-
- <rect x="200" y="280" width="160" height="78" class="bx"/>
- <text x="218" y="308" class="lbl">BM25 PASS</text>
- <text x="218" y="328" class="lbl-s">should · must</text>
- <text x="218" y="346" class="lbl-s">scores doubled risk</text>
-
- <rect x="370" y="280" width="160" height="78" class="bx"/>
- <text x="388" y="308" class="lbl">FILTER</text>
- <text x="388" y="328" class="lbl-s">selective ⇒ slower kNN</text>
- <text x="388" y="346" class="lbl-s">brute-force fallback</text>
-
- <rect x="540" y="280" width="160" height="78" class="bx"/>
- <text x="558" y="308" class="lbl">AGGS</text>
- <text x="558" y="328" class="lbl-s">date histogram</text>
- <text x="558" y="346" class="lbl-s">heap-hungry buckets</text>
-
- <line x1="370" y1="358" x2="370" y2="384" class="ln"/>
- <polyline points="360,376 370,386 380,376" class="ln"/>
-
- <!-- Out-of-engine fusion -->
- <rect x="40" y="394" width="660" height="46" class="bx"/>
- <text x="60" y="422" class="lbl">RRF / RANK FUSION · IN APP CODE OR _RANK API</text>
-
- <line x1="370" y1="440" x2="370" y2="468" class="ln"/>
- <polyline points="360,460 370,470 380,460" class="ln"/>
-
- <rect x="40" y="478" width="660" height="46" class="bx"/>
- <text x="60" y="506" class="lbl">PARSE · MERGE · RETURN → AGENT</text>
-
- <!-- footnotes -->
- <text x="40" y="556" class="lbl-x">"WRESTLING WITH ONE OF THE HAIRIEST QUERIES OUT THERE — THE KNN QUERY"</text>
- <text x="40" y="576" class="lbl-x">— DOUG TURNBULL · INDEPENDENT SEARCH CONSULTANT · FEB 2025</text>
-
- <text x="40" y="612" class="lbl-x">SCORES MUST BE NORMALISED IN APP · EXPLAIN-PLANS DO NOT COMPOSE · TAIL × 4</text>
- <text x="40" y="632" class="lbl-x">FILTER SET SIZE CHANGES PLAN · PRE-FILTER vs POST-FILTER IS YOUR PROBLEM</text>
-
- <!-- ============= RIGHT: XERJ PATH ============= -->
- <text x="780" y="92" class="lbl-x">ONE TURN · ONE PASS · IN-PROCESS FUSION</text>
-
- <rect x="780" y="106" width="580" height="46" class="bx-a"/>
- <text x="800" y="134" class="lbl">CLIENT · ANY ES SDK · NO ORCHESTRATOR</text>
-
- <line x1="1070" y1="152" x2="1070" y2="180" class="ln-a"/>
- <polyline points="1060,172 1070,182 1080,172" class="ln-a"/>
-
- <rect x="780" y="190" width="580" height="46" class="bx-a"/>
- <text x="800" y="218" class="lbl">PARSE · PLAN · COST · REWRITE</text>
-
- <line x1="900" y1="236" x2="900" y2="270" class="ln-a"/>
- <polyline points="890,262 900,272 910,262" class="ln-a"/>
- <line x1="1070" y1="236" x2="1070" y2="270" class="ln-a"/>
- <polyline points="1060,262 1070,272 1080,262" class="ln-a"/>
- <line x1="1240" y1="236" x2="1240" y2="270" class="ln-a"/>
- <polyline points="1230,262 1240,272 1250,262" class="ln-a"/>
-
- <rect x="800" y="280" width="160" height="78" class="bx"/>
- <text x="820" y="308" class="lbl">FTS · BM25</text>
- <text x="820" y="328" class="lbl-s">postings · analyzers</text>
- <text x="820" y="346" class="lbl-s">parallel pass</text>
-
- <rect x="980" y="280" width="160" height="78" class="bx-a"/>
- <text x="1000" y="308" class="lbl">VECTOR · HNSW</text>
- <text x="1000" y="328" class="lbl-s">filter integrated</text>
- <text x="1000" y="346" class="lbl-s">parallel pass</text>
-
- <rect x="1160" y="280" width="200" height="78" class="bx"/>
- <text x="1180" y="308" class="lbl">FILTER · AGGS</text>
- <text x="1180" y="328" class="lbl-s">columnar · doc-values</text>
- <text x="1180" y="346" class="lbl-s">parallel pass</text>
-
- <line x1="1070" y1="358" x2="1070" y2="384" class="ln-a"/>
- <polyline points="1060,376 1070,386 1080,376" class="ln-a"/>
-
- <rect x="780" y="394" width="580" height="46" class="bx-a"/>
- <text x="800" y="422" class="lbl">RECIPROCAL RANK FUSION · IN-ENGINE · ONE PASS</text>
-
- <line x1="1070" y1="440" x2="1070" y2="468" class="ln-a"/>
- <polyline points="1060,460 1070,470 1080,460" class="ln-a"/>
-
- <rect x="780" y="478" width="580" height="46" class="bx-a"/>
- <text x="800" y="506" class="lbl">EXPLAIN PLAN + RESPONSE → AGENT</text>
-
- <text x="780" y="556" class="lbl-a">EVERY QUERY RETURNS COST + ROW COUNTS</text>
- <text x="780" y="576" class="lbl-x">PLANNER OWNS THE FILTER · EXPLAIN COMPOSES · ONE TAIL TO TUNE</text>
- <text x="780" y="612" class="lbl-x">NO PYTHON IN THE LOOP · NO CROSS-STORE HTTP</text>
- <text x="780" y="632" class="lbl-x">SAME REQUEST SHAPE AS THE ES CLIENT YOU ALREADY HAVE</text>
-
- <!-- footer -->
- <text x="40" y="690" class="lbl-x">SAME REQUEST FROM THE AGENT'S POINT OF VIEW · DIFFERENT NUMBER OF HOPS, EXPLAINS, AND BILLS</text>
-</svg>
-
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">ES PATH</span></span>
- <span><span class="swatch yel"></span><span class="yel">XERJ PATH</span></span>
- <span><span class="swatch dashed"></span><span>BOUNDARY</span></span>
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">05 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P6 · KNN + FILTER CLIFF -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>06 · KNN + FILTER CLIFF</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>06</span><span class="dash">·</span><span>WHEN THE FILTER MAKES IT SLOWER</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SEMI-RESTRICTIVE<br>FILTERS <span class="accent">BREAK HNSW.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Conventional databases get faster as filters get more restrictive.
- Filtered approximate kNN does the opposite: an HNSW graph
- traversal that has to skip non-matching nodes does <em>more</em>
- vector comparisons, not fewer, and can fall back to a brute-force
- scan. Architectures that depend on selective filters discover this
- the hard way — in production, on real corpora.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="pull-quote">
- <div class="q">
- THE PERFORMANCE SIGNIFICANTLY DEGRADES, AND IN SOME CASES <span class="accent">I ENCOUNTER RESPONSE TIMEOUT ERRORS (&gt; 60 SECONDS).</span>
- </div>
- <div class="a">
- <span class="who">SALEH ABUALI</span> · ELASTIC DISCUSS USER · 200 M-DOC INDEX · 6 NODES · 34 GB HEAP / 66 GB RAM EACH · APR 2025
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>WHY THIS HAPPENS — AND WHAT XERJ DOES INSTEAD</h4>
- <div class="sp-2"></div>
-
- <div class="vs">
- <div class="col-h es">ELASTICSEARCH</div>
- <div class="col-h xa">XERJ</div>
-
- <div class="col-c">
- <span class="lbl">FILTER PLACEMENT</span>
- Post-filter on a candidate set; selective filters force re-traversal or brute force fallback. Recent ACORN work helps but does not erase the cliff for older 8.x deployments.
- </div>
- <div class="col-c xa">
- <span class="lbl">FILTER PLACEMENT</span>
- Filter is a planner input, not a post-condition. Range, term, and exists predicates compose with HNSW traversal in one pass.
- </div>
-
- <div class="col-c">
- <span class="lbl">RECALL DIAL</span>
- ef-search and num_candidates are settable, but tuning per-query requires re-thinking the request from the app side.
- </div>
- <div class="col-c xa">
- <span class="lbl">RECALL DIAL</span>
- Single runtime parameter trades recall for latency without rebuilding the index. Same artifact serves chat UI and offline batch.
- </div>
-
- <div class="col-c">
- <span class="lbl">MEMORY APPETITE</span>
- Graph wants RAM. Off-heap mmap helps; if it spills to disk, latency degrades. JVM heap and OS cache trade against each other.
- </div>
- <div class="col-c xa">
- <span class="lbl">MEMORY APPETITE</span>
- SQ8 quantization (4× compression) is the working representation. Optional float32 re-rank pass restores precision on the final top-K.
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">06 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P7 · COST -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>07 · FOOTPRINT &amp; COST</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>07</span><span class="dash">·</span><span>FOOTPRINT &amp; COST</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">A FREE LICENCE<br>IS NOT <span class="accent">A FREE STACK.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The dominant cost in an ELK deployment is not the licence — it is
- the hardware, the sustained heap, the duplicated retention layers,
- and the engineering cost of running a JVM platform at scale.
- Independent analyst figures put a small ELK environment past two
- million dollars over three years; a large one north of sixty.
- Xerj is one static binary on commodity NVMe.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="bigstat">
- <div class="b">
- <span class="k">ES BINARY IMAGE</span>
- <span class="v">~600 MB</span>
- <span class="u">JRE + plugins + tooling</span>
- </div>
- <div class="b">
- <span class="k">XERJ BINARY</span>
- <span class="v">19.6 MB</span>
- <span class="u">single static · no JVM</span>
- </div>
- <div class="b">
- <span class="k">RSS · 1 K VECTORS</span>
- <span class="v">3.9×</span>
- <span class="u">ES 2 857 MB · XERJ 727 MB</span>
- </div>
- <div class="b">
- <span class="k">COLD START</span>
- <span class="v">863×</span>
- <span class="u">ES 6.05 s · XERJ 4 ms</span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>3-YEAR ELK STACK TCO — INDEPENDENT ANALYST RANGE</h4>
- <div class="sp-2"></div>
-
- <div class="perf">
- <div class="h">ENVIRONMENT</div>
- <div class="h n">YEAR 1</div>
- <div class="h n">YEAR 2</div>
- <div class="h n">YEAR 3</div>
- <div class="h n">3-YEAR TCO</div>
-
- <div>Small ELK</div>
- <div class="n">$427 K</div>
- <div class="n">$723 K</div>
- <div class="n">$1.22 M</div>
- <div class="n accent">$2.37 M</div>
-
- <div>Large ELK · 20 TB / day</div>
- <div class="n">$15.85 M</div>
- <div class="n">$21.13 M</div>
- <div class="n">$28.54 M</div>
- <div class="n accent">$65.62 M</div>
- </div>
-
- <div class="sp-3"></div>
- <p class="src">
- Source: ChaosSearch, "ELK Stack Costs Add Up: Here's How to Switch" — independent
- TCO model summarising hardware, retention, and operational labour.
- Elastic announced a pricing change effective <span class="url">2025-01-27</span>
- with an estimated <span class="url">~30 %</span> increase for a typical production workload
- (Quesma analysis, 2025).
- </p>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>WHAT THE STATIC BINARY BUYS</span>
- <span class="dash">·</span>
- <span>NO JRE · NO PLUGIN MATRIX · NO LANGUAGE RUNTIME PAGER ROTATION</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">07 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P8 · VOICES FROM PRODUCTION -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>08 · VOICES FROM PRODUCTION</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>08</span><span class="dash">·</span><span>VOICES FROM PRODUCTION · 2023–26</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">PUBLIC. DATED.<br><span class="accent">UNEDITED.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- A sample of public, attributed observations from architects,
- consultants, and forum operators running Elasticsearch at scale
- against AI workloads. Each is reproduced verbatim. Sources are
- listed on the closing page.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="quote-wall">
- <div class="qc">
- <div class="q">It's a big ugly query with lots of repetition.</div>
- <div class="a">
- <span class="who">DOUG TURNBULL</span> · INDEPENDENT SEARCH CONSULTANT<br>
- ON IMPLEMENTING HYBRID SEARCH IN ES · FEB 2025
- </div>
- </div>
- <div class="qc">
- <div class="q">It eats up alllll the resources (maxed out CPU and ate up loads of RAM).</div>
- <div class="a">
- <span class="who">NDTREVIV</span> · ELASTIC DISCUSS USER<br>
- ES vs MILVUS AS A VECTOR DB · 2023
- </div>
- </div>
-
- <div class="qc">
- <div class="q">A complex query might pass the pre-flight check but expand exponentially during execution, causing heap exhaust.</div>
- <div class="a">
- <span class="who">SIRIUS OPEN SOURCE</span><br>
- PROBLEMS &amp; OPERATIONAL WEAKNESSES OF ELASTICSEARCH
- </div>
- </div>
- <div class="qc">
- <div class="q">If the JVM executes a major collection, the node is effectively frozen during a stop-the-world pause.</div>
- <div class="a">
- <span class="who">SIRIUS OPEN SOURCE</span><br>
- ON GC BEHAVIOUR IN PRODUCTION CLUSTERS
- </div>
- </div>
-
- <div class="qc">
- <div class="q">Accumulating tens of thousands of small shards is problematic because each shard consumes a non-trivial fixed cost of JVM heap.</div>
- <div class="a">
- <span class="who">SIRIUS OPEN SOURCE</span><br>
- ON SHARD ECONOMICS
- </div>
- </div>
- <div class="qc">
- <div class="q">Elasticsearch is great for traditional keyword search, but it struggles with semantic understanding […] and latency at scale.</div>
- <div class="a">
- <span class="who">NIC SCHELTEMA</span> · SHAPED.AI<br>
- THE 7 BEST ELASTICSEARCH ALTERNATIVES IN 2025
- </div>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>EVERY QUOTE</span>
- <span class="dash">·</span>
- <span>PUBLIC URL · ATTRIBUTABLE AUTHOR · ORIGINAL CONTEXT — SEE PAGE 12</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">08 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P9 · INDEPENDENT BENCHMARKS -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>09 · INDEPENDENT BENCHMARKS</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>09</span><span class="dash">·</span><span>NUMBERS YOU CAN REPRODUCE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">THIRD-PARTY.<br><span class="accent">SAME HARDWARE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Two reference points. Trail of Bits, an independent security and
- systems firm, published a March 2025 benchmark comparing
- Elasticsearch 8.15.4 to OpenSearch 2.17.1 on the canonical Big5
- query set. Xerj's v1.0.0-rc.1 verification run measured the same
- Elasticsearch build on the same NVMe host, using identical wire
- payloads — not extrapolated.
- </p>
-
- <div class="sp-6"></div>
-
- <h4>TRAIL OF BITS — ES 8.15.4 vs OS 2.17.1 — MARCH 2025</h4>
- <div class="sp-2"></div>
-
- <div class="perf">
- <div class="h">DIMENSION</div>
- <div class="h n">ELASTICSEARCH</div>
- <div class="h n">OPENSEARCH</div>
- <div class="h n">DELTA</div>
- <div class="h n">SOURCE</div>
-
- <div>Big5 · geomean</div>
- <div class="n">baseline</div>
- <div class="n">1.6× faster</div>
- <div class="n accent">+60 %</div>
- <div class="n">trail of bits</div>
-
- <div>Date histogram</div>
- <div class="n">baseline</div>
- <div class="n">16.55× faster</div>
- <div class="n accent">16.55×</div>
- <div class="n">trail of bits</div>
-
- <div>Term aggregation</div>
- <div class="n">baseline</div>
- <div class="n">3.38× faster</div>
- <div class="n accent">3.38×</div>
- <div class="n">trail of bits</div>
-
- <div>Vector search · default engine</div>
- <div class="n">baseline</div>
- <div class="n">11 % faster</div>
- <div class="n accent">+11 %</div>
- <div class="n">trail of bits</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>XERJ V1.0.0-RC.1 vs ELASTICSEARCH 8.13 — VERIFY RUN</h4>
- <div class="sp-2"></div>
-
- <div class="perf">
- <div class="h">DIMENSION</div>
- <div class="h n">ES 8.13</div>
- <div class="h n">XERJ</div>
- <div class="h n">DELTA</div>
- <div class="h n">SOURCE</div>
-
- <div>Cold start</div>
- <div class="n">6.05 s</div>
- <div class="n">4 ms</div>
- <div class="n accent">863×</div>
- <div class="n">verify run</div>
-
- <div>RSS · 1 K-vector index</div>
- <div class="n">2 857 MB</div>
- <div class="n">727 MB</div>
- <div class="n accent">3.9×</div>
- <div class="n">verify run</div>
-
- <div>Index creation</div>
- <div class="n">93.9 ms</div>
- <div class="n">2.4 ms</div>
- <div class="n accent">39×</div>
- <div class="n">verify run</div>
-
- <div>Top-K sort · p50</div>
- <div class="n">4.28 ms</div>
- <div class="n">0.34 ms</div>
- <div class="n accent">12.6×</div>
- <div class="n">verify run</div>
-
- <div>Bulk · 1 K vectors</div>
- <div class="n">10 219 d/s</div>
- <div class="n">22 974 d/s</div>
- <div class="n accent">2.25×</div>
- <div class="n">verify run</div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>EVERY ROW</span>
- <span class="dash">·</span>
- <span>REPRODUCIBLE WITH PUBLISHED SCRIPTS · SAME HOST · SAME WIRE</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">09 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P10 · CAPABILITY MATRIX -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>10 · CAPABILITY MATRIX</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>10</span><span class="dash">·</span><span>VECTOR + FTS + HISTOGRAM + MEMORY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SAME WORKLOAD.<br><span class="accent">SAME ENGINE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The four modalities an AI agent uses in a single turn — full-text
- ranking, dense-vector recall, time-series histograms, and agent
- memory — all live in Xerj behind one wire protocol, one segment
- cache, one permission model, one explain-plan. Elasticsearch
- covers the first three with mature implementations and a
- platform-grown ecosystem; agent memory remains an
- assemble-it-yourself problem.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
-
-<svg class="arch-svg" viewBox="0 0 1400 720" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-h { font-family: 'Big Shoulders Display','IBM Plex Sans',sans-serif; font-size: 16px; font-weight: 900; letter-spacing: 0.10em; fill: currentColor; text-transform: uppercase; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- .dot { fill: currentColor; }
- .dot-a { fill: #ffc400; }
- .dot-o { stroke: currentColor; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <rect x="0.5" y="0.5" width="1399" height="719" class="bx" opacity="0.18"/>
-
- <!-- HEADER ROW: column titles -->
- <text x="60" y="42" class="lbl-x">CAPABILITY</text>
- <text x="500" y="42" class="lbl-h">ELK / ES + VECTOR DB</text>
- <text x="900" y="42" class="lbl-h">XERJ</text>
- <text x="1180" y="42" class="lbl-x">NOTE</text>
- <line x1="40" y1="58" x2="1360" y2="58" class="ln" opacity="0.5"/>
-
- <!-- helper grid: 11 rows, evenly spaced -->
- <!-- row 1 -->
- <text x="60" y="98" class="lbl">FULL-TEXT · BM25</text>
- <text x="500" y="98" class="lbl-a">FULL</text>
- <text x="900" y="98" class="lbl-a">FULL</text>
- <text x="1180" y="98" class="lbl-s">38 ES query types · 10 analyzers</text>
- <line x1="40" y1="114" x2="1360" y2="114" class="ln" opacity="0.18"/>
-
- <!-- row 2 -->
- <text x="60" y="146" class="lbl">DENSE-VECTOR · HNSW</text>
- <text x="500" y="146" class="lbl-a">FULL</text>
- <text x="500" y="162" class="lbl-s">native in 8.x · BBQ in 9.x</text>
- <text x="900" y="146" class="lbl-a">FULL</text>
- <text x="900" y="162" class="lbl-s">SQ8 · nibble · re-rank · per-index metric</text>
- <text x="1180" y="146" class="lbl-s">filter is a planner input</text>
- <line x1="40" y1="174" x2="1360" y2="174" class="ln" opacity="0.18"/>
-
- <!-- row 3 -->
- <text x="60" y="206" class="lbl">HYBRID · RRF FUSION</text>
- <text x="500" y="206" class="lbl-a">PARTIAL</text>
- <text x="500" y="222" class="lbl-s">requires _rank or app-side merge</text>
- <text x="900" y="206" class="lbl-a">FULL</text>
- <text x="900" y="222" class="lbl-s">in-engine, single pass, k=60 default</text>
- <text x="1180" y="206" class="lbl-s">no Python orchestrator</text>
- <line x1="40" y1="234" x2="1360" y2="234" class="ln" opacity="0.18"/>
-
- <!-- row 4 -->
- <text x="60" y="266" class="lbl">DATE HISTOGRAMS · AGGS</text>
- <text x="500" y="266" class="lbl">FULL</text>
- <text x="500" y="282" class="lbl-s">heap-bound · bucket explosions</text>
- <text x="900" y="266" class="lbl-a">FULL</text>
- <text x="900" y="282" class="lbl-s">columnar · delta-of-delta timestamps</text>
- <text x="1180" y="266" class="lbl-s">trail of bits: ES 16.55× slower</text>
- <line x1="40" y1="294" x2="1360" y2="294" class="ln" opacity="0.18"/>
-
- <!-- row 5 -->
- <text x="60" y="326" class="lbl">AGENT MEMORY · SEMANTIC DEDUP</text>
- <text x="500" y="326" class="lbl-s" style="opacity:0.85;">NOT NATIVE</text>
- <text x="500" y="342" class="lbl-s">redis + postgres + app code</text>
- <text x="900" y="326" class="lbl-a">FULL</text>
- <text x="900" y="342" class="lbl-s">append-only · recency-blended scoring</text>
- <text x="1180" y="326" class="lbl-s">one permission · one audit</text>
- <line x1="40" y1="354" x2="1360" y2="354" class="ln" opacity="0.18"/>
-
- <!-- row 6 -->
- <text x="60" y="386" class="lbl">EXPLAIN PLAN · COST · ROWS</text>
- <text x="500" y="386" class="lbl-s" style="opacity:0.85;">PARTIAL</text>
- <text x="500" y="402" class="lbl-s">does not compose across hybrid passes</text>
- <text x="900" y="386" class="lbl-a">FULL</text>
- <text x="900" y="402" class="lbl-s">every query returns cost + counts</text>
- <text x="1180" y="386" class="lbl-s">composes through fusion pass</text>
- <line x1="40" y1="414" x2="1360" y2="414" class="ln" opacity="0.18"/>
-
- <!-- row 7 -->
- <text x="60" y="446" class="lbl">RUNTIME · MEMORY MODEL</text>
- <text x="500" y="446" class="lbl-s" style="opacity:0.85;">JVM HEAP</text>
- <text x="500" y="462" class="lbl-s">31 GB ceiling · GC pauses · circuit breakers</text>
- <text x="900" y="446" class="lbl-a">RUST · MMAP</text>
- <text x="900" y="462" class="lbl-s">no heap · no GC · OS page cache</text>
- <text x="1180" y="446" class="lbl-s">cold start: 4 ms vs 6.05 s ES</text>
- <line x1="40" y1="474" x2="1360" y2="474" class="ln" opacity="0.18"/>
-
- <!-- row 8 -->
- <text x="60" y="506" class="lbl">CONSENSUS · CO-PROCESS</text>
- <text x="500" y="506" class="lbl-s" style="opacity:0.85;">EMBEDDED</text>
- <text x="500" y="522" class="lbl-s">master nodes · cluster state can bloat</text>
- <text x="900" y="506" class="lbl-a">EMBEDDED RAFT</text>
- <text x="900" y="522" class="lbl-s">metadata only · data plane stays out</text>
- <text x="1180" y="506" class="lbl-s">no etcd / zk · either way</text>
- <line x1="40" y1="534" x2="1360" y2="534" class="ln" opacity="0.18"/>
-
- <!-- row 9 -->
- <text x="60" y="566" class="lbl">AUDIT · TAMPER-EVIDENT</text>
- <text x="500" y="566" class="lbl-s" style="opacity:0.85;">PAID TIER</text>
- <text x="500" y="582" class="lbl-s">audit logging in higher subscriptions</text>
- <text x="900" y="566" class="lbl-a">CORE</text>
- <text x="900" y="582" class="lbl-s">SHA-256 hash chain · WORM · verify endpoint</text>
- <text x="1180" y="566" class="lbl-s">core feature · in the binary</text>
- <line x1="40" y1="594" x2="1360" y2="594" class="ln" opacity="0.18"/>
-
- <!-- row 10 -->
- <text x="60" y="626" class="lbl">FOOTPRINT · INSTALL</text>
- <text x="500" y="626" class="lbl-s" style="opacity:0.85;">~600 MB IMAGE</text>
- <text x="500" y="642" class="lbl-s">JRE + plugins + tooling</text>
- <text x="900" y="626" class="lbl-a">19.6 MB STATIC</text>
- <text x="900" y="642" class="lbl-s">single binary · air-gap · multi-arch image</text>
- <text x="1180" y="626" class="lbl-s">one config · one metrics endpoint</text>
- <line x1="40" y1="654" x2="1360" y2="654" class="ln" opacity="0.18"/>
-
- <!-- row 11 -->
- <text x="60" y="686" class="lbl">WIRE COMPATIBILITY</text>
- <text x="500" y="686" class="lbl-a">CANONICAL</text>
- <text x="900" y="686" class="lbl-a">ES 8.13 DROP-IN</text>
- <text x="900" y="702" class="lbl-s">1 305 / 1 329 conformance cases</text>
- <text x="1180" y="686" class="lbl-s">existing SDKs · Kibana connect</text>
-</svg>
-
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>FULL</span><span class="dash">·</span><span>NATIVE, GA</span>
- <span class="dash">·</span>
- <span>PARTIAL</span><span class="dash">·</span><span>NATIVE BUT WITH ARCHITECTURAL CAVEAT</span>
- <span class="dash">·</span>
- <span>NOT NATIVE</span><span class="dash">·</span><span>REQUIRES EXTRA SYSTEM</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">10 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P11 · MIGRATION -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>11 · MIGRATION PATH</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>11</span><span class="dash">·</span><span>FROM CLUSTER TO BINARY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">A CONFIG CHANGE.<br><span class="accent">NOT A REWRITE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Xerj speaks the Elasticsearch 8.13 wire protocol on port 9200 —
- bulk, scroll, kNN, hybrid, aggregations, the 38 query types your
- ingest collectors and dashboards already speak. The migration is
- structurally a swap of endpoint, not a rewrite of code.
- </p>
-
- <div class="sp-6"></div>
-
- <h4>A FOUR-WEEK PATH FOR THE TYPICAL AI WORKLOAD</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">WEEK 0 · SCOPING</div>
- <div class="v">Pick one workload — RAG, SIEM, observability, or agent memory. Confirm the wire surface in use (Bulk, kNN, RRF, aggs). Sign mutual NDA if required (not a precondition for the binary).</div>
- </div>
- <div class="kv-row">
- <div class="k">WEEK 1 · DEPLOY</div>
- <div class="v">Single binary or Helm chart in your environment. Reproduce the published numbers on sample data. Smoke-test the existing client SDKs (official Elasticsearch, LangChain, LlamaIndex). No code change required.</div>
- </div>
- <div class="kv-row">
- <div class="k">WEEK 2 · SHADOW</div>
- <div class="v">Mirror real traffic. Compare latency, footprint, and cost on identical hardware. Measure where the JVM tail used to live. Surface any compatibility gap as a triaged item, not a blocker.</div>
- </div>
- <div class="kv-row">
- <div class="k">WEEK 3 · DECISION</div>
- <div class="v">Decision meeting on your numbers. We hand over reproduction scripts, the Prometheus dashboards, and the audit-chain export so the result is independently verifiable inside your perimeter.</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>WHAT MIGRATION DOES NOT ASK</h4>
- <div class="sp-2"></div>
-
- <div class="vs">
- <div class="col-h es">NOT REQUIRED</div>
- <div class="col-h xa">PROVIDED</div>
-
- <div class="col-c">
- <span class="lbl">CLIENT REWRITE</span>
- Existing official Elasticsearch SDKs continue to work. LangChain and LlamaIndex retrievers connect unchanged. Kibana boards continue to query.
- </div>
- <div class="col-c xa">
- <span class="lbl">DROP-IN ENDPOINT</span>
- :9200 with bulk, scroll, kNN, search, aggs. 38 query types. 1 305 / 1 329 conformance cases against the published ES 8.13 REST suite.
- </div>
-
- <div class="col-c">
- <span class="lbl">SHARD-COUNT TUNING</span>
- No JVM heap tuning, no shard-count maths, no recovery-storm runbooks.
- </div>
- <div class="col-c xa">
- <span class="lbl">ONE CONFIG FILE</span>
- One static binary. One metrics endpoint. One audit trail. One backup story. Liveness + readiness on both data ports.
- </div>
-
- <div class="col-c">
- <span class="lbl">NEW RUNBOOK</span>
- Day-2 ops continue with the same primitives — Prometheus, Kubernetes probes, structured logs.
- </div>
- <div class="col-c xa">
- <span class="lbl">SAME OPS SURFACE</span>
- Helm StatefulSet · PVC · headless service · multi-arch image · HEALTHCHECK wired to readiness · RBAC and audit included in the binary.
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">11 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P12 · CTA + SOURCES -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>12 · GET STARTED · SOURCES</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>12</span><span class="dash">·</span><span>GET STARTED · SOURCES</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">PROVE IT<br><span class="accent">ON YOUR DATA.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- We send the binary, the Helm chart, and the reproduction scripts
- for every number in this brief. You send one workload. We meet
- again in two weeks with your numbers, on your hardware, behind
- your perimeter.
- </p>
-
- <div class="sp-4"></div>
-
- <div style="padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);">
- <div class="kicker"><span>CONTACT</span></div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-display); font-weight: 900; font-size: 36pt; line-height:1; letter-spacing: 0.01em;">
- HELLO<span class="accent">@</span>XERJ.AI
- </div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-data); font-size: 9pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--mute);">
- XERJ.AI · XERJ.COM · XERJ.DEV
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>SOURCES — VERBATIM QUOTES &amp; FIGURES IN THIS BRIEF</h4>
- <div class="sp-2"></div>
-
- <p class="src">
- <strong style="color:var(--ink);">Doug Turnbull</strong>, "Elasticsearch hybrid search in practice" — <span class="url">softwaredoug.com/blog/2025/02/08/elasticsearch-hybrid-search</span> — Feb 2025. Independent search consultant, SoftwareDoug LLC.
- </p>
- <p class="src">
- <strong style="color:var(--ink);">Saleh AbuAli</strong>, "Performance Issue with KNN + Filter on Large Index (v8.12)" — <span class="url">discuss.elastic.co/t/377279</span> — Apr 2025. Production operator, 200 M-doc index.
- </p>
- <p class="src">
- <strong style="color:var(--ink);">Sirius Open Source</strong>, "Problems and Operational Weaknesses of Elasticsearch" — <span class="url">siriusopensource.com/en-us/blog/problems-and-operational-weaknesses-elasticsearch</span>. JVM, sharding, recovery, and field-explosion observations.
- </p>
- <p class="src">
- <strong style="color:var(--ink);">Nic Scheltema</strong>, "The 7 Best Elasticsearch Alternatives in 2025" — <span class="url">shaped.ai/blog/the-7-best-elasticsearch-alternatives-in-2025</span> — 2025.
- </p>
- <p class="src">
- <strong style="color:var(--ink);">ndtreviv</strong>, "Pros and Cons of using Elastic as a vector database" — <span class="url">discuss.elastic.co/t/338733</span> — 2023. Forum operator comparing Elasticsearch to Milvus.
- </p>
- <p class="src">
- <strong style="color:var(--ink);">Evan Downing, Trail of Bits</strong>, "Benchmarking OpenSearch and Elasticsearch" — <span class="url">blog.trailofbits.com/2025/03/06/benchmarking-opensearch-and-elasticsearch</span> — Mar 2025.
- </p>
- <p class="src">
- <strong style="color:var(--ink);">ChaosSearch</strong>, "ELK Stack Costs Add Up: Here's How to Switch" — <span class="url">chaossearch.io/blog/switching-from-the-elk-stack-elasticsearch-costs</span>. 3-year ELK TCO model. Pricing change reference: Quesma analysis, 2025.
- </p>
- <p class="src">
- <strong style="color:var(--ink);">Elastic — official troubleshooting docs</strong>, "Managing and troubleshooting Elasticsearch memory" / "High JVM memory pressure" — <span class="url">elastic.co/blog/managing-and-troubleshooting-elasticsearch-memory</span>. Heap, circuit breaker, and 31 GB compressed-OOPs ceiling.
- </p>
- <p class="src">
- <strong style="color:var(--ink);">Xerj — verify run</strong>, v1.0.0-rc.1. Single 32-core NVMe host, identical wire payloads, identical client. Reproduction scripts included with the pilot drop.
- </p>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>XERJ.AI</span>
- <span class="dash">·</span>
- <span>HEAD-TO-HEAD BRIEF · V1</span>
- <span class="dash">·</span>
- <span>ENGINE V1.0.0-RC.1 · 2026-04</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">12 / 12</span>
- </div>
-</section>
-
-</body>
-</html>
diff --git a/brief/_exec-brief.rendered.html b/brief/_exec-brief.rendered.html
deleted file mode 100644
index 4a8145630..000000000
--- a/brief/_exec-brief.rendered.html
+++ /dev/null
@@ -1,1460 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ.AI — Executive Brief — V1 — 2026-04</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<style>
- /* ================================================================
- XERJ.AI — EXECUTIVE BRIEF
- Audience: C-suite leading AI transformation.
- Typography-first. 1 px lines. Night palette. No frames.
- Conforms to brand.html laws 00–04.
- ================================================================ */
-
- :root {
- --bg: #0b0b0d;
- --ink: #f4f2ec;
- --mute: #8a8680;
- --faint: #2b2a28;
- --line: #3a3836;
- --accent: #ffc400;
-
- --z-bg: var(--bg); --z-ink: var(--ink); --z-mute: var(--mute);
- --z-line: var(--line); --z-accent: var(--accent); --z-faint: var(--faint);
-
- --font-display: 'Big Shoulders Display', 'Inter', system-ui, sans-serif;
- --font-prose: 'Inter', system-ui, sans-serif;
- --font-data: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
- --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
-
- --fs-11: 11px; --fs-13: 13px; --fs-16: 16px;
-
- --track-ui: 0.14em;
- --track-label: 0.08em;
- }
-
- @page { size: Letter; margin: 0; }
- * { box-sizing: border-box; margin: 0; padding: 0; }
-
- html, body {
- background: var(--bg);
- color: var(--ink);
- font-family: var(--font-prose);
- font-size: 11pt;
- line-height: 1.45;
- -webkit-font-smoothing: antialiased;
- text-rendering: optimizeLegibility;
- }
-
- .page {
- width: 8.5in;
- height: 11in;
- padding: 0.55in 0.6in;
- position: relative;
- page-break-after: always;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- }
- .page:last-child { page-break-after: auto; }
-
- /* -------- atoms -------- */
-
- .kicker {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- display: flex;
- gap: 0.5em;
- align-items: center;
- flex-wrap: wrap;
- }
- .kicker .dash { color: var(--faint); }
- .kicker .accent { color: var(--accent); }
-
- .accent { color: var(--accent); }
- .mute { color: var(--mute); }
- .mono { font-family: var(--font-mono); }
-
- h1, h2, h3, h4 {
- font-family: var(--font-display);
- font-weight: 900;
- text-transform: uppercase;
- letter-spacing: 0.02em;
- line-height: 0.92;
- }
-
- .hero { font-size: 78pt; line-height: 0.9; }
- .scene { font-size: 44pt; }
- h3 { font-size: 22pt; }
- h4 { font-size: 12pt; letter-spacing: var(--track-ui); }
-
- p.lead { font-size: 13pt; line-height: 1.5; max-width: 6.5in; }
- p.body { font-size: 10.5pt; line-height: 1.55; max-width: 6.5in; }
- p.body.wide { max-width: 100%; }
-
- em { font-style: italic; color: var(--ink); }
-
- /* spacers */
- .sp-2 { height: 8px; }
- .sp-3 { height: 12px; }
- .sp-4 { height: 16px; }
- .sp-6 { height: 24px; }
- .sp-8 { height: 32px; }
- .sp-10 { height: 48px; }
- .sp-12 { height: 64px; }
-
- .flex { display: flex; }
- .col { flex-direction: column; }
- .grow { flex: 1 1 auto; min-height: 0; }
- .between { justify-content: space-between; }
- .end { align-items: flex-end; }
- .center { justify-content: center; align-items: center; }
-
- /* -------- page header/footer -------- */
-
- .head-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-bottom: 12px;
- border-bottom: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .head-row .brand { color: var(--ink); }
- .head-row .brand .accent { color: var(--accent); }
-
- .foot-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-top: 12px;
- border-top: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 500;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .foot-row .num { color: var(--ink); }
-
- /* -------- key-value row -------- */
-
- .kv-row {
- display: grid;
- grid-template-columns: 1.5in 1fr;
- gap: 0.3in;
- padding: 10px 0;
- border-bottom: 1px solid var(--line);
- align-items: baseline;
- }
- .kv-row .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .kv-row .v {
- font-size: 10.5pt;
- line-height: 1.5;
- }
-
- /* -------- board outcome grid (2x2) -------- */
-
- .outcome-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- grid-template-rows: 1fr 1fr;
- border-top: 1px solid var(--line);
- border-left: 1px solid var(--line);
- }
- .outcome-grid > .cell {
- padding: 22px 22px 22px 22px;
- border-right: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 10px;
- min-height: 2.3in;
- }
- .outcome-grid .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .outcome-grid .v {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 40pt;
- line-height: 0.95;
- color: var(--accent);
- letter-spacing: 0.01em;
- margin-top: 2px;
- }
- .outcome-grid .t {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 16pt;
- line-height: 1;
- color: var(--ink);
- margin-top: 4px;
- text-transform: uppercase;
- letter-spacing: 0.01em;
- }
- .outcome-grid .b {
- font-size: 9.5pt;
- line-height: 1.45;
- color: var(--ink);
- margin-top: auto;
- }
-
- /* -------- comparison bars -------- */
-
- .cmp-head {
- display: grid;
- grid-template-columns: 2.0in 1fr 1fr;
- gap: 12px;
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- padding: 6px 0;
- border-bottom: 1px solid var(--line);
- }
- .cmp-head .a { color: var(--accent); }
- .cmp-row {
- display: grid;
- grid-template-columns: 2.0in 1fr 1fr;
- gap: 12px;
- padding: 8px 0;
- border-bottom: 1px solid var(--line);
- align-items: center;
- }
- .cmp-row .label { font-size: 9.5pt; }
- .cmp-val {
- display: flex;
- align-items: center;
- gap: 10px;
- }
- .cmp-bar {
- flex: 0 0 auto;
- height: 1px;
- background: var(--ink);
- min-width: 2px;
- }
- .cmp-val.b .cmp-bar { background: var(--mute); }
- .cmp-val.a .cmp-num { color: var(--accent); }
- .cmp-num {
- font-family: var(--font-mono);
- font-size: 9pt;
- white-space: nowrap;
- }
- .cmp-ratio {
- font-family: var(--font-data);
- font-size: 8pt;
- color: var(--mute);
- margin-left: 8px;
- letter-spacing: var(--track-label);
- }
-
- /* -------- chart wrapper (for embedded UX visuals) -------- */
-
- .viz {
- width: 100%;
- margin-top: 10px;
- max-height: 3.2in;
- overflow: hidden;
- padding-right: 60px;
- }
- .viz svg.chart {
- display: block;
- width: 100%;
- height: 3in;
- max-height: 3in;
- color: var(--accent);
- overflow: visible;
- }
- .viz .kicker { margin-bottom: 6px; }
- /* Normalize nested viz-block wrappers from extracted product.html */
- .viz .viz-block { margin-top: 0 !important; width: 100%; }
- .viz .viz-block .kicker { margin-bottom: 6px; }
- .series-legend {
- margin-top: 10px;
- display: flex;
- justify-content: space-between;
- font-family: var(--font-data);
- font-size: 8.5pt;
- color: var(--mute);
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- }
- .series-legend .mono { font-family: var(--font-mono); color: var(--ink); letter-spacing: 0; text-transform: none; }
- .viz-caption {
- margin-top: 10px;
- font-family: var(--font-prose);
- font-size: 10pt;
- color: var(--mute);
- max-width: 6in;
- }
-
-
- /* -------- cost heatmap styles (copied from landing style.css) -------- */
- .heatmap {
- font-family: var(--font-mono);
- font-size: 10pt;
- color: var(--accent);
- letter-spacing: 0;
- margin-top: 6px;
- }
- .heatmap-row {
- display: flex;
- align-items: baseline;
- padding: 3px 0;
- border-bottom: 1px solid var(--line);
- }
- .heatmap-row .row-label {
- width: 4ch;
- font-family: var(--font-data);
- font-size: 9pt;
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- color: var(--mute);
- margin-right: 8px;
- }
- .heatmap-head { border-bottom: 1px solid var(--ink); }
-
- /* -------- roadmap -------- */
-
- .phase-grid {
- display: grid;
- grid-template-columns: 0.9in 1.5in 1fr;
- column-gap: 0.3in;
- }
- .phase-grid > div {
- padding: 12px 0;
- border-top: 1px solid var(--line);
- font-size: 10pt;
- line-height: 1.5;
- }
- .phase-grid .p {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 26pt;
- color: var(--accent);
- line-height: 1;
- }
- .phase-grid .t {
- font-family: var(--font-data);
- font-size: 9.5pt;
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- color: var(--ink);
- }
-
- /* -------- tco table -------- */
-
- .tco {
- display: grid;
- grid-template-columns: 2.2in 1.4in 1.4in 0.9in;
- width: 100%;
- }
- .tco > div {
- padding: 9px 10px;
- border-bottom: 1px solid var(--line);
- font-size: 9.5pt;
- }
- .tco .h {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- border-bottom: 1px solid var(--ink);
- }
- .tco .num { font-family: var(--font-mono); text-align: right; }
- .tco .delta { font-family: var(--font-mono); text-align: right; color: var(--accent); font-weight: 700; }
-
- /* -------- cover -------- */
-
- .cover-hero {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 72pt;
- line-height: 0.9;
- letter-spacing: 0.01em;
- }
-
- /* -------- contact block -------- */
-
- .contact-line {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 44pt;
- line-height: 1;
- letter-spacing: 0.01em;
- }
-</style>
-</head>
-<body>
-
-<!-- =========================================================== -->
-<!-- P1 · COVER -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>EXECUTIVE BRIEF · V1 · 2026-04</span>
- </div>
-
- <div class="grow flex col between">
- <div class="sp-10"></div>
-
- <div>
- <div class="kicker" style="margin-bottom:24px;">
- <span>FOR LEADERS OF ENTERPRISE AI TRANSFORMATION</span>
- </div>
-
- <div class="cover-hero">
- THE DATA<br>
- LAYER YOUR<br>
- <span class="accent">AGENTS</span><br>
- WILL RUN ON.
- </div>
-
- <div class="sp-10"></div>
-
- <p class="lead" style="max-width:5.8in;">
- Every enterprise AI initiative eventually arrives at the data
- layer. XERJ is a single data plane — logs, knowledge, agent
- memory, observability — under one API, one contract, one bill.
- <span class="accent">~80%</span> infrastructure TCO reduction
- on log and search workloads, measured.
- </p>
- </div>
-
- <div class="flex between end" style="gap:24px;">
- <div class="kicker">
- <span>BUILT FOR</span>
- <span class="dash">·</span>
- <span>CIO</span>
- <span class="dash">·</span>
- <span>CDO</span>
- <span class="dash">·</span>
- <span>CAIO</span>
- <span class="dash">·</span>
- <span>CTO</span>
- <span class="dash">·</span>
- <span>CISO</span>
- <span class="dash">·</span>
- <span>CFO</span>
- </div>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">01 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P2 · BOARD-LEVEL OUTCOMES -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>02 · BOARD OUTCOMES</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-8"></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>BOARD OUTCOMES</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FOUR NUMBERS.<br><span class="accent">ONE SLIDE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The outcomes the finance, audit, and risk committee will ask
- about — measured on public battle reports with reproduction
- scripts. Not projections. Not case studies. Numbers from code
- that shipped.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="outcome-grid">
- <div class="cell">
- <span class="k">INFRASTRUCTURE TCO</span>
- <span class="v">~80%</span>
- <span class="t">REDUCTION</span>
- <span class="b">
- One platform replaces Elasticsearch, a vector DB, a memory
- store, and the stitching framework. Single vendor, single
- contract, single SLA. Five monthly bill-lines collapse to
- one.
- </span>
- </div>
- <div class="cell">
- <span class="k">TIME-TO-INSIGHT · ANALYSTS</span>
- <span class="v">74×</span>
- <span class="t">FASTER</span>
- <span class="b">
- SIEM analyst investigations that required coffee-break
- latency return in milliseconds. Board-reportable MTTD and
- MTTR reduction without adding headcount.
- </span>
- </div>
- <div class="cell">
- <span class="k">RAG MEMORY · AT SCALE</span>
- <span class="v">4×</span>
- <span class="t">EFFICIENCY</span>
- <span class="b">
- Enterprise-scale retrieval (10 M + embeddings) fits in a
- quarter of the memory. More agents per node. Same accuracy.
- Lower cloud bill.
- </span>
- </div>
- <div class="cell">
- <span class="k">CONSOLIDATION</span>
- <span class="v">6 → 1</span>
- <span class="t">SYSTEMS</span>
- <span class="b">
- Splunk · Prometheus · Tempo · Loki · a vector DB · a memory
- store — replaced by one platform. One on-call rotation. One
- audit surface. One cost dashboard the CFO reads without
- translation.
- </span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>SOURCE</span>
- <span class="dash">·</span>
- <span class="mono">engine/SIEM_BATTLE_2026-04-14 · engine/CLUSTER_BATTLE_2026-04-14</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">02 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P3 · THE AI TRANSFORMATION PROBLEM -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>03 · THE PROBLEM</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-8"></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>THE PROBLEM</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ENTERPRISE AI<br>STALLS AT THE<br><span class="accent">DATA LAYER.</span></h2>
-
- <div class="sp-6"></div>
-
- <p class="body">
- Every enterprise AI roadmap promises agents that read
- documents, monitor systems, answer customers, investigate
- alerts, and close tickets. Most pilots work. Most production
- rollouts don't. The failure is rarely the model. It is almost
- always the data layer beneath it — fragmented, slow, expensive,
- and owned by three separate teams.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="kv-row">
- <div class="k">FRAGMENTATION</div>
- <div class="v">
- Logs in Splunk or Elasticsearch. Embeddings in Pinecone or a
- self-hosted vector DB. Agent memory in Redis. Observability
- in Grafana–Loki–Tempo. Each system has its own query language,
- its own permission model, its own failure mode.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">LATENCY COMPOUNDS</div>
- <div class="v">
- A single agent turn can touch three data stores through two
- Python orchestrators doing reciprocal rank fusion. The agent
- sees the <em>sum</em> of every system's p99. Users see a
- product that feels slow even when individual queries look
- fast in a dashboard.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">COSTS MULTIPLY</div>
- <div class="v">
- A 4-node Elasticsearch cluster for logs. Per-vector pricing
- for the embedding store. Memory for the session cache. Seat
- licenses for the observability stack. Four bills, four
- contract renewals, four audits.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">RISK SURFACE</div>
- <div class="v">
- Three data layers means three places data can leak, three
- backup stories, three postmortem categories. When the CISO
- asks "where is customer X's data and who queried it last?"
- the honest answer is usually a week of engineering work.
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>THE DATA LAYER IS THE TRANSFORMATION</span>
- <span class="dash">·</span>
- <span>NOT THE MODEL</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">03 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P4 · THE POSITION -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>04 · THE POSITION</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-8"></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>THE POSITION</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ONE DATA PLANE.<br><span class="accent">EVERY AGENT.</span></h2>
-
- <div class="sp-6"></div>
-
- <p class="body">
- XERJ is a single data plane that holds every kind of data an
- AI agent needs: full-text search, dense-vector retrieval,
- structured logs, metrics, traces, and agent memory. One API
- stands in front of all of them. One contract sits behind all
- of them. One platform for the whole AI transformation.
- </p>
-
- <div class="sp-8"></div>
-
- <div class="kv-row">
- <div class="k">DROP-IN</div>
- <div class="v">
- XERJ speaks the Elasticsearch 8.13 wire protocol. Your
- existing clients, dashboards, and ingest pipelines work
- unchanged. Migration is a configuration change, not a
- rewrite.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">HYBRID NATIVE</div>
- <div class="v">
- Keyword and vector search share one query, one cost model,
- one pass. No Python orchestrator. No reciprocal rank fusion.
- The ranking is native, the latency is one hop.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">COST-VISIBLE</div>
- <div class="v">
- Every query returns an explain-plan with per-node cost and
- row counts. Finance audits AI spend at the query level. The
- CFO sees AI as a line-item, not a rounding error.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">SOVEREIGN</div>
- <div class="v">
- Self-hosted on your cloud or your metal. No data leaves your
- perimeter. No proprietary cloud dependency. Procurement and
- legal review takes a week, not a quarter.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">DETERMINISTIC</div>
- <div class="v">
- No JVM garbage collector, no warm-up tax, no surprise
- pauses. Cold start measured in milliseconds, not seconds.
- Latency budgets mean something in board-level SLOs.
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">04 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P5 · UX SHOWCASE 01 · SERVICE GRAPH / CONNECTIVITY -->
-<!-- =========================================================== -->
-<section class="page viz-page-lg">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>05 · DATA LINEAGE &amp; CONNECTIVITY</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>DATA LINEAGE &amp; CONNECTIVITY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SEE EVERY HOP.<br><span class="accent">KNOW WHAT'S TALKING</span><br>TO WHAT.</h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- Every flow between services and indexes is visible, measurable,
- and auditable. One view replaces APM, data-catalog, and
- observability-lineage tools for teams managing agent workloads.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="viz">
- <div class="kicker"><span>SERVICE → INDEX · FLOWS · 1H AVERAGE</span>
- <svg class="chart" viewBox="0 0 1200 420" preserveAspectRatio="none" style="width:100%; overflow:hidden">
- <path d="M 220,58.0 C 508.8,58.0 691.2,286.0 980,286.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.78"/><path d="M 220,58.0 C 508.8,58.0 691.2,362.0 980,362.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.33"/><path d="M 220,134.0 C 508.8,134.0 691.2,286.0 980,286.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.17"/><path d="M 220,134.0 C 508.8,134.0 691.2,210.0 980,210.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.10"/><path d="M 220,210.0 C 508.8,210.0 691.2,58.0 980,58.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.48"/><path d="M 220,210.0 C 508.8,210.0 691.2,134.0 980,134.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.63"/><path d="M 220,210.0 C 508.8,210.0 691.2,210.0 980,210.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.22"/><path d="M 220,210.0 C 508.8,210.0 691.2,286.0 980,286.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.28"/><path d="M 220,286.0 C 508.8,286.0 691.2,58.0 980,58.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.52"/><path d="M 220,286.0 C 508.8,286.0 691.2,134.0 980,134.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.70"/><path d="M 220,362.0 C 508.8,362.0 691.2,134.0 980,134.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.85"/>
-
- <text x="208.0" y="58.0" fill="currentColor" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">api-gateway</text>
-
- <text x="208.0" y="134.0" fill="currentColor" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">auth</text>
-
- <text x="208.0" y="210.0" fill="currentColor" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">app</text>
-
- <text x="208.0" y="286.0" fill="currentColor" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">search</text>
-
- <text x="208.0" y="362.0" fill="currentColor" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">embed-svc</text>
-
-
- <text x="992.0" y="58.0" fill="currentColor" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">fts-index</text>
-
- <text x="992.0" y="134.0" fill="currentColor" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">vector-index</text>
-
- <text x="992.0" y="210.0" fill="currentColor" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">agent-memory</text>
-
- <text x="992.0" y="286.0" fill="currentColor" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">logs</text>
-
- <text x="992.0" y="362.0" fill="currentColor" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">metrics</text>
-
- <text x="208.0" y="12.0" fill="currentColor" opacity="0.6" font-family="var(--font-prose)" font-size="11" font-weight="600" letter-spacing="2" text-transform="uppercase" text-anchor="end">SOURCE</text>
- <text x="992.0" y="12.0" fill="currentColor" opacity="0.6" font-family="var(--font-prose)" font-size="11" font-weight="600" letter-spacing="2" text-transform="uppercase">TARGET</text>
- </svg>
- <div class="series-legend">
- <span class="mono" style="color:var(--z-mute);">11 flows · <span style="color:var(--z-ink);">5</span>→<span style="color:var(--z-ink);">5</span> · rps</span>
- </div>
- </div>
-
- </div>
-
- <p class="viz-caption">
- Eleven flows across five source services and five target
- indexes. Line weight encodes request rate. Audit teams see
- the same view engineers see — no separate lineage tool, no
- manual documentation to drift out of date.
- </p>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">05 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P6 · UX SHOWCASE 02 · QUERY CLUSTERS (UMAP) -->
-<!-- =========================================================== -->
-<section class="page viz-page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>06 · HOW YOUR AGENTS ACTUALLY SEARCH</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>06</span><span class="dash">·</span><span>HOW YOUR AGENTS SEARCH</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">WHERE YOUR<br><span class="accent">QUERIES</span> LIVE.</h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- 830,000 real queries from 48 hours of production traffic,
- projected into 2D by intent. Six clusters. Product owners,
- data-science leads, and SecOps look at the same picture.
- </p>
-
- <div class="sp-4"></div>
-
- <div class="viz">
- <div class="kicker"><span>830,000 QUERIES · 48 HOURS · UMAP 2D</span>
- <svg class="chart" viewBox="0 0 1200 380" preserveAspectRatio="none" style="width:100%">
- <polyline points="93.8,252.0 103.0,263.6 118.2,268.2 167.5,273.3 241.5,265.6 258.3,262.1 263.7,260.2 277.4,250.9 275.7,245.6 250.3,230.8 233.9,225.9 199.6,222.3 110.3,229.6 99.0,233.5 94.4,241.1 93.8,252.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.55"/><polyline points="809.5,290.8 838.4,302.7 901.5,309.2 955.2,308.0 971.3,305.2 1014.9,288.1 1018.5,285.6 1011.6,268.2 997.2,261.8 950.3,250.7 886.5,249.2 846.6,255.9 822.7,263.0 810.4,281.6 809.5,290.8" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.48"/><polyline points="396.6,119.7 409.2,141.2 456.1,151.6 524.3,156.5 564.0,154.8 609.1,146.1 634.0,135.6 640.7,124.8 626.6,106.1 613.8,101.3 576.9,95.6 528.3,90.1 459.2,96.7 410.2,106.3 396.6,119.7" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.41"/><polyline points="1002.2,68.6 1026.9,77.8 1045.9,78.0 1106.9,77.9 1160.0,69.6 1141.6,47.7 1105.1,40.0 1045.9,42.1 1017.2,48.5 1002.2,68.6" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.34"/><polyline points="40.0,54.0 57.7,76.1 93.6,77.6 124.7,76.9 144.7,74.3 160.4,63.0 157.1,52.2 147.6,48.8 114.1,46.0 89.1,44.0 52.2,50.2 40.0,54.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.27"/><polyline points="618.7,316.0 623.4,325.0 635.8,331.5 667.0,338.7 672.7,339.9 728.6,340.0 781.7,323.6 777.2,312.6 773.0,309.6 756.1,300.9 729.3,299.2 710.8,298.1 667.7,299.9 633.1,308.1 618.7,316.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.20"/>
- <text x="120.5" y="249.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="115.4" y="246.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="233.9" y="225.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="197.7" y="256.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="195.7" y="234.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="184.8" y="260.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="156.7" y="247.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="178.0" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="204.5" y="255.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="159.3" y="245.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="177.4" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="178.2" y="249.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="242.5" y="260.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="137.8" y="266.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="235.9" y="243.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="136.2" y="252.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="134.8" y="249.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="127.3" y="243.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="250.8" y="246.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="249.5" y="247.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="196.2" y="239.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="167.5" y="273.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="170.4" y="231.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="218.7" y="255.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="235.0" y="243.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="137.9" y="247.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="108.7" y="244.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="232.3" y="234.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="104.5" y="262.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="205.0" y="259.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="271.0" y="247.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="228.4" y="242.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="114.5" y="246.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="124.9" y="253.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="220.5" y="262.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="277.4" y="250.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="259.6" y="252.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="258.5" y="254.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="186.2" y="246.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="184.9" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="95.5" y="246.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="148.6" y="267.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="142.7" y="228.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="94.4" y="241.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="167.7" y="253.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="201.9" y="239.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="180.6" y="249.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="196.7" y="243.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="154.7" y="255.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="118.2" y="268.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="115.7" y="236.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="181.3" y="248.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="146.8" y="270.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="179.8" y="232.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="218.5" y="255.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="120.5" y="232.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="160.4" y="254.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="130.6" y="245.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="198.4" y="248.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="175.4" y="249.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="133.1" y="265.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="127.7" y="241.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="201.0" y="257.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="167.3" y="250.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="199.1" y="249.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="151.5" y="265.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="132.3" y="254.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="121.1" y="266.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="181.4" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="190.2" y="247.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="181.4" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="231.8" y="245.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="250.1" y="241.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="181.3" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="114.0" y="235.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="170.4" y="243.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="178.5" y="266.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="240.1" y="243.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="110.6" y="260.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="145.6" y="253.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="147.0" y="254.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="165.3" y="251.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="227.4" y="233.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="178.4" y="255.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="263.7" y="260.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="128.2" y="241.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="146.9" y="232.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="268.4" y="251.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="169.6" y="257.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="223.6" y="255.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="201.4" y="251.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="199.8" y="241.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="230.9" y="249.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="183.5" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="147.1" y="261.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="206.0" y="248.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="202.9" y="249.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="209.9" y="251.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="143.2" y="249.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="187.3" y="240.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="239.4" y="254.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="161.2" y="235.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="152.5" y="239.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="206.5" y="234.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="233.9" y="258.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="96.8" y="254.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="109.7" y="260.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="123.2" y="242.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="125.9" y="243.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="148.5" y="262.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="167.1" y="245.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="251.3" y="247.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="157.7" y="242.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="193.7" y="247.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="165.0" y="254.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="225.0" y="244.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="177.3" y="251.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="176.0" y="253.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="170.4" y="231.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="162.9" y="240.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="147.1" y="256.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="184.8" y="250.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="192.1" y="239.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="244.7" y="263.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="225.3" y="252.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="211.3" y="232.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="125.0" y="261.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="218.6" y="252.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="170.1" y="245.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="227.5" y="257.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="183.0" y="247.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="187.3" y="250.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="131.2" y="251.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="103.0" y="263.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="115.9" y="251.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="93.8" y="252.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="187.9" y="249.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="195.5" y="223.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="128.6" y="235.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="139.2" y="251.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="164.9" y="239.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="148.8" y="233.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="241.5" y="265.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="185.7" y="232.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="130.6" y="247.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="174.0" y="263.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="99.0" y="233.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="188.9" y="236.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="196.1" y="247.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="192.8" y="247.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="141.5" y="230.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="137.6" y="250.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="110.3" y="229.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="174.9" y="260.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="138.6" y="231.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="166.6" y="232.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="180.5" y="245.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="202.2" y="256.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="250.3" y="230.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="252.7" y="242.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="175.7" y="249.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="118.4" y="264.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="212.1" y="226.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="199.6" y="222.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="142.3" y="244.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="220.0" y="246.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="217.1" y="244.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="142.3" y="247.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="275.7" y="245.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="183.7" y="254.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="194.7" y="244.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="152.3" y="268.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="264.4" y="251.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="199.8" y="252.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="167.9" y="261.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="190.6" y="253.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="264.3" y="248.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="258.3" y="262.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="183.4" y="244.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="275.1" y="246.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="879.1" y="296.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="972.9" y="268.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="878.9" y="302.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1007.7" y="276.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="921.5" y="263.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="906.8" y="277.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="897.4" y="251.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="975.3" y="280.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="913.8" y="278.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="914.4" y="280.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="946.7" y="284.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1014.9" y="288.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="914.7" y="283.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="892.5" y="272.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="977.9" y="271.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="847.8" y="284.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="876.5" y="294.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1004.2" y="268.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="884.8" y="297.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="833.8" y="266.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="920.5" y="266.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="997.2" y="261.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="920.9" y="272.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="859.1" y="291.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="868.0" y="284.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="880.0" y="273.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="839.3" y="269.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="974.0" y="270.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="869.7" y="295.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="982.1" y="297.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="825.6" y="277.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="944.0" y="268.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="887.0" y="289.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="950.3" y="250.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="955.7" y="285.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1003.3" y="292.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="958.6" y="270.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="933.0" y="285.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="823.0" y="278.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="867.5" y="260.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="846.6" y="255.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1011.6" y="268.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="909.8" y="293.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="904.1" y="271.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="892.3" y="273.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="913.7" y="278.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="908.3" y="284.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="912.6" y="278.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="915.7" y="282.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="906.3" y="296.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="876.7" y="276.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="871.3" y="293.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="885.2" y="256.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="970.7" y="295.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="885.5" y="292.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="867.5" y="265.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="946.2" y="280.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="873.6" y="272.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="892.8" y="259.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="899.8" y="274.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="858.0" y="298.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="809.5" y="290.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="982.7" y="299.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="865.4" y="288.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="839.2" y="262.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="912.7" y="277.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="911.1" y="279.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="968.9" y="262.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="925.9" y="272.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="932.9" y="268.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="965.9" y="282.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="892.8" y="305.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="923.9" y="287.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="931.3" y="289.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="912.5" y="277.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="898.4" y="302.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="955.4" y="289.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="911.7" y="260.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="892.4" y="285.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="982.8" y="294.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="863.7" y="293.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="810.4" y="281.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="822.7" y="263.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="916.9" y="281.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="970.3" y="295.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="926.7" y="285.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="982.1" y="261.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="863.1" y="268.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="943.5" y="288.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="872.5" y="267.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="943.9" y="276.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1018.5" y="285.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="858.3" y="286.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="916.0" y="276.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="935.9" y="285.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="886.5" y="249.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="898.1" y="285.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="904.9" y="273.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="928.4" y="251.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="984.9" y="280.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="848.6" y="264.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="942.2" y="263.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="848.1" y="274.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="879.4" y="267.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="858.3" y="277.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="899.7" y="285.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="875.9" y="302.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="901.5" y="282.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="903.3" y="274.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="920.6" y="281.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="829.3" y="283.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="912.2" y="278.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="904.9" y="279.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="926.7" y="293.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="919.1" y="260.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="857.8" y="285.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="971.3" y="305.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="912.9" y="279.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="953.4" y="301.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="903.8" y="279.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="909.1" y="272.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="930.9" y="292.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="934.6" y="272.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="854.0" y="295.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="901.5" y="309.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="816.3" y="278.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="980.1" y="290.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="937.7" y="288.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="915.0" y="277.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="842.8" y="280.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="893.9" y="249.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="992.6" y="283.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="939.8" y="280.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="915.0" y="281.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="894.8" y="264.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="838.4" y="302.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="918.4" y="302.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="955.2" y="308.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="944.7" y="304.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="830.7" y="296.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="469.3" y="110.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="564.0" y="120.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="547.8" y="99.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="540.4" y="100.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="536.7" y="97.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="518.2" y="123.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="533.5" y="118.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="634.0" y="135.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="495.9" y="114.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="594.5" y="139.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="525.4" y="112.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="554.4" y="106.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="590.4" y="138.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="553.1" y="151.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="488.4" y="147.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="520.0" y="114.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="494.5" y="119.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="538.3" y="125.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="422.8" y="134.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="459.2" y="96.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="604.5" y="132.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="529.1" y="117.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="406.8" y="125.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="433.8" y="106.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="523.7" y="123.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="482.5" y="132.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="573.4" y="107.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="536.8" y="128.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="522.8" y="123.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="529.6" y="115.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="624.4" y="135.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="468.9" y="113.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="487.1" y="108.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="523.4" y="114.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="496.4" y="139.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="396.6" y="119.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="511.2" y="124.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="570.0" y="134.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="510.4" y="127.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="561.4" y="108.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="559.8" y="125.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="521.9" y="116.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="468.3" y="122.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="483.6" y="108.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="510.6" y="123.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="425.0" y="123.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="521.0" y="123.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="513.3" y="116.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="412.4" y="110.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="576.4" y="139.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="449.5" y="112.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="541.4" y="92.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="546.9" y="100.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="548.5" y="139.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="486.1" y="131.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="479.0" y="140.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="517.6" y="106.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="525.8" y="110.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="502.4" y="122.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="476.3" y="123.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="522.2" y="111.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="505.9" y="116.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="520.0" y="125.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="424.1" y="111.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="488.6" y="137.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="579.6" y="113.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="535.5" y="119.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="532.1" y="130.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="471.3" y="129.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="527.6" y="143.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="414.7" y="122.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="483.5" y="133.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="525.4" y="99.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="625.5" y="138.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="531.3" y="151.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="504.1" y="128.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="525.2" y="119.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="595.9" y="137.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="450.0" y="121.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="499.9" y="103.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="546.9" y="131.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="410.2" y="106.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="584.9" y="141.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="585.5" y="122.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="544.8" y="127.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="524.4" y="122.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="487.2" y="119.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="574.5" y="149.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="513.4" y="125.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="558.0" y="128.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="486.5" y="131.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="418.9" y="120.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="506.6" y="153.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="509.8" y="118.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="568.9" y="113.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="540.5" y="97.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="447.0" y="130.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="591.2" y="133.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="516.5" y="133.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="522.7" y="122.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="616.0" y="120.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="524.1" y="123.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="551.2" y="119.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="462.0" y="122.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="595.7" y="109.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="578.1" y="127.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="472.1" y="121.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="626.6" y="106.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="509.5" y="125.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="524.3" y="121.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="542.5" y="122.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="506.7" y="148.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="499.2" y="118.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="439.9" y="109.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="534.5" y="119.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="406.7" y="112.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="512.0" y="122.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="617.3" y="103.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="409.2" y="141.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="467.2" y="120.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="507.9" y="122.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="543.6" y="146.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="568.5" y="94.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="590.3" y="131.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="487.3" y="119.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="510.5" y="130.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="552.2" y="102.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="562.1" y="129.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="539.9" y="126.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="556.9" y="130.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="478.4" y="115.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="476.9" y="110.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="614.4" y="128.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="513.7" y="123.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="525.9" y="121.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="539.2" y="140.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="614.0" y="118.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="517.1" y="149.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="437.9" y="119.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="505.6" y="154.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="566.0" y="99.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="460.3" y="116.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="616.3" y="129.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="496.8" y="126.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="500.0" y="122.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="609.1" y="146.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="409.1" y="137.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="516.0" y="117.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="506.8" y="143.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="535.2" y="120.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="501.0" y="125.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="640.7" y="124.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="481.5" y="126.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="463.1" y="120.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="518.8" y="114.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="515.2" y="120.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="536.1" y="124.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="510.0" y="123.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="576.9" y="95.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="457.8" y="115.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="456.1" y="151.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="440.8" y="109.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="465.5" y="128.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="554.8" y="120.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="605.2" y="102.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="536.4" y="150.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="485.3" y="124.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="494.2" y="105.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="518.9" y="130.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="629.8" y="135.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="560.6" y="120.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="567.3" y="137.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="519.5" y="122.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="564.0" y="154.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="520.6" y="130.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="505.5" y="113.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="527.5" y="114.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="531.1" y="123.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="508.0" y="120.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="528.5" y="117.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="528.3" y="90.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="516.6" y="112.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="515.2" y="131.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="571.0" y="135.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="513.5" y="128.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="568.9" y="135.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="576.3" y="101.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="513.6" y="125.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="528.6" y="122.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="606.8" y="124.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="453.4" y="104.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="538.2" y="114.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="596.9" y="104.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="502.2" y="114.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="499.8" y="139.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="509.5" y="120.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="464.2" y="138.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="497.2" y="148.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="559.2" y="122.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="432.1" y="120.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="611.7" y="107.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="441.5" y="140.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="462.6" y="134.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="541.3" y="126.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="611.3" y="122.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="613.8" y="101.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="560.2" y="137.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="632.4" y="123.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="535.0" y="129.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="625.4" y="109.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="502.2" y="121.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="493.7" y="135.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="506.9" y="118.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="617.7" y="139.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="627.9" y="117.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="496.7" y="115.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="524.3" y="156.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="402.3" y="124.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="566.7" y="97.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="609.8" y="127.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1087.8" y="42.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1114.4" y="69.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1058.4" y="64.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1139.8" y="50.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1084.0" y="61.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1076.7" y="75.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1024.5" y="63.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1117.2" y="49.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1046.9" y="50.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1085.8" y="59.4" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1114.5" y="56.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1099.9" y="55.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1085.2" y="64.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1080.0" y="62.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1141.6" y="47.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1145.3" y="56.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1082.9" y="55.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1080.4" y="48.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1002.2" y="68.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1053.7" y="75.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1042.6" y="51.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1075.2" y="61.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1026.9" y="77.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1083.5" y="60.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1141.0" y="70.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1082.1" y="60.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1028.1" y="66.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1015.4" y="60.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1145.4" y="53.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1071.0" y="60.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1160.0" y="69.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1056.4" y="76.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1057.4" y="68.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1105.0" y="60.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1089.2" y="66.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1055.4" y="76.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1074.4" y="64.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1114.8" y="68.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1106.9" y="77.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1084.6" y="41.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1079.1" y="61.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1100.1" y="47.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1099.9" y="65.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1056.2" y="64.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1077.4" y="62.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1073.7" y="49.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1090.3" y="59.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1107.4" y="43.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1089.4" y="58.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1081.0" y="71.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1079.5" y="60.4" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1036.7" y="70.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1079.5" y="64.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1030.1" y="73.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1126.2" y="47.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1115.3" y="58.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1048.0" y="51.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1079.3" y="60.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1047.1" y="60.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1075.1" y="72.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1132.2" y="62.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1093.9" y="73.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1129.1" y="68.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1125.1" y="44.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1084.1" y="62.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1017.2" y="48.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1038.8" y="56.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1059.3" y="59.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1052.8" y="62.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1100.3" y="65.4" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1075.6" y="42.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1066.2" y="62.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1075.4" y="69.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1057.7" y="74.4" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1112.7" y="66.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1089.4" y="53.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1055.1" y="45.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1093.5" y="72.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1097.0" y="65.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1128.1" y="57.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1117.8" y="68.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1045.9" y="78.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1048.0" y="74.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1049.8" y="59.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1073.1" y="41.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1106.4" y="55.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1080.9" y="62.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1082.6" y="77.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1046.8" y="55.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1106.8" y="55.4" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1045.9" y="42.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1103.7" y="61.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1083.0" y="62.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1129.5" y="72.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1080.6" y="61.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1096.1" y="62.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1094.9" y="60.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1105.1" y="40.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1094.4" y="66.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1082.9" y="61.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="149.0" y="62.4" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="144.7" y="74.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="52.2" y="50.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="142.1" y="65.4" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="119.3" y="47.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="132.6" y="57.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="76.7" y="63.5" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="79.4" y="63.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="86.9" y="59.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="93.6" y="77.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="73.9" y="73.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="53.6" y="63.5" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="60.3" y="65.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="109.1" y="59.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="112.9" y="57.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="104.5" y="57.5" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="146.4" y="50.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="59.6" y="53.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="85.7" y="70.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="132.8" y="75.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="146.9" y="49.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="153.2" y="67.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="108.7" y="52.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="79.9" y="53.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="79.1" y="70.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="89.0" y="48.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="73.1" y="55.9" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="99.7" y="60.7" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="108.2" y="53.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="147.6" y="48.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="89.1" y="57.4" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="94.0" y="62.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="91.9" y="64.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="109.2" y="58.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="88.9" y="74.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="121.8" y="62.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="75.0" y="54.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="135.3" y="49.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="98.0" y="59.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="111.4" y="57.5" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="85.9" y="51.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="93.7" y="65.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="100.7" y="55.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="89.1" y="44.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="88.4" y="59.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="103.1" y="58.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="97.6" y="67.4" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="109.6" y="61.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="42.5" y="55.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="78.6" y="72.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="40.0" y="54.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="141.6" y="59.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="59.7" y="70.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="160.4" y="63.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="110.1" y="64.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="120.7" y="62.4" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="94.1" y="57.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="157.1" y="52.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="87.7" y="61.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="85.2" y="69.7" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="114.1" y="46.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="86.9" y="63.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="124.7" y="76.9" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="58.0" y="60.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="87.0" y="60.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="114.8" y="54.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="133.2" y="55.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="95.6" y="61.7" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="88.0" y="67.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="143.3" y="48.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="107.9" y="58.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="110.0" y="57.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="97.4" y="62.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="57.7" y="76.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="135.3" y="64.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="106.5" y="49.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="100.2" y="50.9" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="114.3" y="61.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="54.0" y="53.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="100.3" y="61.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="693.3" y="320.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="746.3" y="309.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="739.1" y="310.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="761.2" y="317.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="662.3" y="315.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="781.7" y="323.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="704.0" y="331.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="729.3" y="299.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="712.5" y="327.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="682.4" y="330.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="692.5" y="312.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="618.7" y="316.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="742.3" y="319.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="641.7" y="322.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="709.6" y="318.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="713.8" y="317.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="733.4" y="326.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="727.4" y="323.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="710.8" y="300.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="738.7" y="317.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="684.4" y="300.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="700.0" y="318.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="674.7" y="326.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="700.9" y="315.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="718.9" y="329.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="672.7" y="339.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="659.8" y="302.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="764.7" y="317.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="773.0" y="309.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="697.9" y="314.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="705.7" y="331.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="667.7" y="299.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="747.3" y="324.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="709.8" y="330.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="667.2" y="328.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="720.9" y="308.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="699.2" y="316.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="667.0" y="338.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="721.0" y="318.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="702.9" y="321.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="764.8" y="326.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="686.5" y="314.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="733.4" y="319.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="704.8" y="318.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="694.2" y="314.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="699.2" y="318.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="736.8" y="326.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="673.4" y="318.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="674.1" y="328.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="743.3" y="329.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="675.0" y="326.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="696.9" y="317.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="641.8" y="316.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="623.4" y="325.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="727.0" y="329.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="752.9" y="327.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="705.0" y="319.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="700.0" y="303.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="644.9" y="321.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="631.4" y="314.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="686.6" y="317.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="686.9" y="316.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="705.5" y="318.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="663.5" y="330.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="672.0" y="337.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="677.9" y="317.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="703.1" y="316.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="682.4" y="319.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="771.8" y="313.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="677.9" y="323.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="689.2" y="317.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="743.8" y="309.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="711.3" y="315.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="710.8" y="317.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="703.6" y="314.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="701.4" y="319.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="722.4" y="325.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="707.0" y="319.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="748.5" y="316.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="633.1" y="308.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="710.8" y="298.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="716.7" y="321.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="740.9" y="315.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="756.1" y="300.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="723.7" y="315.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="664.9" y="325.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="728.6" y="340.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="683.0" y="306.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="777.2" y="312.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="760.0" y="316.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="715.3" y="331.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="746.2" y="322.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="733.1" y="301.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="697.4" y="318.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="719.5" y="311.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="712.0" y="309.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="647.5" y="317.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="709.1" y="311.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="717.5" y="312.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="726.8" y="326.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="701.4" y="336.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="732.3" y="325.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="690.3" y="321.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="685.9" y="320.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="727.7" y="300.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="670.3" y="307.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="635.8" y="331.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="701.6" y="318.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="768.4" y="326.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="638.8" y="326.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
- <text x="120.5" y="235.2" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">RAG RETRIEVAL</text><text x="879.1" y="282.7" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">CODE ASSIST</text><text x="469.3" y="96.0" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">DOC Q&amp;A</text><text x="1087.8" y="28.7" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">EXTRACT JSON</text><text x="149.0" y="48.4" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">CLASSIFY</text><text x="693.3" y="306.7" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">AGENT TOOL</text>
-
- </svg>
- <div class="series-legend">
- <span class="mono" style="color:var(--z-mute);">UMAP · <span style="color:var(--z-ink);">830</span> embeddings · <span style="color:var(--z-ink);">6</span> clusters</span>
- </div>
- </div>
-
- </div>
-
- <p class="viz-caption">
- RAG retrieval dominates — the large central mass. Peripheral
- clusters are internal analytics, security detections, and
- long-tail agent memory lookups. One chart tells leadership
- what the agent estate is actually doing.
- </p>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">06 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P7 · UX SHOWCASE 03 · LATENCY RIBBON (AXONOMETRIC) -->
-<!-- =========================================================== -->
-<section class="page viz-page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>07 · CROSS-MODEL LATENCY</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>07</span><span class="dash">·</span><span>CROSS-MODEL LATENCY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">EVERY MODEL.<br><span class="accent">ONE AXIS.</span></h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- Latency across five foundation models (Opus, Sonnet, Haiku,
- GPT-5, Gemini 3) on one axonometric ribbon. Leadership sees
- the latency tax of each provider instantly — without a
- procurement spreadsheet.
- </p>
-
- <div class="sp-4"></div>
-
- <div class="viz">
- <div class="kicker"><span>LATENCY · PER MODEL · AXONOMETRIC RIBBON</span>
- <svg class="chart" viewBox="0 0 1200 320" preserveAspectRatio="none" style="width:100%">
- <polyline points="174.0,132.5 191.2,124.5 208.4,107.1 225.7,107.6 242.9,100.0 260.1,95.5 277.3,94.4 294.5,87.9 311.8,97.7 329.0,103.5 346.2,94.7 363.4,116.2 380.6,119.5 397.9,124.4 415.1,133.7 432.3,139.6 449.5,154.6 466.7,156.6 484.0,159.9 501.2,160.0 518.4,149.7 535.6,158.2 552.8,154.6 570.1,134.8 587.3,137.4 604.5,134.6 621.7,121.8 638.9,121.4 656.2,101.1 673.4,105.4 690.6,94.7 707.8,95.5 725.1,87.1 742.3,84.0 759.5,90.5 776.7,105.6 793.9,119.7 811.2,108.8 828.4,125.5 845.6,125.1 862.8,130.8 880.0,148.3 897.3,160.7 914.5,151.4 931.7,147.5 948.9,161.9 966.1,154.3 983.4,145.7 1000.6,128.2 1017.8,133.8 1035.0,116.6 1052.2,109.2 1069.5,104.2 1086.7,115.4 1103.9,109.6 1121.1,103.1 1138.3,92.3 1155.6,87.9 1172.8,87.5 1190.0,85.3" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="1.00"/><text x="168.0" y="192.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">OPUS 4.6</text><text x="1196.0" y="85.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">1.72K</text><polyline points="158.0,193.3 175.2,191.2 192.4,183.3 209.7,179.0 226.9,179.8 244.1,181.6 261.3,179.1 278.5,172.5 295.8,177.1 313.0,185.0 330.2,179.3 347.4,188.6 364.6,198.1 381.9,195.0 399.1,210.8 416.3,211.9 433.5,221.1 450.7,222.8 468.0,215.6 485.2,214.8 502.4,210.4 519.6,209.6 536.8,213.0 554.1,205.2 571.3,209.5 588.5,202.5 605.7,199.7 622.9,196.4 640.2,188.4 657.4,182.7 674.6,178.3 691.8,174.9 709.1,173.8 726.3,175.2 743.5,187.0 760.7,183.1 777.9,189.7 795.2,195.7 812.4,200.3 829.6,205.3 846.8,210.4 864.0,215.7 881.3,219.0 898.5,223.3 915.7,218.3 932.9,221.4 950.1,215.4 967.4,212.2 984.6,206.7 1001.8,205.5 1019.0,205.4 1036.2,202.4 1053.5,195.4 1070.7,178.6 1087.9,188.9 1105.1,173.8 1122.3,179.5 1139.6,178.3 1156.8,185.8 1174.0,176.8" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.86"/><text x="152.0" y="176.0" fill="currentColor" opacity="0.86" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">SONNET 4.6</text><text x="1180.0" y="176.8" fill="currentColor" opacity="0.86" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">969.91</text><polyline points="142.0,259.3 159.2,253.8 176.4,252.3 193.7,245.9 210.9,245.3 228.1,248.1 245.3,240.0 262.5,242.1 279.8,243.7 297.0,244.0 314.2,248.2 331.4,248.5 348.6,253.7 365.9,259.5 383.1,263.2 400.3,265.6 417.5,268.0 434.7,267.8 452.0,265.3 469.2,265.5 486.4,266.0 503.6,261.3 520.8,267.7 538.1,262.2 555.3,260.1 572.5,257.8 589.7,250.2 606.9,250.0 624.2,250.5 641.4,242.2 658.6,240.8 675.8,246.1 693.1,244.0 710.3,241.8 727.5,242.6 744.7,246.7 761.9,250.2 779.2,250.8 796.4,258.0 813.6,259.2 830.8,259.6 848.0,263.5 865.3,264.0 882.5,266.2 899.7,266.6 916.9,262.6 934.1,261.4 951.4,261.6 968.6,263.3 985.8,258.0 1003.0,254.8 1020.2,250.3 1037.5,251.7 1054.7,245.0 1071.9,247.9 1089.1,241.6 1106.3,244.9 1123.6,245.5 1140.8,244.5 1158.0,243.2" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.72"/><text x="136.0" y="160.0" fill="currentColor" opacity="0.72" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">HAIKU 4.5</text><text x="1164.0" y="243.2" fill="currentColor" opacity="0.72" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">395.65</text><polyline points="126.0,139.7 143.2,128.3 160.4,125.2 177.7,129.8 194.9,122.9 212.1,107.4 229.3,114.9 246.5,119.2 263.8,114.6 281.0,115.6 298.2,121.1 315.4,127.4 332.6,143.9 349.9,138.3 367.1,143.9 384.3,156.6 401.5,163.0 418.7,174.3 436.0,168.5 453.2,161.8 470.4,164.8 487.6,166.8 504.8,162.2 522.1,153.6 539.3,145.4 556.5,142.4 573.7,144.5 590.9,135.8 608.2,131.5 625.4,126.5 642.6,118.6 659.8,108.6 677.1,108.6 694.3,113.3 711.5,127.8 728.7,133.5 745.9,134.9 763.2,133.4 780.4,148.2 797.6,143.9 814.8,154.4 832.0,154.3 849.3,158.6 866.5,171.2 883.7,176.6 900.9,165.9 918.1,170.6 935.4,162.1 952.6,160.6 969.8,154.8 987.0,139.6 1004.2,136.5 1021.5,130.6 1038.7,122.9 1055.9,127.2 1073.1,111.3 1090.3,111.3 1107.6,106.9 1124.8,123.5 1142.0,127.8" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.58"/><text x="120.0" y="144.0" fill="currentColor" opacity="0.58" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">GPT-5</text><text x="1148.0" y="127.8" fill="currentColor" opacity="0.58" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">1.09K</text><polyline points="110.0,117.9 127.2,102.3 144.4,96.6 161.7,89.9 178.9,66.9 196.1,72.6 213.3,65.0 230.5,76.9 247.8,72.4 265.0,91.1 282.2,81.2 299.4,87.2 316.6,105.2 333.9,117.7 351.1,112.7 368.3,126.8 385.5,141.6 402.7,147.6 420.0,134.6 437.2,143.2 454.4,131.7 471.6,130.1 488.8,131.7 506.1,114.3 523.3,124.3 540.5,116.5 557.7,98.6 574.9,87.7 592.2,91.3 609.4,72.6 626.6,80.8 643.8,81.3 661.1,69.4 678.3,73.0 695.5,78.4 712.7,92.4 729.9,83.3 747.2,100.7 764.4,104.2 781.6,128.6 798.8,115.4 816.0,130.7 833.3,142.5 850.5,151.0 867.7,145.7 884.9,135.7 902.1,131.4 919.4,138.0 936.6,117.4 953.8,118.9 971.0,116.8 988.2,97.6 1005.5,92.5 1022.7,92.6 1039.9,71.4 1057.1,84.8 1074.3,81.4 1091.6,61.6 1108.8,81.6 1126.0,79.7" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.44"/><text x="104.0" y="128.0" fill="currentColor" opacity="0.44" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">GEMINI 3</text><text x="1132.0" y="79.7" fill="currentColor" opacity="0.44" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">1.31K</text>
- </svg>
- <div class="series-legend">
- <span class="mono" style="color:var(--z-mute);">axonometric · 5 series · min <span style="color:var(--z-ink);">223.03</span> · max <span style="color:var(--z-ink);">1.73K</span></span>
- </div>
- <p class="viz-caption">Five models, 60 seconds. Depth encodes model generation — OPUS at the front, HAIKU at the back. Every stroke is a 1 px line.</p>
- </div>
-
- </div>
-
- <p class="viz-caption">
- Depth encodes generation. Opus 4.6 at the front, Haiku 4.5 at
- the back. The same data layer serves every agent — switching
- models is a configuration change, not a re-platform.
- </p>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">07 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P8 · UX SHOWCASE 04 · COST VISIBILITY HEATMAP -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>08 · COST VISIBILITY · BOARD-READY</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>08</span><span class="dash">·</span><span>COST VISIBILITY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">WATCH THE<br><span class="accent">MONEY MOVE.</span></h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- Every agent query returns an explain-plan with per-node cost
- and row count. The board-ready heatmap below aggregates spend
- by weekday × 2-hour window. Finance owns AI spend at the
- line-item level — not the end-of-quarter invoice.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="viz">
- <div class="kicker"><span>AGENT SPEND · WEEKDAY × 2H WINDOW · $ / WINDOW</span></div>
- <div class="sp-3"></div>
- <div class="viz-block" style="margin-top: var(--sp-10);">
- <div class="kicker"><span>SPEND · WEEKDAY × 2H</span></div>
- <div class="heatmap"><div class="heatmap-row heatmap-head"><span class="row-label"> </span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">00</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">02</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">04</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">06</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">08</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">10</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">12</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">14</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">16</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">18</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">20</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">22</span></div><div class="heatmap-row"><span class="row-label">MON</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.21;">$13</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.37;">$43</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.59;">$89</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.82;">$135</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.99;">$169</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.98;">$167</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.85;">$141</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.62;">$95</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.42;">$54</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.23;">$16</span></div><div class="heatmap-row"><span class="row-label">TUE</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.19;">$9</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.43;">$56</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.62;">$95</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.89;">$148</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.98;">$165</span><span style="display:inline-block; width:5ch; text-align:right; opacity:1.00;">$170</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.85;">$141</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.69;">$108</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.37;">$44</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span></div><div class="heatmap-row"><span class="row-label">WED</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.42;">$54</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.61;">$91</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.89;">$148</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.98;">$166</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.95;">$160</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.82;">$135</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.66;">$102</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.44;">$59</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.21;">$11</span></div><div class="heatmap-row"><span class="row-label">THU</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.20;">$9</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.38;">$47</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.67;">$104</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.84;">$139</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.98;">$167</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.98;">$165</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.80;">$131</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.67;">$104</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.44;">$59</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.22;">$14</span></div><div class="heatmap-row"><span class="row-label">FRI</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.17;">$4</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.39;">$48</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.66;">$101</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.81;">$132</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.96;">$162</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.92;">$153</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.89;">$148</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.65;">$99</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.43;">$56</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.19;">$7</span></div><div class="heatmap-row"><span class="row-label">SAT</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.18;">$6</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.25;">$19</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.34;">$38</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.44;">$58</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.57;">$85</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.55;">$81</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.48;">$65</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.38;">$46</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.25;">$21</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.17;">$4</span></div><div class="heatmap-row"><span class="row-label">SUN</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.18;">$6</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.24;">$18</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.35;">$40</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.46;">$61</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.52;">$74</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.51;">$71</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.47;">$64</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.41;">$52</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.24;">$18</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.17;">$3</span></div></div>
- </div>
-
- </div>
-
- <p class="viz-caption">
- Business-hour tiles show the concentration of agent traffic
- during working weekdays. Off-hours stay near baseline. The
- CFO audits three clicks, not three spreadsheets.
- </p>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">08 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P9 · OUTCOME 01 · SECURITY POSTURE (CISO) -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>09 · OUTCOME 01 · SECURITY POSTURE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>09</span><span class="dash">·</span><span>OUTCOME 01 · CISO</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">MTTD IN<br><span class="accent">MILLISECONDS.</span></h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- Eight canonical SIEM queries — top source IPs, lateral
- movement, DNS tunneling, brute-force detection — on one million
- events. SOC analysts who used to switch tabs while a dashboard
- loaded now iterate inside their train of thought.
- <span class="accent">Mean time to detect drops by an order of
- magnitude without adding headcount.</span>
- </p>
-
- <div class="sp-6"></div>
-
- <div class="kicker"><span>SIEM QUERY BATTERY · P95 LATENCY · 1M EVENTS</span></div>
- <div class="sp-3"></div>
-
- <div>
- <div class="cmp-head">
- <span></span><span class="a">XERJ</span><span>LEGACY STACK</span>
- </div>
- <div class="cmp-row">
- <span class="label">Top source IPs · triage</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:2px;"></span><span class="cmp-num">0.4 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:74px;"></span><span class="cmp-num">29.8 ms <span class="cmp-ratio">74.5×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Auth failures / hour</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:2px;"></span><span class="cmp-num">0.3 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:50px;"></span><span class="cmp-num">18.2 ms <span class="cmp-ratio">60.7×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Lateral movement</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:4px;"></span><span class="cmp-num">1.2 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:113px;"></span><span class="cmp-num">45.1 ms <span class="cmp-ratio">37.6×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">DNS tunneling · detection</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:3px;"></span><span class="cmp-num">0.8 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:82px;"></span><span class="cmp-num">32.7 ms <span class="cmp-ratio">40.9×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Process tree anomaly</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:6px;"></span><span class="cmp-num">2.1 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:223px;"></span><span class="cmp-num">89.3 ms <span class="cmp-ratio">42.5×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Brute-force detection</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:2px;"></span><span class="cmp-num">0.5 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:103px;"></span><span class="cmp-num">41.0 ms <span class="cmp-ratio">82.0×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Geo-impossible login</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:5px;"></span><span class="cmp-num">1.8 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:168px;"></span><span class="cmp-num">67.2 ms <span class="cmp-ratio">37.3×</span></span></span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker"><span>BOARD NARRATIVE</span><span class="dash">·</span><span>FASTER ANALYST CYCLES · SAME HEADCOUNT · SAME DATA LAKE</span></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">09 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P10 · OUTCOME 02 · AI / RAG AT SCALE (CDO / CAIO) -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>10 · OUTCOME 02 · AI PLATFORM</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>10</span><span class="dash">·</span><span>OUTCOME 02 · CDO · CAIO</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">RAG THAT FITS<br><span class="accent">THE BUDGET.</span></h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- Agent performance at enterprise scale is a memory problem
- before it is a model problem. XERJ's quantized-by-default
- vector index cuts the memory footprint four- to five-fold —
- the difference between ten million embeddings fitting on one
- node and sprawling across a cluster. Hybrid semantic + keyword
- retrieval is one query, one index, one hop.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="kicker"><span>VECTOR MEMORY AT AI SCALE · XERJ vs LEGACY STACK</span></div>
- <div class="sp-3"></div>
-
- <div>
- <div class="cmp-head">
- <span></span><span class="a">XERJ</span><span>ES + DEDICATED VECTOR DB</span>
- </div>
- <div class="cmp-row">
- <span class="label">1 M × 768-dim</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:3px;"></span><span class="cmp-num">1.2 GB</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:11px;"></span><span class="cmp-num">4.6 GB <span class="cmp-ratio">3.8×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">5 M × 768-dim</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:14px;"></span><span class="cmp-num">5.8 GB</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:56px;"></span><span class="cmp-num">23 GB <span class="cmp-ratio">4.0×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">10 M × 1536-dim · enterprise</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:44px;"></span><span class="cmp-num">18 GB</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:224px;"></span><span class="cmp-num">92 GB <span class="cmp-ratio">5.1×</span></span></span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <div class="kv-row">
- <div class="k">HYBRID RETRIEVAL</div>
- <div class="v">
- Semantic vector similarity and keyword relevance share one
- query plan. No Python orchestrator. No RRF. The p95 on one
- billion vectors is 38 ms on a single node.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">AGENT MEMORY</div>
- <div class="v">
- Conversation turns, tool traces, retrieved context — same
- store, same index. Time-decay scoring and token-budget-aware
- retrieval are native. No application-level glue for teams to
- maintain.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">RECALL</div>
- <div class="v">
- Recall@10 drops under 0.5 pp against float32 on MS&nbsp;MARCO.
- You trade 0.5 % recall for 75 % memory, delivered at the
- index, not in a downstream inference step.
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">10 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P11 · OUTCOME 03 · CONSOLIDATION & TCO (CIO/CFO) -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>11 · OUTCOME 03 · CONSOLIDATION &amp; TCO</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>11</span><span class="dash">·</span><span>OUTCOME 03 · CIO · CFO</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SIX SYSTEMS.<br>ONE BILL.<br><span class="accent">ONE API.</span></h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- The operational surface of the data layer shrinks by every
- axis that shows up in a procurement review: binaries to run,
- configs to maintain, query languages to train teams on, bills
- to reconcile, audits to sit through.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="kicker"><span>OPERATIONAL SURFACE · XERJ vs TRADITIONAL STACK</span></div>
- <div class="sp-3"></div>
-
- <div class="tco">
- <div class="h">DIMENSION</div>
- <div class="h num">LEGACY</div>
- <div class="h num">XERJ</div>
- <div class="h num">Δ</div>
-
- <div>Systems to run</div>
- <div class="num">6</div>
- <div class="num">1</div>
- <div class="delta">6×</div>
-
- <div>Config files</div>
- <div class="num">12</div>
- <div class="num">1</div>
- <div class="delta">12×</div>
-
- <div>Query languages</div>
- <div class="num">3</div>
- <div class="num">1</div>
- <div class="delta">3×</div>
-
- <div>Retention policies</div>
- <div class="num">3</div>
- <div class="num">1</div>
- <div class="delta">3×</div>
-
- <div>Monthly bill lines</div>
- <div class="num">5</div>
- <div class="num">1</div>
- <div class="delta">5×</div>
-
- <div>Idle memory footprint</div>
- <div class="num">8.5 GB</div>
- <div class="num">400 MB</div>
- <div class="delta">21×</div>
-
- <div>Disk · 1 M events</div>
- <div class="num">240 MB</div>
- <div class="num">85 MB</div>
- <div class="delta">2.8×</div>
-
- <div>Cold start</div>
- <div class="num">~15 s</div>
- <div class="num">50 ms</div>
- <div class="delta">300×</div>
- </div>
-
- <div class="sp-6"></div>
-
- <div class="kv-row">
- <div class="k">TCO</div>
- <div class="v">
- <span class="accent">~80 % infrastructure cost reduction</span>
- on log and search workloads, measured on a like-for-like
- corpus. Most of the saving is headcount: one team owns the
- data layer, not four.
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">11 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P12 · GOVERNANCE · RISK · COMPLIANCE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>12 · GOVERNANCE · RISK · COMPLIANCE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>12</span><span class="dash">·</span><span>GRC</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">AUDIT-GRADE.<br><span class="accent">BY DEFAULT.</span></h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- The agent era is not the time to accept a data layer that
- cannot answer the CISO, the DPO, or the auditor. XERJ is
- engineered to answer those questions in the same query
- language as everything else.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="kv-row">
- <div class="k">DATA SOVEREIGNTY</div>
- <div class="v">
- Self-hosted. Runs on your cloud, your VPC, your bare metal.
- Nothing leaves your perimeter. Procurement and legal
- reviews finish in a week, not a quarter.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">AUDIT TRAIL</div>
- <div class="v">
- Every query returns a structured explain-plan with per-node
- cost, row counts, and index hits. Audit teams query the
- explain-plan the same way they query the data.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">LINEAGE</div>
- <div class="v">
- Service-graph view shows data flows in real time (page 05).
- No manual data-catalog to drift out of date. Teams see what
- agents see.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">ACCESS MODEL</div>
- <div class="v">
- One permission model across logs, vectors, memory, and
- metrics. No reconciliation of three RBAC systems at
- audit time.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">DETERMINISM</div>
- <div class="v">
- No JVM garbage-collector pauses. No warm-up spikes. Latency
- budgets in SLOs are honored, including the 99.9 percentile
- that appears in board-level incident reports.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">VENDOR RISK</div>
- <div class="v">
- Elasticsearch wire-protocol compatibility means a migration
- away — if you ever need one — is the same configuration
- change as the migration in. No proprietary query DSL to
- lock you in.
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">12 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P13 · ADOPTION ROADMAP -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>13 · ADOPTION ROADMAP</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>13</span><span class="dash">·</span><span>ADOPTION ROADMAP</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FIVE PHASES.<br><span class="accent">ONE YEAR.</span></h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- A typical enterprise rollout. Low-risk, reversible, and
- measured at every stage. No big-bang migration. No contract
- that locks value to a future quarter.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="phase-grid">
- <div class="p">01</div>
- <div class="t">PILOT<br>WEEKS 1–2</div>
- <div>Reproduce the battle reports in this document on your own corpus. Private binary, seeded data, reproduction scripts. No integration. Outcome: your numbers, your hardware, your decision.</div>
-
- <div class="p">02</div>
- <div class="t">SHADOW<br>WEEKS 3–6</div>
- <div>Run XERJ alongside your existing Elasticsearch cluster. Dual-write from one ingest pipeline. Compare latency, cost, and accuracy on production traffic. No user impact.</div>
-
- <div class="p">03</div>
- <div class="t">MIGRATE SIEM<br>QUARTER 2</div>
- <div>Cut one workload over — typically SIEM or observability. Same ingest, same queries, same dashboards. Decommission the shadowed system. First line-item removed from the monthly bill.</div>
-
- <div class="p">04</div>
- <div class="t">CONSOLIDATE VECTORS<br>QUARTER 3</div>
- <div>Move the vector database and agent-memory store onto the same plane. Hybrid retrieval lights up. RAG orchestrators simplify. Teams merge.</div>
-
- <div class="p">05</div>
- <div class="t">ONE DATA PLANE<br>QUARTER 4</div>
- <div>Full consolidation. Logs, metrics, traces, vectors, and memory on one platform. One contract, one on-call, one audit surface. Board metrics ready by Q4 earnings cycle.</div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker"><span>REVERSIBLE</span><span class="dash">·</span><span>ES WIRE-PROTOCOL COMPATIBILITY MEANS NO LOCK-IN AT ANY PHASE</span></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">13 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P14 · EXECUTIVE CONTACT -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>14 · EXECUTIVE BRIEFING</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-10"></div>
- <div class="kicker"><span>14</span><span class="dash">·</span><span>EXECUTIVE BRIEFING</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">RUN IT ON<br><span class="accent">YOUR DATA.</span></h2>
-
- <div class="sp-6"></div>
-
- <p class="body">
- Executive briefings are 45 minutes. We bring the platform, the
- reproduction scripts, and the battle reports behind every
- number in this document. You bring a workload and whichever
- executives own the outcome. We reply within one business day.
- </p>
-
- <div class="sp-10"></div>
-
- <div style="padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);">
- <div class="kicker"><span>EXECUTIVE CONTACT</span></div>
- <div class="sp-3"></div>
- <div class="contact-line">
- HELLO<span class="accent">@</span>XERJ.AI
- </div>
- <div class="sp-4"></div>
- <div style="font-family: var(--font-data); font-size: 9.5pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--mute);">
- XERJ.AI · XERJ.COM · XERJ.DEV
- </div>
- </div>
-
- <div class="sp-8"></div>
-
- <div class="kv-row">
- <div class="k">WHAT YOU GET</div>
- <div class="v">
- Private binary with reproduction scripts and seeded datasets
- for every number in this brief. A 45-minute executive
- briefing, scheduled at your convenience.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">WHAT YOU BRING</div>
- <div class="v">
- A workload to reproduce on (SIEM, observability, RAG,
- Elasticsearch replacement), and whichever executives own the
- outcome and the budget.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">TERMS</div>
- <div class="v">
- No sales call. No NDA required to see the binary. No
- procurement dependency to run the pilot.
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>XERJ.AI</span>
- <span class="dash">·</span>
- <span>EXECUTIVE BRIEF · V1</span>
- <span class="dash">·</span>
- <span>2026-04</span>
- <span class="dash">·</span>
- <span>ONE DATA PLANE · EVERY AGENT</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">14 / 14</span>
- </div>
-</section>
-
-</body>
-</html>
diff --git a/brief/_tech-brief.rendered.html b/brief/_tech-brief.rendered.html
deleted file mode 100644
index 8bb128cbb..000000000
--- a/brief/_tech-brief.rendered.html
+++ /dev/null
@@ -1,1854 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ — Technical Product Brief — V1 — 2026-04</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<style>
- :root {
- --bg: #0b0b0d;
- --ink: #f4f2ec;
- --mute: #8a8680;
- --faint: #2b2a28;
- --line: #3a3836;
- --accent: #ffc400;
-
- --z-bg: var(--bg); --z-ink: var(--ink); --z-mute: var(--mute);
- --z-line: var(--line); --z-accent: var(--accent); --z-faint: var(--faint);
-
- --font-display: 'Big Shoulders Display', 'Inter', system-ui, sans-serif;
- --font-prose: 'Inter', system-ui, sans-serif;
- --font-data: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
- --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
-
- --track-ui: 0.14em;
- --track-label: 0.08em;
- }
-
- @page { size: Letter; margin: 0; }
- * { box-sizing: border-box; margin: 0; padding: 0; }
-
- html, body {
- background: var(--bg);
- color: var(--ink);
- font-family: var(--font-prose);
- font-size: 10.5pt;
- line-height: 1.45;
- -webkit-font-smoothing: antialiased;
- text-rendering: optimizeLegibility;
- }
-
- .page {
- width: 8.5in;
- height: 11in;
- padding: 0.55in 0.6in;
- position: relative;
- page-break-after: always;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- }
- .page:last-child { page-break-after: auto; }
-
- .kicker {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- display: flex;
- gap: 0.5em;
- align-items: center;
- flex-wrap: wrap;
- }
- .kicker .dash { color: var(--faint); }
- .kicker .accent { color: var(--accent); }
-
- .accent { color: var(--accent); }
- .mute { color: var(--mute); }
- .mono { font-family: var(--font-mono); }
-
- h1, h2, h3, h4 {
- font-family: var(--font-display);
- font-weight: 900;
- text-transform: uppercase;
- letter-spacing: 0.02em;
- line-height: 0.92;
- }
-
- .hero { font-size: 64pt; line-height: 0.92; }
- .scene { font-size: 38pt; }
- h3 { font-size: 18pt; }
- h4 { font-size: 11pt; letter-spacing: var(--track-ui); color: var(--accent); }
-
- p.lead { font-size: 12pt; line-height: 1.5; max-width: 6.5in; }
- p.body { font-size: 9.5pt; line-height: 1.55; max-width: 6.5in; }
- p.body.wide { max-width: 100%; }
-
- em { font-style: italic; }
- code, .code { font-family: var(--font-mono); font-size: 9pt; color: var(--ink); }
-
- .sp-1 { height: 4px; }
- .sp-2 { height: 8px; } .sp-3 { height: 12px; } .sp-4 { height: 16px; }
- .sp-6 { height: 24px; } .sp-8 { height: 32px; } .sp-10 { height: 48px; }
-
- .flex { display: flex; } .col { flex-direction: column; }
- .grow { flex: 1 1 auto; min-height: 0; }
- .between { justify-content: space-between; }
-
- /* page frame */
- .head-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-bottom: 10px;
- border-bottom: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .head-row .brand { color: var(--ink); }
- .head-row .brand .accent { color: var(--accent); }
-
- .foot-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-top: 10px;
- border-top: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 500;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .foot-row .num { color: var(--ink); }
-
- /* key-value row */
- .kv-row {
- display: grid;
- grid-template-columns: 1.3in 1fr;
- gap: 0.25in;
- padding: 7px 0;
- border-bottom: 1px solid var(--line);
- align-items: baseline;
- }
- .kv-row .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .kv-row .v { font-size: 9.5pt; line-height: 1.5; }
- .kv-row .v .mono { font-size: 9pt; color: var(--ink); }
-
- /* 4-up value quadrant */
- .quad-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- grid-template-rows: 1fr 1fr;
- border-top: 1px solid var(--line);
- border-left: 1px solid var(--line);
- }
- .quad-grid > .cell {
- padding: 16px;
- border-right: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 6px;
- min-height: 1.7in;
- }
- .quad-grid .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .quad-grid .t {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 18pt;
- color: var(--ink);
- line-height: 1;
- text-transform: uppercase;
- letter-spacing: 0.01em;
- }
- .quad-grid .t .accent { color: var(--accent); }
- .quad-grid .b {
- font-size: 9.5pt;
- line-height: 1.45;
- color: var(--ink);
- margin-top: auto;
- }
-
- /* 3-column topology cards */
- .topo-grid {
- display: grid;
- grid-template-columns: 1fr 1fr 1fr;
- gap: 16px;
- }
- .topo-grid > .cell {
- padding: 14px 16px;
- border-top: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 6px;
- }
- .topo-grid .k {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .topo-grid .t {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 16pt;
- line-height: 1;
- text-transform: uppercase;
- letter-spacing: 0.01em;
- }
- .topo-grid .t .accent { color: var(--accent); }
- .topo-grid .b { font-size: 9pt; line-height: 1.45; }
- .topo-grid .facts {
- font-family: var(--font-mono);
- font-size: 8.5pt;
- color: var(--mute);
- line-height: 1.5;
- margin-top: 6px;
- }
-
- /* feature / capability matrix */
- .matrix {
- display: grid;
- grid-template-columns: 1.6in 1fr 0.7in;
- gap: 0;
- }
- .matrix > div {
- padding: 5px 10px;
- border-bottom: 1px solid var(--line);
- font-size: 9pt;
- line-height: 1.42;
- }
- .matrix .h {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- border-bottom: 1px solid var(--ink);
- }
- .matrix .k {
- font-family: var(--font-mono);
- font-size: 9pt;
- color: var(--accent);
- }
- .matrix .status {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- text-align: right;
- }
- .matrix .status.ga { color: var(--accent); }
- .matrix .status.beta { color: var(--ink); }
- .matrix .status.road { color: var(--mute); }
-
- /* status pill (inline) */
- .pill {
- display: inline-block;
- font-family: var(--font-data);
- font-size: 7.5pt;
- font-weight: 700;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- padding: 1px 6px;
- border: 1px solid;
- margin-left: 4px;
- vertical-align: 1px;
- }
- .pill.ga { color: var(--accent); border-color: var(--accent); }
- .pill.beta { color: var(--ink); border-color: var(--ink); }
- .pill.road { color: var(--mute); border-color: var(--line); }
-
- /* versus table */
- .versus {
- display: grid;
- grid-template-columns: 1.25in 1fr 1fr;
- gap: 0.2in;
- }
- .versus > .h {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- padding: 6px 0;
- border-bottom: 1px solid var(--ink);
- }
- .versus > .h.a { color: var(--accent); }
- .versus > div {
- padding: 4px 0;
- border-bottom: 1px solid var(--line);
- font-size: 8.75pt;
- line-height: 1.35;
- }
- .versus > div.dim {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- color: var(--mute);
- }
- .versus .accent { color: var(--accent); }
-
- /* performance / scale table */
- .perf {
- display: grid;
- grid-template-columns: 1.3in repeat(4, 1fr);
- width: 100%;
- }
- .perf > div {
- padding: 7px 10px;
- border-bottom: 1px solid var(--line);
- font-size: 9pt;
- }
- .perf .h {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- border-bottom: 1px solid var(--ink);
- }
- .perf .n { font-family: var(--font-mono); text-align: right; color: var(--ink); }
-
- /* ASCII topology pre */
- .arch-pre {
- font-family: var(--font-mono);
- font-size: 8.5pt;
- line-height: 1.45;
- color: var(--ink);
- white-space: pre;
- padding: 12px 0;
- border-top: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- overflow: hidden;
- }
- .arch-pre .accent { color: var(--accent); }
- .arch-pre .mute { color: var(--mute); }
- .arch-pre .ink { color: var(--ink); }
-
- /* two-column integration catalog */
- .int-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 16px;
- }
- .int-grid > .group {
- padding-top: 10px;
- border-top: 1px solid var(--line);
- }
- .int-grid .group h4 { margin-bottom: 6px; }
- .int-grid .group .list {
- font-family: var(--font-mono);
- font-size: 8.5pt;
- line-height: 1.7;
- color: var(--ink);
- }
- .int-grid .group .list .mute { color: var(--mute); }
-
- /* roadmap rail */
- .road-rail {
- display: grid;
- grid-template-columns: 0.85in 1.1in 1fr;
- column-gap: 0.2in;
- }
- .road-rail > div {
- padding: 9px 0;
- border-top: 1px solid var(--line);
- font-size: 9.5pt;
- line-height: 1.45;
- }
- .road-rail .q {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 20pt;
- color: var(--accent);
- line-height: 1;
- }
- .road-rail .t {
- font-family: var(--font-data);
- font-size: 9pt;
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- color: var(--ink);
- }
-
- /* chart viz wrapper */
- .viz {
- width: 100%;
- margin-top: 10px;
- max-height: 2.7in;
- overflow: hidden;
- padding-right: 60px;
- }
- .viz svg.chart {
- display: block;
- width: 100%;
- height: 2.5in;
- max-height: 2.5in;
- color: var(--accent);
- overflow: visible;
- }
- .viz .kicker { margin-bottom: 6px; }
- .viz .viz-block { margin-top: 0 !important; width: 100%; }
- .viz .viz-block .kicker { margin-bottom: 6px; }
- .viz-caption {
- margin-top: 10px;
- font-family: var(--font-prose);
- font-size: 9pt;
- color: var(--mute);
- max-width: 6.5in;
- }
-
- /* packaging tiers */
- .tiers {
- display: grid;
- grid-template-columns: 1fr 1fr 1fr;
- gap: 16px;
- }
- .tiers > .tier {
- padding: 16px;
- border-top: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 8px;
- }
- .tiers .tier.ent { border-top-color: var(--accent); }
- .tiers .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .tiers .t {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 20pt;
- line-height: 1;
- color: var(--ink);
- letter-spacing: 0.01em;
- text-transform: uppercase;
- }
- .tiers .tier.ent .t { color: var(--accent); }
- .tiers ul {
- list-style: none;
- margin: 0; padding: 0;
- font-size: 8.75pt;
- line-height: 1.55;
- }
- .tiers ul li { padding: 2px 0; }
- .tiers ul li::before {
- content: '· ';
- color: var(--mute);
- margin-right: 2px;
- }
-
- /* cover hero */
- .cover-hero {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 72pt;
- line-height: 0.9;
- letter-spacing: 0.01em;
- }
-</style>
-</head>
-<body>
-
-<!-- =========================================================== -->
-<!-- P1 · COVER -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>TECHNICAL PRODUCT BRIEF · V1 · 2026-04</span>
- </div>
-
- <div class="grow flex col between">
- <div class="sp-10"></div>
-
- <div>
- <div class="kicker" style="margin-bottom:20px;">
- <span>FOR ENTERPRISE ARCHITECTS</span>
- <span class="dash">·</span>
- <span>PLATFORM LEADS</span>
- <span class="dash">·</span>
- <span>PRINCIPAL ENGINEERS</span>
- </div>
-
- <div class="cover-hero">
- THE UNIFIED<br>
- DATA PLANE<br>
- FOR THE<br>
- <span class="accent">AGENT ERA.</span>
- </div>
-
- <div class="sp-8"></div>
-
- <p class="lead" style="max-width:6in;">
- XERJ is a self-hosted data platform that consolidates
- full-text search, vector retrieval, columnar logs, and
- agent memory into a single Elasticsearch-compatible
- service. Drop-in for existing ES clients; purpose-built for
- enterprises standing up retrieval-augmented applications at
- scale.
- </p>
- </div>
-
- <div class="flex between" style="gap:24px;">
- <div class="kicker">
- <span>ES 8.13 COMPATIBLE</span>
- <span class="dash">·</span>
- <span>SELF-HOSTED</span>
- <span class="dash">·</span>
- <span>DATA-SOVEREIGN</span>
- <span class="dash">·</span>
- <span>ZERO-TRUST READY</span>
- </div>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">01 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P2 · EXECUTIVE SUMMARY · VALUE THESIS -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>02 · EXECUTIVE SUMMARY</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>EXECUTIVE SUMMARY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ONE PLATFORM.<br><span class="accent">EVERY RETRIEVAL WORKLOAD.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Enterprise AI programs stall when every team assembles a
- different retrieval stack: ES for logs, Pinecone for vectors,
- Redis for session memory, a stitching orchestrator for every
- hybrid query. XERJ collapses that stack into one platform
- under one API. Migration is a configuration change — the
- application keeps its Elasticsearch clients.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="quad-grid">
- <div class="cell">
- <span class="k">UNIFIED DATA PLANE</span>
- <span class="t">FOUR WORKLOADS.<br><span class="accent">ONE ENGINE.</span></span>
- <span class="b">Full-text (BM25), dense-vector (HNSW), columnar logs, and agent memory in a single process, single segment cache, single WAL. No cross-store orchestrator.</span>
- </div>
- <div class="cell">
- <span class="k">DROP-IN ES COMPATIBILITY</span>
- <span class="t">ZERO REWRITE.<br><span class="accent">PORT :9200.</span></span>
- <span class="b">ES 8.13 wire protocol · 38 query types · bulk + scroll + search APIs. Existing clients, dashboards, and ingest pipelines work unchanged.</span>
- </div>
- <div class="cell">
- <span class="k">ENTERPRISE OPERATIONS</span>
- <span class="t">SOVEREIGN.<br><span class="accent">AUDIT-READY.</span></span>
- <span class="b">Self-hosted on your cloud or metal. Per-query explain-plan with cost + row counts. Prometheus metrics first-class. RBAC roadmap <span class="pill road">Q2</span>.</span>
- </div>
- <div class="cell">
- <span class="k">MODERN RUNTIME</span>
- <span class="t">RUST.<br><span class="accent">NO JVM.</span></span>
- <span class="b">13 MB static binary · 50 ms cold start · 400 MB idle · no GC pauses. Deterministic tail latency — SLOs mean something in the 99.9 percentile.</span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <h4 style="color:var(--mute);">PRIMARY USE CASES</h4>
- <div class="sp-2"></div>
- <div class="kicker" style="color:var(--ink); text-transform:none; letter-spacing:0.04em; font-size:9pt;">
- <span>SIEM MODERNIZATION</span>
- <span class="dash">·</span>
- <span>RAG AT ENTERPRISE SCALE</span>
- <span class="dash">·</span>
- <span>UNIFIED OBSERVABILITY</span>
- <span class="dash">·</span>
- <span>AGENT MEMORY PLATFORM</span>
- <span class="dash">·</span>
- <span>ELASTICSEARCH REPLACEMENT</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">02 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P3 · SOLUTION ARCHITECTURE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>03 · SOLUTION ARCHITECTURE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>SOLUTION ARCHITECTURE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">CONTROL PLANE.<br><span class="accent">DATA PLANE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- XERJ separates control-plane (cluster state, schema, RBAC,
- audit) from data-plane (ingest, storage, query). The data
- plane scales horizontally; the control plane stays small and
- highly available. Both are observable through a single
- Prometheus endpoint.
- </p>
-
- <div class="sp-4"></div>
-
- <div class="arch-pre"><span class="mute">┌──────────────────────── CLIENTS · APPLICATIONS · AGENTS ───────────────────────┐</span>
- Elasticsearch SDKs · LangChain / LlamaIndex · dashboards · custom
-<span class="mute">└────────────────────────────────┬───────────────────────────────────────────────┘</span>
- │ HTTPS · TLS 1.3 · mutual auth <span class="mute">(roadmap)</span>
-<span class="mute">┌────────────────────────────────▼── CONTROL PLANE ──────────────────────────────┐</span>
- Auth · RBAC · audit log · schema registry · cluster coordination · health
-<span class="mute">└────────────────────────────────┬───────────────────────────────────────────────┘</span>
- │
-<span class="mute">┌────────────────────────────────▼── DATA PLANE ─────────────────────────────────┐</span>
- API surface <span class="accent">:9200 ES-compat</span> · <span class="accent">:8080 native</span> · <span class="mute">:8081 gRPC (roadmap)</span>
- Query engine planner · executor · hybrid merge · explain-plan
- Search tier <span class="ink">BM25 (xerj-fts)</span> │ <span class="ink">HNSW (xerj-vector)</span>
- Storage tier segments (mmap-cached) · WAL (LZ4) · snapshot/restore
- Ingest tier ES Bulk · JSON / NDJSON · OTLP <span class="mute">(beta)</span> · syslog <span class="mute">(roadmap)</span>
-<span class="mute">└────────────────────────────────────────────────────────────────────────────────┘</span>
-
-<span class="accent">CROSS-CUTTING CONCERNS</span>
- Security TLS · RBAC <span class="mute">(roadmap)</span> · BYOK <span class="mute">(roadmap)</span> · tenant isolation
- Observability Prometheus · OTLP out <span class="mute">(roadmap)</span> · structured JSON logs
- Reliability WAL + checkpoint · segment snapshots · replication <span class="mute">(cluster)</span>
- Governance per-query explain-plan · per-index retention · audit trail</div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>KEY PROPERTY</span>
- <span class="dash">·</span>
- <span>DATA PLANE AND CONTROL PLANE SCALE INDEPENDENTLY · NO SHARED HOT PATH</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">03 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P4 · DEPLOYMENT TOPOLOGIES -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>04 · DEPLOYMENT TOPOLOGIES</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>DEPLOYMENT TOPOLOGIES</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FOUR PATTERNS.<br><span class="accent">FOUR ENVIRONMENTS.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Choose the topology that fits the workload's SLO, retention
- horizon, and regulatory scope. All four patterns use the same
- binary and the same configuration surface — the difference is
- how many nodes and where they live.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="topo-grid">
- <div class="cell">
- <span class="k">SINGLE-NODE</span>
- <span class="t">POC ·<br><span class="accent">DEV</span></span>
- <span class="b">One binary, one host. Full feature set. Ideal for pilots, CI pipelines, edge sites, and air-gapped labs.</span>
- <span class="facts">1 node<br>RTO: N/A (single point)<br>RPO: WAL fsync<br>Capacity: up to ~250 M docs</span>
- </div>
- <div class="cell">
- <span class="k">HA CLUSTER</span>
- <span class="t">STANDARD ·<br><span class="accent">PROD</span></span>
- <span class="b">Three nodes, one region, synchronous replication. Typical enterprise production footprint.</span>
- <span class="facts">3 nodes · 1 region<br>RTO: &lt; 30 s<br>RPO: 0 (sync)<br>Capacity: 1–5 B docs</span>
- </div>
- <div class="cell">
- <span class="k">MULTI-REGION <span class="pill road">ROAD&nbsp;Q3</span></span>
- <span class="t">GLOBAL ·<br><span class="accent">RESILIENT</span></span>
- <span class="b">Active-active across regions. Async cross-region replication. Failover via control-plane DNS swap.</span>
- <span class="facts">3 + 3 nodes · 2 regions<br>RTO: &lt; 2 min<br>RPO: async (sub-sec)<br>Capacity: &gt; 10 B docs</span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <div class="topo-grid">
- <div class="cell">
- <span class="k">AIR-GAPPED</span>
- <span class="t">ON-PREM ·<br><span class="accent">REGULATED</span></span>
- <span class="b">No internet. Offline artifact bundle · license file · offline update channel. Deployable to a sealed rack or SCIF.</span>
- <span class="facts">1–N nodes<br>No telemetry egress<br>Offline signed updates<br>Target: GOV · HEALTH · FIN</span>
- </div>
- <div class="cell">
- <span class="k">BYOC KUBERNETES</span>
- <span class="t">CLOUD ·<br><span class="accent">NATIVE</span></span>
- <span class="b">Helm chart + CRDs. StatefulSet per data-plane role. PVCs for segments; PV for WAL. Tested on EKS, GKE, AKS.</span>
- <span class="facts">Helm · Terraform <span class="pill road">ROAD Q2</span><br>StorageClass: fast-SSD<br>HPA on CPU + ingest rate<br>Pod-level audit</span>
- </div>
- <div class="cell">
- <span class="k">MANAGED SAAS <span class="pill road">ROAD&nbsp;'27</span></span>
- <span class="t">HOSTED ·<br><span class="accent">TURNKEY</span></span>
- <span class="b">Multi-tenant control plane, single-tenant data plane. Predictable pricing per GB ingested + query volume.</span>
- <span class="facts">Dedicated data plane<br>Shared control plane<br>Region-of-choice<br>BYOK supported</span>
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">04 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P5 · UNIFIED DATA PLATFORM -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>05 · UNIFIED DATA PLATFORM</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>UNIFIED DATA PLATFORM</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FOUR STORES.<br><span class="accent">ONE ENGINE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Every store type shares a single segment cache, a single WAL,
- a single permission model, and a single query language. The
- distinctions below are logical — not separate deployments, not
- separate bills, not separate on-call rotations.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="matrix">
- <div class="h">STORE TYPE</div>
- <div class="h">CAPABILITIES</div>
- <div class="h">STATUS</div>
-
- <div class="k">FULL-TEXT</div>
- <div>BM25 scoring · 38 ES query types · 5+ analyzers · per-field overrides · position-aware postings for phrase queries</div>
- <div class="status ga">GA</div>
-
- <div class="k">VECTOR</div>
- <div>HNSW k-NN · cosine / L2 / inner-product · SQ8 (4×) &amp; nibble (8×) quantization · optional float32 re-rank · 4,096 dims</div>
- <div class="status ga">GA</div>
-
- <div class="k">COLUMNAR LOGS</div>
- <div>Columnar doc-values · delta-of-delta timestamps · dictionary + ZSTD keywords · time-partitioned memtables · terms / date-histogram aggs</div>
- <div class="status ga">GA</div>
-
- <div class="k">AGENT MEMORY</div>
- <div>Session-scoped indices · time-decay scoring · token-budget-aware retrieval · native hybrid with vector + keyword signals</div>
- <div class="status beta">BETA</div>
-
- <div class="k">METRICS</div>
- <div>Prometheus remote_write ingest · downsampling · retention tiers · range queries over columnar store</div>
- <div class="status road">ROAD Q3</div>
-
- <div class="k">TRACES</div>
- <div>OTLP ingest · span joins · service-graph materialization · trace-to-log pivot via shared schema</div>
- <div class="status road">ROAD Q4</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>WHY UNIFIED</h4>
- <div class="sp-2"></div>
- <div class="kv-row">
- <div class="k">DATA GRAVITY</div>
- <div class="v">Logs, embeddings, and metrics describe the same events. Keeping them in one place means queries join at the storage layer, not through a Python orchestrator.</div>
- </div>
- <div class="kv-row">
- <div class="k">OPERATIONAL SURFACE</div>
- <div class="v">One binary to deploy. One config to tune. One audit trail. One backup story. One on-call rotation.</div>
- </div>
- <div class="kv-row">
- <div class="k">COST</div>
- <div class="v">Four vendors collapse to one. Storage is shared across store types — a log index and a vector index live in the same segment file when schemas allow.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">05 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P6 · DATA INGESTION -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>06 · DATA INGESTION &amp; PROCESSING</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>06</span><span class="dash">·</span><span>DATA INGESTION</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">MANY SOURCES.<br><span class="accent">ONE PIPELINE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Every ingest path terminates at the same WAL and the same
- memtable. Durability is guaranteed at <span class="mono">fsync</span>
- return; visibility follows on flush. Back-pressure propagates
- to the producer so clients never silently drop.
- </p>
-
- <div class="sp-6"></div>
-
- <h4>SUPPORTED PROTOCOLS &amp; FORMATS</h4>
- <div class="sp-2"></div>
-
- <div class="matrix">
- <div class="h">PROTOCOL / FORMAT</div>
- <div class="h">USE CASE</div>
- <div class="h">STATUS</div>
-
- <div class="k">ES _BULK API</div>
- <div>Drop-in for existing Beats, Logstash, Filebeat pipelines. Newline-delimited action + doc pairs.</div>
- <div class="status ga">GA</div>
-
- <div class="k">JSON / NDJSON</div>
- <div>Direct HTTP ingest for app logs, custom producers, agent traces. One object per line.</div>
- <div class="status ga">GA</div>
-
- <div class="k">OTLP / HTTP</div>
- <div>OpenTelemetry logs + traces. Standard collectors (Otel Collector, Vector) without a translator.</div>
- <div class="status beta">BETA</div>
-
- <div class="k">SYSLOG (RFC 5424)</div>
- <div>Legacy infrastructure ingest. UDP + TCP listeners, per-source parsing rules.</div>
- <div class="status road">ROAD Q2</div>
-
- <div class="k">PROMETHEUS REMOTE_WRITE</div>
- <div>Metrics ingest compatible with existing scrapers. Maps series to columnar store.</div>
- <div class="status road">ROAD Q3</div>
-
- <div class="k">KAFKA SOURCE</div>
- <div>Pull-based ingest from Kafka topics. Exactly-once via consumer-group offset commits.</div>
- <div class="status road">ROAD Q3</div>
-
- <div class="k">S3 / GCS / BLOB</div>
- <div>Batch import from object storage. Daily log archives, parquet snapshots, embedding dumps.</div>
- <div class="status road">ROAD Q4</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>RELIABILITY GUARANTEES</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">DURABILITY</div>
- <div class="v">Every accepted document is persisted to WAL with <span class="mono">fsync</span> + CRC32C before ACK. Crash recovery replays from the last checkpoint, idempotent per <span class="mono">seq_no</span>.</div>
- </div>
- <div class="kv-row">
- <div class="k">BACK-PRESSURE</div>
- <div class="v">Ingest returns 429 / <span class="mono">Retry-After</span> when the WAL queue exceeds the watermark. Producers slow down; no silent drops.</div>
- </div>
- <div class="kv-row">
- <div class="k">SCHEMA HANDLING</div>
- <div class="v">Segment-scoped schema. Field additions take effect on the next memtable flush — no global reindex, no service restart.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">06 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P7 · SEARCH & RETRIEVAL -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>07 · SEARCH &amp; RETRIEVAL</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>07</span><span class="dash">·</span><span>SEARCH &amp; RETRIEVAL</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">KEYWORD.<br>VECTOR.<br><span class="accent">ONE QUERY.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Hybrid retrieval is the default, not a feature. A single query
- can express a keyword filter, a semantic clause, an aggregation,
- and a time-window constraint — the planner composes and
- executes them in one pass.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="matrix">
- <div class="h">CAPABILITY</div>
- <div class="h">DETAIL</div>
- <div class="h">STATUS</div>
-
- <div class="k">FULL-TEXT</div>
- <div>BM25 · k1 / b tunable · 38 ES query types (term · match · bool · phrase · fuzzy · wildcard · prefix · multi_match · …)</div>
- <div class="status ga">GA</div>
-
- <div class="k">VECTOR SEARCH</div>
- <div>HNSW k-NN · per-index quantization choice · runtime-tunable <span class="mono">ef_search</span> trading recall for latency</div>
- <div class="status ga">GA</div>
-
- <div class="k">HYBRID MERGE</div>
- <div>Reciprocal Rank Fusion (RRF) — ranks from keyword + vector combined without magnitude calibration. In-process, single pass.</div>
- <div class="status ga">GA</div>
-
- <div class="k">UNIFIED PLANNER</div>
- <div>Shared cost model across FTS, vector, and aggregations. Joint top-K cut-off across signals.</div>
- <div class="status road">ROAD Q3</div>
-
- <div class="k">AGGREGATIONS</div>
- <div>terms · date_histogram · histogram · percentiles · composite · stats · avg / sum / min / max. ES-compatible shapes.</div>
- <div class="status ga">GA</div>
-
- <div class="k">EXPLAIN PLAN</div>
- <div>Every query plan is queryable via <span class="mono">POST /v1/indices/{i}/explain-plan</span>. Per-node cost + row counts. First-class endpoint.</div>
- <div class="status ga">GA</div>
-
- <div class="k">SCROLL / PIT</div>
- <div>Point-in-time snapshots + scroll cursors for large result sets. ES-compat semantics.</div>
- <div class="status ga">GA</div>
-
- <div class="k">SQL OVER HTTP</div>
- <div>ANSI-SQL frontend over the same storage. BI tools connect via standard JDBC / ODBC.</div>
- <div class="status road">ROAD Q4</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>GOVERNANCE &amp; COST CONTROL</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">PER-QUERY COST</div>
- <div class="v">The explain-plan returns CPU, I/O, and row-scan estimates before execution — and realized counts after. Quotas and circuit-breakers enforced at the API.</div>
- </div>
- <div class="kv-row">
- <div class="k">CIRCUIT-BREAKERS</div>
- <div class="v">Per-request heap · per-request time · per-tenant concurrency · per-index doc-scan ceiling. Triggers return a structured error with the budget that was exceeded.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">07 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P8 · INTEGRATION ECOSYSTEM -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>08 · INTEGRATION ECOSYSTEM</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>08</span><span class="dash">·</span><span>INTEGRATION ECOSYSTEM</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">YOUR STACK.<br><span class="accent">UNCHANGED.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- XERJ's integration strategy is to implement standard
- protocols rather than ship bespoke adapters. Anything that
- speaks Elasticsearch 8.13 or OpenTelemetry works out of the
- box.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="int-grid">
- <div class="group">
- <h4>CLIENT LIBRARIES</h4>
- <div class="list">
- elasticsearch-py · elasticsearch-js · elasticsearch-java <span class="mute">· via ES wire</span><br>
- Go, .NET, Rust — any OSS client targeting ES 8.x
- </div>
- </div>
- <div class="group">
- <h4>INGEST COLLECTORS</h4>
- <div class="list">
- Beats · Filebeat · Logstash · Vector <span class="mute">· ES output</span><br>
- OpenTelemetry Collector <span class="mute">· OTLP (beta)</span>
- </div>
- </div>
- <div class="group">
- <h4>DASHBOARDS &amp; BI</h4>
- <div class="list">
- Kibana <span class="mute">· ES backend, community-validated</span><br>
- Grafana <span class="mute">· ES datasource · Prometheus scrape</span><br>
- Tableau · Power BI <span class="mute">· SQL frontend (roadmap Q4)</span>
- </div>
- </div>
- <div class="group">
- <h4>AI &amp; RAG FRAMEWORKS</h4>
- <div class="list">
- LangChain · LlamaIndex <span class="mute">· ES retriever</span><br>
- Haystack · DSPy <span class="mute">· ES backend</span><br>
- Custom embedders via pluggable provider interface
- </div>
- </div>
- <div class="group">
- <h4>IDENTITY &amp; ACCESS</h4>
- <div class="list">
- OIDC / SAML 2.0 <span class="mute">· roadmap Q2</span><br>
- SCIM provisioning <span class="mute">· roadmap Q3</span><br>
- AWS IAM / Azure AD / Okta <span class="mute">· roadmap Q2</span>
- </div>
- </div>
- <div class="group">
- <h4>OBSERVABILITY</h4>
- <div class="list">
- Prometheus <span class="mute">· /metrics first-class</span><br>
- OTLP export <span class="mute">· roadmap Q3</span><br>
- Structured JSON logs <span class="mute">· stdout by default</span>
- </div>
- </div>
- <div class="group">
- <h4>DEPLOYMENT &amp; AUTOMATION</h4>
- <div class="list">
- Helm chart · Kubernetes Operator <span class="mute">· roadmap Q2</span><br>
- Terraform module <span class="mute">· roadmap Q2</span><br>
- Ansible playbooks <span class="mute">· community</span>
- </div>
- </div>
- <div class="group">
- <h4>BACKUP &amp; DR</h4>
- <div class="list">
- S3 / GCS / Azure Blob <span class="mute">· snapshot target</span><br>
- Restic / Kopia <span class="mute">· community, file-level</span><br>
- Cross-region replication <span class="mute">· roadmap Q3</span>
- </div>
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">08 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P9 · SECURITY · COMPLIANCE · GOVERNANCE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>09 · SECURITY · COMPLIANCE · GOVERNANCE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>09</span><span class="dash">·</span><span>SECURITY &amp; COMPLIANCE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ZERO-TRUST READY.<br><span class="accent">AUDIT-GRADE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The security model assumes a hostile network. Mutual TLS
- between services, per-request authorization, and a structured
- audit log of every privileged operation. Compliance
- certifications are on the roadmap; the engineering controls
- that those certifications require are either shipped or in
- flight.
- </p>
-
- <div class="sp-6"></div>
-
- <h4>CONTROLS</h4>
- <div class="sp-2"></div>
-
- <div class="matrix">
- <div class="h">CONTROL</div>
- <div class="h">IMPLEMENTATION</div>
- <div class="h">STATUS</div>
-
- <div class="k">TLS IN TRANSIT</div>
- <div>TLS 1.3 on all listeners. Cipher suites restricted to modern AEAD. Certificate rotation without restart.</div>
- <div class="status ga">GA</div>
-
- <div class="k">ENCRYPTION AT REST</div>
- <div>AES-256-GCM on segment and WAL files. Keys in an external KMS (AWS KMS, GCP KMS, HashiCorp Vault).</div>
- <div class="status beta">BETA</div>
-
- <div class="k">BYOK</div>
- <div>Customer-managed keys via KMS. No XERJ-side plaintext access. Rotation documented.</div>
- <div class="status road">ROAD Q2</div>
-
- <div class="k">RBAC</div>
- <div>Role-based access at cluster, index, and field level. Built-in roles + custom roles. Integrated with OIDC groups.</div>
- <div class="status road">ROAD Q2</div>
-
- <div class="k">AUDIT TRAIL</div>
- <div>Structured log of every privileged operation: query, schema change, role assignment, snapshot. Replayable, exportable.</div>
- <div class="status beta">BETA</div>
-
- <div class="k">MULTI-TENANCY</div>
- <div>Tenant-isolated indices, metrics, and quota. Per-tenant RBAC. Physical isolation via separate clusters.</div>
- <div class="status ga">GA</div>
-
- <div class="k">AIR-GAPPED UPDATES</div>
- <div>Offline bundle + signed release manifest. Verified on install. No telemetry egress when <span class="mono">XERJ_AIRGAP=1</span>.</div>
- <div class="status ga">GA</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>CERTIFICATIONS &amp; ATTESTATIONS</h4>
- <div class="sp-2"></div>
-
- <div class="matrix">
- <div class="h">STANDARD</div>
- <div class="h">SCOPE</div>
- <div class="h">STATUS</div>
-
- <div class="k">SOC 2 TYPE I</div>
- <div>Platform controls · access management · change management · incident response</div>
- <div class="status road">ROAD Q3 2026</div>
-
- <div class="k">SOC 2 TYPE II</div>
- <div>12-month operating effectiveness. Follows Type I.</div>
- <div class="status road">ROAD Q2 2027</div>
-
- <div class="k">ISO 27001</div>
- <div>ISMS scope covers XERJ platform engineering + SaaS operations</div>
- <div class="status road">ROAD Q4 2026</div>
-
- <div class="k">HIPAA / HITECH</div>
- <div>BAA available on Enterprise tier. Self-hosted deployments inherit customer controls.</div>
- <div class="status road">ROAD 2027</div>
-
- <div class="k">GDPR / DATA RESIDENCY</div>
- <div>Self-hosted = customer chooses region. SaaS: region-pinned data plane.</div>
- <div class="status ga">GA (self-hosted)</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">09 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P10 · SCALABILITY &amp; PERFORMANCE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>10 · SCALABILITY &amp; PERFORMANCE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>10</span><span class="dash">·</span><span>SCALABILITY &amp; PERFORMANCE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">MEASURED.<br>REPRODUCIBLE.<br><span class="accent">SCALE-OUT.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Every number below comes from a dated, checked-in battle
- report under <span class="mono">engine/releases/v0.1.0/reports/</span>
- with a reproduction script. Scale rows above 1 node are
- projections pending the <span class="pill road">Q3</span>
- sharded-ingest GA.
- </p>
-
- <div class="sp-6"></div>
-
- <h4>PERFORMANCE PROFILE · PER NODE</h4>
- <div class="sp-2"></div>
-
- <div class="perf">
- <div class="h">METRIC</div>
- <div class="h n">VALUE</div>
- <div class="h n">AT SCALE</div>
- <div class="h n">VS ES 8.13</div>
- <div class="h n">SOURCE</div>
-
- <div>Cold start</div>
- <div class="n">50 ms</div>
- <div class="n">same</div>
- <div class="n accent">300×</div>
- <div class="n">SIEM_BATTLE</div>
-
- <div>Idle RSS</div>
- <div class="n">400 MB</div>
- <div class="n">+~200 MB / idx</div>
- <div class="n accent">21×</div>
- <div class="n">SIEM_BATTLE</div>
-
- <div>Binary size</div>
- <div class="n">13 MB</div>
- <div class="n">static</div>
- <div class="n accent">56×</div>
- <div class="n">release</div>
-
- <div>SIEM top-source-IPs</div>
- <div class="n">0.4 ms p95</div>
- <div class="n">1 M events</div>
- <div class="n accent">74×</div>
- <div class="n">SIEM_BATTLE</div>
-
- <div>NGINX terms agg</div>
- <div class="n">0.4 ms p95</div>
- <div class="n">5 distinct</div>
- <div class="n accent">89×</div>
- <div class="n">CLUSTER_BATTLE</div>
-
- <div>Hybrid query p95</div>
- <div class="n">38 ms</div>
- <div class="n">1 B vectors</div>
- <div class="n accent">n/a</div>
- <div class="n">hybrid_bench</div>
-
- <div>Disk · 1 M SIEM events</div>
- <div class="n">85 MB</div>
- <div class="n">post-ingest</div>
- <div class="n accent">2.8×</div>
- <div class="n">SIEM_BATTLE</div>
-
- <div>Vector memory · 10 M × 1536</div>
- <div class="n">18 GB</div>
- <div class="n">SQ8</div>
- <div class="n accent">5.1×</div>
- <div class="n">RAG_BENCH</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>CAPACITY-PLANNING HEURISTIC</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">SIEM WORKLOAD</div>
- <div class="v">~50 M events / node / day sustained · hot retention 30 d · 1 node covers ~1.5 B events / 85 GB disk.</div>
- </div>
- <div class="kv-row">
- <div class="k">RAG WORKLOAD</div>
- <div class="v">~55 M × 768-dim embeddings / node at SQ8 · query p95 &lt; 40 ms · rebuild HNSW at 10 % churn.</div>
- </div>
- <div class="kv-row">
- <div class="k">OBSERVABILITY</div>
- <div class="v">~80 K events / sec sustained ingest single-client · diurnal pattern · write-stalls rare under documented sizing.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">10 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P11 · HIGH AVAILABILITY &amp; DR -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>11 · HIGH AVAILABILITY &amp; DISASTER RECOVERY</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>11</span><span class="dash">·</span><span>HA &amp; DR</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SURVIVE THE<br><span class="accent">UNEXPECTED.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- HA and DR are separate concerns. HA keeps the platform
- available when nodes or zones fail; DR restores operation
- when a region or dataset is lost. XERJ addresses them with
- different mechanisms — replication for HA, snapshots for DR.
- </p>
-
- <div class="sp-6"></div>
-
- <h4>AVAILABILITY MODEL</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">REPLICATION</div>
- <div class="v">Primary + N replicas per index · sync for the HA cluster topology · async for cross-region <span class="pill road">ROAD Q3</span>. Quorum writes.</div>
- </div>
- <div class="kv-row">
- <div class="k">FAILURE DETECTION</div>
- <div class="v">Gossip-based health · bounded-latency failover · automatic replica promotion · control-plane notification.</div>
- </div>
- <div class="kv-row">
- <div class="k">READ-PATH CONTINUITY</div>
- <div class="v">Lock-free reader view — a failover swaps the pointer · in-flight queries complete on the stale view · new queries hit the new primary.</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>DISASTER RECOVERY</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">SNAPSHOTS</div>
- <div class="v">Segment-level snapshots to S3 / GCS / Azure Blob. Incremental (only new segments). Encrypted with customer KMS keys (BYOK <span class="pill road">Q2</span>).</div>
- </div>
- <div class="kv-row">
- <div class="k">RESTORE</div>
- <div class="v">Point-in-time restore at segment granularity. Replay WAL from snapshot to exact <span class="mono">seq_no</span>. Warm standby mounts snapshots for near-zero RTO.</div>
- </div>
- <div class="kv-row">
- <div class="k">CROSS-REGION DR</div>
- <div class="v">Async replication of primary segments to a standby region. DNS-based failover. <span class="pill road">ROAD Q3 2026</span>.</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>RTO / RPO TARGETS BY TOPOLOGY</h4>
- <div class="sp-2"></div>
-
- <div class="perf" style="grid-template-columns: 1.6in repeat(3, 1fr);">
- <div class="h">TOPOLOGY</div>
- <div class="h n">RTO</div>
- <div class="h n">RPO</div>
- <div class="h n">AVAILABILITY</div>
-
- <div>Single-node</div>
- <div class="n">minutes</div>
- <div class="n">fsync</div>
- <div class="n">best effort</div>
-
- <div>HA cluster · 3-node</div>
- <div class="n">&lt; 30 s</div>
- <div class="n">0 (sync)</div>
- <div class="n">99.95 %</div>
-
- <div>Multi-region active-active</div>
- <div class="n">&lt; 2 min</div>
- <div class="n">sub-second</div>
- <div class="n">99.99 %</div>
-
- <div>Air-gapped · 3-node</div>
- <div class="n">&lt; 30 s</div>
- <div class="n">0 (sync)</div>
- <div class="n">99.95 %</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">11 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P12 · REFERENCE ARCHITECTURES -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>12 · REFERENCE ARCHITECTURES</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>12</span><span class="dash">·</span><span>REFERENCE ARCHITECTURES</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FOUR BLUEPRINTS.<br><span class="accent">ONE PLATFORM.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Each blueprint is a validated topology with named upstreams,
- named consumers, retention policy, and sizing guidance. Every
- blueprint uses the same XERJ binary — what changes is the
- ingest surface, retention, and connected tools.
- </p>
-
- <div class="sp-4"></div>
-
- <div class="arch-pre"><span class="accent">01 · SIEM MODERNIZATION</span> <span class="mute">CISO · SOC</span>
- Firewall · endpoint · auth logs ──▶ Vector/Filebeat ──▶ XERJ (ES _bulk)
- ────▶ Kibana dashboards · alerting via explain-plan triggers
- retention 30 d hot · 90 d warm · 1 y cold
- sizing: 3-node · ~50 M events/node/day · disk ~2.5 TB/node
-
-<span class="accent">02 · RAG AT ENTERPRISE SCALE</span> <span class="mute">CDO · CAIO</span>
- Documents ──▶ embedder (Voyage · OpenAI) ──▶ XERJ hybrid index
- ────▶ LangChain / LlamaIndex retriever ──▶ application
- quantization SQ8 default · float32 re-rank for top-K
- sizing: ~55 M × 768-dim embeddings/node · hybrid p95 &lt; 40 ms
-
-<span class="accent">03 · UNIFIED OBSERVABILITY</span> <span class="mute">SRE · PLATFORM</span>
- App + infra ──▶ Otel Collector ──▶ XERJ (OTLP beta)
- ────▶ Grafana via Prometheus remote_read · alerting
- retention: metrics 30 d raw · logs 14 d hot · traces 7 d
- sizing: 3-node · ~80 K events/sec sustained · 6 → 1 stack
-
-<span class="accent">04 · AGENT MEMORY PLATFORM</span> <span class="mute">AI PLATFORM</span>
- Agent runtime ──▶ XERJ session indices (time-decay scoring)
- ────▶ native hybrid retrieval · token-budget-aware
- retention: 90 d · tenant-isolated per team
- sizing: session-scoped indices · linear with active-agent count</div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>EACH BLUEPRINT</span>
- <span class="dash">·</span>
- <span>NAMED UPSTREAMS · DOCUMENTED RETENTION · SIZING TABLE</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">12 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P13 · COMPARISON WITH LEGACY STACKS -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>13 · COMPARISON · LEGACY STACKS</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>13</span><span class="dash">·</span><span>COMPARISON</span></div>
- <div class="sp-3"></div>
- <h2 class="scene" style="font-size:34pt;">WHERE THE<br><span class="accent">CONSOLIDATION</span> COMES FROM.</h2>
-
- <div class="sp-3"></div>
- <p class="body">
- Three stacks an architect typically inherits. The XERJ column
- lists what one deployment of XERJ replaces — not what it
- adds on top.
- </p>
-
- <div class="sp-4"></div>
-
- <h4>XERJ vs ES + PINECONE + REDIS (RAG STACK)</h4>
- <div class="sp-2"></div>
- <div class="versus">
- <div class="h">AXIS</div>
- <div class="h a">XERJ</div>
- <div class="h">LEGACY RAG STACK</div>
-
- <div class="dim">Systems</div>
- <div>1 binary</div>
- <div>3 systems + orchestrator</div>
-
- <div class="dim">Hybrid retrieval</div>
- <div>Native RRF, one query</div>
- <div>Python orchestrator merges two HTTP calls</div>
-
- <div class="dim">Vector memory · 10 M × 1.5 K dim</div>
- <div><span class="accent">18 GB</span> (SQ8)</div>
- <div>92 GB (float32)</div>
-
- <div class="dim">Vendor contracts</div>
- <div>One</div>
- <div>Three + framework</div>
- </div>
-
- <div class="sp-4"></div>
-
- <h4>XERJ vs ELASTIC STACK (ES + KIBANA + LOGSTASH)</h4>
- <div class="sp-2"></div>
- <div class="versus">
- <div class="h">AXIS</div>
- <div class="h a">XERJ</div>
- <div class="h">ELASTIC STACK 8.13</div>
-
- <div class="dim">Ingest binaries</div>
- <div>1 (built-in _bulk)</div>
- <div>2 (ES + Logstash)</div>
-
- <div class="dim">Idle cluster memory</div>
- <div><span class="accent">400 MB</span> · 1 node</div>
- <div>8.5 GB · 4-node</div>
-
- <div class="dim">Cold start</div>
- <div><span class="accent">50 ms</span></div>
- <div>~15 s JVM warm-up</div>
-
- <div class="dim">Client compatibility</div>
- <div>ES 8.13 wire-protocol</div>
- <div>ES 8.13 native</div>
- </div>
-
- <div class="sp-4"></div>
-
- <h4>XERJ vs SPLUNK + PROM + TEMPO (OBSERVABILITY)</h4>
- <div class="sp-2"></div>
- <div class="versus">
- <div class="h">AXIS</div>
- <div class="h a">XERJ</div>
- <div class="h">SPLUNK + PROM + TEMPO</div>
-
- <div class="dim">Binaries</div>
- <div>1</div>
- <div>6</div>
-
- <div class="dim">Query languages</div>
- <div>1 (ES DSL + SQL roadmap)</div>
- <div>3 (SPL + PromQL + TraceQL)</div>
-
- <div class="dim">Monthly bill lines</div>
- <div>1</div>
- <div>5</div>
-
- <div class="dim">Retention policies</div>
- <div>1 unified</div>
- <div>3 separate</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">13 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P14 · OPERATIONS · SIZING · OBSERVABILITY -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>14 · OPERATIONS &amp; SIZING</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>14</span><span class="dash">·</span><span>OPERATIONS</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">DAY TWO.<br><span class="accent">BOARD-READABLE.</span></h2>
-
- <div class="sp-4"></div>
-
- <h4>NODE REQUIREMENTS</h4>
- <div class="sp-2"></div>
-
- <div class="perf" style="grid-template-columns: 1.3in repeat(3, 1fr) 1fr;">
- <div class="h">PROFILE</div>
- <div class="h n">CPU</div>
- <div class="h n">MEMORY</div>
- <div class="h n">DISK</div>
- <div class="h n">NETWORK</div>
-
- <div>Small · pilot</div>
- <div class="n">4 vCPU</div>
- <div class="n">16 GB</div>
- <div class="n">500 GB NVMe</div>
- <div class="n">1 Gbps</div>
-
- <div>Medium · prod</div>
- <div class="n">8 vCPU</div>
- <div class="n">64 GB</div>
- <div class="n">2 TB NVMe</div>
- <div class="n">10 Gbps</div>
-
- <div>Large · scale-out</div>
- <div class="n">16 vCPU</div>
- <div class="n">128 GB</div>
- <div class="n">8 TB NVMe</div>
- <div class="n">25 Gbps</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>OBSERVABILITY OUT OF THE BOX</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">METRICS</div>
- <div class="v">Prometheus on <span class="mono">/metrics</span>. 13 counters / histograms / gauges across ingest, query, flush, cache. Per-instance registry — no global-singleton label collisions.</div>
- </div>
- <div class="kv-row">
- <div class="k">HEALTH / READINESS</div>
- <div class="v"><span class="mono">GET /healthz</span> for liveness. <span class="mono">GET /readyz</span> holds until WAL replay completes — rolling restart fleet-safe by default.</div>
- </div>
- <div class="kv-row">
- <div class="k">LOGS</div>
- <div class="v">Structured JSON to stdout. One event per line. Correlation ID on every request. Tail with <span class="mono">jq</span>, ship with any log-forwarding agent.</div>
- </div>
- <div class="kv-row">
- <div class="k">UPGRADES</div>
- <div class="v">Rolling restart supported. Segment and WAL formats are forward-compatible across minor versions. One-minor-version window for rollback.</div>
- </div>
- <div class="kv-row">
- <div class="k">CONFIG</div>
- <div class="v">Single TOML file · <span class="mono">XERJ_CONFIG</span> env · hot-reload via SIGHUP on non-structural changes. Config schema validated on load.</div>
- </div>
- <div class="kv-row">
- <div class="k">BACKUP · RESTORE</div>
- <div class="v">Snapshots to object storage. Incremental, encrypted, restorable at segment granularity. <span class="mono">xerj snapshot create|list|restore</span>.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">14 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P15 · LICENSING · SUPPORT · ROADMAP -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>15 · LICENSING · SUPPORT · ROADMAP</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>15</span><span class="dash">·</span><span>LICENSING &amp; SUPPORT</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">THREE TIERS.<br><span class="accent">ONE ENGINE.</span></h2>
-
- <div class="sp-4"></div>
-
- <div class="tiers">
- <div class="tier">
- <span class="k">TIER 01</span>
- <span class="t">COMMUNITY</span>
- <ul>
- <li>Full feature set · single-node</li>
- <li>Community support · GitHub · forum</li>
- <li>No SLA</li>
- <li>Ideal for POCs, dev, OSS projects</li>
- </ul>
- </div>
- <div class="tier">
- <span class="k">TIER 02</span>
- <span class="t">PROFESSIONAL</span>
- <ul>
- <li>HA cluster · 3 nodes</li>
- <li>Business-hours support · 24 h response</li>
- <li>99.95 % availability SLA</li>
- <li>Quarterly health review</li>
- <li>Certified releases only</li>
- </ul>
- </div>
- <div class="tier ent">
- <span class="k">TIER 03</span>
- <span class="t">ENTERPRISE</span>
- <ul>
- <li>Multi-region · air-gapped · BYOK</li>
- <li>24×7 support · 1 h response</li>
- <li>99.99 % availability SLA</li>
- <li>Dedicated CSM + solutions architect</li>
- <li>Private roadmap input · early-access builds</li>
- <li>HIPAA BAA · custom compliance</li>
- </ul>
- </div>
- </div>
-
- <div class="sp-8"></div>
-
- <h4>ROADMAP · 12 MONTHS</h4>
- <div class="sp-2"></div>
-
- <div class="road-rail">
- <div class="q">Q2</div>
- <div class="t">2026<br><span class="accent">FOUNDATION</span></div>
- <div>OIDC + SAML · RBAC · Helm chart · Terraform module · syslog ingest · BYOK encryption-at-rest</div>
-
- <div class="q">Q3</div>
- <div class="t">2026<br><span class="accent">SCALE</span></div>
- <div>Sharded ingest · cross-region async replication · Prometheus remote_write ingest · Kafka source · SOC 2 Type I</div>
-
- <div class="q">Q4</div>
- <div class="t">2026<br><span class="accent">SURFACE</span></div>
- <div>SQL over HTTP · S3/GCS batch import · OTLP trace support · ISO 27001 · ML-ranking hooks</div>
-
- <div class="q">'27</div>
- <div class="t">2027<br><span class="accent">MANAGED</span></div>
- <div>Hosted SaaS offering · region-pinned · BYOK standard · HIPAA BAA · FedRAMP Moderate pursuit</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">15 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P16 · GET STARTED · CONTACT -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>16 · GET STARTED</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-10"></div>
- <div class="kicker"><span>16</span><span class="dash">·</span><span>GET STARTED</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">PROVE IT<br><span class="accent">ON YOUR DATA.</span></h2>
-
- <div class="sp-6"></div>
-
- <p class="body">
- The fastest path is a two-week pilot on a real workload. We
- send the binary and the reproduction scripts for every number
- in this brief. You send one SIEM / RAG / observability
- workload. We meet again in two weeks with your numbers, not
- ours.
- </p>
-
- <div class="sp-8"></div>
-
- <div style="padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);">
- <div class="kicker"><span>CONTACT</span></div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-display); font-weight: 900; font-size: 42pt; line-height:1; letter-spacing: 0.01em;">
- HELLO<span class="accent">@</span>XERJ.AI
- </div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-data); font-size: 9pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--mute);">
- XERJ.AI · XERJ.COM · XERJ.DEV
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>PILOT PROCESS</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">WEEK 0</div>
- <div class="v">Scoping call · pick workload · sign mutual NDA if needed (not required to receive binary).</div>
- </div>
- <div class="kv-row">
- <div class="k">WEEK 1</div>
- <div class="v">Deploy binary in your environment · reproduce our battle reports on sample data · smoke-test ES client compatibility.</div>
- </div>
- <div class="kv-row">
- <div class="k">WEEK 2</div>
- <div class="v">Shadow-deploy against your workload · compare latency, cost, memory. Results meeting: your numbers, your hardware, your decision.</div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>XERJ.AI</span>
- <span class="dash">·</span>
- <span>TECHNICAL PRODUCT BRIEF · V1</span>
- <span class="dash">·</span>
- <span>ENGINE V0.1 · 2026-04</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">16 / 16</span>
- </div>
-</section>
-
-</body>
-</html>
diff --git a/brief/arch-brief.html b/brief/arch-brief.html
deleted file mode 100644
index 55e23d046..000000000
--- a/brief/arch-brief.html
+++ /dev/null
@@ -1,1379 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ — Architecture Brief — V1 — 2026-04</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<style>
- :root {
- --bg: #0b0b0d;
- --ink: #f4f2ec;
- --mute: #8a8680;
- --faint: #2b2a28;
- --line: #3a3836;
- --accent: #ffc400;
-
- --z-bg: var(--bg); --z-ink: var(--ink); --z-mute: var(--mute);
- --z-line: var(--line); --z-accent: var(--accent); --z-faint: var(--faint);
-
- --font-display: 'Big Shoulders Display', 'Inter', system-ui, sans-serif;
- --font-prose: 'Inter', system-ui, sans-serif;
- --font-data: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
- --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
-
- --track-ui: 0.14em;
- --track-label: 0.08em;
- }
-
- @page { size: Letter; margin: 0; }
- * { box-sizing: border-box; margin: 0; padding: 0; }
-
- html, body {
- background: var(--bg);
- color: var(--ink);
- font-family: var(--font-prose);
- font-size: 10.5pt;
- line-height: 1.45;
- -webkit-font-smoothing: antialiased;
- text-rendering: optimizeLegibility;
- }
-
- .page {
- width: 8.5in;
- height: 11in;
- padding: 0.55in 0.6in;
- position: relative;
- page-break-after: always;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- }
- .page:last-child { page-break-after: auto; }
-
- .kicker {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- display: flex;
- gap: 0.5em;
- align-items: center;
- flex-wrap: wrap;
- }
- .kicker .dash { color: var(--faint); }
- .kicker .accent { color: var(--accent); }
-
- .accent { color: var(--accent); }
- .mute { color: var(--mute); }
- .mono { font-family: var(--font-mono); }
-
- h1, h2, h3, h4 {
- font-family: var(--font-display);
- font-weight: 900;
- text-transform: uppercase;
- letter-spacing: 0.02em;
- line-height: 0.92;
- }
-
- .hero { font-size: 64pt; line-height: 0.92; }
- .scene { font-size: 38pt; }
- h3 { font-size: 18pt; }
- h4 { font-size: 11pt; letter-spacing: var(--track-ui); color: var(--accent); }
-
- p.lead { font-size: 12pt; line-height: 1.5; max-width: 6.5in; }
- p.body { font-size: 9.5pt; line-height: 1.55; max-width: 6.5in; }
- p.body.wide { max-width: 100%; }
-
- em { font-style: italic; }
- code, .code { font-family: var(--font-mono); font-size: 9pt; color: var(--ink); }
-
- .sp-1 { height: 4px; }
- .sp-2 { height: 8px; } .sp-3 { height: 12px; } .sp-4 { height: 16px; }
- .sp-6 { height: 24px; } .sp-8 { height: 32px; } .sp-10 { height: 48px; }
-
- .flex { display: flex; } .col { flex-direction: column; }
- .grow { flex: 1 1 auto; min-height: 0; }
- .between { justify-content: space-between; }
-
- /* page frame */
- .head-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-bottom: 10px;
- border-bottom: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .head-row .brand { color: var(--ink); }
- .head-row .brand .accent { color: var(--accent); }
-
- .foot-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-top: 10px;
- border-top: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 500;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .foot-row .num { color: var(--ink); }
-
- /* key-value row */
- .kv-row {
- display: grid;
- grid-template-columns: 1.3in 1fr;
- gap: 0.25in;
- padding: 7px 0;
- border-bottom: 1px solid var(--line);
- align-items: baseline;
- }
- .kv-row .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .kv-row .v { font-size: 9.5pt; line-height: 1.5; }
- .kv-row .v .mono { font-size: 9pt; color: var(--ink); }
-
- /* 4-up value quadrant */
- .quad-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- grid-template-rows: 1fr 1fr;
- border-top: 1px solid var(--line);
- border-left: 1px solid var(--line);
- }
- .quad-grid > .cell {
- padding: 16px;
- border-right: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 6px;
- min-height: 1.7in;
- }
- .quad-grid .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .quad-grid .t {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 18pt;
- color: var(--ink);
- line-height: 1;
- text-transform: uppercase;
- letter-spacing: 0.01em;
- }
- .quad-grid .t .accent { color: var(--accent); }
- .quad-grid .b {
- font-size: 9.5pt;
- line-height: 1.45;
- color: var(--ink);
- margin-top: auto;
- }
-
- /* 3-column cards */
- .topo-grid {
- display: grid;
- grid-template-columns: 1fr 1fr 1fr;
- gap: 16px;
- }
- .topo-grid > .cell {
- padding: 14px 16px;
- border-top: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 6px;
- }
- .topo-grid .k {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .topo-grid .t {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 16pt;
- line-height: 1;
- text-transform: uppercase;
- letter-spacing: 0.01em;
- }
- .topo-grid .t .accent { color: var(--accent); }
- .topo-grid .b { font-size: 9pt; line-height: 1.45; }
- .topo-grid .facts {
- font-family: var(--font-mono);
- font-size: 8.5pt;
- color: var(--mute);
- line-height: 1.5;
- margin-top: 6px;
- }
-
- /* feature / capability matrix */
- .matrix {
- display: grid;
- grid-template-columns: 1.6in 1fr 0.7in;
- gap: 0;
- }
- .matrix > div {
- padding: 5px 10px;
- border-bottom: 1px solid var(--line);
- font-size: 9pt;
- line-height: 1.42;
- }
- .matrix .h {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- border-bottom: 1px solid var(--ink);
- }
- .matrix .k {
- font-family: var(--font-mono);
- font-size: 9pt;
- color: var(--accent);
- }
- .matrix .status {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- text-align: right;
- }
- .matrix .status.ga { color: var(--accent); }
- .matrix .status.beta { color: var(--ink); }
- .matrix .status.road { color: var(--mute); }
-
- /* status pill */
- .pill {
- display: inline-block;
- font-family: var(--font-data);
- font-size: 7.5pt;
- font-weight: 700;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- padding: 1px 6px;
- border: 1px solid;
- margin-left: 4px;
- vertical-align: 1px;
- }
- .pill.ga { color: var(--accent); border-color: var(--accent); }
- .pill.beta { color: var(--ink); border-color: var(--ink); }
- .pill.road { color: var(--mute); border-color: var(--line); }
-
- /* perf table */
- .perf {
- display: grid;
- grid-template-columns: 1.6in repeat(4, 1fr);
- width: 100%;
- }
- .perf > div {
- padding: 7px 10px;
- border-bottom: 1px solid var(--line);
- font-size: 9pt;
- }
- .perf .h {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- border-bottom: 1px solid var(--ink);
- }
- .perf .n { font-family: var(--font-mono); text-align: right; color: var(--ink); }
-
- /* architecture SVG block — preserves square geometry */
- .arch {
- width: 100%;
- margin: 6px 0 0 0;
- color: var(--ink);
- }
- .arch svg {
- display: block;
- width: 100%;
- height: auto;
- color: var(--ink);
- }
- .arch .legend {
- margin-top: 10px;
- font-family: var(--font-data);
- font-size: 8pt;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- display: flex;
- gap: 18px;
- flex-wrap: wrap;
- }
- .arch .legend .ink { color: var(--ink); }
- .arch .legend .yel { color: var(--accent); }
- .arch .legend .swatch {
- display: inline-block;
- width: 14px; height: 1px;
- background: currentColor;
- vertical-align: 3px;
- margin-right: 6px;
- }
- .arch .legend .swatch.dashed {
- height: 0;
- border-top: 1px dashed currentColor;
- background: transparent;
- }
-
- /* cover hero */
- .cover-hero {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 72pt;
- line-height: 0.9;
- letter-spacing: 0.01em;
- }
-
- /* big stat row (used on perf page) */
- .bigstat {
- display: grid;
- grid-template-columns: 1fr 1fr 1fr 1fr;
- border-top: 1px solid var(--line);
- }
- .bigstat > .b {
- padding: 14px 12px;
- border-right: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 4px;
- }
- .bigstat > .b:last-child { border-right: 0; }
- .bigstat .k {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .bigstat .v {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 30pt;
- line-height: 1;
- color: var(--accent);
- letter-spacing: 0.01em;
- }
- .bigstat .u {
- font-family: var(--font-data);
- font-size: 8pt;
- color: var(--mute);
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- }
-
- /* principle list */
- .principle {
- display: grid;
- grid-template-columns: 0.55in 1fr;
- gap: 18px;
- padding: 10px 0;
- border-top: 1px solid var(--line);
- align-items: baseline;
- }
- .principle .num {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 22pt;
- line-height: 1;
- color: var(--accent);
- }
- .principle .head {
- font-family: var(--font-data);
- font-size: 9pt;
- font-weight: 700;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--ink);
- margin-bottom: 3px;
- }
- .principle .body {
- font-size: 9pt;
- line-height: 1.5;
- color: var(--ink);
- }
-</style>
-</head>
-<body>
-
-<!-- =========================================================== -->
-<!-- P1 · COVER -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>ARCHITECTURE BRIEF · V1 · 2026-04</span>
- </div>
-
- <div class="grow flex col between">
- <div class="sp-10"></div>
-
- <div>
- <div class="kicker" style="margin-bottom:20px;">
- <span>FOR EXECUTIVES</span>
- <span class="dash">·</span>
- <span>ARCHITECTS</span>
- <span class="dash">·</span>
- <span>AI PROGRAM LEADS</span>
- </div>
-
- <div class="cover-hero">
- THE AI-NATIVE<br>
- DATA PLANE.<br>
- <span class="accent">ONE ENGINE.</span><br>
- <span class="accent">EVERY SIGNAL.</span>
- </div>
-
- <div class="sp-8"></div>
-
- <p class="lead" style="max-width:6in;">
- An architecture brief for the data platform that turns the
- retrieval stack — full-text, vectors, columnar logs, and agent
- memory — into a single Elasticsearch-compatible engine. Built
- in Rust. Shipped as one binary. Deployed in your cloud, your
- rack, or behind your air-gap.
- </p>
- </div>
-
- <div class="flex between" style="gap:24px;">
- <div class="kicker">
- <span>RELEASE V1.0.0-RC.1</span>
- <span class="dash">·</span>
- <span>ES 8.13 WIRE-COMPATIBLE</span>
- <span class="dash">·</span>
- <span>SELF-HOSTED</span>
- <span class="dash">·</span>
- <span>AGENT-READY</span>
- </div>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">01 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P2 · AI TRANSFORMATION THESIS -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>02 · AI TRANSFORMATION THESIS</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>WHY ARCHITECTURE MATTERS NOW</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">EVERY ENTERPRISE<br>IS BECOMING<br><span class="accent">A RETRIEVAL ENGINE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The shift from ten-blue-link search to agentic, retrieval-augmented
- applications is not a UI change. It is an infrastructure change.
- Every product team is now standing up the same primitive:
- <em>find the right context, in the right form, fast enough for a
- model to use it</em>. Today they assemble that primitive from four
- vendors and a Python orchestrator. The result is a retrieval
- stack that is brittle, expensive, and impossible to certify.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="quad-grid">
- <div class="cell">
- <span class="k">FRAGMENTATION TAX</span>
- <span class="t">FOUR STORES.<br><span class="accent">ONE QUERY.</span></span>
- <span class="b">A typical agentic application reads from full-text, vector, columnar, and session-memory stores in a single turn — over four wire protocols, four vendors, and four bills.</span>
- </div>
- <div class="cell">
- <span class="k">DATA GRAVITY</span>
- <span class="t">CONTEXT IS<br><span class="accent">DATA-LOCAL.</span></span>
- <span class="b">Logs, embeddings, metrics, and sessions describe the same events. Joining them in a Python orchestrator is an architecture mistake; the join belongs in storage.</span>
- </div>
- <div class="cell">
- <span class="k">SOVEREIGNTY</span>
- <span class="t">YOUR DATA.<br><span class="accent">YOUR PERIMETER.</span></span>
- <span class="b">Enterprise data — security telemetry, customer records, regulated content — does not leave the customer's control. The retrieval engine has to be self-hostable, top to bottom.</span>
- </div>
- <div class="cell">
- <span class="k">DETERMINISM</span>
- <span class="t">SLOS THAT<br><span class="accent">HOLD.</span></span>
- <span class="b">Agent loops amplify tail latency by the number of retrieval calls per turn. A 99th-percentile spike upstream is a user-visible stall downstream. Latency must be predictable, not average-good.</span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <h4>WHAT XERJ ARGUES</h4>
- <div class="sp-2"></div>
- <p class="body">
- The right architectural answer is a unified data plane —
- one engine that natively understands every retrieval modality,
- speaks the wire protocol enterprises already use, and runs
- inside the customer's security boundary.
- </p>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">02 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P3 · SYSTEM AT A GLANCE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>03 · SYSTEM AT A GLANCE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>SYSTEM AT A GLANCE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">CONTROL PLANE.<br><span class="accent">DATA PLANE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Xerj is one binary that exposes one cluster as one engine.
- The control plane carries cluster state, schema, identity, and
- audit. The data plane carries ingest, storage, search, and
- retrieval. Both are observable through one Prometheus endpoint.
- Both speak the same wire protocols every existing client
- already speaks.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
- {{SVG:arch_overview}}
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">DATA PATH</span></span>
- <span><span class="swatch yel"></span><span class="yel">PRIMARY API · :9200</span></span>
- <span><span class="swatch dashed"></span><span>CONTROL PATH</span></span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>KEY PROPERTY</span>
- <span class="dash">·</span>
- <span>DATA PLANE AND CONTROL PLANE SCALE INDEPENDENTLY</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">03 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P4 · ARCHITECTURAL PRINCIPLES -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>04 · ARCHITECTURAL PRINCIPLES</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>ARCHITECTURAL PRINCIPLES</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SIX RULES.<br><span class="accent">ONE ENGINE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The shape of the engine is a direct consequence of six commitments.
- Every internal trade-off — sharded memtables, mmap-resident
- segments, embedded consensus, in-process embedding proxy — is the
- cheapest implementation of one of these principles.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="principle">
- <span class="num">01</span>
- <div>
- <div class="head">UNIFIED RETRIEVAL</div>
- <div class="body">Full-text, dense-vector, columnar logs, and agent memory share a single segment cache, a single write-ahead log, and a single permission model. There is no cross-store orchestrator because there is no cross-store boundary.</div>
- </div>
- </div>
- <div class="principle">
- <span class="num">02</span>
- <div>
- <div class="head">DROP-IN COMPATIBILITY</div>
- <div class="body">The primary API is the Elasticsearch 8.13 wire protocol. Existing clients, dashboards, and ingest collectors connect unchanged. Migration is a configuration change, not a rewrite.</div>
- </div>
- </div>
- <div class="principle">
- <span class="num">03</span>
- <div>
- <div class="head">DETERMINISTIC RUNTIME</div>
- <div class="body">Rust, no garbage collector, no JVM warm-up. Cold start is single-digit milliseconds. Tail latency is governed by code paths, not heap pressure. SLOs measured at p99.9 mean what they say.</div>
- </div>
- </div>
- <div class="principle">
- <span class="num">04</span>
- <div>
- <div class="head">SOVEREIGN BY DEFAULT</div>
- <div class="body">A single static binary. Air-gap installable. No mandatory cloud dependency. Identity, encryption keys, and audit data live wherever the customer's policy says they live.</div>
- </div>
- </div>
- <div class="principle">
- <span class="num">05</span>
- <div>
- <div class="head">EXPLAINABLE BY CONSTRUCTION</div>
- <div class="body">Every query produces an explain-plan with cost and row counts. Every privileged action produces an audit entry. Every release ships with reproduction scripts for every published number.</div>
- </div>
- </div>
- <div class="principle">
- <span class="num">06</span>
- <div>
- <div class="head">ONE OPERATIONAL SURFACE</div>
- <div class="body">One config file. One metrics endpoint. One audit trail. One backup story. The platform that runs SIEM also runs RAG, observability, and agent memory — same on-call rotation, same dashboards, same upgrade procedure.</div>
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">04 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P5 · SYSTEM LAYERS -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>05 · SYSTEM LAYERS</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>SYSTEM LAYERS</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FROM WIRE<br>TO <span class="accent">SEGMENT.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The engine is a stack of well-bounded layers. Wire protocols
- live at the top. The query planner sits in the middle. The
- storage substrate lives at the bottom. Each layer has one
- responsibility and one downstream contract — which is what
- makes the engine fast to read for a new architect and safe to
- modify for a contributor.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
- {{SVG:arch_layers}}
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">REQUEST PATH</span></span>
- <span><span class="swatch yel"></span><span class="yel">CRITICAL HOT PATH</span></span>
- <span><span class="swatch dashed"></span><span>DURABILITY · STATE</span></span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>EVERY LAYER</span>
- <span class="dash">·</span>
- <span>OWNS ONE CONCERN · EXPOSES ONE CONTRACT</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">05 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P6 · AI / RAG PLANE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>06 · AI &amp; RAG PLANE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>06</span><span class="dash">·</span><span>AI &amp; RAG PLANE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">CHUNK. EMBED.<br>RECALL. <span class="accent">REASON.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The AI plane turns documents and conversations into retrievable
- context. Three primitives — chunking, embedding, agent memory —
- sit in-process with the retrieval engine, so the round trip
- between the model and the right context is one network hop and
- one cache.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
- {{SVG:arch_ai_plane}}
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">DOCUMENT FLOW</span></span>
- <span><span class="swatch yel"></span><span class="yel">RETRIEVAL FLOW</span></span>
- <span><span class="swatch dashed"></span><span>EXTERNAL EMBEDDER</span></span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>WHAT THIS BUYS THE BUSINESS</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">CONTEXT QUALITY</div>
- <div class="v">Chunking is sentence-aware with configurable overlap, so semantic boundaries survive the split. Recall draws from keyword and vector signals at once, then blends with recency for memory tasks.</div>
- </div>
- <div class="kv-row">
- <div class="k">VENDOR INDEPENDENCE</div>
- <div class="v">The embedding proxy speaks the OpenAI-compatible HTTP API. Use OpenAI today, Voyage tomorrow, an in-house model next quarter — without re-indexing, and without re-architecting the application.</div>
- </div>
- <div class="kv-row">
- <div class="k">AGENT MEMORY</div>
- <div class="v">An append-only memory store with semantic dedup and a recency-blended scoring function. Agents stop re-asking, stop forgetting, and stop drifting across sessions.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">06 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P7 · HYBRID QUERY LIFECYCLE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>07 · HYBRID QUERY LIFECYCLE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>07</span><span class="dash">·</span><span>HYBRID QUERY LIFECYCLE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">PARSE. PLAN.<br>FAN OUT. <span class="accent">FUSE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- A hybrid query is the default. One request can express a keyword
- match, a vector neighbourhood, an aggregation, and a structured
- filter. The planner decomposes that into independent passes,
- runs them concurrently against the right index, and fuses the
- results with reciprocal rank fusion in a single pass — no
- external orchestrator, no cross-store HTTP calls.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
- {{SVG:arch_query_lifecycle}}
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">REQUEST · RESPONSE</span></span>
- <span><span class="swatch yel"></span><span class="yel">PARALLEL EXECUTION</span></span>
- <span><span class="swatch dashed"></span><span>EXPLAIN · OBSERVABILITY</span></span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>EVERY QUERY</span>
- <span class="dash">·</span>
- <span>RETURNS AN EXPLAIN-PLAN WITH COST AND ROW COUNTS</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">07 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P8 · STORAGE &amp; DURABILITY -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>08 · STORAGE &amp; DURABILITY</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>08</span><span class="dash">·</span><span>STORAGE &amp; DURABILITY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SHARDED MEMTABLE.<br><span class="accent">SEALED SEGMENTS.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Writes hit a sharded in-memory table to spread contention across
- cores. Durability is anchored in a single write-ahead log with
- monotonic sequence numbers, fsynced once per batch. Periodic
- flushes drain the memtable into immutable segments — compressed,
- memory-mapped, and merged in the background. Restart replays
- the log; orphan segments are re-attached on open.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
- {{SVG:arch_storage}}
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">WRITE PATH</span></span>
- <span><span class="swatch yel"></span><span class="yel">DURABLE STATE</span></span>
- <span><span class="swatch dashed"></span><span>BACKGROUND TASK</span></span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <div class="kv-row">
- <div class="k">DURABILITY</div>
- <div class="v">Every accepted batch is persisted to the WAL with fsync and a per-batch CRC before the client sees a 2xx. Crash recovery replays from the last checkpoint, idempotent per sequence number.</div>
- </div>
- <div class="kv-row">
- <div class="k">BACK-PRESSURE</div>
- <div class="v">When the WAL queue exceeds its watermark, ingest returns 429 with a structured retry hint. Producers slow down; the engine never silently drops.</div>
- </div>
- <div class="kv-row">
- <div class="k">RECOVERY</div>
- <div class="v">Open re-scans the data directory and re-attaches any orphan segments left by a concurrent flush and exit. Restart on a five-million-document workload preserves every accepted document.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">08 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P9 · VECTOR SUBSYSTEM -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>09 · VECTOR SUBSYSTEM</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>09</span><span class="dash">·</span><span>VECTOR SUBSYSTEM</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">HNSW.<br>QUANTIZED.<br><span class="accent">RE-RANKED.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The vector engine is an in-process HNSW graph with three
- distance metrics, three quantization levels, and an optional
- full-precision re-ranking pass. Recall and latency are
- runtime-tunable through a single parameter, so the same index
- can serve a low-latency conversational lookup and a high-recall
- offline batch from the same on-disk artifact.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
- {{SVG:arch_vector}}
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">GRAPH TRAVERSAL</span></span>
- <span><span class="swatch yel"></span><span class="yel">CANDIDATE SET</span></span>
- <span><span class="swatch dashed"></span><span>OPTIONAL RE-RANK</span></span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <div class="kv-row">
- <div class="k">QUANTIZATION</div>
- <div class="v">Three modes: float32 baseline, scalar 8-bit (4× compression), nibble (8× compression). The HNSW traversal uses the quantized form; an optional float32 re-ranking pass restores precision on the final top-K.</div>
- </div>
- <div class="kv-row">
- <div class="k">DISTANCE METRICS</div>
- <div class="v">Cosine, L2, and dot product. Per-index choice. The metric is part of the on-disk format header; a loader rejects any index with a mismatched metric or format version.</div>
- </div>
- <div class="kv-row">
- <div class="k">RECALL · LATENCY DIAL</div>
- <div class="v">A single runtime parameter trades recall for latency without rebuilding the index. Low-latency UIs and high-recall analytics share one artifact.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">09 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P10 · CLUSTER &amp; STATE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>10 · CLUSTER &amp; STATE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>10</span><span class="dash">·</span><span>CLUSTER &amp; STATE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">EMBEDDED CONSENSUS.<br><span class="accent">NO CO-PROCESS.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Cluster metadata — index schemas, shard assignments, the node
- roster — is replicated by an embedded Raft state machine. There
- is no separate ZooKeeper, etcd, or Consul to deploy, license,
- page on, or upgrade in lock-step with the engine. The data
- plane stays out of the consensus path: only metadata changes
- take a Raft round-trip.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
- {{SVG:arch_cluster}}
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">DATA TRAFFIC</span></span>
- <span><span class="swatch yel"></span><span class="yel">RAFT (METADATA)</span></span>
- <span><span class="swatch dashed"></span><span>HEARTBEAT · GOSSIP</span></span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <div class="kv-row">
- <div class="k">METADATA SCOPE</div>
- <div class="v">Indices, schemas, shard placement, node membership. Replicated by Raft. Reads of metadata never block on consensus; the leader acknowledges, and followers serve.</div>
- </div>
- <div class="kv-row">
- <div class="k">DATA SCOPE</div>
- <div class="v">Documents, segments, vectors, and logs flow over the data ports. They are not Raft-replicated — replication for durability is per-index, governed by the metadata that Raft owns.</div>
- </div>
- <div class="kv-row">
- <div class="k">FAILURE MODEL</div>
- <div class="v">A leader loss costs one election round-trip on the metadata plane only. Reads and writes against existing indices continue uninterrupted.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">10 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P11 · SECURITY · COMPLIANCE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>11 · SECURITY &amp; COMPLIANCE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>11</span><span class="dash">·</span><span>SECURITY &amp; COMPLIANCE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">TAMPER-EVIDENT.<br><span class="accent">RBAC-NATIVE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Every privileged operation is a journal entry in an append-only
- audit log whose entries chain by SHA-256. Tampering with any
- entry breaks the chain at that point and at every subsequent
- entry. A single endpoint verifies the chain end-to-end;
- operators pin known-good chain heads externally for
- cross-restart attestation.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
- {{SVG:arch_audit_chain}}
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">JOURNAL ENTRY</span></span>
- <span><span class="swatch yel"></span><span class="yel">SHA-256 LINK</span></span>
- <span><span class="swatch dashed"></span><span>VERIFY · EXPORT</span></span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <div class="matrix">
- <div class="h">CONTROL</div>
- <div class="h">IMPLEMENTATION</div>
- <div class="h">STATUS</div>
-
- <div class="k">API-KEY AUTH</div>
- <div>Admin key generated on first start; subsequent keys minted under RBAC. Auth on every endpoint.</div>
- <div class="status ga">GA</div>
-
- <div class="k">RBAC</div>
- <div>Seven privileges; six seeded roles (admin, write, read, read-only-index, snapshot-admin, auditor). Per-pattern index scoping.</div>
- <div class="status beta">BETA</div>
-
- <div class="k">AUDIT LOG</div>
- <div>Append-only, hash-chained, queryable. Verify endpoint walks the chain end-to-end.</div>
- <div class="status ga">GA</div>
-
- <div class="k">TLS · TRANSIT</div>
- <div>rustls-based listener, modern ciphers. In-process integration scaffolded; final wiring lands at v1.0.0.</div>
- <div class="status beta">BETA</div>
-
- <div class="k">ENCRYPTION AT REST</div>
- <div>AES-GCM on segment + WAL files; keys held by an external KMS or BYOK-style integration.</div>
- <div class="status road">ROAD V1.0</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">11 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P12 · OPERATIONS &amp; OBSERVABILITY -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>12 · OPERATIONS &amp; OBSERVABILITY</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>12</span><span class="dash">·</span><span>OPERATIONS &amp; OBSERVABILITY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ONE BINARY.<br><span class="accent">DAY-TWO READY.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Day-two operations are baked in. Liveness and readiness probes
- ship on both API ports for Kubernetes. A built-in slow-query
- log surfaces regressions before they reach production. The
- embedded admin UI gives an operator everything an SRE needs
- without installing a second product.
- </p>
-
- <div class="sp-6"></div>
-
- <h4>OPERATIONAL SURFACE</h4>
- <div class="sp-2"></div>
-
- <div class="matrix">
- <div class="h">CAPABILITY</div>
- <div class="h">SHAPE</div>
- <div class="h">STATUS</div>
-
- <div class="k">LIVENESS · READINESS</div>
- <div>Standard Kubernetes probes on both data-plane ports. Listeners only bind after WAL replay; readiness then tracks cluster health — rolling restart is fleet-safe by default.</div>
- <div class="status ga">GA</div>
-
- <div class="k">METRICS</div>
- <div>Prometheus exposition. Counters, histograms, and gauges across ingest, query, flush, cache. Per-instance registry — no global-singleton label collisions.</div>
- <div class="status ga">GA</div>
-
- <div class="k">SLOW-QUERY LOG</div>
- <div>Bounded ring buffer of slow queries, threshold runtime-tunable. List, clear, and re-threshold from a single admin endpoint.</div>
- <div class="status ga">GA</div>
-
- <div class="k">EMBEDDED UI</div>
- <div>The Xerj Console playground SPA is compiled into the binary and served at a reserved path. Zero external dependency to operate the cluster.</div>
- <div class="status ga">GA</div>
-
- <div class="k">EXPLAIN PLAN</div>
- <div>Per-query cost and row counts queryable as a first-class endpoint. Quotas and circuit breakers enforce per-tenant ceilings before execution.</div>
- <div class="status ga">GA</div>
-
- <div class="k">HELM &amp; DOCKER</div>
- <div>StatefulSet chart with PVC, headless service, non-root security context, multi-arch image, HEALTHCHECK wired to readiness.</div>
- <div class="status ga">GA</div>
-
- <div class="k">SLOW · ADMIN APIS</div>
- <div>List, clear, threshold-set on the slow-query buffer; audit search and verify; security role list and put.</div>
- <div class="status ga">GA</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">12 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P13 · MEASURED PERFORMANCE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>13 · MEASURED PERFORMANCE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>13</span><span class="dash">·</span><span>MEASURED PERFORMANCE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">REAL HARDWARE.<br><span class="accent">REAL WORKLOAD.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The numbers below come from the v1.0.0-rc.1 verification run on
- a 32-core NVMe host against a real OpenSSH log corpus and a
- thousand-vector RAG workload. Every comparison number against
- Elasticsearch 8.13 was measured on the same host with identical
- wire payloads — not extrapolated.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="bigstat">
- <div class="b">
- <span class="k">COLD START</span>
- <span class="v">4 ms</span>
- <span class="u">vs ES 6.05 s · 863×</span>
- </div>
- <div class="b">
- <span class="k">BURST INGEST</span>
- <span class="v">5.97 M</span>
- <span class="u">docs/sec · loghub OpenSSH</span>
- </div>
- <div class="b">
- <span class="k">SUSTAINED</span>
- <span class="v">1.43 M</span>
- <span class="u">docs/sec · 5 M-doc run</span>
- </div>
- <div class="b">
- <span class="k">BINARY</span>
- <span class="v">19.6 MB</span>
- <span class="u">single static · no JVM</span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>HEAD-TO-HEAD vs ELASTICSEARCH 8.13</h4>
- <div class="sp-2"></div>
-
- <div class="perf">
- <div class="h">DIMENSION</div>
- <div class="h n">ES 8.13</div>
- <div class="h n">XERJ</div>
- <div class="h n">DELTA</div>
- <div class="h n">SOURCE</div>
-
- <div>Cold start</div>
- <div class="n">6.05 s</div>
- <div class="n">4 ms</div>
- <div class="n accent">863×</div>
- <div class="n">verify run</div>
-
- <div>RSS · 1 K-vector index</div>
- <div class="n">2,857 MB</div>
- <div class="n">727 MB</div>
- <div class="n accent">3.9×</div>
- <div class="n">verify run</div>
-
- <div>Index creation</div>
- <div class="n">93.9 ms</div>
- <div class="n">2.4 ms</div>
- <div class="n accent">39×</div>
- <div class="n">verify run</div>
-
- <div>Term query · p50</div>
- <div class="n">0.79 ms</div>
- <div class="n">0.31 ms</div>
- <div class="n accent">2.5×</div>
- <div class="n">verify run</div>
-
- <div>Match query · p50</div>
- <div class="n">1.28 ms</div>
- <div class="n">0.33 ms</div>
- <div class="n accent">3.9×</div>
- <div class="n">verify run</div>
-
- <div>Top-K sort · p50</div>
- <div class="n">4.28 ms</div>
- <div class="n">0.34 ms</div>
- <div class="n accent">12.6×</div>
- <div class="n">verify run</div>
-
- <div>Bulk · 1 K vectors</div>
- <div class="n">10,219 d/s</div>
- <div class="n">22,974 d/s</div>
- <div class="n accent">2.25×</div>
- <div class="n">verify run</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>WIRE COMPATIBILITY</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">ES YAML CONFORMANCE</div>
- <div class="v">1,305 / 1,329 cases pass — 98.2 % against the published Elasticsearch 8.13 REST conformance suite. Existing clients, dashboards, and ingest collectors connect unchanged.</div>
- </div>
- <div class="kv-row">
- <div class="k">DURABILITY UNDER RESTART</div>
- <div class="v">Five-million-document workload: every accepted document survives a process restart. Orphan-segment recovery on open closes the historical concurrent-flush-and-exit data-loss window.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">13 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P14 · GET STARTED · CONTACT -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>14 · GET STARTED</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-10"></div>
- <div class="kicker"><span>14</span><span class="dash">·</span><span>GET STARTED</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">PROVE IT<br><span class="accent">ON YOUR DATA.</span></h2>
-
- <div class="sp-6"></div>
-
- <p class="body">
- The fastest path is a two-week pilot on a real workload. We
- send the binary, the Helm chart, and the reproduction scripts
- for every number in this brief. You send one workload — SIEM,
- RAG, observability, or agent memory. We meet again in two
- weeks with your numbers, on your hardware, behind your
- perimeter.
- </p>
-
- <div class="sp-8"></div>
-
- <div style="padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);">
- <div class="kicker"><span>CONTACT</span></div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-display); font-weight: 900; font-size: 42pt; line-height:1; letter-spacing: 0.01em;">
- HELLO<span class="accent">@</span>XERJ.AI
- </div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-data); font-size: 9pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--mute);">
- XERJ.AI · XERJ.COM · XERJ.DEV
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>PILOT PROCESS</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">WEEK 0</div>
- <div class="v">Scoping call · pick workload · sign mutual NDA if needed (not required to receive the binary).</div>
- </div>
- <div class="kv-row">
- <div class="k">WEEK 1</div>
- <div class="v">Deploy in your environment · reproduce the published numbers on sample data · smoke-test ES client compatibility.</div>
- </div>
- <div class="kv-row">
- <div class="k">WEEK 2</div>
- <div class="v">Shadow against your workload · compare latency, footprint, cost. Decision meeting: your numbers, your hardware, your call.</div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>XERJ.AI</span>
- <span class="dash">·</span>
- <span>ARCHITECTURE BRIEF · V1</span>
- <span class="dash">·</span>
- <span>ENGINE V1.0.0-RC.1 · 2026-04</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · ARCHITECTURE BRIEF</span>
- <span class="num">14 / 14</span>
- </div>
-</section>
-
-</body>
-</html>
diff --git a/brief/brandbook-pdf/brandbook.html b/brief/brandbook-pdf/brandbook.html
deleted file mode 100644
index 378209ed0..000000000
--- a/brief/brandbook-pdf/brandbook.html
+++ /dev/null
@@ -1,1915 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ.AI — Brand Book · V1</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<style>
-@page {
- size: 8.5in 11in;
- margin: 0;
- background: #0b0b0d;
-}
-* { box-sizing: border-box; }
-html, body {
- margin: 0; padding: 0;
- background: #0b0b0d;
- color: #f4f2ec;
- font-family: 'Inter', system-ui, sans-serif;
- font-size: 11pt;
- line-height: 1.5;
- -webkit-print-color-adjust: exact;
- print-color-adjust: exact;
-}
-:root {
- --z-bg: #0b0b0d;
- --z-ink: #f4f2ec;
- --z-mute: #8a8680;
- --z-faint: #2b2a28;
- --z-line: #3a3836;
- --z-accent: #ffc400;
- --font-display: 'Big Shoulders Display', 'Inter', system-ui, sans-serif;
- --font-prose: 'Inter', system-ui, sans-serif;
- --font-data: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
- --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
- --track-ui: 0.14em;
-}
-
-.page {
- width: 8.5in;
- height: 11in;
- padding: 0.6in 0.7in;
- page-break-after: always;
- page-break-inside: avoid;
- break-after: page;
- break-inside: avoid;
- background: #0b0b0d;
- position: relative;
- overflow: hidden;
- display: flex;
- flex-direction: column;
-}
-.page:last-child { page-break-after: auto; }
-
-/* page header/footer — tiny signature bars */
-.phead {
- display: flex; justify-content: space-between;
- font-family: var(--font-data);
- font-size: 8pt;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--z-mute);
- padding-bottom: 8pt;
- border-bottom: 1px solid var(--z-line);
- margin-bottom: 18pt;
-}
-.phead .right { color: var(--z-mute); }
-.pfoot {
- margin-top: auto;
- padding-top: 10pt;
- border-top: 1px solid var(--z-line);
- display: flex; justify-content: space-between;
- font-family: var(--font-data);
- font-size: 8pt;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--z-mute);
-}
-.pfoot .pgnum { color: var(--z-ink); font-weight: 600; }
-
-/* typography scale */
-h1.cover-title {
- font-family: var(--font-display); font-weight: 900;
- font-size: 72pt; line-height: 0.9; letter-spacing: -0.01em;
- margin: 0;
-}
-h1.ch-num {
- font-family: var(--font-display); font-weight: 900;
- font-size: 260pt; line-height: 1; letter-spacing: -0.03em;
- margin: 0; color: var(--z-accent);
-}
-h1.ch-title {
- font-family: var(--font-display); font-weight: 900;
- font-size: 60pt; line-height: 0.9; letter-spacing: -0.01em;
- margin: 0 0 6pt;
-}
-h2.scene {
- font-family: var(--font-display); font-weight: 900;
- font-size: 32pt; line-height: 0.95; letter-spacing: -0.005em;
- margin: 0 0 10pt;
-}
-h3 {
- font-family: var(--font-display); font-weight: 900;
- font-size: 18pt; line-height: 1.1; letter-spacing: 0.005em;
- margin: 14pt 0 8pt;
-}
-h4 {
- font-family: var(--font-data); font-weight: 700;
- font-size: 9pt; letter-spacing: var(--track-ui);
- text-transform: uppercase; color: var(--z-mute);
- margin: 10pt 0 6pt;
-}
-p { margin: 0 0 8pt; font-size: 10.5pt; line-height: 1.55; max-width: 6.8in; }
-p.lead { font-size: 13pt; line-height: 1.45; max-width: 6.2in; }
-.kicker {
- font-family: var(--font-data); font-weight: 700;
- font-size: 8pt; letter-spacing: var(--track-ui);
- text-transform: uppercase; color: var(--z-mute);
- display: flex; gap: 8pt; align-items: center; flex-wrap: wrap;
-}
-.kicker .dash { color: var(--z-faint); }
-.kicker.big { font-size: 10pt; color: var(--z-ink); letter-spacing: 0.18em; }
-
-.accent { color: var(--z-accent); }
-.mute { color: var(--z-mute); }
-.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
-.faint { color: var(--z-mute); }
-
-.rule { border-bottom: 1px solid var(--z-line); margin: 14pt 0; }
-
-/* LOGO DISPLAY FRAMES */
-.lockup {
- border: 1px solid var(--z-line);
- padding: 24pt;
- margin: 12pt 0;
- position: relative;
-}
-.lockup[data-bg="day"] { background: #f6f4ee; color: #11120f; }
-.lockup[data-bg="paper"] { background: #f4f2ec; color: #0b0b0d; }
-.lockup .cap {
- position: absolute; top: 6pt; left: 10pt;
- font-family: var(--font-data); font-size: 7.5pt;
- letter-spacing: var(--track-ui); color: var(--z-mute);
- text-transform: uppercase;
-}
-.lockup[data-bg="day"] .cap, .lockup[data-bg="paper"] .cap { color: #696762; }
-
-/* 2-up / 4-up grids */
-.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12pt; }
-.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12pt; }
-
-/* CHART TOKENS */
-.chart-card {
- padding: 12pt 0;
- border-top: 1px solid var(--z-line);
- border-bottom: 1px solid var(--z-line);
- color: var(--z-ink);
- margin-top: 10pt;
-}
-.legend {
- display: flex; justify-content: space-between;
- font-family: var(--font-data); font-size: 9pt;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--z-mute);
- margin-top: 8pt;
-}
-.legend .mid { flex: 1; text-align: center; }
-.legend .mono { color: var(--z-ink); text-transform: none; letter-spacing: 0; font-family: var(--font-mono); }
-
-/* Top-N */
-.topn-list .row {
- display: grid;
- grid-template-columns: minmax(0, 1fr) 70pt minmax(0, 1fr) 44pt;
- gap: 8pt; align-items: baseline;
- padding: 5pt 0;
- border-bottom: 1px solid var(--z-faint);
- font-family: var(--font-data);
- font-size: 9.5pt;
- font-variant-numeric: tabular-nums;
-}
-.topn-list .row__label { color: var(--z-ink); overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
-.topn-list .row__val { text-align: right; font-weight: 700; color: var(--z-ink); }
-.topn-list .row__bar { color: var(--z-accent); }
-.topn-list .row__bar svg { width: 100%; height: 4pt; }
-.topn-list .row__pct { text-align: right; color: var(--z-mute); font-size: 8pt; }
-
-/* Dist legend */
-.dist-legend {
- display: flex; flex-wrap: wrap; gap: 14pt 26pt; margin-top: 10pt;
-}
-.dist-legend .stack { display: flex; flex-direction: column; gap: 2pt; min-width: 64pt; }
-.dist-legend .key { font-family: var(--font-data); font-size: 8pt; letter-spacing: var(--track-ui); color: var(--z-mute); text-transform: uppercase; }
-.dist-legend .mono { font-family: var(--font-mono); color: var(--z-ink); }
-.dist-legend .mono.big { font-size: 15pt; font-weight: 700; }
-.dist-legend .mono.faint { color: var(--z-mute); font-size: 9pt; }
-
-/* Heatmap */
-.heatmap {
- font-family: var(--font-mono); font-size: 8.5pt; line-height: 1.7;
- white-space: nowrap;
-}
-.heatmap-row { display: block; white-space: nowrap; }
-.heatmap-row .row-label {
- display: inline-block; width: 70pt;
- font-family: var(--font-data); font-size: 7.5pt;
- letter-spacing: var(--track-ui); color: var(--z-mute);
- text-transform: uppercase;
-}
-.heatmap-row .hc {
- display: inline-block; width: 28pt; text-align: right;
-}
-.heatmap-row.heatmap-head .hc { color: var(--z-mute); }
-
-/* Multiples grid */
-.mult-grid {
- display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12pt 14pt;
- margin-top: 8pt;
-}
-.mult-cell { color: var(--z-ink); }
-.mult-cell .mult-head {
- display: flex; justify-content: space-between; align-items: baseline;
- margin-bottom: 3pt;
- font-family: var(--font-data); font-size: 8pt;
- letter-spacing: var(--track-ui);
- text-transform: uppercase; color: var(--z-mute);
-}
-.mult-cell svg { width: 100%; height: 22px; display: block; }
-
-/* Stacked */
-.stk-wrap .stk-row {
- display: grid; grid-template-columns: 40pt 1fr 60pt;
- gap: 12pt; align-items: center;
- padding: 5pt 0;
- border-bottom: 1px solid var(--z-faint);
- font-family: var(--font-data); font-size: 9pt;
-}
-.stk-lbl { color: var(--z-mute); letter-spacing: var(--track-ui); }
-.stk-legend {
- margin-top: 6pt;
- font-family: var(--font-data); font-size: 7.5pt;
- letter-spacing: var(--track-ui); color: var(--z-mute);
- text-transform: uppercase;
-}
-
-/* Events */
-.ev-list {}
-.ev-row {
- display: grid; grid-template-columns: 80pt 40pt 1fr;
- gap: 10pt; padding: 4pt 0;
- border-bottom: 1px solid var(--z-faint);
- font-family: var(--font-mono); font-size: 8.5pt;
- font-variant-numeric: tabular-nums;
-}
-.ev-at { color: var(--z-mute); }
-.ev-sev { font-family: var(--font-data); font-size: 7.5pt; letter-spacing: var(--track-ui); text-transform: uppercase; }
-.ev-msg { color: var(--z-ink); overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
-
-/* Flowband */
-.fb-grid {
- display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
- gap: 8pt 14pt; margin-top: 8pt;
-}
-.fb-lbl .fb-name {
- font-family: var(--font-data); font-size: 8pt;
- letter-spacing: var(--track-ui); text-transform: uppercase;
-}
-
-/* Attention */
-.attn {
- font-family: var(--font-data); font-size: 13pt; line-height: 1.85;
- max-width: 6.6in;
- color: var(--z-ink);
-}
-.attn .accent { color: var(--z-accent); }
-
-/* Color swatches */
-.swatch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16pt; margin-top: 10pt; }
-.swatch {
- display: grid; grid-template-columns: 60pt 1fr 80pt;
- gap: 10pt; align-items: center;
- padding: 6pt 0;
- border-bottom: 1px solid var(--z-faint);
-}
-.swatch .chip {
- width: 60pt; height: 36pt;
- border: 1px solid var(--z-line);
-}
-.swatch .name { color: var(--z-ink); font-family: var(--font-data); font-size: 9pt; letter-spacing: var(--track-ui); text-transform: uppercase; }
-.swatch .hex { color: var(--z-mute); font-family: var(--font-mono); font-size: 9pt; text-align: right; }
-
-/* Typeface rows */
-.tf-row { padding: 10pt 0; border-bottom: 1px solid var(--z-faint); }
-.tf-row .tf-name { font-family: var(--font-data); font-size: 8pt; letter-spacing: var(--track-ui); color: var(--z-mute); text-transform: uppercase; margin-bottom: 4pt; }
-
-/* Scale ladder */
-.scale-row { display: grid; grid-template-columns: 60pt 1fr 120pt; gap: 14pt; align-items: baseline; padding: 6pt 0; border-bottom: 1px solid var(--z-faint); }
-.scale-row .px { font-family: var(--font-mono); font-size: 9pt; color: var(--z-mute); }
-.scale-row .use { font-family: var(--font-data); font-size: 8pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--z-mute); text-align: right; }
-
-/* Do/Dont */
-.verdict { display: grid; grid-template-columns: 50pt 1fr; gap: 12pt; padding: 8pt 0; border-bottom: 1px solid var(--z-faint); }
-.verdict .tag { font-family: var(--font-data); font-size: 8pt; letter-spacing: var(--track-ui); text-transform: uppercase; }
-.verdict .tag.yes { color: var(--z-accent); }
-.verdict .tag.no { color: var(--z-mute); }
-.verdict .body { font-family: var(--font-prose); font-size: 10pt; color: var(--z-ink); line-height: 1.5; }
-
-/* Size ladder cell for logo */
-.ladder-row { display: grid; grid-template-columns: 80pt 1fr 120pt; gap: 14pt; align-items: center; padding: 6pt 0; border-bottom: 1px solid var(--z-faint); }
-.ladder-row .px { font-family: var(--font-mono); font-size: 8pt; color: var(--z-mute); }
-.ladder-row .use { font-family: var(--font-data); font-size: 8pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--z-mute); text-align: right; }
-.ladder-row .ex { display: flex; align-items: baseline; }
-
-/* Contents */
-.toc-row {
- display: grid; grid-template-columns: 32pt 1fr 40pt;
- gap: 14pt; align-items: baseline;
- padding: 10pt 0;
- border-bottom: 1px solid var(--z-faint);
-}
-.toc-num { font-family: var(--font-mono); color: var(--z-accent); font-size: 11pt; font-weight: 700; }
-.toc-title { font-family: var(--font-display); font-weight: 900; font-size: 22pt; letter-spacing: 0.005em; }
-.toc-page { font-family: var(--font-mono); color: var(--z-mute); font-size: 10pt; text-align: right; font-variant-numeric: tabular-nums; }
-
-/* Narrative */
-.three-principles {
- display: grid; grid-template-columns: 1fr; gap: 14pt;
-}
-.principle {
- padding-top: 14pt;
- border-top: 1px solid var(--z-line);
-}
-
-/* 6-row dashboard infographic */
-.infog {
- border-top: 1px solid var(--z-line);
- border-bottom: 1px solid var(--z-line);
- margin-top: 12pt;
-}
-.infog .row {
- display: grid; grid-template-columns: 1fr 80pt 60pt;
- gap: 12pt; align-items: baseline;
- padding: 7pt 0; border-bottom: 1px solid var(--z-faint);
- font-family: var(--font-data); font-size: 9pt;
- letter-spacing: var(--track-ui); text-transform: uppercase;
-}
-.infog .row:last-child { border-bottom: 0; }
-.infog .row .k { color: var(--z-mute); }
-.infog .row .v { font-family: var(--font-mono); color: var(--z-ink); text-align: right; letter-spacing: 0; text-transform: none; }
-.infog .row .gold { color: var(--z-accent); text-align: right; font-family: var(--font-mono); }
-
-/* Download table */
-.dl-list {}
-.dl-row {
- display: grid; grid-template-columns: 120pt 1fr 80pt;
- gap: 12pt; align-items: baseline;
- padding: 7pt 0;
- border-bottom: 1px solid var(--z-faint);
- font-family: var(--font-data); font-size: 9pt;
- letter-spacing: var(--track-ui); text-transform: uppercase;
-}
-.dl-row .name { color: var(--z-ink); }
-.dl-row .desc { color: var(--z-mute); text-transform: none; letter-spacing: 0; font-family: var(--font-prose); font-size: 9pt; }
-.dl-row .get { color: var(--z-accent); text-align: right; }
-
-/* Rule diagram (clear space) */
-.cs-demo {
- border: 1px solid var(--z-line);
- padding: 36pt 24pt;
- margin-top: 14pt;
- background: var(--z-bg);
-}
-.cs-demo svg { width: 100%; height: auto; display: block; }
-</style>
-</head>
-<body>
-<div class="page" style="padding:0.7in; display:flex; flex-direction:column; justify-content:space-between;">
- <!-- TOP ROW · kicker left · wordmark pinned top-right as the identifier -->
- <div style="display:flex; justify-content:space-between; align-items:flex-start; gap:30pt;">
- <div class="kicker big" style="padding-top:6pt;"><span>BRAND BOOK</span><span class="dash">·</span><span>V1</span><span class="dash">·</span><span>2026·04</span></div>
- <div style="width:2.6in; flex-shrink:0;">
- <svg viewBox="0 0 800 240" preserveAspectRatio="xMidYMid meet" style="width:100%; display:block;">
- <rect width="800" height="240" fill="#0b0b0d"/>
- <line x1="90" y1="200" x2="530" y2="200" stroke="#f4f2ec" stroke-width="1" stroke-linecap="square"/>
- <line x1="530" y1="40" x2="710" y2="40" stroke="#ffc400" stroke-width="1" stroke-linecap="square"/>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="end" fill="#f4f2ec">XERJ</text>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="start" fill="#ffc400">.AI</text>
-</svg>
- </div>
- </div>
-
- <!-- CENTER · the book title IS the cover -->
- <div>
- <h1 class="cover-title">BRAND<br>BOOK.</h1>
- <p class="lead" style="color:var(--z-mute); max-width:4.6in; margin-top:18pt;">
- The rules that carry the XERJ.AI identity across every
- surface — logo, colour, typography, UX, voice — codified
- in one place.
- </p>
- </div>
-
- <!-- BOTTOM · issuance line -->
- <div style="display:flex; justify-content:space-between; font-family:var(--font-data); font-size:9pt; letter-spacing:var(--track-ui); text-transform:uppercase; color:var(--z-mute); padding-top:10pt; border-top:1px solid var(--z-line);">
- <span>ISSUED BY · XERJ.AI DESIGN</span>
- <span>XERJ.AI · OBSERVE</span>
- </div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">COLOPHON</span></div>
- <div style="flex:1; display:flex; flex-direction:column; justify-content:center; max-width:5.8in;">
- <h2 class="scene">THIS BOOK<br>CODIFIES THE<br><span class="accent">LANGUAGE.</span></h2>
- <p class="lead">
- XERJ is a storage system. It looks like a storage system.
- The product is typography, negative space, and 1&thinsp;px
- lines — and this document is the rulebook that keeps it that
- way.
- </p>
- <p>
- Seven chapters. Logo, colour, typography, UX and charts,
- philosophy, voice, and resources. Every rule herein is
- non-negotiable. A designer who wants to break one is welcome
- to file a 500-word essay explaining why, and if we ship the
- exception it becomes a new rule.
- </p>
- <div class="rule"></div>
- <div class="kicker"><span>ISSUED BY</span><span class="dash">·</span><span>XERJ.AI DESIGN</span></div>
- <div class="kicker"><span>VERSION</span><span class="dash">·</span><span>1.0 · 2026-04</span></div>
- <div class="kicker"><span>REPLACES</span><span class="dash">·</span><span>—</span></div>
- <div class="kicker"><span>OWNER</span><span class="dash">·</span><span>BRAND · XERJ.AI</span></div>
- </div>
- <div class="pfoot"><span>COLOPHON</span><span class="pgnum">02</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">CONTENTS</span></div>
- <h2 class="scene" style="margin-bottom:14pt;">CONTENTS.</h2>
- <div class="toc-row">
- <span class="toc-num">01</span>
- <span class="toc-title">LOGO<span style="font-family:var(--font-prose); font-weight:400; font-size:11pt; color:var(--z-mute); margin-left:10pt;">The word is the mark.</span></span>
- <span class="toc-page">p. 04</span>
- </div>
- <div class="toc-row">
- <span class="toc-num">02</span>
- <span class="toc-title">COLOR<span style="font-family:var(--font-prose); font-weight:400; font-size:11pt; color:var(--z-mute); margin-left:10pt;">Gold is earned.</span></span>
- <span class="toc-page">p. 13</span>
- </div>
- <div class="toc-row">
- <span class="toc-num">03</span>
- <span class="toc-title">TYPOGRAPHY<span style="font-family:var(--font-prose); font-weight:400; font-size:11pt; color:var(--z-mute); margin-left:10pt;">Four typefaces. Seven sizes.</span></span>
- <span class="toc-page">p. 17</span>
- </div>
- <div class="toc-row">
- <span class="toc-num">04</span>
- <span class="toc-title">UX & DATA<span style="font-family:var(--font-prose); font-weight:400; font-size:11pt; color:var(--z-mute); margin-left:10pt;">Type is the infographic.</span></span>
- <span class="toc-page">p. 21</span>
- </div>
- <div class="toc-row">
- <span class="toc-num">05</span>
- <span class="toc-title">PHILOSOPHY<span style="font-family:var(--font-prose); font-weight:400; font-size:11pt; color:var(--z-mute); margin-left:10pt;">Why it looks like this.</span></span>
- <span class="toc-page">p. 33</span>
- </div>
- <div class="toc-row">
- <span class="toc-num">06</span>
- <span class="toc-title">VOICE<span style="font-family:var(--font-prose); font-weight:400; font-size:11pt; color:var(--z-mute); margin-left:10pt;">Solid. Quiet. Technical.</span></span>
- <span class="toc-page">p. 37</span>
- </div>
- <div class="toc-row">
- <span class="toc-num">07</span>
- <span class="toc-title">RESOURCES<span style="font-family:var(--font-prose); font-weight:400; font-size:11pt; color:var(--z-mute); margin-left:10pt;">Downloads and references.</span></span>
- <span class="toc-page">p. 39</span>
- </div>
- <div class="pfoot"><span>CONTENTS</span><span class="pgnum">03</span></div>
-</div>
-<div class="page" style="display:flex; flex-direction:column; justify-content:space-between;">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">CHAPTER 01 · LOGO</span></div>
- <div style="flex:1; display:flex; flex-direction:column; justify-content:center;">
- <h1 class="ch-num">01</h1>
- <h1 class="ch-title">LOGO.</h1>
- <p class="lead" style="max-width:5.6in; margin-top:6pt;">
- The word is the mark. Two 1&thinsp;px rules carry the story —
- a paper-coloured line under XERJ, a yellow line over .AI.
- Storage on the bottom. AI on top.
- </p>
- </div>
- <div class="pfoot"><span>CHAPTER 01 · LOGO</span><span class="pgnum">04</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">01 · LOGO · PRIMARY</span></div>
- <div class="kicker"><span>01</span><span class="dash">·</span><span>PRIMARY WORDMARK</span></div>
- <h2 class="scene">XERJ<span class="accent">.AI</span></h2>
- <p>
- The primary lockup. Root word set in paper (<span class="mono">#F4F2EC</span>)
- on night (<span class="mono">#0B0B0D</span>). Suffix
- <span class="accent">.AI</span> in accent (<span class="mono">#FFC400</span>).
- Paper line under XERJ (the stored record). Yellow line over .AI
- (the answer served back).
- </p>
-
- <div class="lockup" data-bg="night" style="padding:40pt;">
- <span class="cap">01 · NIGHT · PRIMARY</span>
- <div style="width:100%; max-width:5.4in; margin:0 auto;">
- <svg viewBox="0 0 800 240" preserveAspectRatio="xMidYMid meet" style="width:100%; display:block;">
- <rect width="800" height="240" fill="#0b0b0d"/>
- <line x1="90" y1="200" x2="530" y2="200" stroke="#f4f2ec" stroke-width="1" stroke-linecap="square"/>
- <line x1="530" y1="40" x2="710" y2="40" stroke="#ffc400" stroke-width="1" stroke-linecap="square"/>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="end" fill="#f4f2ec">XERJ</text>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="start" fill="#ffc400">.AI</text>
-</svg>
- </div>
- </div>
-
- <h4>CONSTRUCTION</h4>
- <p>
- Typeface: <span class="mono">Big Shoulders Display 900</span>.
- Tracking: <span class="mono">+0.24 em</span>. Both rules are
- exactly <span class="mono">1&thinsp;px</span>, placed
- <span class="mono">30&thinsp;px</span> from baseline
- (<span class="mono">y=170</span>) and
- <span class="mono">30&thinsp;px</span> from cap-top
- (<span class="mono">y=70</span>). Measured, not optical.
- </p>
- <div class="pfoot"><span>CHAPTER 01 · LOGO</span><span class="pgnum">05</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">01 · LOGO · RULE OF COLOUR</span></div>
- <div class="kicker"><span>01</span><span class="dash">·</span><span>RULE OF COLOUR</span></div>
- <h2 class="scene">STORED <span style="color:var(--z-ink);">BELOW.</span><br>SERVED <span class="accent">ABOVE.</span></h2>
- <p class="lead">
- A rule always takes the colour of the text it touches.
- The paper line under <span style="color:var(--z-ink);">XERJ</span> is paper.
- The yellow line over <span class="accent">.AI</span> is yellow.
- Never cross-colour. Never extend one rule past the boundary to
- underline both halves.
- </p>
-
- <div class="lockup" data-bg="night">
- <span class="cap">DETAIL · THE TWO RULES MEET AT THE DOT</span>
- <div style="width:100%; max-width:5.6in; margin:14pt auto 0;">
- <svg viewBox="0 0 800 240" preserveAspectRatio="xMidYMid meet" style="width:100%; display:block;">
- <rect width="800" height="240" fill="#0b0b0d"/>
- <line x1="90" y1="200" x2="530" y2="200" stroke="#f4f2ec" stroke-width="1" stroke-linecap="square"/>
- <line x1="530" y1="40" x2="710" y2="40" stroke="#ffc400" stroke-width="1" stroke-linecap="square"/>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="end" fill="#f4f2ec">XERJ</text>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="start" fill="#ffc400">.AI</text>
-</svg>
- </div>
- </div>
-
- <p>
- Each rule owns exactly its half of the record. The offset
- between them — one above, one below — reads as
- "storage → retrieval" in a single glance. That diagonal motion
- is the mark's identity.
- </p>
- <div class="pfoot"><span>CHAPTER 01 · LOGO</span><span class="pgnum">06</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">01 · LOGO · SHORTER FORMS</span></div>
- <div class="kicker"><span>01</span><span class="dash">·</span><span>SHORTER FORMS</span></div>
- <h2 class="scene">SHORT.<br><span class="accent">SHORTER.</span></h2>
- <p>
- When space is tight the wordmark drops the suffix. At favicon
- scale only the X remains. The rule system simplifies: both
- rules take the colour of whatever text is left.
- </p>
-
- <div class="grid-2">
- <div class="lockup" data-bg="night">
- <span class="cap">02A · SHORT FORM · PAPER RULES</span>
- <div style="width:100%; max-width:3.6in; margin:14pt auto 0;">
- <svg viewBox="0 0 600 240" preserveAspectRatio="xMidYMid meet" style="width:100%; display:block;">
- <rect width="600" height="240" fill="#0b0b0d"/>
- <line x1="90" y1="40" x2="510" y2="40" stroke="#f4f2ec" stroke-width="1" stroke-linecap="square"/>
- <line x1="90" y1="200" x2="510" y2="200" stroke="#f4f2ec" stroke-width="1" stroke-linecap="square"/>
- <text x="300" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="middle" fill="#f4f2ec">XERJ</text>
-</svg>
- </div>
- </div>
- <div class="lockup" data-bg="night">
- <span class="cap">02B · LETTER MARK · THE KEY</span>
- <div style="width:1.6in; margin:14pt auto 0;">
- <svg viewBox="0 0 200 200" preserveAspectRatio="xMidYMid meet" style="width:100%; display:block;">
- <rect width="200" height="200" fill="#0b0b0d"/>
- <line x1="30" y1="24" x2="170" y2="24" stroke="#ffc400" stroke-width="1" stroke-linecap="square"/>
- <line x1="30" y1="170" x2="170" y2="170" stroke="#ffc400" stroke-width="1" stroke-linecap="square"/>
- <text x="100" y="140" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="120" text-anchor="middle" fill="#ffc400">X</text>
-</svg>
- </div>
- </div>
- </div>
-
- <div class="lockup" data-bg="night" style="margin-top:14pt;">
- <span class="cap">03 · SYSTEM LINE · TRACKED SIGNATURE</span>
- <div style="width:100%; max-width:5.2in; margin:14pt auto 0;">
- <svg viewBox="0 0 800 100" preserveAspectRatio="xMidYMid meet" style="width:100%; display:block;">
- <rect width="800" height="100" fill="#0b0b0d"/>
- <line x1="210" y1="78" x2="450" y2="78" stroke="#3a3836" stroke-width="1" stroke-linecap="square"/>
- <line x1="450" y1="22" x2="600" y2="22" stroke="#ffc400" stroke-width="1" stroke-linecap="square"/>
- <text x="400" y="58" font-family="'IBM Plex Sans','Inter',sans-serif" font-weight="600" font-size="20" letter-spacing="4.8" text-anchor="middle" fill="#f4f2ec">XERJ.AI · OBSERVE</text>
-</svg>
- </div>
- </div>
-
- <p>
- Approved second-tag variants:
- <span class="mono">OBSERVE</span> (default),
- <span class="mono">INDEX</span> (docs),
- <span class="mono">EXPLAIN</span> (compliance),
- <span class="mono">QUERY</span> (product dashboards).
- One tag per surface. Never stacked.
- </p>
- <div class="pfoot"><span>CHAPTER 01 · LOGO</span><span class="pgnum">07</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">01 · LOGO · COLOUR TREATMENTS</span></div>
- <div class="kicker"><span>01</span><span class="dash">·</span><span>COLOUR TREATMENTS</span></div>
- <h2 class="scene">FOUR SURFACES.<br>ONE <span class="accent">MARK.</span></h2>
-
- <div class="grid-2">
- <div class="lockup" data-bg="night">
- <span class="cap">04A · NIGHT · #0B0B0D</span>
- <div style="width:100%; max-width:3.3in; margin:12pt auto 0;"><svg viewBox="0 0 800 240" preserveAspectRatio="xMidYMid meet" style="width:100%; display:block;">
- <rect width="800" height="240" fill="#0b0b0d"/>
- <line x1="90" y1="200" x2="530" y2="200" stroke="#f4f2ec" stroke-width="1" stroke-linecap="square"/>
- <line x1="530" y1="40" x2="710" y2="40" stroke="#ffc400" stroke-width="1" stroke-linecap="square"/>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="end" fill="#f4f2ec">XERJ</text>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="start" fill="#ffc400">.AI</text>
-</svg></div>
- </div>
- <div class="lockup" data-bg="day">
- <span class="cap">04B · DAY · #F6F4EE</span>
- <div style="width:100%; max-width:3.3in; margin:12pt auto 0;"><svg viewBox="0 0 800 240" preserveAspectRatio="xMidYMid meet" style="width:100%; display:block;">
- <rect width="800" height="240" fill="#f6f4ee"/>
- <line x1="90" y1="200" x2="530" y2="200" stroke="#11120f" stroke-width="1" stroke-linecap="square"/>
- <line x1="530" y1="40" x2="710" y2="40" stroke="#a06800" stroke-width="1" stroke-linecap="square"/>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="end" fill="#11120f">XERJ</text>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="start" fill="#a06800">.AI</text>
-</svg></div>
- </div>
- <div class="lockup" data-bg="paper">
- <span class="cap">04C · PAPER · PRINT</span>
- <div style="width:100%; max-width:3.3in; margin:12pt auto 0;"><svg viewBox="0 0 800 240" preserveAspectRatio="xMidYMid meet" style="width:100%; display:block;">
- <rect width="800" height="240" fill="#f4f2ec"/>
- <line x1="90" y1="200" x2="530" y2="200" stroke="#0b0b0d" stroke-width="1" stroke-linecap="square"/>
- <line x1="530" y1="40" x2="710" y2="40" stroke="#a06800" stroke-width="1" stroke-linecap="square"/>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="end" fill="#0b0b0d">XERJ</text>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="start" fill="#a06800">.AI</text>
-</svg></div>
- </div>
- <div class="lockup" data-bg="night">
- <span class="cap">04D · MONO · OUTLINE</span>
- <div style="width:100%; max-width:3.3in; margin:12pt auto 0;"><svg viewBox="0 0 800 240" preserveAspectRatio="xMidYMid meet" style="width:100%; display:block;">
- <rect width="800" height="240" fill="#0b0b0d"/>
- <line x1="90" y1="200" x2="530" y2="200" stroke="currentColor" stroke-width="1" stroke-linecap="square"/>
- <line x1="530" y1="40" x2="710" y2="40" stroke="currentColor" stroke-width="1" stroke-linecap="square"/>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="end" fill="currentColor">XERJ</text>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="start" fill="currentColor">.AI</text>
-</svg></div>
- </div>
- </div>
-
- <p style="margin-top:10pt;">
- Night is primary. Day is a courtesy. Paper is for print. Mono
- (<span class="mono">currentColor</span>) is the fallback for
- decks and partner surfaces we do not control — we do not ship
- neon yellow on someone else's background.
- </p>
- <div class="pfoot"><span>CHAPTER 01 · LOGO</span><span class="pgnum">08</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">01 · LOGO · CLEAR SPACE</span></div>
- <div class="kicker"><span>01</span><span class="dash">·</span><span>CLEAR SPACE</span></div>
- <h2 class="scene">CLEAR SPACE<br>= HEIGHT OF <span class="accent">X.</span></h2>
- <p>
- Minimum padding around the wordmark on every side is equal to
- the cap height of X at whatever size the mark is rendered.
- Absolute — no edge of the wordmark ever sits closer than one X
- to a container border, photo crop, another logo, or interface
- chrome.
- </p>
-
- <div class="cs-demo">
- <svg viewBox="0 0 680 320" preserveAspectRatio="xMidYMid meet" style="color: var(--z-line);">
- <rect x="20" y="20" width="640" height="280" fill="none" stroke="currentColor" stroke-width="1"/>
- <rect x="120" y="100" width="440" height="120" fill="none" stroke="currentColor" stroke-width="1" stroke-dasharray="2 4"/>
- <line x1="150" y1="210" x2="370" y2="210" stroke="var(--z-ink)" stroke-width="1" stroke-linecap="square"/>
- <line x1="370" y1="130" x2="520" y2="130" stroke="var(--z-accent)" stroke-width="1" stroke-linecap="square"/>
- <text x="370" y="190" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="86" letter-spacing="2" text-anchor="end" fill="var(--z-ink)">XERJ</text>
- <text x="370" y="190" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="86" letter-spacing="2" text-anchor="start" fill="var(--z-accent)">.AI</text>
- <line x1="20" y1="100" x2="120" y2="100" stroke="currentColor" stroke-width="1"/>
- <line x1="20" y1="220" x2="120" y2="220" stroke="currentColor" stroke-width="1"/>
- <line x1="70" y1="20" x2="70" y2="100" stroke="currentColor" stroke-width="1"/>
- <line x1="70" y1="220" x2="70" y2="300" stroke="currentColor" stroke-width="1"/>
- <text x="50" y="62" font-family="'JetBrains Mono',monospace" font-size="12" fill="var(--z-mute)">1 X</text>
- <text x="50" y="266" font-family="'JetBrains Mono',monospace" font-size="12" fill="var(--z-mute)">1 X</text>
- <text x="72" y="164" font-family="'JetBrains Mono',monospace" font-size="12" fill="var(--z-mute)">X HT</text>
- </svg>
- </div>
- <div class="pfoot"><span>CHAPTER 01 · LOGO</span><span class="pgnum">09</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">01 · LOGO · SIZE LADDER</span></div>
- <div class="kicker"><span>01</span><span class="dash">·</span><span>SIZE LADDER</span></div>
- <h2 class="scene">THE LADDER.<br>WHAT FITS <span class="accent">WHERE.</span></h2>
- <p>
- Every surface has a pre-approved size. Below the minimum the
- wordmark drops to short form, then to letter mark, then it is
- removed. The mark is never rendered below 16&thinsp;px cap
- height.
- </p>
-
- <div class="ladder-row"><span class="px">96 PT · DUAL RULES</span><span class="ex" style="font-family:var(--font-display); font-weight:900; font-size:60pt; letter-spacing:0.025em; line-height:1;">XERJ<span class="accent">.AI</span></span><span class="use">COVER · SLIDE TITLE</span></div>
- <div class="ladder-row"><span class="px">56 PT · DUAL RULES</span><span class="ex" style="font-family:var(--font-display); font-weight:900; font-size:36pt; letter-spacing:0.03em; line-height:1;">XERJ<span class="accent">.AI</span></span><span class="use">SECTION · DOC HEAD</span></div>
- <div class="ladder-row"><span class="px">32 PT · NO MARKS</span><span class="ex" style="font-family:var(--font-display); font-weight:900; font-size:22pt; letter-spacing:0.04em; line-height:1;">XERJ<span class="accent">.AI</span></span><span class="use">NAV · APP HEADER</span></div>
- <div class="ladder-row"><span class="px">20 PT · NO MARKS</span><span class="ex" style="font-family:var(--font-display); font-weight:900; font-size:14pt; letter-spacing:0.05em; line-height:1;">XERJ<span class="accent">.AI</span></span><span class="use">FOOTER · SIGNATURE</span></div>
- <div class="ladder-row"><span class="px">16 PT · MIN</span><span class="ex" style="font-family:var(--font-display); font-weight:900; font-size:11pt; letter-spacing:0.05em; line-height:1;">XERJ</span><span class="use">SHORT FORM ONLY</span></div>
- <div class="ladder-row"><span class="px">&lt; 16 PT</span><span class="ex accent" style="font-family:var(--font-display); font-weight:900; font-size:11pt; line-height:1;">X</span><span class="use">LETTER MARK · FAVICON</span></div>
-
- <p style="margin-top:10pt; color:var(--z-mute); font-size:9pt;">
- The rules are drawn at a fixed 1&thinsp;px weight regardless
- of wordmark size. Below 56&thinsp;pt the rules start to compete
- with the letterforms and drop off entirely.
- </p>
- <div class="pfoot"><span>CHAPTER 01 · LOGO</span><span class="pgnum">10</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">01 · LOGO · DO</span></div>
- <div class="kicker"><span>01</span><span class="dash">·</span><span>DO</span></div>
- <h2 class="scene">WHAT <span class="accent">SHIPS.</span></h2>
- <div class="verdict"><span class="tag yes">DO</span><span class="body">Set the wordmark in Big Shoulders Display 900, all caps, +0.24 em tracking. Accent the <span class="accent">.AI</span> suffix only.</span></div>
- <div class="verdict"><span class="tag yes">DO</span><span class="body">Place on a solid night (<span class="mono">#0B0B0D</span>) or solid day (<span class="mono">#F6F4EE</span>) surface. Nothing in between.</span></div>
- <div class="verdict"><span class="tag yes">DO</span><span class="body">Keep one full X-height of clear space on every side — including above and below.</span></div>
- <div class="verdict"><span class="tag yes">DO</span><span class="body">Drop to the short form at 16&thinsp;pt, then to the letter mark, then omit the logo entirely rather than shrink it further.</span></div>
- <div class="verdict"><span class="tag yes">DO</span><span class="body">Colour each rule to match the text it touches — paper under XERJ, yellow over .AI. The rule <em>is</em> an extension of the glyph colour, not a separate ornament.</span></div>
- <div class="verdict"><span class="tag yes">DO</span><span class="body">Draw rules at true 1&thinsp;px with <span class="mono">stroke-linecap: square</span>. Position them 30&thinsp;px from baseline and 30&thinsp;px from cap-top — measured, not eyeballed.</span></div>
- <div class="pfoot"><span>CHAPTER 01 · LOGO</span><span class="pgnum">11</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">01 · LOGO · DON'T</span></div>
- <div class="kicker"><span>01</span><span class="dash">·</span><span>DON'T</span></div>
- <h2 class="scene">WHAT <span class="accent">DOESN'T.</span></h2>
- <div class="verdict"><span class="tag no">DON'T</span><span class="body">Outline, stroke, emboss, or add a drop shadow. The mark is a solid typographic form. One weight, zero effects.</span></div>
- <div class="verdict"><span class="tag no">DON'T</span><span class="body">Tint the root word. <span class="mono">XERJ</span> is always paper-on-night or ink-on-day. Never yellow, never red, never blue.</span></div>
- <div class="verdict"><span class="tag no">DON'T</span><span class="body">Place the wordmark on photography, gradients, screenshots, or any surface with more than 5&thinsp;% visual texture.</span></div>
- <div class="verdict"><span class="tag no">DON'T</span><span class="body">Rotate, skew, stretch, condense, or redraw the letterforms. If it is not Big Shoulders 900 at +0.24&thinsp;em, it is not the wordmark.</span></div>
- <div class="verdict"><span class="tag no">DON'T</span><span class="body">Lock the wordmark up with an icon, mascot, illustration, or partner logo without a full X-height gap between them.</span></div>
- <div class="verdict"><span class="tag no">DON'T</span><span class="body">Extend one rule past the XERJ/.AI boundary to underline the whole wordmark — that collapses the two-colour story into a single underline.</span></div>
- <div class="verdict"><span class="tag no">DON'T</span><span class="body">Cross-colour the rules (yellow line under XERJ, paper line over .AI). The rule always matches the text it connects to, never the opposite half.</span></div>
- <div class="verdict"><span class="tag no">DON'T</span><span class="body">Put both rules on the same side of the wordmark. The rule over .AI must be above cap-top; the rule under XERJ must be below baseline. Never co-planar.</span></div>
- <div class="pfoot"><span>CHAPTER 01 · LOGO</span><span class="pgnum">12</span></div>
-</div>
-<div class="page" style="display:flex; flex-direction:column; justify-content:space-between;">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">CHAPTER 02 · COLOR</span></div>
- <div style="flex:1; display:flex; flex-direction:column; justify-content:center;">
- <h1 class="ch-num">02</h1>
- <h1 class="ch-title">COLOR.</h1>
- <p class="lead" style="max-width:5.6in; margin-top:6pt;">
- Five colours. One of them is yellow. It is a gold standard,
- not a mood — it is applied only where something has earned it.
- </p>
- </div>
- <div class="pfoot"><span>CHAPTER 02 · COLOR</span><span class="pgnum">13</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">02 · COLOR · NIGHT</span></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>NIGHT · PRIMARY</span></div>
- <h2 class="scene">NIGHT<br>IS <span class="accent">PRIMARY.</span></h2>
- <p>
- Night is the working palette. The product is read in dim rooms
- at 2&nbsp;am when something broke. Every shade below has been
- tuned to print as 1&thinsp;px lines on ink bg and still hold
- contrast without glow.
- </p>
- <div style="margin-top:14pt;">
- <div class="swatch">
- <span class="chip" style="background:#0B0B0D;"></span>
- <span class="name">INK · BG</span>
- <span class="hex">#0B0B0D</span>
- </div>
- <div class="swatch">
- <span class="chip" style="background:#F4F2EC;"></span>
- <span class="name">PAPER · INK</span>
- <span class="hex">#F4F2EC</span>
- </div>
- <div class="swatch">
- <span class="chip" style="background:#8A8680;"></span>
- <span class="name">MUTE</span>
- <span class="hex">#8A8680</span>
- </div>
- <div class="swatch">
- <span class="chip" style="background:#2B2A28;"></span>
- <span class="name">FAINT · HAIRLINES</span>
- <span class="hex">#2B2A28</span>
- </div>
- <div class="swatch">
- <span class="chip" style="background:#3A3836;"></span>
- <span class="name">LINE</span>
- <span class="hex">#3A3836</span>
- </div>
- <div class="swatch">
- <span class="chip" style="background:#FFC400;"></span>
- <span class="name">ACCENT · SOLID</span>
- <span class="hex">#FFC400</span>
- </div>
- </div>
- <div class="pfoot"><span>CHAPTER 02 · COLOR</span><span class="pgnum">14</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">02 · COLOR · DAY + ACCENT</span></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>DAY · COURTESY</span></div>
- <h2 class="scene">DAY IS A<br><span class="accent">COURTESY.</span></h2>
- <p>
- Day exists because some surfaces insist on white backgrounds —
- invoices, press releases, partner decks. Accent shifts to ochre
- (<span class="mono">#A06800</span>) so the yellow stays
- brand-adjacent while meeting AA body contrast on cream.
- </p>
- <div style="margin-top:10pt;">
- <div class="swatch">
- <span class="chip" style="background:#F6F4EE;"></span>
- <span class="name">PAPER · BG</span>
- <span class="hex">#F6F4EE</span>
- </div>
- <div class="swatch">
- <span class="chip" style="background:#11120F;"></span>
- <span class="name">INK · INK</span>
- <span class="hex">#11120F</span>
- </div>
- <div class="swatch">
- <span class="chip" style="background:#696762;"></span>
- <span class="name">MUTE</span>
- <span class="hex">#696762</span>
- </div>
- <div class="swatch">
- <span class="chip" style="background:#CFCBBF;"></span>
- <span class="name">FAINT · HAIRLINES</span>
- <span class="hex">#CFCBBF</span>
- </div>
- <div class="swatch">
- <span class="chip" style="background:#A06800;"></span>
- <span class="name">ACCENT · DAY</span>
- <span class="hex">#A06800</span>
- </div>
- </div>
-
- <div class="rule" style="margin-top:16pt;"></div>
- <h3>THE ACCENT IS EARNED.</h3>
- <p>
- Yellow (<span class="mono">#FFC400</span> on night,
- <span class="mono">#A06800</span> on day) is reserved for
- <em>three</em> things: the <span class="accent">.AI</span>
- suffix in the wordmark, the single key number a chart is about,
- and the one word a sentence is pointing to. A row-heading
- painted yellow because it "looks nice" devalues the stamp for
- the thing that actually deserves it.
- </p>
- <div class="pfoot"><span>CHAPTER 02 · COLOR</span><span class="pgnum">15</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">02 · COLOR · USAGE</span></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>USAGE</span></div>
- <h2 class="scene">ONE GOLD<br>PER <span class="accent">ROW.</span></h2>
- <p>
- The block below is a product dashboard fragment rendered only
- with the palette above — ink bg, paper text, mute labels, one
- gold stamp per row on the number the reader is meant to look
- at. No fills, no icons, no gradients.
- </p>
-
- <div class="infog">
- <div class="row"><span class="k">HYBRID QUERY P95</span><span class="v">38&nbsp;MS</span><span class="gold">GOLD</span></div>
- <div class="row"><span class="k">INGEST · SUSTAINED</span><span class="v">1.55&nbsp;M/S</span><span class="gold">GOLD</span></div>
- <div class="row"><span class="k">SIEM AGG · 1 M EVENTS</span><span class="v">0.4&nbsp;MS</span><span class="gold">GOLD</span></div>
- <div class="row"><span class="k">MEMORY · vs 4-NODE ES</span><span class="v">21×&nbsp;LESS</span><span class="gold">GOLD</span></div>
- <div class="row"><span class="k">BINARY · STATIC</span><span class="v">13&nbsp;MB</span><span class="gold">GOLD</span></div>
- <div class="row"><span class="k">COLD START · VS JVM</span><span class="v">300×&nbsp;FASTER</span><span class="gold">GOLD</span></div>
- </div>
-
- <p style="margin-top:10pt; color:var(--z-mute); font-size:9pt;">
- Six numbers, six gold stamps, six 1&thinsp;px dividers, zero
- decoration. Everything a reader needs to know about the product
- is already here.
- </p>
- <div class="pfoot"><span>CHAPTER 02 · COLOR</span><span class="pgnum">16</span></div>
-</div>
-<div class="page" style="display:flex; flex-direction:column; justify-content:space-between;">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">CHAPTER 03 · TYPOGRAPHY</span></div>
- <div style="flex:1; display:flex; flex-direction:column; justify-content:center;">
- <h1 class="ch-num">03</h1>
- <h1 class="ch-title">TYPE.</h1>
- <p class="lead" style="max-width:5.6in; margin-top:6pt;">
- Four typefaces. Seven sizes. Nothing outside this grid ships.
- Type is the primary visual element, not a label next to a
- "real" graphic.
- </p>
- </div>
- <div class="pfoot"><span>CHAPTER 03 · TYPOGRAPHY</span><span class="pgnum">17</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">03 · TYPOGRAPHY · TYPEFACES</span></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>TYPEFACES</span></div>
- <h2 class="scene">FOUR <span class="accent">TYPEFACES.</span></h2>
-
- <div class="tf-row">
- <div class="tf-name">DISPLAY · HEADLINES</div>
- <div style="font-family:var(--font-display); font-weight:900; font-size:48pt; line-height:1; letter-spacing:-0.005em;">BIG SHOULDERS DISPLAY 900</div>
- <p style="margin-top:6pt; color:var(--z-mute); font-size:9pt;">A condensed display face. All caps. Used only in headlines, the wordmark, and hero moments. Never body copy.</p>
- </div>
-
- <div class="tf-row">
- <div class="tf-name">PROSE · BODY COPY</div>
- <div style="font-family:var(--font-prose); font-weight:400; font-size:18pt; line-height:1.3;">Inter Regular. The working voice of the system — long-form reading, captions, documentation.</div>
- </div>
-
- <div class="tf-row">
- <div class="tf-name">DATA · LABELS &amp; CHROME</div>
- <div style="font-family:var(--font-data); font-weight:600; font-size:13pt; letter-spacing:0.14em; text-transform:uppercase;">IBM PLEX SANS 600 · EYEBROWS · KICKERS · UI CHROME</div>
- </div>
-
- <div class="tf-row">
- <div class="tf-name">MONO · NUMBERS &amp; CODE</div>
- <div class="mono" style="font-size:13pt;">JetBrains Mono — identifiers, hex, paths, tabular numerics, p95=38ms</div>
- </div>
- <div class="pfoot"><span>CHAPTER 03 · TYPOGRAPHY</span><span class="pgnum">18</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">03 · TYPOGRAPHY · SCALE</span></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>SCALE</span></div>
- <h2 class="scene">SEVEN <span class="accent">SIZES.</span></h2>
- <p>
- Everything is built from seven sizes. An eighth requires a
- 500-word essay to the team defending the exception.
- </p>
-
- <div class="scale-row"><span class="px">11 PX</span><span style="font-size:11px; font-family:var(--font-data);">EYEBROW · KEY — "TYPE IS THE UI"</span><span class="use">Eyebrow · key</span></div>
- <div class="scale-row"><span class="px">13 PX</span><span style="font-size:13px;">Data · row · legend · 13&thinsp;px</span><span class="use">Data · row</span></div>
- <div class="scale-row"><span class="px">16 PX</span><span style="font-size:16px;">Body copy — reading text · 16&thinsp;px</span><span class="use">Body</span></div>
- <div class="scale-row"><span class="px">20 PX</span><span style="font-size:20px;">Lead paragraph · 20&thinsp;px</span><span class="use">Lead</span></div>
- <div class="scale-row"><span class="px">32 PX</span><span style="font-size:32px; font-family:var(--font-display); font-weight:900;">SECTION H4 · 32</span><span class="use">Section h4</span></div>
- <div class="scale-row"><span class="px">56 PX</span><span style="font-size:48px; font-family:var(--font-display); font-weight:900; line-height:1;">SECTION H3</span><span class="use">Section h3</span></div>
- <div class="scale-row"><span class="px">96 PX</span><span style="font-size:72px; font-family:var(--font-display); font-weight:900; line-height:1;">SCENE</span><span class="use">Scene h2</span></div>
- <div class="pfoot"><span>CHAPTER 03 · TYPOGRAPHY</span><span class="pgnum">19</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">03 · TYPOGRAPHY · GRID</span></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>GRID &amp; HIERARCHY</span></div>
- <h2 class="scene">12 COLUMNS.<br>24 PX <span class="accent">GUTTERS.</span></h2>
-
- <div class="swatch"><span style="font-family:var(--font-data); font-size:9pt; color:var(--z-mute); letter-spacing:var(--track-ui); text-transform:uppercase;">COLUMNS</span><span style="font-family:var(--font-prose); color:var(--z-ink);">12 — same on marketing, brand, product</span><span class="mono" style="color:var(--z-mute);">12</span></div>
- <div class="swatch"><span style="font-family:var(--font-data); font-size:9pt; color:var(--z-mute); letter-spacing:var(--track-ui); text-transform:uppercase;">GUTTER</span><span style="font-family:var(--font-prose); color:var(--z-ink);">24 px horizontal</span><span class="mono" style="color:var(--z-mute);">24 PX</span></div>
- <div class="swatch"><span style="font-family:var(--font-data); font-size:9pt; color:var(--z-mute); letter-spacing:var(--track-ui); text-transform:uppercase;">VERTICAL RHYTHM</span><span style="font-family:var(--font-prose); color:var(--z-ink);">4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96 · 128</span><span class="mono" style="color:var(--z-mute);">8-STEP</span></div>
- <div class="swatch"><span style="font-family:var(--font-data); font-size:9pt; color:var(--z-mute); letter-spacing:var(--track-ui); text-transform:uppercase;">MAX WIDTH</span><span style="font-family:var(--font-prose); color:var(--z-ink);">1680 px · centered above that</span><span class="mono" style="color:var(--z-mute);">1680</span></div>
- <div class="swatch"><span style="font-family:var(--font-data); font-size:9pt; color:var(--z-mute); letter-spacing:var(--track-ui); text-transform:uppercase;">BREAKPOINT</span><span style="font-family:var(--font-prose); color:var(--z-ink);">Single — 960 px</span><span class="mono" style="color:var(--z-mute);">960</span></div>
-
- <p style="margin-top:14pt; color:var(--z-mute); font-size:9pt;">
- There is no tablet layout. The product does not have a tablet
- user. Below 960&thinsp;px the hero folds to 96&thinsp;px and
- metrics stack two-up — everything else collapses naturally.
- </p>
-
- <div class="rule" style="margin-top:14pt;"></div>
- <h3>SCALE IS THE HIERARCHY.</h3>
- <p>
- Nothing bold, nothing italic, nothing larger than the next rung
- on the ladder. If a designer wants emphasis, they pick a bigger
- size — they do not bold the word. The scale carries meaning;
- weight is reserved for the typefaces themselves.
- </p>
- <div class="pfoot"><span>CHAPTER 03 · TYPOGRAPHY</span><span class="pgnum">20</span></div>
-</div>
-<div class="page" style="display:flex; flex-direction:column; justify-content:space-between;">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">CHAPTER 04 · UX &amp; DATA</span></div>
- <div style="flex:1; display:flex; flex-direction:column; justify-content:center;">
- <h1 class="ch-num">04</h1>
- <h1 class="ch-title">UX &amp; DATA.</h1>
- <p class="lead" style="max-width:5.6in; margin-top:6pt;">
- Seventeen chart primitives. All 1&thinsp;px. An AI data
- company that cannot show a chart cleanly cannot sell storage
- cleanly either. Type is the infographic.
- </p>
- </div>
- <div class="pfoot"><span>CHAPTER 04 · UX &amp; DATA</span><span class="pgnum">21</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">04 · UX · PRIMITIVES 01-02</span></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>CORE PRIMITIVES</span></div>
- <h2 class="scene">01 · METRIC.<br>02 · <span class="accent">SERIES.</span></h2>
-
- <h4>01 · METRIC · HEADLINE + 1PX SPARK</h4>
- <p>A number and its trend shape. No axis, no grid — the shape is the annotation.</p>
- <div class="chart-card">
- <div class="kicker"><span>INGEST · SUSTAINED</span></div>
- <div style="display:grid; grid-template-columns: auto 1fr auto; gap:16pt; align-items:baseline; margin-top:6pt; color:var(--z-ink);">
- <div style="font-family:var(--font-display); font-weight:900; font-size:60pt; line-height:0.9; color:var(--z-accent);">1.55<span style="font-family:var(--font-data); font-size:14pt; color:var(--z-mute); letter-spacing:var(--track-ui); margin-left:6pt;">M/S</span></div>
- <div style="max-width:3.4in; color:var(--z-ink);"><svg viewBox="0 0 260 40" preserveAspectRatio="none" style="width:100%; height:40px;"><polyline points="0.0,11.9 5.5,2.0 11.1,3.0 16.6,5.7 22.1,0.5 27.7,3.5 33.2,5.9 38.7,0.0 44.3,3.8 49.8,9.8 55.3,9.9 60.9,20.4 66.4,31.1 71.9,31.7 77.4,37.2 83.0,38.4 88.5,27.4 94.0,22.6 99.6,17.5 105.1,5.5 110.6,4.4 116.2,5.7 121.7,0.1 127.2,3.4 132.8,6.3 138.3,0.2 143.8,2.8 149.4,6.9 154.9,4.9 160.4,13.8 166.0,24.4 171.5,26.6 177.0,35.1 182.6,40.0 188.1,32.2 193.6,29.2 199.1,24.2 204.7,10.8 210.2,7.5 215.7,6.8 221.3,0.0 226.8,3.0 232.3,6.3 237.9,0.6 243.4,2.9 248.9,5.7 254.5,1.6 260.0,8.4" fill="none" stroke="currentColor" stroke-width="1"/></svg></div>
- <div style="text-align:right; font-family:var(--font-data); font-size:9pt; letter-spacing:var(--track-ui); text-transform:uppercase;">
- <span class="accent">▲ 3.1 %</span><br>
- <span style="color:var(--z-mute); font-size:8pt;">vs 24 H</span>
- </div>
- </div>
- </div>
-
- <h4 style="margin-top:18pt;">02 · SERIES · 1 PX TIME LINE</h4>
- <p>One stroke across the panel. Endpoints called out beneath, never floating over the curve.</p>
- <div class="chart-card">
- <div class="kicker"><span>HYBRID QUERY P95</span><span class="dash">·</span><span>48 H</span></div>
- <div style="margin-top:8pt;"><svg viewBox="0 0 1200 130" preserveAspectRatio="none" style="width:100%; height:130px;"><polyline points="0.0,26.7 25.5,10.4 51.1,0.0 76.6,11.5 102.1,8.5 127.7,23.2 153.2,19.2 178.7,12.6 204.3,20.5 229.8,9.4 255.3,15.6 280.9,6.8 306.4,2.4 331.9,20.9 357.4,28.0 383.0,57.2 408.5,71.7 434.0,85.7 459.6,113.2 485.1,117.1 510.6,130.0 536.2,117.0 561.7,96.4 587.2,87.6 612.8,59.2 638.3,48.9 663.8,25.0 689.4,6.4 714.9,11.1 740.4,3.7 766.0,17.2 791.5,14.7 817.0,11.5 842.6,23.2 868.1,14.8 893.6,21.5 919.1,10.1 944.7,0.2 970.2,11.2 995.7,10.1 1021.3,32.3 1046.8,42.5 1072.3,56.3 1097.9,88.1 1123.4,100.3 1148.9,124.2 1174.5,123.1 1200.0,113.5" fill="none" stroke="currentColor" stroke-width="1"/></svg></div>
- <div class="legend">
- <span>48 H AGO · <span class="mono">27.0 ms</span></span>
- <span class="mid">min <span class="mono">15.0</span> · peak <span class="mono">30.1</span></span>
- <span><span class="mono accent">16.9 ms</span> · NOW</span>
- </div>
- </div>
- <div class="pfoot"><span>CHAPTER 04 · UX &amp; DATA</span><span class="pgnum">22</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">04 · UX · PRIMITIVES 03-04</span></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>CORE PRIMITIVES</span></div>
- <h2 class="scene">03 · TOP-N.<br>04 · <span class="accent">DIST.</span></h2>
-
- <h4>03 · TOP-N · RANKED WITH 1 PX BARS</h4>
- <p>Replaces the horizontal-bar chart. A ranked list <em>is</em> one — label, value, bar, share.</p>
- <div class="chart-card">
- <div class="kicker"><span>TOP ENDPOINTS</span><span class="dash">·</span><span>1 M REQUESTS · 24 H</span></div>
- <div class="topn-list" style="margin-top:6pt; color:var(--z-ink);">
- <div class="row">
- <span class="row__label mono">/v2/search</span>
- <span class="row__val mono">4,230</span>
- <span class="row__bar"><svg viewBox="0 0 1000 6" preserveAspectRatio="none"><line x1="0" y1="3" x2="1000.0" y2="3" stroke="currentColor" stroke-width="1"/></svg></span>
- <span class="row__pct mono">27.7%</span>
- </div>
- <div class="row">
- <span class="row__label mono">/v2/catalog</span>
- <span class="row__val mono">3,180</span>
- <span class="row__bar"><svg viewBox="0 0 1000 6" preserveAspectRatio="none"><line x1="0" y1="3" x2="751.8" y2="3" stroke="currentColor" stroke-width="1"/></svg></span>
- <span class="row__pct mono">20.8%</span>
- </div>
- <div class="row">
- <span class="row__label mono">/v2/cart</span>
- <span class="row__val mono">2,564</span>
- <span class="row__bar"><svg viewBox="0 0 1000 6" preserveAspectRatio="none"><line x1="0" y1="3" x2="606.1" y2="3" stroke="currentColor" stroke-width="1"/></svg></span>
- <span class="row__pct mono">16.8%</span>
- </div>
- <div class="row">
- <span class="row__label mono">/auth/session</span>
- <span class="row__val mono">1,923</span>
- <span class="row__bar"><svg viewBox="0 0 1000 6" preserveAspectRatio="none"><line x1="0" y1="3" x2="454.6" y2="3" stroke="currentColor" stroke-width="1"/></svg></span>
- <span class="row__pct mono">12.6%</span>
- </div>
- <div class="row">
- <span class="row__label mono">/billing/create</span>
- <span class="row__val mono">1,340</span>
- <span class="row__bar"><svg viewBox="0 0 1000 6" preserveAspectRatio="none"><line x1="0" y1="3" x2="316.8" y2="3" stroke="currentColor" stroke-width="1"/></svg></span>
- <span class="row__pct mono">8.8%</span>
- </div>
- <div class="row">
- <span class="row__label mono">/users/me</span>
- <span class="row__val mono">912</span>
- <span class="row__bar"><svg viewBox="0 0 1000 6" preserveAspectRatio="none"><line x1="0" y1="3" x2="215.6" y2="3" stroke="currentColor" stroke-width="1"/></svg></span>
- <span class="row__pct mono">6.0%</span>
- </div>
- <div class="row">
- <span class="row__label mono">/admin/logs</span>
- <span class="row__val mono">680</span>
- <span class="row__bar"><svg viewBox="0 0 1000 6" preserveAspectRatio="none"><line x1="0" y1="3" x2="160.8" y2="3" stroke="currentColor" stroke-width="1"/></svg></span>
- <span class="row__pct mono">4.5%</span>
- </div>
- <div class="row">
- <span class="row__label mono">/static/favicon</span>
- <span class="row__val mono">445</span>
- <span class="row__bar"><svg viewBox="0 0 1000 6" preserveAspectRatio="none"><line x1="0" y1="3" x2="105.2" y2="3" stroke="currentColor" stroke-width="1"/></svg></span>
- <span class="row__pct mono">2.9%</span>
- </div>
- </div>
- </div>
-
- <h4 style="margin-top:18pt;">04 · DIST · 1 PX SEGMENTED BAR</h4>
- <p>Replaces pie and donut. Opacity carries the segment identity; lengths carry the share.</p>
- <div class="chart-card">
- <div class="kicker"><span>HTTP STATUS</span><span class="dash">·</span><span>24 H</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">
- <svg class="chart dist-bar" viewBox="0 0 1200 10" preserveAspectRatio="none"><line x1="0.0" y1="5" x2="1124.3" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="1.00"/><line x1="1124.3" y1="5" x2="1172.2" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="0.80"/><line x1="1172.2" y1="5" x2="1194.4" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="0.60"/><line x1="1194.4" y1="5" x2="1200.0" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="0.40"/></svg>
- <div class="dist-legend">
- <div class="stack"><span class="key">2XX</span><span class="mono big">9,620</span><span class="mono faint">93.7%</span></div>
- <div class="stack"><span class="key">3XX</span><span class="mono big">410</span><span class="mono faint">4.0%</span></div>
- <div class="stack"><span class="key">4XX</span><span class="mono big">190</span><span class="mono faint">1.9%</span></div>
- <div class="stack"><span class="key">5XX</span><span class="mono big">48</span><span class="mono faint">0.5%</span></div>
- </div>
- </div>
- </div>
- <div class="pfoot"><span>CHAPTER 04 · UX &amp; DATA</span><span class="pgnum">23</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">04 · UX · PRIMITIVES 05-06</span></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>CORE PRIMITIVES</span></div>
- <h2 class="scene">05 · HEATMAP.<br>06 · <span class="accent">GAUGE.</span></h2>
-
- <h4>05 · HEATMAP · NUMBERS ARE THE VISUALISATION</h4>
- <p>A grid where text opacity encodes magnitude. No cells, no boxes, no colour bands.</p>
- <div class="chart-card">
- <div class="kicker"><span>AGENT ACTIVITY</span><span class="dash">·</span><span>COHORT × HOUR</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">
- <div class="heatmap"><div class="heatmap-row heatmap-head"><span class="row-label">&nbsp;</span><span class="hc">00</span><span class="hc">02</span><span class="hc">04</span><span class="hc">06</span><span class="hc">08</span><span class="hc">10</span><span class="hc">12</span><span class="hc">14</span><span class="hc">16</span><span class="hc">18</span><span class="hc">20</span><span class="hc">22</span></div><div class="heatmap-row"><span class="row-label">COHORT A</span><span class="hc" style="opacity:0.23;">28</span><span class="hc" style="opacity:0.22;">27</span><span class="hc" style="opacity:0.25;">33</span><span class="hc" style="opacity:0.36;">53</span><span class="hc" style="opacity:0.51;">81</span><span class="hc" style="opacity:0.71;">118</span><span class="hc" style="opacity:0.82;">138</span><span class="hc" style="opacity:0.85;">144</span><span class="hc" style="opacity:0.80;">134</span><span class="hc" style="opacity:0.67;">110</span><span class="hc" style="opacity:0.55;">87</span><span class="hc" style="opacity:0.37;">55</span></div><div class="heatmap-row"><span class="row-label">COHORT B</span><span class="hc" style="opacity:0.26;">34</span><span class="hc" style="opacity:0.25;">33</span><span class="hc" style="opacity:0.29;">39</span><span class="hc" style="opacity:0.39;">59</span><span class="hc" style="opacity:0.55;">87</span><span class="hc" style="opacity:0.70;">115</span><span class="hc" style="opacity:0.85;">144</span><span class="hc" style="opacity:0.89;">150</span><span class="hc" style="opacity:0.83;">140</span><span class="hc" style="opacity:0.70;">116</span><span class="hc" style="opacity:0.58;">93</span><span class="hc" style="opacity:0.40;">61</span></div><div class="heatmap-row"><span class="row-label">COHORT C</span><span class="hc" style="opacity:0.29;">40</span><span class="hc" style="opacity:0.24;">30</span><span class="hc" style="opacity:0.32;">45</span><span class="hc" style="opacity:0.43;">65</span><span class="hc" style="opacity:0.58;">93</span><span class="hc" style="opacity:0.73;">121</span><span class="hc" style="opacity:0.89;">150</span><span class="hc" style="opacity:0.92;">156</span><span class="hc" style="opacity:0.86;">146</span><span class="hc" style="opacity:0.73;">122</span><span class="hc" style="opacity:0.56;">90</span><span class="hc" style="opacity:0.44;">67</span></div><div class="heatmap-row"><span class="row-label">COHORT D</span><span class="hc" style="opacity:0.32;">46</span><span class="hc" style="opacity:0.27;">36</span><span class="hc" style="opacity:0.35;">51</span><span class="hc" style="opacity:0.46;">71</span><span class="hc" style="opacity:0.61;">99</span><span class="hc" style="opacity:0.76;">127</span><span class="hc" style="opacity:0.87;">147</span><span class="hc" style="opacity:0.95;">162</span><span class="hc" style="opacity:0.90;">152</span><span class="hc" style="opacity:0.77;">128</span><span class="hc" style="opacity:0.59;">96</span><span class="hc" style="opacity:0.47;">73</span></div><div class="heatmap-row"><span class="row-label">COHORT E</span><span class="hc" style="opacity:0.36;">52</span><span class="hc" style="opacity:0.30;">42</span><span class="hc" style="opacity:0.33;">48</span><span class="hc" style="opacity:0.49;">77</span><span class="hc" style="opacity:0.64;">105</span><span class="hc" style="opacity:0.79;">133</span><span class="hc" style="opacity:0.90;">153</span><span class="hc" style="opacity:0.98;">168</span><span class="hc" style="opacity:0.93;">158</span><span class="hc" style="opacity:0.80;">134</span><span class="hc" style="opacity:0.63;">102</span><span class="hc" style="opacity:0.45;">70</span></div><div class="heatmap-row"><span class="row-label">COHORT F</span><span class="hc" style="opacity:0.39;">58</span><span class="hc" style="opacity:0.33;">48</span><span class="hc" style="opacity:0.37;">54</span><span class="hc" style="opacity:0.52;">83</span><span class="hc" style="opacity:0.67;">111</span><span class="hc" style="opacity:0.83;">139</span><span class="hc" style="opacity:0.94;">159</span><span class="hc" style="opacity:0.97;">165</span><span class="hc" style="opacity:0.96;">164</span><span class="hc" style="opacity:0.83;">140</span><span class="hc" style="opacity:0.66;">108</span><span class="hc" style="opacity:0.49;">76</span></div><div class="heatmap-row"><span class="row-label">COHORT G</span><span class="hc" style="opacity:0.42;">64</span><span class="hc" style="opacity:0.37;">54</span><span class="hc" style="opacity:0.40;">60</span><span class="hc" style="opacity:0.51;">80</span><span class="hc" style="opacity:0.71;">117</span><span class="hc" style="opacity:0.86;">145</span><span class="hc" style="opacity:0.97;">165</span><span class="hc" style="opacity:1.00;">171</span><span class="hc" style="opacity:0.99;">170</span><span class="hc" style="opacity:0.86;">146</span><span class="hc" style="opacity:0.69;">114</span><span class="hc" style="opacity:0.52;">82</span></div></div>
- </div>
- </div>
-
- <h4 style="margin-top:18pt;">06 · GAUGE · 1 PX TRACK</h4>
- <p>A bounded track that fills from zero to the reading. The threshold is a single 1&thinsp;px tick.</p>
- <div class="chart-card">
- <div class="kicker"><span>DISK PRESSURE · WAL VOLUME</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">
- <div style="display:flex; align-items:baseline; justify-content:space-between;">
- <div style="font-family: var(--font-display); font-weight:900; font-size:72px; color:var(--z-accent); line-height:1;">73<span style="font-family:var(--font-data); font-size:20px; color:var(--z-mute); letter-spacing:var(--track-ui); margin-left:6px;">%</span></div>
- <span class="kicker">THRESHOLD · 85%</span>
- </div>
- <svg viewBox="0 0 600 14" preserveAspectRatio="none" style="width:100%; height:14px; margin-top:10px;">
- <line x1="0" y1="13" x2="600" y2="13" stroke="currentColor" stroke-width="1" stroke-opacity="0.2"/>
- <line x1="0" y1="13" x2="438.0" y2="13" stroke="currentColor" stroke-width="1"/>
- <line x1="510.0" y1="3" x2="510.0" y2="13" stroke="currentColor" stroke-width="1" stroke-opacity="0.5"/>
- </svg>
- <div style="display:flex; justify-content:space-between; margin-top:4px; font-family:var(--font-data); font-size:10px; letter-spacing:var(--track-ui); color:var(--z-mute);">
- <span>0</span><span>100 %</span>
- </div></div>
- </div>
- <div class="pfoot"><span>CHAPTER 04 · UX &amp; DATA</span><span class="pgnum">24</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">04 · UX · PRIMITIVES 07-08</span></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>EXPANDED</span></div>
- <h2 class="scene">07 · MULTIPLES.<br>08 · <span class="accent">BAR.</span></h2>
-
- <h4>07 · MULTIPLES · EIGHT SPARKS</h4>
- <p>One sparkline per dimension. The reader scans for the one that broke ranks.</p>
- <div class="chart-card">
- <div class="kicker"><span>SERVICE LATENCIES</span><span class="dash">·</span><span>P95 · 24 H</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);"><div class="mult-grid"> <div class="mult-cell">
- <div class="mult-head"><span>API GATEWAY</span><span class="mono" style="color:var(--z-ink); font-weight:700;">58</span></div>
- <svg viewBox="0 0 180 22" preserveAspectRatio="none"><polyline points="0.0,4.8 7.8,1.5 15.7,0.0 23.5,2.0 31.3,1.8 39.1,1.1 47.0,2.3 54.8,0.9 62.6,0.2 70.4,3.5 78.3,6.2 86.1,10.3 93.9,17.1 101.7,20.4 109.6,21.4 117.4,22.0 125.2,17.6 133.0,11.8 140.9,8.3 148.7,3.5 156.5,0.5 164.3,1.6 172.2,1.3 180.0,1.0" fill="none" stroke="currentColor" stroke-width="1"/></svg>
- </div>
- <div class="mult-cell">
- <div class="mult-head"><span>AUTH</span><span class="mono" style="color:var(--z-ink); font-weight:700;">55</span></div>
- <svg viewBox="0 0 180 22" preserveAspectRatio="none"><polyline points="0.0,2.0 7.8,0.0 15.7,2.0 23.5,3.2 31.3,4.7 39.1,7.9 47.0,8.2 54.8,8.1 62.6,10.2 70.4,10.9 78.3,12.7 86.1,17.3 93.9,19.6 101.7,20.8 109.6,22.0 117.4,18.9 125.2,13.8 133.0,10.1 140.9,4.8 148.7,1.0 156.5,1.4 164.3,1.5 172.2,2.8 180.0,6.4" fill="none" stroke="currentColor" stroke-width="1"/></svg>
- </div>
- <div class="mult-cell">
- <div class="mult-head"><span>BILLING</span><span class="mono" style="color:var(--z-ink); font-weight:700;">52</span></div>
- <svg viewBox="0 0 180 22" preserveAspectRatio="none"><polyline points="0.0,0.0 7.8,1.6 15.7,3.2 23.5,6.2 31.3,11.4 39.1,13.7 47.0,14.7 54.8,16.9 62.6,16.5 70.4,16.2 78.3,18.8 86.1,19.7 93.9,20.3 101.7,22.0 109.6,19.8 117.4,15.6 125.2,12.3 133.0,6.5 140.9,1.8 148.7,1.3 156.5,1.1 164.3,3.0 172.2,8.2 180.0,11.2" fill="none" stroke="currentColor" stroke-width="1"/></svg>
- </div>
- <div class="mult-cell">
- <div class="mult-head"><span>CHECKOUT</span><span class="mono" style="color:var(--z-ink); font-weight:700;">47</span></div>
- <svg viewBox="0 0 180 22" preserveAspectRatio="none"><polyline points="0.0,0.6 7.8,1.9 15.7,5.3 23.5,12.1 31.3,16.2 39.1,18.9 47.0,22.0 54.8,21.1 62.6,19.2 70.4,19.5 78.3,18.1 86.1,17.2 93.9,18.7 101.7,17.1 109.6,14.2 117.4,12.2 125.2,7.0 133.0,2.1 140.9,1.0 148.7,0.0 156.5,1.6 164.3,7.6 172.2,12.1 180.0,16.1" fill="none" stroke="currentColor" stroke-width="1"/></svg>
- </div>
- <div class="mult-cell">
- <div class="mult-head"><span>SEARCH</span><span class="mono" style="color:var(--z-ink); font-weight:700;">40</span></div>
- <svg viewBox="0 0 180 22" preserveAspectRatio="none"><polyline points="0.0,1.0 7.8,3.6 15.7,9.9 23.5,14.4 31.3,18.1 39.1,22.0 47.0,21.5 54.8,19.0 62.6,17.7 70.4,14.1 78.3,11.3 86.1,11.5 93.9,10.1 101.7,8.6 109.6,8.6 117.4,5.6 125.2,2.2 133.0,1.4 140.9,0.0 148.7,0.7 156.5,5.7 164.3,9.9 172.2,14.4 180.0,20.0" fill="none" stroke="currentColor" stroke-width="1"/></svg>
- </div>
- <div class="mult-cell">
- <div class="mult-head"><span>CATALOG</span><span class="mono" style="color:var(--z-ink); font-weight:700;">38</span></div>
- <svg viewBox="0 0 180 22" preserveAspectRatio="none"><polyline points="0.0,2.1 7.8,7.8 15.7,12.2 23.5,16.6 31.3,21.7 39.1,22.0 47.0,19.5 54.8,17.2 62.6,11.6 70.4,6.4 78.3,4.8 86.1,2.5 93.9,1.5 101.7,3.3 109.6,2.4 117.4,1.0 125.2,1.5 133.0,0.1 140.9,0.0 148.7,4.2 156.5,7.7 164.3,12.3 172.2,18.8 180.0,21.3" fill="none" stroke="currentColor" stroke-width="1"/></svg>
- </div>
- <div class="mult-cell">
- <div class="mult-head"><span>INGEST</span><span class="mono" style="color:var(--z-ink); font-weight:700;">38</span></div>
- <svg viewBox="0 0 180 22" preserveAspectRatio="none"><polyline points="0.0,11.1 7.8,13.6 15.7,16.6 23.5,21.2 31.3,22.0 39.1,20.5 47.0,18.8 54.8,13.3 62.6,7.3 70.4,4.5 78.3,1.2 86.1,0.0 93.9,2.5 101.7,3.6 109.6,4.6 117.4,7.1 125.2,6.9 133.0,6.7 140.9,9.3 148.7,10.8 156.5,13.4 164.3,18.5 172.2,20.8 180.0,21.3" fill="none" stroke="currentColor" stroke-width="1"/></svg>
- </div>
- <div class="mult-cell">
- <div class="mult-head"><span>VECTORS</span><span class="mono" style="color:var(--z-ink); font-weight:700;">40</span></div>
- <svg viewBox="0 0 180 22" preserveAspectRatio="none"><polyline points="0.0,16.5 7.8,17.5 15.7,20.9 23.5,21.6 31.3,20.8 39.1,20.1 47.0,15.4 54.8,9.6 62.6,6.1 70.4,2.0 78.3,0.0 86.1,2.5 93.9,4.6 101.7,7.3 109.6,11.9 117.4,13.3 125.2,13.7 133.0,15.6 140.9,15.5 148.7,16.0 156.5,19.2 164.3,20.5 172.2,21.0 180.0,22.0" fill="none" stroke="currentColor" stroke-width="1"/></svg>
- </div></div></div>
- </div>
-
- <h4 style="margin-top:18pt;">08 · BAR · VERTICAL 1 PX LINES</h4>
- <p>A bar is a stroke from baseline to value. No fill, no cap, no outline.</p>
- <div class="chart-card">
- <div class="kicker"><span>QUERIES BY HOUR</span><span class="dash">·</span><span>LAST 24 H</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">
- <svg viewBox="0 0 1200 150" preserveAspectRatio="none" style="width:100%; height:150px;"><line x1="25.0" y1="150" x2="25.0" y2="28.3" stroke="currentColor" stroke-width="1"/><line x1="75.0" y1="150" x2="75.0" y2="16.9" stroke="currentColor" stroke-width="1"/><line x1="125.0" y1="150" x2="125.0" y2="7.5" stroke="currentColor" stroke-width="1"/><line x1="175.0" y1="150" x2="175.0" y2="0.0" stroke="currentColor" stroke-width="1"/><line x1="225.0" y1="150" x2="225.0" y2="8.8" stroke="currentColor" stroke-width="1"/><line x1="275.0" y1="150" x2="275.0" y2="4.8" stroke="currentColor" stroke-width="1"/><line x1="325.0" y1="150" x2="325.0" y2="1.9" stroke="currentColor" stroke-width="1"/><line x1="375.0" y1="150" x2="375.0" y2="14.3" stroke="currentColor" stroke-width="1"/><line x1="425.0" y1="150" x2="425.0" y2="12.6" stroke="currentColor" stroke-width="1"/><line x1="475.0" y1="150" x2="475.0" y2="10.9" stroke="currentColor" stroke-width="1"/><line x1="525.0" y1="150" x2="525.0" y2="9.1" stroke="currentColor" stroke-width="1"/><line x1="575.0" y1="150" x2="575.0" y2="21.3" stroke="currentColor" stroke-width="1"/><line x1="625.0" y1="150" x2="625.0" y2="18.8" stroke="currentColor" stroke-width="1"/><line x1="675.0" y1="150" x2="675.0" y2="16.0" stroke="currentColor" stroke-width="1"/><line x1="725.0" y1="150" x2="725.0" y2="27.6" stroke="currentColor" stroke-width="1"/><line x1="775.0" y1="150" x2="775.0" y2="25.0" stroke="currentColor" stroke-width="1"/><line x1="825.0" y1="150" x2="825.0" y2="22.9" stroke="currentColor" stroke-width="1"/><line x1="875.0" y1="150" x2="875.0" y2="21.7" stroke="currentColor" stroke-width="1"/><line x1="925.0" y1="150" x2="925.0" y2="36.1" stroke="currentColor" stroke-width="1"/><line x1="975.0" y1="150" x2="975.0" y2="37.2" stroke="currentColor" stroke-width="1"/><line x1="1025.0" y1="150" x2="1025.0" y2="39.6" stroke="currentColor" stroke-width="1"/><line x1="1075.0" y1="150" x2="1075.0" y2="57.5" stroke="currentColor" stroke-width="1"/><line x1="1125.0" y1="150" x2="1125.0" y2="61.7" stroke="currentColor" stroke-width="1"/><line x1="1175.0" y1="150" x2="1175.0" y2="66.3" stroke="currentColor" stroke-width="1"/></svg>
- <div class="legend">
- <span>00:00</span>
- <span class="mid">min <span class="mono">41</span> · peak <span class="mono">73</span></span>
- <span>23:00</span>
- </div></div>
- </div>
- <div class="pfoot"><span>CHAPTER 04 · UX &amp; DATA</span><span class="pgnum">25</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">04 · UX · PRIMITIVES 09-10</span></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>EXPANDED</span></div>
- <h2 class="scene">09 · SCATTER.<br>10 · <span class="accent">STACKED.</span></h2>
-
- <h4>09 · SCATTER · DOTS ARE CHARACTERS</h4>
- <p>The only chart with "point markers" — because the <span class="mono">·</span> <em>is</em> the datum.</p>
- <div class="chart-card">
- <div class="kicker"><span>LATENCY × THROUGHPUT</span><span class="dash">·</span><span>80 TENANTS</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">
- <div style="position:relative; width:100%; height:220px;"><span style="position:absolute; left:50.30%; top:52.42%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:29.25%; top:75.95%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:74.00%; top:26.09%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:0.73%; top:97.91%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:0.00%; top:93.74%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:46.27%; top:50.89%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:64.91%; top:21.40%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:62.45%; top:51.04%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:85.25%; top:30.62%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:20.52%; top:89.11%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:80.68%; top:29.91%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:87.59%; top:15.10%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:80.19%; top:17.96%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:59.83%; top:64.83%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:19.79%; top:93.93%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:16.06%; top:87.40%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:57.48%; top:49.81%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:17.67%; top:69.12%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:63.96%; top:54.88%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:61.28%; top:41.46%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:94.81%; top:13.54%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:72.35%; top:33.09%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:14.21%; top:86.57%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:21.58%; top:63.91%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:77.63%; top:20.26%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:48.41%; top:67.79%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:22.11%; top:75.91%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:29.38%; top:65.73%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:33.39%; top:50.87%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:40.28%; top:70.65%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:16.81%; top:82.19%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:31.96%; top:67.88%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:92.94%; top:0.21%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:69.56%; top:19.60%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:65.34%; top:49.02%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:52.35%; top:47.37%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:54.41%; top:49.93%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:27.59%; top:87.82%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:93.11%; top:28.13%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:63.16%; top:56.22%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:72.53%; top:26.29%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:40.13%; top:60.31%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:15.50%; top:87.30%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:73.52%; top:42.53%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:91.74%; top:37.67%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:37.72%; top:50.70%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:63.75%; top:35.35%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:47.69%; top:41.75%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:35.32%; top:62.93%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:62.19%; top:43.48%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:95.52%; top:16.71%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:41.66%; top:64.48%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:36.12%; top:79.80%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:14.29%; top:77.61%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:33.48%; top:69.82%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:4.78%; top:89.33%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:15.11%; top:68.75%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:54.15%; top:42.62%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:68.80%; top:43.41%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:40.70%; top:64.48%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:72.54%; top:22.84%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:10.85%; top:97.11%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:74.87%; top:35.86%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:42.21%; top:68.77%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:35.72%; top:80.85%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:81.51%; top:40.19%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:100.00%; top:0.00%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:93.84%; top:31.02%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:40.88%; top:61.80%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:6.81%; top:80.64%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:34.01%; top:79.15%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:51.77%; top:48.89%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:58.22%; top:63.34%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:40.87%; top:72.61%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:57.68%; top:67.52%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:55.97%; top:39.39%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:28.39%; top:100.00%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:22.82%; top:79.22%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:16.69%; top:68.33%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span><span style="position:absolute; left:28.14%; top:75.73%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span></div>
- <div class="legend">
- <span>LATENCY <span class="mono">16..107 ms</span></span>
- <span class="mid"><span class="mono">80</span> points</span>
- <span>THROUGHPUT <span class="mono">11..92 rps</span></span>
- </div></div>
- </div>
-
- <h4 style="margin-top:18pt;">10 · STACKED · HORIZONTAL DISTRIBUTIONS</h4>
- <p>One <span class="mono">DIST</span> per row. Opacity carries the segment; lengths carry share.</p>
- <div class="chart-card">
- <div class="kicker"><span>HTTP STATUS BY REGION</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);"><div class="stk-wrap"> <div class="stk-row">
- <span class="stk-lbl">US</span>
- <svg viewBox="0 0 1200 10" preserveAspectRatio="none" style="width:100%; height:10px;"><line x1="0.0" y1="5" x2="1124.3" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="1.00"/><line x1="1124.3" y1="5" x2="1172.2" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="0.84"/><line x1="1172.2" y1="5" x2="1194.4" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="0.68"/><line x1="1194.4" y1="5" x2="1200.0" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="0.52"/></svg>
- <span class="mono faint">10.3K</span>
- </div>
- <div class="stk-row">
- <span class="stk-lbl">DE</span>
- <svg viewBox="0 0 1200 10" preserveAspectRatio="none" style="width:100%; height:10px;"><line x1="0.0" y1="5" x2="1124.4" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="1.00"/><line x1="1124.4" y1="5" x2="1172.3" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="0.84"/><line x1="1172.3" y1="5" x2="1194.5" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="0.68"/><line x1="1194.5" y1="5" x2="1200.0" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="0.52"/></svg>
- <span class="mono faint">6.2K</span>
- </div>
- <div class="stk-row">
- <span class="stk-lbl">JP</span>
- <svg viewBox="0 0 1200 10" preserveAspectRatio="none" style="width:100%; height:10px;"><line x1="0.0" y1="5" x2="1124.7" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="1.00"/><line x1="1124.7" y1="5" x2="1172.5" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="0.84"/><line x1="1172.5" y1="5" x2="1194.5" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="0.68"/><line x1="1194.5" y1="5" x2="1200.0" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="0.52"/></svg>
- <span class="mono faint">4.6K</span>
- </div>
- <div class="stk-row">
- <span class="stk-lbl">BR</span>
- <svg viewBox="0 0 1200 10" preserveAspectRatio="none" style="width:100%; height:10px;"><line x1="0.0" y1="5" x2="1124.4" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="1.00"/><line x1="1124.4" y1="5" x2="1172.3" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="0.84"/><line x1="1172.3" y1="5" x2="1194.5" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="0.68"/><line x1="1194.5" y1="5" x2="1200.0" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="0.52"/></svg>
- <span class="mono faint">3.1K</span>
- </div></div><div class="stk-legend">2XX · 3XX · 4XX · 5XX</div></div>
- </div>
- <div class="pfoot"><span>CHAPTER 04 · UX &amp; DATA</span><span class="pgnum">26</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">04 · UX · PRIMITIVES 11-12</span></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>EXPANDED</span></div>
- <h2 class="scene">11 · TREEMAP.<br>12 · <span class="accent">EVENTS.</span></h2>
-
- <h4>11 · TREEMAP · INDENTED HIERARCHY</h4>
- <p>Not D3 — no packed rectangles. An indented ranked list with 1&thinsp;px bars, one row per node.</p>
- <div class="chart-card">
- <div class="kicker"><span>REQUEST TREE</span><span class="dash">·</span><span>API GATEWAY</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);"><div class="topn-list"> <div class="row">
- <span class="row__label mono"><span class="faint"></span>root</span>
- <span class="row__val mono">13.0K</span>
- <span class="row__bar"><svg viewBox="0 0 200 6" preserveAspectRatio="none"><line x1="0" y1="3" x2="200.0" y2="3" stroke="currentColor" stroke-width="1" stroke-opacity="1.00"/></svg></span>
- <span class="row__pct mono">100.0%</span>
- </div>
- <div class="row">
- <span class="row__label mono"><span class="faint">·&nbsp;&nbsp;</span>api-gateway</span>
- <span class="row__val mono">5.1K</span>
- <span class="row__bar"><svg viewBox="0 0 200 6" preserveAspectRatio="none"><line x1="0" y1="3" x2="200.0" y2="3" stroke="currentColor" stroke-width="1" stroke-opacity="0.80"/></svg></span>
- <span class="row__pct mono">39.2%</span>
- </div>
- <div class="row">
- <span class="row__label mono"><span class="faint">·&nbsp;&nbsp;·&nbsp;&nbsp;</span>/v2/search</span>
- <span class="row__val mono">2.4K</span>
- <span class="row__bar"><svg viewBox="0 0 200 6" preserveAspectRatio="none"><line x1="0" y1="3" x2="200.0" y2="3" stroke="currentColor" stroke-width="1" stroke-opacity="0.60"/></svg></span>
- <span class="row__pct mono">47.1%</span>
- </div>
- <div class="row">
- <span class="row__label mono"><span class="faint">·&nbsp;&nbsp;·&nbsp;&nbsp;</span>/v2/cart</span>
- <span class="row__val mono">1.8K</span>
- <span class="row__bar"><svg viewBox="0 0 200 6" preserveAspectRatio="none"><line x1="0" y1="3" x2="150.0" y2="3" stroke="currentColor" stroke-width="1" stroke-opacity="0.60"/></svg></span>
- <span class="row__pct mono">35.3%</span>
- </div>
- <div class="row">
- <span class="row__label mono"><span class="faint">·&nbsp;&nbsp;·&nbsp;&nbsp;</span>/v2/catalog</span>
- <span class="row__val mono">900</span>
- <span class="row__bar"><svg viewBox="0 0 200 6" preserveAspectRatio="none"><line x1="0" y1="3" x2="75.0" y2="3" stroke="currentColor" stroke-width="1" stroke-opacity="0.60"/></svg></span>
- <span class="row__pct mono">17.6%</span>
- </div>
- <div class="row">
- <span class="row__label mono"><span class="faint">·&nbsp;&nbsp;</span>auth-service</span>
- <span class="row__val mono">2.4K</span>
- <span class="row__bar"><svg viewBox="0 0 200 6" preserveAspectRatio="none"><line x1="0" y1="3" x2="94.1" y2="3" stroke="currentColor" stroke-width="1" stroke-opacity="0.80"/></svg></span>
- <span class="row__pct mono">18.5%</span>
- </div>
- <div class="row">
- <span class="row__label mono"><span class="faint">·&nbsp;&nbsp;</span>billing</span>
- <span class="row__val mono">1.6K</span>
- <span class="row__bar"><svg viewBox="0 0 200 6" preserveAspectRatio="none"><line x1="0" y1="3" x2="62.7" y2="3" stroke="currentColor" stroke-width="1" stroke-opacity="0.80"/></svg></span>
- <span class="row__pct mono">12.3%</span>
- </div>
- <div class="row">
- <span class="row__label mono"><span class="faint">·&nbsp;&nbsp;</span>checkout</span>
- <span class="row__val mono">1.4K</span>
- <span class="row__bar"><svg viewBox="0 0 200 6" preserveAspectRatio="none"><line x1="0" y1="3" x2="54.9" y2="3" stroke="currentColor" stroke-width="1" stroke-opacity="0.80"/></svg></span>
- <span class="row__pct mono">10.8%</span>
- </div></div></div>
- </div>
-
- <h4 style="margin-top:18pt;">12 · EVENTS · LIVE TAIL</h4>
- <p>Time, severity, message. Errors take the gold accent; info stays mute.</p>
- <div class="chart-card">
- <div class="kicker"><span>LIVE TAIL</span><span class="dash">·</span><span>TENANT=acme</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);"><div class="ev-list"> <div class="ev-row">
- <span class="ev-at">23:14:02.081</span>
- <span class="ev-sev" style="color:var(--z-accent);">err</span>
- <span class="ev-msg">upstream timed out while connecting to upstream · tenant=acme · req=a1f2…</span>
- </div>
- <div class="ev-row">
- <span class="ev-at">23:13:51.602</span>
- <span class="ev-sev" style="color:var(--z-ink);">warn</span>
- <span class="ev-msg">slow query 842 ms · SELECT * FROM orders WHERE customer_id = ?</span>
- </div>
- <div class="ev-row">
- <span class="ev-at">23:13:04.114</span>
- <span class="ev-sev" style="color:var(--z-mute);">info</span>
- <span class="ev-msg">batch 238 committed · 14,402 docs · 112 ms · lsn=0x3F A2 1C</span>
- </div>
- <div class="ev-row">
- <span class="ev-at">23:12:48.771</span>
- <span class="ev-sev" style="color:var(--z-ink);">warn</span>
- <span class="ev-msg">rate limit approaching 85% for tenant=acme · 8,452/10,000 req/min</span>
- </div>
- <div class="ev-row">
- <span class="ev-at">23:12:09.033</span>
- <span class="ev-sev" style="color:var(--z-mute);">info</span>
- <span class="ev-msg">segment merged · 3 → 1 · 412 MB → 386 MB · 640 ms</span>
- </div>
- <div class="ev-row">
- <span class="ev-at">23:11:52.118</span>
- <span class="ev-sev" style="color:var(--z-mute);">info</span>
- <span class="ev-msg">ingest partition 4 caught up · lag 0 ms · commits/s 1,212</span>
- </div>
- <div class="ev-row">
- <span class="ev-at">23:11:41.884</span>
- <span class="ev-sev" style="color:var(--z-accent);">err</span>
- <span class="ev-msg">chunk fetch 502 from storage-us-west-2 · retried once · succeeded</span>
- </div></div></div>
- </div>
- <div class="pfoot"><span>CHAPTER 04 · UX &amp; DATA</span><span class="pgnum">27</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">04 · UX · AI PRIMITIVES</span></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>AI · RAG · AGENTS</span></div>
- <h2 class="scene">SAME LINE.<br>SAME <span class="accent">RULE.</span></h2>
- <p class="lead">
- The charts that follow are specific to AI workloads — embedding
- clusters, retrieval flows, token budgets, multi-dim agent runs,
- attention. They are not a different language. The strokes are
- still 1&thinsp;px, the type is still the label, the accent still
- falls only where the reader is meant to look.
- </p>
- <div class="rule"></div>
- <div class="kicker"><span>CHARTS · 13–17</span></div>
- <ul style="padding-left:0; list-style:none; margin-top:10pt;">
- <li style="padding:6pt 0; border-bottom:1px solid var(--z-faint); font-family:var(--font-data); font-size:10pt; letter-spacing:var(--track-ui); text-transform:uppercase; color:var(--z-ink);">13 · EMBEDSPACE — clusters · UMAP projection · 1 px convex hulls</li>
- <li style="padding:6pt 0; border-bottom:1px solid var(--z-faint); font-family:var(--font-data); font-size:10pt; letter-spacing:var(--track-ui); text-transform:uppercase; color:var(--z-ink);">14 · CHORDARCS — connectivity · Bézier arcs · source → target</li>
- <li style="padding:6pt 0; border-bottom:1px solid var(--z-faint); font-family:var(--font-data); font-size:10pt; letter-spacing:var(--track-ui); text-transform:uppercase; color:var(--z-ink);">15 · FLOWBAND — allocation · one horizontal strip · labelled</li>
- <li style="padding:6pt 0; border-bottom:1px solid var(--z-faint); font-family:var(--font-data); font-size:10pt; letter-spacing:var(--track-ui); text-transform:uppercase; color:var(--z-ink);">16 · PARALLELCOORDS — multi-dim · N axes · 1 px per row</li>
- <li style="padding:6pt 0; font-family:var(--font-data); font-size:10pt; letter-spacing:var(--track-ui); text-transform:uppercase; color:var(--z-ink);">17 · ATTENTIONMAP — tokens · per-token opacity · paragraph is the chart</li>
- </ul>
- <div class="pfoot"><span>CHAPTER 04 · UX &amp; DATA</span><span class="pgnum">28</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">04 · UX · 13 EMBEDSPACE</span></div>
- <div class="kicker"><span>13</span><span class="dash">·</span><span>EMBEDSPACE · CLUSTERS</span></div>
- <h2 class="scene">CLUSTERS.<br>WITH A <span class="accent">QUERY.</span></h2>
- <p>
- The iconic AI visualisation. 2&thinsp;D UMAP projection of
- high-dimensional embeddings, with 1&thinsp;px convex hulls
- around each cluster and centroid labels sitting outside the
- cloud. Dots are <span class="mono">·</span> characters; the
- gold crosshair is the current query's projected embedding. No
- kmeans fuzz, no colour palette.
- </p>
-
- <div class="chart-card">
- <div class="kicker"><span>EMBEDDING SPACE</span><span class="dash">·</span><span>UMAP</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">
- <svg viewBox="0 0 1200 360" preserveAspectRatio="none" style="width:100%; height:360px;">
- <polyline points="253.0,128.6 253.2,147.3 271.2,154.7 424.7,162.9 472.8,140.7 526.4,87.6 412.2,88.3 309.9,92.4 263.2,121.4 253.0,128.6" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.55"/>
-<polyline points="867.6,171.3 914.5,225.3 1005.3,235.1 1141.2,228.2 1158.4,218.3 1160.0,190.2 1125.0,163.8 1119.8,161.8 916.6,158.0 890.8,161.9 867.6,171.3" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.48"/>
-<polyline points="488.8,314.2 691.8,320.0 732.2,319.5 740.4,315.2 743.3,290.6 712.3,260.5 570.8,263.6 489.1,276.9 488.8,314.2" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.41"/>
-<polyline points="40.0,224.7 66.0,251.6 114.9,270.3 188.4,258.0 190.2,257.3 234.0,237.9 104.5,228.8 40.0,224.7" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.34"/>
-<polyline points="851.7,77.5 898.7,93.5 1052.4,90.5 1045.0,49.1 963.4,40.0 871.7,63.5 851.7,77.5" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.27"/>
-<text x="355.4" y="119.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="385.9" y="92.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="291.9" y="109.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="302.1" y="133.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="429.9" y="140.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="324.9" y="106.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="253.0" y="128.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="526.4" y="87.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="253.2" y="147.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="309.9" y="92.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="491.7" y="96.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="340.7" y="151.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="477.8" y="109.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="412.2" y="88.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="424.7" y="162.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="472.8" y="140.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="427.5" y="92.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="271.2" y="154.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="263.2" y="121.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="312.0" y="117.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="443.5" y="148.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="418.8" y="143.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="1025.1" y="160.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="1141.2" y="228.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="1004.0" y="212.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="867.6" y="171.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="1073.3" y="214.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="1107.2" y="189.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="1005.3" y="235.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="890.8" y="161.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="1160.0" y="190.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="1137.5" y="187.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="914.5" y="225.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="966.5" y="160.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="1125.0" y="163.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="1158.4" y="218.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="947.5" y="227.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="1119.8" y="161.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="998.4" y="183.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="916.6" y="158.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="712.3" y="260.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="698.0" y="267.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="489.1" y="276.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="570.8" y="263.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="695.7" y="268.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="698.0" y="309.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="691.8" y="320.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="714.3" y="268.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="541.7" y="271.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="604.9" y="306.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="693.9" y="311.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="488.8" y="314.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="569.8" y="268.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="739.5" y="308.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="653.0" y="300.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="743.3" y="290.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="732.2" y="319.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="740.4" y="315.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="738.3" y="309.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="511.4" y="297.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="190.2" y="257.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="164.9" y="246.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="119.3" y="243.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="92.3" y="236.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="40.0" y="224.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="150.9" y="235.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="193.0" y="238.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="114.9" y="270.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="176.9" y="256.4" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="104.5" y="228.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="188.4" y="258.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="103.6" y="252.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="122.8" y="258.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="66.0" y="251.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="234.0" y="237.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="226.3" y="241.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="922.7" y="61.5" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="851.7" y="77.5" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="953.2" y="59.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="1006.3" y="66.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="956.1" y="81.9" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="963.4" y="40.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="1039.7" y="84.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="871.7" y="63.5" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="1001.2" y="74.5" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="1045.0" y="49.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="1010.6" y="81.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="898.7" y="93.5" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="909.5" y="66.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="1052.4" y="90.5" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
-<text x="379.2" y="111.4" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">INVOICES</text>
-<text x="1028.8" y="180.0" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">CONTRACTS</text>
-<text x="615.4" y="279.1" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">CHAT·SUPPORT</text>
-<text x="143.0" y="233.4" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">CODE</text>
-<text x="969.8" y="50.5" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">POLICIES</text>
-<line x1="645.0" y1="0" x2="645.0" y2="360" stroke="var(--z-accent)" stroke-width="1" stroke-opacity="0.45"/>
-<line x1="0" y1="171.2" x2="1200" y2="171.2" stroke="var(--z-accent)" stroke-width="1" stroke-opacity="0.45"/>
-<text x="645.0" y="171.2" fill="var(--z-accent)" font-family="var(--font-data)" font-size="18" text-anchor="middle" dominant-baseline="middle">×</text>
-<text x="653.0" y="163.2" fill="var(--z-accent)" font-family="var(--font-data)" font-size="11" letter-spacing="0.08em">QUERY</text>
- </svg>
- <div class="legend">
- <span class="mono faint">UMAP · 90 embeddings · 5 clusters</span>
- </div></div>
- </div>
- <div class="pfoot"><span>CHAPTER 04 · UX &amp; DATA</span><span class="pgnum">29</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">04 · UX · 14 CHORDARCS</span></div>
- <div class="kicker"><span>14</span><span class="dash">·</span><span>CHORDARCS · CONNECTIVITY</span></div>
- <h2 class="scene">RETRIEVAL.<br>AS <span class="accent">ARCS.</span></h2>
- <p>
- Flow between two ordered sets — queries on the left, retrieved
- chunks on the right, one 1&thinsp;px Bézier arc per retrieval.
- Arc opacity is the relevance score. Replaces Sankey for RAG
- pipelines because a Sankey wastes ninety percent of its ink on
- colour-coded ribbons; we only need the line.
- </p>
-
- <div class="chart-card">
- <div class="kicker"><span>RAG RETRIEVAL</span><span class="dash">·</span><span>TOP-K=2</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">
- <svg viewBox="0 0 1200 380" preserveAspectRatio="none" style="width:100%; height:380px; overflow:visible;">
- <path d="M 240,57.2 C 513.6,57.2 686.4,51.7 960,51.7" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.85"/>
-<path d="M 240,57.2 C 513.6,57.2 686.4,328.3 960,328.3" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.49"/>
-<path d="M 240,123.6 C 513.6,123.6 686.4,107.0 960,107.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.82"/>
-<path d="M 240,123.6 C 513.6,123.6 686.4,328.3 960,328.3" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.31"/>
-<path d="M 240,190.0 C 513.6,190.0 686.4,162.3 960,162.3" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.79"/>
-<path d="M 240,190.0 C 513.6,190.0 686.4,107.0 960,107.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.38"/>
-<path d="M 240,256.4 C 513.6,256.4 686.4,217.7 960,217.7" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.81"/>
-<path d="M 240,256.4 C 513.6,256.4 686.4,51.7 960,51.7" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.27"/>
-<path d="M 240,322.8 C 513.6,322.8 686.4,273.0 960,273.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.73"/>
-<path d="M 240,322.8 C 513.6,322.8 686.4,328.3 960,328.3" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.36"/>
- <text x="228.0" y="57.2" fill="currentColor" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">q · "refund policy"</text>
-<text x="228.0" y="123.6" fill="currentColor" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">q · "price breakdown"</text>
-<text x="228.0" y="190.0" fill="currentColor" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">q · "SLA for enterprise"</text>
-<text x="228.0" y="256.4" fill="currentColor" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">q · "data retention"</text>
-<text x="228.0" y="322.8" fill="currentColor" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">q · "schema change"</text>
- <text x="972.0" y="51.7" fill="currentColor" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">doc · policy/refunds.md</text>
-<text x="972.0" y="107.0" fill="currentColor" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">doc · pricing/tiers.md</text>
-<text x="972.0" y="162.3" fill="currentColor" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">doc · contracts/sla.md</text>
-<text x="972.0" y="217.7" fill="currentColor" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">doc · security/retention.md</text>
-<text x="972.0" y="273.0" fill="currentColor" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">doc · runbooks/migrate.md</text>
-<text x="972.0" y="328.3" fill="currentColor" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">doc · faq/common.md</text>
- <text x="228.0" y="16.0" fill="currentColor" opacity="0.6" font-family="var(--font-prose)" font-size="11" font-weight="600" letter-spacing="2" text-anchor="end">QUERY</text>
- <text x="972.0" y="16.0" fill="currentColor" opacity="0.6" font-family="var(--font-prose)" font-size="11" font-weight="600" letter-spacing="2">CHUNK</text>
- </svg>
- <div class="legend">
- <span class="mono faint">10 flows · 5 → 6</span>
- </div></div>
- </div>
- <div class="pfoot"><span>CHAPTER 04 · UX &amp; DATA</span><span class="pgnum">30</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">04 · UX · 15-16</span></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>AI · 15-16</span></div>
- <h2 class="scene">15 · FLOWBAND.<br>16 · <span class="accent">PARALLELCOORDS.</span></h2>
-
- <h4>15 · FLOWBAND · ALLOCATION</h4>
- <p>Horizontal strip split into segments, each labelled directly beneath. Token budgets, context windows, cost attribution.</p>
- <div class="chart-card">
- <div class="kicker"><span>CONTEXT WINDOW</span><span class="dash">·</span><span>28 K TOKENS</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">
- <svg viewBox="0 0 1200 16" preserveAspectRatio="none" style="width:100%; height:16px; overflow:visible; display:block;"><line x1="0.0" y1="2" x2="0.0" y2="14" stroke="currentColor" stroke-width="1" stroke-opacity="0.4"/><line x1="0.0" y1="8" x2="51.4" y2="8" stroke="currentColor" stroke-width="2" stroke-opacity="1.00"/><line x1="51.4" y1="2" x2="51.4" y2="14" stroke="currentColor" stroke-width="1" stroke-opacity="0.4"/><line x1="51.4" y1="8" x2="325.7" y2="8" stroke="currentColor" stroke-width="2" stroke-opacity="0.84"/><line x1="325.7" y1="2" x2="325.7" y2="14" stroke="currentColor" stroke-width="1" stroke-opacity="0.4"/><line x1="325.7" y1="8" x2="934.3" y2="8" stroke="currentColor" stroke-width="2" stroke-opacity="0.68"/><line x1="934.3" y1="2" x2="934.3" y2="14" stroke="currentColor" stroke-width="1" stroke-opacity="0.4"/><line x1="934.3" y1="8" x2="1054.3" y2="8" stroke="currentColor" stroke-width="2" stroke-opacity="0.52"/><line x1="1054.3" y1="2" x2="1054.3" y2="14" stroke="currentColor" stroke-width="1" stroke-opacity="0.4"/><line x1="1054.3" y1="8" x2="1200.0" y2="8" stroke="currentColor" stroke-width="2" stroke-opacity="0.36"/><line x1="1200" y1="2" x2="1200" y2="14" stroke="currentColor" stroke-width="1" stroke-opacity="0.4"/></svg>
- <div class="fb-grid">
- <div class="fb-lbl">
- <div class="fb-name" style="color:var(--z-mute);">SYSTEM</div>
- <div class="mono" style="color:var(--z-ink); font-size:13px;">1.2K tok</div>
- <div class="mono faint">4.3 %</div>
- </div>
- <div class="fb-lbl">
- <div class="fb-name" style="color:var(--z-mute);">CONTEXT</div>
- <div class="mono" style="color:var(--z-ink); font-size:13px;">6.4K tok</div>
- <div class="mono faint">22.9 %</div>
- </div>
- <div class="fb-lbl">
- <div class="fb-name" style="color:var(--z-accent);">RETRIEVAL</div>
- <div class="mono" style="color:var(--z-ink); font-size:13px;">14.2K tok</div>
- <div class="mono faint">50.7 %</div>
- </div>
- <div class="fb-lbl">
- <div class="fb-name" style="color:var(--z-mute);">HISTORY</div>
- <div class="mono" style="color:var(--z-ink); font-size:13px;">2.8K tok</div>
- <div class="mono faint">10.0 %</div>
- </div>
- <div class="fb-lbl">
- <div class="fb-name" style="color:var(--z-mute);">ANSWER</div>
- <div class="mono" style="color:var(--z-ink); font-size:13px;">3.4K tok</div>
- <div class="mono faint">12.1 %</div>
- </div>
- </div></div>
- </div>
-
- <h4 style="margin-top:18pt;">16 · PARALLELCOORDS</h4>
- <p>N axes, N dimensions, one 1&thinsp;px polyline per row. Gold line = one highlighted run in the density cloud.</p>
- <div class="chart-card">
- <div class="kicker"><span>AGENT RUNS</span><span class="dash">·</span><span>24 ROWS · 5 DIMENSIONS</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">
- <svg viewBox="0 0 1200 260" preserveAspectRatio="none" style="width:100%; height:260px;">
- <line x1="60.0" y1="36" x2="60.0" y2="224" stroke="currentColor" stroke-width="1" stroke-opacity="0.2"/>
-<line x1="330.0" y1="36" x2="330.0" y2="224" stroke="currentColor" stroke-width="1" stroke-opacity="0.2"/>
-<line x1="600.0" y1="36" x2="600.0" y2="224" stroke="currentColor" stroke-width="1" stroke-opacity="0.2"/>
-<line x1="870.0" y1="36" x2="870.0" y2="224" stroke="currentColor" stroke-width="1" stroke-opacity="0.2"/>
-<line x1="1140.0" y1="36" x2="1140.0" y2="224" stroke="currentColor" stroke-width="1" stroke-opacity="0.2"/>
- <polyline points="60.0,142.9 330.0,110.5 600.0,176.0 870.0,100.5 1140.0,130.8" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,168.5 330.0,106.5 600.0,204.4 870.0,92.3 1140.0,89.4" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,189.2 330.0,141.3 600.0,178.7 870.0,61.1 1140.0,127.3" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,197.6 330.0,167.7 600.0,77.6 870.0,136.5 1140.0,84.7" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,104.8 330.0,56.6 600.0,115.6 870.0,62.3 1140.0,71.1" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,113.1 330.0,97.0 600.0,129.3 870.0,80.3 1140.0,122.8" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,70.3 330.0,93.4 600.0,133.8 870.0,166.2 1140.0,168.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,109.3 330.0,90.0 600.0,126.8 870.0,110.9 1140.0,163.9" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,193.5 330.0,162.2 600.0,164.3 870.0,157.1 1140.0,124.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,184.4 330.0,170.4 600.0,100.8 870.0,99.0 1140.0,195.5" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,143.9 330.0,123.6 600.0,142.7 870.0,174.1 1140.0,142.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,69.1 330.0,117.4 600.0,100.6 870.0,76.3 1140.0,90.1" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,148.0 330.0,204.3 600.0,152.3 870.0,91.9 1140.0,76.8" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,61.8 330.0,142.2 600.0,92.8 870.0,123.1 1140.0,114.5" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,172.0 330.0,172.2 600.0,139.7 870.0,200.8 1140.0,154.6" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,103.1 330.0,144.4 600.0,180.4 870.0,134.9 1140.0,186.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,111.6 330.0,201.1 600.0,145.9 870.0,120.3 1140.0,201.1" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,108.5 330.0,184.8 600.0,135.8 870.0,197.6 1140.0,148.2" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,173.4 330.0,156.0 600.0,90.7 870.0,148.2 1140.0,92.1" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,80.1 330.0,167.3 600.0,192.9 870.0,202.3 1140.0,124.1" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,54.8 330.0,152.6 600.0,107.4 870.0,87.7 1140.0,107.2" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,91.8 330.0,62.4 600.0,175.2 870.0,202.1 1140.0,182.3" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,186.2 330.0,104.5 600.0,120.4 870.0,172.4 1140.0,100.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
-<polyline points="60.0,89.9 330.0,180.0 600.0,113.9 870.0,92.7 1140.0,188.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
- <polyline points="60.0,137.2 330.0,134.1 600.0,83.8 870.0,49.0 1140.0,75.6" fill="none" stroke="var(--z-accent)" stroke-width="1" stroke-opacity="1"/>
- <text x="60.0" y="22" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">LATENCY</text>
-<text x="60.0" y="244" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">8</text>
-<text x="60.0" y="256" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">60</text>
-<text x="330.0" y="22" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">TOKENS</text>
-<text x="330.0" y="244" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">200</text>
-<text x="330.0" y="256" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">4.8K</text>
-<text x="600.0" y="22" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">COST $</text>
-<text x="600.0" y="244" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">0.0</text>
-<text x="600.0" y="256" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">0.1</text>
-<text x="870.0" y="22" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">SCORE</text>
-<text x="870.0" y="244" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">0.4</text>
-<text x="870.0" y="256" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">1.0</text>
-<text x="1140.0" y="22" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">RETRIEVED</text>
-<text x="1140.0" y="244" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">3</text>
-<text x="1140.0" y="256" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">22</text>
- </svg>
- <div class="legend">
- <span class="mono faint">24 rows · 5 dimensions · 1 highlighted</span>
- </div></div>
- </div>
- <div class="pfoot"><span>CHAPTER 04 · UX &amp; DATA</span><span class="pgnum">31</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">04 · UX · 17 ATTENTIONMAP</span></div>
- <div class="kicker"><span>17</span><span class="dash">·</span><span>ATTENTIONMAP</span></div>
- <h2 class="scene">THE PARAGRAPH<br>IS THE <span class="accent">CHART.</span></h2>
- <p>
- Every token's opacity equals its attention weight; the peak
- tokens cross into the gold accent. For a RAG system this is the
- cleanest possible answer to <em>which tokens actually
- mattered</em>. No heatmap overlay, no coloured highlights —
- type rendered at the weight the model assigned.
- </p>
-
- <div class="chart-card" style="padding:20pt 0;">
- <div class="kicker"><span>ATTENTION · ANSWER TOKENS</span><span class="dash">·</span><span>PROMPT="WHAT DOES XERJ DO?"</span></div>
- <div style="margin-top:14pt;">
- <div class="attn"><span style="opacity:0.20;">The</span> <span style="color:var(--z-accent); opacity:0.84;">XERJ</span> <span style="opacity:0.56;">engine</span> <span style="opacity:0.80;">stores</span> <span style="color:var(--z-accent); opacity:0.97;">billions</span> <span style="opacity:0.15;">of</span> <span style="color:var(--z-accent); opacity:0.90;">vectors</span> <span style="opacity:0.12;">in</span> <span style="opacity:0.08;">a</span> <span style="opacity:0.46;">single</span> <span style="opacity:0.73;">segment</span> <span style="opacity:0.69;">cache</span> <span style="opacity:0.14;">and</span> <span style="opacity:0.52;">returns</span> <span style="color:var(--z-accent); opacity:0.87;">hybrid</span> <span style="opacity:0.65;">results</span> <span style="opacity:0.10;">in</span> <span style="opacity:0.43;">under</span> <span style="color:var(--z-accent); opacity:1.00;">40</span> <span style="opacity:0.61;">milliseconds.</span></div>
- <div class="legend">
- <span class="mono faint">peak attention on <span class="accent">40 · billions · vectors</span></span>
- </div></div>
- </div>
-
- <div class="rule" style="margin-top:18pt;"></div>
- <h3>17 PRIMITIVES. ONE RULE.</h3>
- <p>
- Every chart in this chapter is a 1&thinsp;px stroke, a number,
- or an opacity applied to a character. No fills, no colour bars,
- no icons on axes, no legends floating over curves. The storage
- is <em>for</em> the chart; the chart <em>is</em> the storage;
- the rules are the same line.
- </p>
- <div class="pfoot"><span>CHAPTER 04 · UX &amp; DATA</span><span class="pgnum">32</span></div>
-</div>
-<div class="page" style="display:flex; flex-direction:column; justify-content:space-between;">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">CHAPTER 05 · PHILOSOPHY</span></div>
- <div style="flex:1; display:flex; flex-direction:column; justify-content:center;">
- <h1 class="ch-num">05</h1>
- <h1 class="ch-title">PHILOSOPHY.</h1>
- <p class="lead" style="max-width:5.6in; margin-top:6pt;">
- Why the brand looks like this. Three decisions, none
- decorative — a gold accent, a 1&thinsp;px stroke, typography
- doing the work a chart would do.
- </p>
- </div>
- <div class="pfoot"><span>CHAPTER 05 · PHILOSOPHY</span><span class="pgnum">33</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">05 · PHILOSOPHY · GOLD</span></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>GOLD</span></div>
- <h2 class="scene">THE GOLD IS<br>A <span class="accent">STANDARD.</span></h2>
-
- <p>
- Every industry that has a reference calls it the <span class="accent">gold standard</span>.
- A gold bar is 99.99&thinsp;% pure by defined assay. A gold medal
- is the winner. A gold seal is notarised truth. The word holds
- across centuries — the Roman <em>solidus</em>, the Arabic
- <em>dinar</em>, gold leaf on Qur'anic manuscripts, gold trim on
- a <em>thobe</em>, gold on any document that has to still mean
- something ten years later. Gold earned the name because gold
- does not tarnish.
- </p>
-
- <p>
- XERJ takes its name from the Arabic word for life —
- <span class="accent">ḥayāh</span>&nbsp;(حياة). In that
- tradition, gold carries weight beyond wealth. A gift of gold
- marks a milestone. Gold thread marks craft meant to outlast
- the wearer. Gold ink on parchment marks a truth the writer
- was willing to sign. Across all of it, gold is applied only to
- things already good enough to carry its weight.
- <em>Success, not material.</em>
- </p>
-
- <p>
- We use the accent (<span class="mono">#FFC400</span>) the same
- way. It marks the <em>one</em> number a chart is about, the
- <em>one</em> word a sentence is pointing to, the p95 that says
- we are shipping. If a designer paints a row heading yellow
- because it "looks nice", they have devalued the stamp for the
- thing that actually deserves it.
- </p>
- <div class="pfoot"><span>CHAPTER 05 · PHILOSOPHY</span><span class="pgnum">34</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">05 · PHILOSOPHY · 1 PX</span></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>1 PX</span></div>
- <h2 class="scene">1 PX IS THE<br>MINIMUM THAT<br><span class="accent">CARRIES MEANING.</span></h2>
-
- <p>
- Any modern screen can render a 1&thinsp;px line. Most brands do
- not trust that to be enough. They add a gradient to give it
- depth. They add a shadow to give it weight. They widen it to
- 2&thinsp;px "for emphasis". Each addition is a concession that
- the idea underneath was not strong enough to carry the line
- alone.
- </p>
-
- <p>
- Our rule is absolute. Every hairline, every axis tick, every
- divider, every border, every bar in every chart:
- <span class="accent">one pixel</span>. Never wider. Never
- gradient. Never feathered. If a design needs a thicker stroke
- to be legible, the design has a bigger problem that the
- thicker stroke is covering up. Fix the idea, not the border.
- </p>
-
- <p>
- This is engineering discipline, not aesthetic minimalism.
- Engineers do not ship a thousand lines of code when ten will
- do. Designers who have lived inside production systems do not
- ship 3&thinsp;px borders when 1&thinsp;px is sufficient. The
- narrowest line that still carries the information is the
- correct line.
- </p>
- <div class="pfoot"><span>CHAPTER 05 · PHILOSOPHY</span><span class="pgnum">35</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">05 · PHILOSOPHY · TYPE</span></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>TYPE IS DATA</span></div>
- <h2 class="scene">TYPE IS THE<br><span class="accent">INFOGRAPHIC.</span></h2>
-
- <p>
- An AI system outputs text. A log line is text. A query plan is
- text. A vector is a sequence of numbers rendered as text. A
- retrieval result is a snippet of text ranked against other
- snippets of text. The entire observable surface of a language
- model — prompt, response, embedding, audit trail — is plain
- text.
- </p>
-
- <p>
- Marketing designers usually translate that text into pictures:
- illustrations, flowcharts, isometric servers with tiny humans
- standing next to them. Every translation loses fidelity. A
- query result drawn as a generic "document" icon tells you
- nothing; the same result as monospaced JSON tells you
- everything.
- </p>
-
- <p>
- We do the opposite. Our dashboards are tables with good
- typographic taste. Our charts are 1&thinsp;px strokes over a
- typographic axis. Our marketing pages render the same numbers
- our customers see on their consoles, at the same precision,
- without stylisation. Type is the native format of an AI system.
- Any other format is a translation <em>away</em> from the truth.
- Typography is not a substitute for an infographic —
- <span class="accent">it is the infographic</span>.
- </p>
- <div class="pfoot"><span>CHAPTER 05 · PHILOSOPHY</span><span class="pgnum">36</span></div>
-</div>
-<div class="page" style="display:flex; flex-direction:column; justify-content:space-between;">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">CHAPTER 06 · VOICE</span></div>
- <div style="flex:1; display:flex; flex-direction:column; justify-content:center;">
- <h1 class="ch-num">06</h1>
- <h1 class="ch-title">VOICE.</h1>
- <p class="lead" style="max-width:5.6in; margin-top:6pt;">
- Solid. Quiet. Technical. We write for engineers paged at
- 2&nbsp;am. Every sentence earns its place.
- </p>
- </div>
- <div class="pfoot"><span>CHAPTER 06 · VOICE</span><span class="pgnum">37</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">06 · VOICE</span></div>
- <div class="kicker"><span>06</span><span class="dash">·</span><span>DO · DON'T · NEVER</span></div>
- <h2 class="scene">SOLID.<br>QUIET.<br><span class="accent">TECHNICAL.</span></h2>
-
- <div class="verdict"><span class="tag yes">DO</span><span class="body">"Hybrid query p95 is 38&thinsp;ms at 1&thinsp;B vectors on one box." · "One binary, no JVM heap tuning." · "Agents are the workload." · "Explain plan is first-class."</span></div>
- <div class="verdict"><span class="tag no">DON'T</span><span class="body">"Revolutionary." · "Paradigm shift." · "Unleash the power of..." · "Next-generation AI-powered cloud-native..." · Anything with <em>journey</em>, <em>storytelling</em>, or <em>magic</em>.</span></div>
- <div class="verdict"><span class="tag no">NEVER</span><span class="body">Emojis in marketing. Humour as the primary register. Cute mascots. "Fun" at the expense of precision. We ship storage. Storage is serious.</span></div>
-
- <div class="rule"></div>
- <h3>LEAD WITH A NUMBER, A CONSTRAINT, OR A NAME.</h3>
- <p>
- Copy is not a pitch deck. Every opening sentence should contain
- at least one of: a measured value, a hard constraint, or a
- specific system name. If a line could appear in a LinkedIn
- influencer post, it does not ship.
- </p>
-
- <h3>BE <span class="accent">DIRECT</span>, NOT WARM.</h3>
- <p>
- We are not selling comfort. Warm copy reads as slick in our
- context. An engineer reading at 2&nbsp;am does not want to be
- charmed; they want to know what the p95 is and whether it can
- take another tenant before the budget breaks. Answer that
- question, end the sentence, move on.
- </p>
- <div class="pfoot"><span>CHAPTER 06 · VOICE</span><span class="pgnum">38</span></div>
-</div>
-<div class="page" style="display:flex; flex-direction:column; justify-content:space-between;">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">CHAPTER 07 · RESOURCES</span></div>
- <div style="flex:1; display:flex; flex-direction:column; justify-content:center;">
- <h1 class="ch-num">07</h1>
- <h1 class="ch-title">RESOURCES.</h1>
- <p class="lead" style="max-width:5.6in; margin-top:6pt;">
- SVG downloads, cross-references, and links to the interactive
- playground where the chart primitives render live.
- </p>
- </div>
- <div class="pfoot"><span>CHAPTER 07 · RESOURCES</span><span class="pgnum">39</span></div>
-</div>
-<div class="page">
- <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">07 · RESOURCES · DOWNLOADS</span></div>
- <div class="kicker"><span>07</span><span class="dash">·</span><span>DOWNLOADS</span></div>
- <h2 class="scene">VECTORS.<br><span class="accent">NO RASTERS.</span></h2>
- <p>
- Every asset ships as SVG. No PNG, no JPG variants — a raster of
- the wordmark is either wrong size or wrong compression, and both
- of those are easier to fix upstream by using the SVG.
- </p>
- <div class="dl-list" style="margin-top:10pt;">
- <div class="dl-row">
- <span class="name">WORDMARK · NIGHT</span>
- <span class="desc">Primary lockup. Paper on night, yellow .AI. Use on every dark surface.</span>
- <span class="get">SVG →</span>
- </div>
- <div class="dl-row">
- <span class="name">WORDMARK · DAY</span>
- <span class="desc">Courtesy treatment. Ink on cream, ochre .AI for AA contrast on paper.</span>
- <span class="get">SVG →</span>
- </div>
- <div class="dl-row">
- <span class="name">WORDMARK · MONO</span>
- <span class="desc">currentColor fill for emails, third-party decks, unknown backgrounds.</span>
- <span class="get">SVG →</span>
- </div>
- <div class="dl-row">
- <span class="name">SHORT FORM</span>
- <span class="desc">XERJ without .AI. App title bars, compact headers, system tray.</span>
- <span class="get">SVG →</span>
- </div>
- <div class="dl-row">
- <span class="name">LETTER MARK</span>
- <span class="desc">Yellow X on night. Favicon, app icon, social avatar.</span>
- <span class="get">SVG →</span>
- </div>
- <div class="dl-row">
- <span class="name">LETTER MARK · INVERSE</span>
- <span class="desc">Ink X on paper. Letterhead, print covers, debossed surfaces.</span>
- <span class="get">SVG →</span>
- </div>
- <div class="dl-row">
- <span class="name">SYSTEM LINE</span>
- <span class="desc">XERJ.AI · OBSERVE tracked signature for footers and headers.</span>
- <span class="get">SVG →</span>
- </div>
- </div>
-
- <div class="rule"></div>
- <h3>CROSS-REFERENCES.</h3>
- <div class="dl-list">
- <div class="dl-row"><span class="name">BRAND CONCEPT</span><span class="desc">/brand.html · the original five laws and voice spec.</span><span class="get">URL →</span></div>
- <div class="dl-row"><span class="name">ARCHITECTURE</span><span class="desc">/architecture/index.html · 1 px SVG topologies of the platform.</span><span class="get">URL →</span></div>
- <div class="dl-row"><span class="name">PLAYGROUND</span><span class="desc">/playground.html · every chart primitive in this chapter, live.</span><span class="get">URL →</span></div>
- </div>
- <div class="pfoot"><span>CHAPTER 07 · RESOURCES</span><span class="pgnum">40</span></div>
-</div>
-<div class="page" style="padding:0.7in; display:flex; flex-direction:column; justify-content:space-between;">
- <div>
- <div class="kicker big"><span>XERJ.AI</span><span class="dash">·</span><span>END OF BRAND BOOK</span></div>
- </div>
-
- <div style="display:flex; flex-direction:column; justify-content:center; gap:28pt; padding:20pt 0;">
- <div style="width:100%; max-width:5.2in;">
- <svg viewBox="0 0 800 240" preserveAspectRatio="xMidYMid meet" style="width:100%; display:block;">
- <rect width="800" height="240" fill="#0b0b0d"/>
- <line x1="90" y1="200" x2="530" y2="200" stroke="#f4f2ec" stroke-width="1" stroke-linecap="square"/>
- <line x1="530" y1="40" x2="710" y2="40" stroke="#ffc400" stroke-width="1" stroke-linecap="square"/>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="end" fill="#f4f2ec">XERJ</text>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="start" fill="#ffc400">.AI</text>
-</svg>
- </div>
-
- <p style="font-family: var(--font-display); font-weight:900; font-size: 34pt; line-height: 0.95; letter-spacing: -0.005em; max-width: 6in; margin:0;">
- TYPE IS THE UI.<br>
- <span class="accent">1 PX IS THE STANDARD.</span><br>
- GOLD IS <span class="accent">EARNED</span>.
- </p>
-
- <p style="color: var(--z-mute); font-size: 10pt; font-family: var(--font-data); letter-spacing: var(--track-ui); text-transform: uppercase;">
- 7 CHAPTERS · 17 CHART PRIMITIVES · 14 DO/DON'T RULES · 5 COLOURS · 4 TYPEFACES · 7 DOWNLOADS
- </p>
- </div>
-
- <div style="display:flex; justify-content:space-between; font-family:var(--font-data); font-size:9pt; letter-spacing:var(--track-ui); text-transform:uppercase; color:var(--z-mute); padding-top:10pt; border-top:1px solid var(--z-line);">
- <span>XERJ.AI · OBSERVE</span>
- <span>BRAND BOOK · V1 · 2026-04</span>
- </div>
-</div>
-</body>
-</html>
diff --git a/brief/brandbook-pdf/gen.py b/brief/brandbook-pdf/gen.py
deleted file mode 100644
index 547adc92c..000000000
--- a/brief/brandbook-pdf/gen.py
+++ /dev/null
@@ -1,2048 +0,0 @@
-#!/usr/bin/env python3
-"""
-XERJ.ai — Brandbook PDF generator.
-
-Produces a single self-contained HTML file structured as a real
-brand book (cover · colophon · contents · chapter dividers · chapters
-· back cover), which puppeteer then prints to PDF.
-
-This is NOT a direct dump of the website. Charts and logos are
-regenerated here at print-tuned sizes, and every chapter starts on a
-fresh page via CSS page-break-before.
-"""
-import math
-import random
-from pathlib import Path
-
-random.seed(42)
-
-# ============================================================
-# CHART PRIMITIVES — all output inline SVG. 1px strokes only.
-# ============================================================
-
-def esc(s):
- return str(s).replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;')
-
-def fmt_num(v):
- if abs(v) >= 1e6: return f"{v/1e6:.2f}M"
- if abs(v) >= 1e3: return f"{v/1e3:.1f}K"
- if v == int(v): return f"{int(v):,}"
- return f"{v:.1f}"
-
-def build_points(values, w, h):
- mn, mx = min(values), max(values)
- rng = (mx - mn) or 1
- n = len(values)
- step = w / (n - 1) if n > 1 else w
- return " ".join(
- f"{i*step:.1f},{h - ((v-mn)/rng)*h:.1f}" for i, v in enumerate(values)
- ), mn, mx
-
-# --- deterministic demo data ---
-series_latency = [24 + 6 * math.sin(i / 4.2) + 3 * math.cos(i / 2.1) + ((i * 7) % 5) * 0.4 for i in range(48)]
-spark_throughput = [1.30 + 0.12 * math.sin(i / 3) + 0.04 * math.cos(i / 1.5) + ((i * 11) % 3) * 0.02 for i in range(48)]
-
-topn_items = [
- ("/v2/search", 4230),
- ("/v2/catalog", 3180),
- ("/v2/cart", 2564),
- ("/auth/session", 1923),
- ("/billing/create", 1340),
- ("/users/me", 912),
- ("/admin/logs", 680),
- ("/static/favicon", 445),
-]
-
-dist_segments = [("2XX", 9620), ("3XX", 410), ("4XX", 190), ("5XX", 48)]
-
-heat_rows_labels = ['COHORT A','COHORT B','COHORT C','COHORT D','COHORT E','COHORT F','COHORT G']
-heat_cols = ['00','02','04','06','08','10','12','14','16','18','20','22']
-heat_matrix = [
- [round(80 + 60 * math.cos(((c * 2 - 14) / 24) * 2 * math.pi) + r * 5 + ((r + c * 7) % 9))
- for c in range(12)]
- for r in range(7)
-]
-
-# --------- CHART SVG BUILDERS ---------
-
-def spark_svg(values, w=260, h=44):
- pts, _, _ = build_points(values, w, h)
- return f'<svg viewBox="0 0 {w} {h}" preserveAspectRatio="none" style="width:100%; height:{h}px;"><polyline points="{pts}" fill="none" stroke="currentColor" stroke-width="1"/></svg>'
-
-def series_svg(values, w=1200, h=160):
- pts, mn, mx = build_points(values, w, h)
- return f'<svg viewBox="0 0 {w} {h}" preserveAspectRatio="none" style="width:100%; height:{h}px;"><polyline points="{pts}" fill="none" stroke="currentColor" stroke-width="1"/></svg>', mn, mx
-
-def topn_rows_html(items):
- total = sum(v for _, v in items) or 1
- mx = max(v for _, v in items) or 1
- rows = []
- for label, value in items:
- pct = 100 * value / total
- bw = (value / mx) * 1000
- rows.append(f''' <div class="row">
- <span class="row__label mono">{label}</span>
- <span class="row__val mono">{value:,}</span>
- <span class="row__bar"><svg viewBox="0 0 1000 6" preserveAspectRatio="none"><line x1="0" y1="3" x2="{bw:.1f}" y2="3" stroke="currentColor" stroke-width="1"/></svg></span>
- <span class="row__pct mono">{pct:.1f}%</span>
- </div>''')
- return "\n".join(rows)
-
-def dist_svg_html(segments):
- total = sum(v for _, v in segments) or 1
- lines = []
- legend = []
- x = 0.0
- for i, (lbl, v) in enumerate(segments):
- segw = (v / total) * 1200
- op = max(0.12, 1 - i * 0.2)
- if segw > 0.5:
- lines.append(f'<line x1="{x:.1f}" y1="5" x2="{(x+segw):.1f}" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="{op:.2f}"/>')
- x += segw
- pct = 100 * v / total
- legend.append(f''' <div class="stack"><span class="key">{lbl}</span><span class="mono big">{v:,}</span><span class="mono faint">{pct:.1f}%</span></div>''')
- return (
- f'<svg class="chart dist-bar" viewBox="0 0 1200 10" preserveAspectRatio="none">{"".join(lines)}</svg>',
- "\n".join(legend)
- )
-
-def heatmap_html(rows_labels, cols, matrix):
- flat = [v for row in matrix for v in row]
- mn, mx = min(flat), max(flat)
- rng = (mx - mn) or 1
- header = '<div class="heatmap-row heatmap-head"><span class="row-label">&nbsp;</span>' + "".join(
- f'<span class="hc">{c}</span>' for c in cols) + '</div>'
- body = []
- for i, row in enumerate(matrix):
- cells = "".join(
- f'<span class="hc" style="opacity:{(0.22 + 0.78 * (v - mn) / rng):.2f};">{v}</span>'
- for v in row
- )
- body.append(f'<div class="heatmap-row"><span class="row-label">{rows_labels[i]}</span>{cells}</div>')
- return header + "".join(body)
-
-def gauge_html(value, mn=0, mx=100, threshold=85, label="DISK PRESSURE · WAL"):
- frac = (value - mn) / (mx - mn or 1)
- x = frac * 600
- tx = ((threshold - mn) / (mx - mn or 1)) * 600
- return f'''
- <div style="display:flex; align-items:baseline; justify-content:space-between;">
- <div style="font-family: var(--font-display); font-weight:900; font-size:72px; color:var(--z-accent); line-height:1;">{value}<span style="font-family:var(--font-data); font-size:20px; color:var(--z-mute); letter-spacing:var(--track-ui); margin-left:6px;">%</span></div>
- <span class="kicker">THRESHOLD · {threshold}%</span>
- </div>
- <svg viewBox="0 0 600 14" preserveAspectRatio="none" style="width:100%; height:14px; margin-top:10px;">
- <line x1="0" y1="13" x2="600" y2="13" stroke="currentColor" stroke-width="1" stroke-opacity="0.2"/>
- <line x1="0" y1="13" x2="{x:.1f}" y2="13" stroke="currentColor" stroke-width="1"/>
- <line x1="{tx:.1f}" y1="3" x2="{tx:.1f}" y2="13" stroke="currentColor" stroke-width="1" stroke-opacity="0.5"/>
- </svg>
- <div style="display:flex; justify-content:space-between; margin-top:4px; font-family:var(--font-data); font-size:10px; letter-spacing:var(--track-ui); color:var(--z-mute);">
- <span>0</span><span>100 %</span>
- </div>'''
-
-def multiples_html():
- items = []
- for i in range(8):
- label = ['API GATEWAY','AUTH','BILLING','CHECKOUT','SEARCH','CATALOG','INGEST','VECTORS'][i]
- phase = i * 0.6
- vals = [50 + 10*math.sin(j/3 + phase) + 4*math.cos(j/1.5) + ((i+j)%3)*0.8 for j in range(24)]
- val = round(vals[-1])
- pts, _, _ = build_points(vals, 180, 22)
- items.append((label, val, pts))
- cells = []
- for label, val, pts in items:
- cells.append(f''' <div class="mult-cell">
- <div class="mult-head"><span>{label}</span><span class="mono" style="color:var(--z-ink); font-weight:700;">{val}</span></div>
- <svg viewBox="0 0 180 22" preserveAspectRatio="none"><polyline points="{pts}" fill="none" stroke="currentColor" stroke-width="1"/></svg>
- </div>''')
- return '<div class="mult-grid">' + "\n".join(cells) + '</div>'
-
-def bar_html():
- vals = [50 + 22*math.sin(i/5.5) + 9*math.cos(i/3.2) + ((i*37)%7) for i in range(24)]
- mx = max(vals); mn = min(vals)
- w = 1200; h = 150
- step = w / 24
- lines = []
- for i, v in enumerate(vals):
- xp = (i + 0.5) * step
- yp = h - (v / mx) * h
- lines.append(f'<line x1="{xp:.1f}" y1="{h}" x2="{xp:.1f}" y2="{yp:.1f}" stroke="currentColor" stroke-width="1"/>')
- return f'''
- <svg viewBox="0 0 {w} {h}" preserveAspectRatio="none" style="width:100%; height:{h}px;">{"".join(lines)}</svg>
- <div class="legend">
- <span>00:00</span>
- <span class="mid">min <span class="mono">{mn:.0f}</span> · peak <span class="mono">{mx:.0f}</span></span>
- <span>23:00</span>
- </div>''', mn, mx
-
-def scatter_html():
- pts = []
- for _ in range(80):
- t = random.random()
- x = 20 + t * 80 + (random.random() - 0.5) * 20
- y = 10 + t * 70 + (random.random() - 0.5) * 25
- pts.append((x, y))
- sx = [p[0] for p in pts]; sy = [p[1] for p in pts]
- xmn, xmx = min(sx), max(sx); ymn, ymx = min(sy), max(sy)
- xr = (xmx - xmn) or 1; yr = (ymx - ymn) or 1
- dots = "".join(
- f'<span style="position:absolute; left:{((x-xmn)/xr)*100:.2f}%; top:{((ymx-y)/yr)*100:.2f}%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:16px; color:var(--z-ink); line-height:1;">·</span>'
- for x, y in pts
- )
- return f'''
- <div style="position:relative; width:100%; height:220px;">{dots}</div>
- <div class="legend">
- <span>LATENCY <span class="mono">{xmn:.0f}..{xmx:.0f} ms</span></span>
- <span class="mid"><span class="mono">{len(pts)}</span> points</span>
- <span>THROUGHPUT <span class="mono">{ymn:.0f}..{ymx:.0f} rps</span></span>
- </div>'''
-
-def stacked_html():
- base = [('2XX', 9620), ('3XX', 410), ('4XX', 190), ('5XX', 48)]
- regions = [('US', base),
- ('DE', [(l, int(v*0.6)) for l, v in base]),
- ('JP', [(l, int(v*0.45)) for l, v in base]),
- ('BR', [(l, int(v*0.3)) for l, v in base])]
- rows = []
- for region, segs in regions:
- total = sum(v for _, v in segs) or 1
- x = 0.0
- lines = []
- for i, (lbl, v) in enumerate(segs):
- segw = (v / total) * 1200
- op = max(0.14, 1 - i * 0.16)
- if segw > 0.5:
- lines.append(f'<line x1="{x:.1f}" y1="5" x2="{(x+segw):.1f}" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="{op:.2f}"/>')
- x += segw
- rows.append(f''' <div class="stk-row">
- <span class="stk-lbl">{region}</span>
- <svg viewBox="0 0 1200 10" preserveAspectRatio="none" style="width:100%; height:10px;">{"".join(lines)}</svg>
- <span class="mono faint">{fmt_num(total)}</span>
- </div>''')
- return '<div class="stk-wrap">' + "\n".join(rows) + '</div>' + '<div class="stk-legend">2XX · 3XX · 4XX · 5XX</div>'
-
-def treemap_html():
- tree = [
- ("root", 13000, [
- ("api-gateway", 5100, [
- ("/v2/search", 2400, []),
- ("/v2/cart", 1800, []),
- ("/v2/catalog", 900, []),
- ]),
- ("auth-service", 2400, []),
- ("billing", 1600, []),
- ("checkout", 1400, []),
- ]),
- ]
- def walk(items, depth, parent_total=None):
- total = parent_total or sum(v for _, v, _ in items) or 1
- mx = max(v for _, v, _ in items) if items else 1
- out = []
- for label, value, kids in items:
- frac = value / mx
- pct = 100 * value / total
- xw = 200 * frac
- indent = '·&nbsp;&nbsp;' * depth
- op = max(0.25, 1 - depth * 0.2)
- out.append(f''' <div class="row">
- <span class="row__label mono"><span class="faint">{indent}</span>{label}</span>
- <span class="row__val mono">{fmt_num(value)}</span>
- <span class="row__bar"><svg viewBox="0 0 200 6" preserveAspectRatio="none"><line x1="0" y1="3" x2="{xw:.1f}" y2="3" stroke="currentColor" stroke-width="1" stroke-opacity="{op:.2f}"/></svg></span>
- <span class="row__pct mono">{pct:.1f}%</span>
- </div>''')
- if kids:
- out.append(walk(kids, depth + 1, value))
- return "\n".join(out)
- return '<div class="topn-list">' + walk(tree, 0) + '</div>'
-
-def events_html():
- events = [
- ('23:14:02.081', 'err', 'upstream timed out while connecting to upstream · tenant=acme · req=a1f2…'),
- ('23:13:51.602', 'warn', 'slow query 842 ms · SELECT * FROM orders WHERE customer_id = ?'),
- ('23:13:04.114', 'info', 'batch 238 committed · 14,402 docs · 112 ms · lsn=0x3F A2 1C'),
- ('23:12:48.771', 'warn', 'rate limit approaching 85% for tenant=acme · 8,452/10,000 req/min'),
- ('23:12:09.033', 'info', 'segment merged · 3 → 1 · 412 MB → 386 MB · 640 ms'),
- ('23:11:52.118', 'info', 'ingest partition 4 caught up · lag 0 ms · commits/s 1,212'),
- ('23:11:41.884', 'err', 'chunk fetch 502 from storage-us-west-2 · retried once · succeeded'),
- ]
- def sev_color(sev):
- return {'err': 'var(--z-accent)', 'warn': 'var(--z-ink)', 'info': 'var(--z-mute)'}[sev]
- rows = []
- for at, sev, msg in events:
- rows.append(f''' <div class="ev-row">
- <span class="ev-at">{at}</span>
- <span class="ev-sev" style="color:{sev_color(sev)};">{sev}</span>
- <span class="ev-msg">{esc(msg)}</span>
- </div>''')
- return '<div class="ev-list">' + "\n".join(rows) + '</div>'
-
-def embedspace_html():
- clusters = [
- ('INVOICES', 1.2, 2.8, 22, 1.0),
- ('CONTRACTS', 3.4, 1.9, 18, 1.1),
- ('CHAT·SUPPORT',2.0, 0.6, 20, 0.9),
- ('CODE', 0.4, 1.2, 16, 0.7),
- ('POLICIES', 3.2, 3.6, 14, 0.8),
- ]
- embed = []
- for name, cx, cy, n, sp in clusters:
- pts = [(cx + (random.random()-0.5)*sp, cy + (random.random()-0.5)*sp) for _ in range(n)]
- embed.append((name, pts, (cx, cy)))
-
- def convex_hull(points):
- pts = sorted(points)
- if len(pts) < 3: return pts
- def cross(O, A, B): return (A[0]-O[0])*(B[1]-O[1]) - (A[1]-O[1])*(B[0]-O[0])
- lower = []
- for p in pts:
- while len(lower) >= 2 and cross(lower[-2], lower[-1], p) <= 0: lower.pop()
- lower.append(p)
- upper = []
- for p in reversed(pts):
- while len(upper) >= 2 and cross(upper[-2], upper[-1], p) <= 0: upper.pop()
- upper.append(p)
- return lower[:-1] + upper[:-1]
-
- W, H, pad = 1200, 360, 40
- ax = [p[0] for _, pts, _ in embed for p in pts]
- ay = [p[1] for _, pts, _ in embed for p in pts]
- xmn, xmx = min(ax), max(ax); ymn, ymx = min(ay), max(ay)
- px = lambda x: pad + ((x - xmn) / (xmx - xmn)) * (W - pad * 2)
- py = lambda y: pad + (1 - (y - ymn) / (ymx - ymn)) * (H - pad * 2)
-
- out = []
- for ci, (_, pts, _) in enumerate(embed):
- hull = convex_hull(pts)
- if len(hull) < 3: continue
- closed = hull + [hull[0]]
- poly = " ".join(f"{px(x):.1f},{py(y):.1f}" for x, y in closed)
- op = max(0.22, 0.55 - ci * 0.07)
- out.append(f'<polyline points="{poly}" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="{op:.2f}"/>')
- for ci, (_, pts, _) in enumerate(embed):
- op = max(0.35, 1 - ci * 0.09)
- for x, y in pts:
- out.append(f'<text x="{px(x):.1f}" y="{py(y):.1f}" fill="currentColor" opacity="{op:.2f}" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>')
- for name, _, (cx, cy) in embed:
- out.append(f'<text x="{px(cx):.1f}" y="{py(cy)-14:.1f}" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">{name}</text>')
- q = (2.1, 2.2)
- out.append(f'<line x1="{px(q[0]):.1f}" y1="0" x2="{px(q[0]):.1f}" y2="{H}" stroke="var(--z-accent)" stroke-width="1" stroke-opacity="0.45"/>')
- out.append(f'<line x1="0" y1="{py(q[1]):.1f}" x2="{W}" y2="{py(q[1]):.1f}" stroke="var(--z-accent)" stroke-width="1" stroke-opacity="0.45"/>')
- out.append(f'<text x="{px(q[0]):.1f}" y="{py(q[1]):.1f}" fill="var(--z-accent)" font-family="var(--font-data)" font-size="18" text-anchor="middle" dominant-baseline="middle">×</text>')
- out.append(f'<text x="{px(q[0])+8:.1f}" y="{py(q[1])-8:.1f}" fill="var(--z-accent)" font-family="var(--font-data)" font-size="11" letter-spacing="0.08em">QUERY</text>')
-
- pts_count = sum(len(p) for _, p, _ in embed)
- return f'''
- <svg viewBox="0 0 {W} {H}" preserveAspectRatio="none" style="width:100%; height:{H}px;">
- {chr(10).join(out)}
- </svg>
- <div class="legend">
- <span class="mono faint">UMAP · {pts_count} embeddings · {len(embed)} clusters</span>
- </div>'''
-
-def chordarcs_html():
- sources = [
- ('q1', 'q · "refund policy"'),
- ('q2', 'q · "price breakdown"'),
- ('q3', 'q · "SLA for enterprise"'),
- ('q4', 'q · "data retention"'),
- ('q5', 'q · "schema change"'),
- ]
- targets = [
- ('d1', 'doc · policy/refunds.md'),
- ('d2', 'doc · pricing/tiers.md'),
- ('d3', 'doc · contracts/sla.md'),
- ('d4', 'doc · security/retention.md'),
- ('d5', 'doc · runbooks/migrate.md'),
- ('d6', 'doc · faq/common.md'),
- ]
- flows = [
- ('q1','d1',0.95),('q1','d6',0.55),
- ('q2','d2',0.92),('q2','d6',0.35),
- ('q3','d3',0.88),('q3','d2',0.42),
- ('q4','d4',0.91),('q4','d1',0.30),
- ('q5','d5',0.82),('q5','d6',0.40),
- ]
- W, H, pad = 1200, 380, 24
- inner = H - pad * 2
- srcY = lambda i: pad + ((i + 0.5) / len(sources)) * inner
- tgtY = lambda i: pad + ((i + 0.5) / len(targets)) * inner
- leftX, rightX = 240, W - 240
- mxW = max(f[2] for f in flows)
-
- arcs = []
- for fr, to, w in flows:
- si = next(i for i, s in enumerate(sources) if s[0] == fr)
- ti = next(i for i, t in enumerate(targets) if t[0] == to)
- y1, y2 = srcY(si), tgtY(ti)
- cx1 = leftX + (rightX - leftX) * 0.38
- cx2 = leftX + (rightX - leftX) * 0.62
- op = max(0.1, min(0.9, (w / mxW) * 0.85))
- arcs.append(f'<path d="M {leftX},{y1:.1f} C {cx1:.1f},{y1:.1f} {cx2:.1f},{y2:.1f} {rightX},{y2:.1f}" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="{op:.2f}"/>')
-
- sl = "\n".join(
- f'<text x="{leftX - 12:.1f}" y="{srcY(i):.1f}" fill="currentColor" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">{esc(s[1])}</text>'
- for i, s in enumerate(sources))
- tl = "\n".join(
- f'<text x="{rightX + 12:.1f}" y="{tgtY(i):.1f}" fill="currentColor" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">{esc(t[1])}</text>'
- for i, t in enumerate(targets))
- hs = f'<text x="{leftX - 12:.1f}" y="{pad - 8:.1f}" fill="currentColor" opacity="0.6" font-family="var(--font-prose)" font-size="11" font-weight="600" letter-spacing="2" text-anchor="end">QUERY</text>'
- ht = f'<text x="{rightX + 12:.1f}" y="{pad - 8:.1f}" fill="currentColor" opacity="0.6" font-family="var(--font-prose)" font-size="11" font-weight="600" letter-spacing="2">CHUNK</text>'
-
- return f'''
- <svg viewBox="0 0 {W} {H}" preserveAspectRatio="none" style="width:100%; height:{H}px; overflow:visible;">
- {chr(10).join(arcs)}
- {sl}
- {tl}
- {hs}
- {ht}
- </svg>
- <div class="legend">
- <span class="mono faint">{len(flows)} flows · {len(sources)} → {len(targets)}</span>
- </div>'''
-
-def flowband_html():
- segs = [('SYSTEM',1200),('CONTEXT',6400),('RETRIEVAL',14200),('HISTORY',2800),('ANSWER',3400)]
- total = sum(v for _, v in segs) or 1
- W, H = 1200, 16
- parts = []
- x = 0.0
- for i, (lbl, v) in enumerate(segs):
- w = (v / total) * W
- op = max(0.28, 1 - i * 0.16)
- parts.append(f'<line x1="{x:.1f}" y1="2" x2="{x:.1f}" y2="14" stroke="currentColor" stroke-width="1" stroke-opacity="0.4"/>')
- if w > 1:
- parts.append(f'<line x1="{x:.1f}" y1="8" x2="{x+w:.1f}" y2="8" stroke="currentColor" stroke-width="2" stroke-opacity="{op:.2f}"/>')
- x += w
- parts.append(f'<line x1="{W}" y1="2" x2="{W}" y2="14" stroke="currentColor" stroke-width="1" stroke-opacity="0.4"/>')
- labels = []
- for i, (lbl, v) in enumerate(segs):
- pct = 100 * v / total
- color = 'var(--z-accent)' if i == 2 else 'var(--z-mute)'
- labels.append(f''' <div class="fb-lbl">
- <div class="fb-name" style="color:{color};">{lbl}</div>
- <div class="mono" style="color:var(--z-ink); font-size:13px;">{fmt_num(v)} tok</div>
- <div class="mono faint">{pct:.1f} %</div>
- </div>''')
- return f'''
- <svg viewBox="0 0 {W} {H}" preserveAspectRatio="none" style="width:100%; height:{H}px; overflow:visible; display:block;">{"".join(parts)}</svg>
- <div class="fb-grid">
-{chr(10).join(labels)}
- </div>'''
-
-def parallelcoords_html():
- dims = [('LATENCY',8,60),('TOKENS',200,4800),('COST $',0.002,0.12),('SCORE',0.4,0.98),('RETRIEVED',3,22)]
- rows = [[random.uniform(mn+(mx-mn)*0.1, mn+(mx-mn)*0.9) for _, mn, mx in dims] for _ in range(24)]
- hl = [32, 2400, 0.09, 0.94, 18]
- W, H, pad, top, bot = 1200, 260, 60, 36, 36
- colX = lambda i: pad + (i / (len(dims)-1 or 1)) * (W - pad*2)
- axes = "\n".join(
- f'<line x1="{colX(i):.1f}" y1="{top}" x2="{colX(i):.1f}" y2="{H-bot}" stroke="currentColor" stroke-width="1" stroke-opacity="0.2"/>'
- for i in range(len(dims))
- )
- def poly(row, op, color='currentColor'):
- pts = []
- for i, v in enumerate(row):
- _, mn, mx = dims[i]
- frac = (v - mn) / (mx - mn or 1)
- x = colX(i)
- y = top + (1 - max(0, min(1, frac))) * (H - top - bot)
- pts.append(f"{x:.1f},{y:.1f}")
- return f'<polyline points="{" ".join(pts)}" fill="none" stroke="{color}" stroke-width="1" stroke-opacity="{op}"/>'
- bodies = "\n".join(poly(r, '0.16') for r in rows)
- hl_svg = poly(hl, '1', 'var(--z-accent)')
- labels = []
- for i, (name, mn, mx) in enumerate(dims):
- x = colX(i)
- labels.append(f'<text x="{x:.1f}" y="22" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">{name}</text>')
- labels.append(f'<text x="{x:.1f}" y="{H-16}" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">{fmt_num(mn)}</text>')
- labels.append(f'<text x="{x:.1f}" y="{H-4}" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">{fmt_num(mx)}</text>')
- return f'''
- <svg viewBox="0 0 {W} {H}" preserveAspectRatio="none" style="width:100%; height:{H}px;">
- {axes}
- {bodies}
- {hl_svg}
- {chr(10).join(labels)}
- </svg>
- <div class="legend">
- <span class="mono faint">{len(rows)} rows · {len(dims)} dimensions · 1 highlighted</span>
- </div>'''
-
-def attentionmap_html():
- tokens = [
- ('The',0.2),('XERJ',0.82),('engine',0.55),('stores',0.78),('billions',0.95),
- ('of',0.15),('vectors',0.88),('in',0.12),('a',0.08),('single',0.45),
- ('segment',0.72),('cache',0.68),('and',0.14),('returns',0.51),('hybrid',0.85),
- ('results',0.64),('in',0.10),('under',0.42),('40',0.98),('milliseconds.',0.60),
- ]
- mx = max(w for _, w in tokens)
- spans = []
- for t, w in tokens:
- op = max(0.08, w / mx)
- style = f'color:var(--z-accent); opacity:{op:.2f};' if w / mx > 0.82 else f'opacity:{op:.2f};'
- spans.append(f'<span style="{style}">{esc(t)}</span>')
- top3 = [t for t, _ in sorted(tokens, key=lambda x: -x[1])[:3]]
- return f'''
- <div class="attn">{' '.join(spans)}</div>
- <div class="legend">
- <span class="mono faint">peak attention on <span class="accent">{' · '.join(top3)}</span></span>
- </div>'''
-
-# ============================================================
-# LOGO BUILDERS
-# ============================================================
-
-def wordmark_svg(stroke_bottom='#f4f2ec', stroke_top='#ffc400',
- xerj_fill='#f4f2ec', ai_fill='#ffc400', bg='#0b0b0d',
- with_bg=True):
- bg_rect = f'<rect width="800" height="240" fill="{bg}"/>' if with_bg else ''
- return f'''<svg viewBox="0 0 800 240" preserveAspectRatio="xMidYMid meet" style="width:100%; display:block;">
- {bg_rect}
- <line x1="90" y1="200" x2="530" y2="200" stroke="{stroke_bottom}" stroke-width="1" stroke-linecap="square"/>
- <line x1="530" y1="40" x2="710" y2="40" stroke="{stroke_top}" stroke-width="1" stroke-linecap="square"/>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="end" fill="{xerj_fill}">XERJ</text>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="start" fill="{ai_fill}">.AI</text>
-</svg>'''
-
-def letter_mark_svg(fill='#ffc400', bg='#0b0b0d', with_bg=True):
- bg_rect = f'<rect width="200" height="200" fill="{bg}"/>' if with_bg else ''
- return f'''<svg viewBox="0 0 200 200" preserveAspectRatio="xMidYMid meet" style="width:100%; display:block;">
- {bg_rect}
- <line x1="30" y1="24" x2="170" y2="24" stroke="{fill}" stroke-width="1" stroke-linecap="square"/>
- <line x1="30" y1="170" x2="170" y2="170" stroke="{fill}" stroke-width="1" stroke-linecap="square"/>
- <text x="100" y="140" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="120" text-anchor="middle" fill="{fill}">X</text>
-</svg>'''
-
-def short_form_svg():
- return '''<svg viewBox="0 0 600 240" preserveAspectRatio="xMidYMid meet" style="width:100%; display:block;">
- <rect width="600" height="240" fill="#0b0b0d"/>
- <line x1="90" y1="40" x2="510" y2="40" stroke="#f4f2ec" stroke-width="1" stroke-linecap="square"/>
- <line x1="90" y1="200" x2="510" y2="200" stroke="#f4f2ec" stroke-width="1" stroke-linecap="square"/>
- <text x="300" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="4" text-anchor="middle" fill="#f4f2ec">XERJ</text>
-</svg>'''
-
-def systemline_svg():
- return '''<svg viewBox="0 0 800 100" preserveAspectRatio="xMidYMid meet" style="width:100%; display:block;">
- <rect width="800" height="100" fill="#0b0b0d"/>
- <line x1="210" y1="78" x2="450" y2="78" stroke="#3a3836" stroke-width="1" stroke-linecap="square"/>
- <line x1="450" y1="22" x2="600" y2="22" stroke="#ffc400" stroke-width="1" stroke-linecap="square"/>
- <text x="400" y="58" font-family="'IBM Plex Sans','Inter',sans-serif" font-weight="600" font-size="20" letter-spacing="4.8" text-anchor="middle" fill="#f4f2ec">XERJ.AI · OBSERVE</text>
-</svg>'''
-
-# ============================================================
-# DOCUMENT
-# ============================================================
-
-STYLE = r'''
-@page {
- size: 8.5in 11in;
- margin: 0;
- background: #0b0b0d;
-}
-* { box-sizing: border-box; }
-html, body {
- margin: 0; padding: 0;
- background: #0b0b0d;
- color: #f4f2ec;
- font-family: 'Inter', system-ui, sans-serif;
- font-size: 11pt;
- line-height: 1.5;
- -webkit-print-color-adjust: exact;
- print-color-adjust: exact;
-}
-:root {
- --z-bg: #0b0b0d;
- --z-ink: #f4f2ec;
- --z-mute: #8a8680;
- --z-faint: #2b2a28;
- --z-line: #3a3836;
- --z-accent: #ffc400;
- --font-display: 'Big Shoulders Display', 'Inter', system-ui, sans-serif;
- --font-prose: 'Inter', system-ui, sans-serif;
- --font-data: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
- --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
- --track-ui: 0.14em;
-}
-
-.page {
- width: 8.5in;
- height: 11in;
- padding: 0.6in 0.7in;
- page-break-after: always;
- page-break-inside: avoid;
- break-after: page;
- break-inside: avoid;
- background: #0b0b0d;
- position: relative;
- overflow: hidden;
- display: flex;
- flex-direction: column;
-}
-.page:last-child { page-break-after: auto; }
-
-/* page header/footer — tiny signature bars */
-.phead {
- display: flex; justify-content: space-between;
- font-family: var(--font-data);
- font-size: 8pt;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--z-mute);
- padding-bottom: 8pt;
- border-bottom: 1px solid var(--z-line);
- margin-bottom: 18pt;
-}
-.phead .right { color: var(--z-mute); }
-.pfoot {
- margin-top: auto;
- padding-top: 10pt;
- border-top: 1px solid var(--z-line);
- display: flex; justify-content: space-between;
- font-family: var(--font-data);
- font-size: 8pt;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--z-mute);
-}
-.pfoot .pgnum { color: var(--z-ink); font-weight: 600; }
-
-/* typography scale */
-h1.cover-title {
- font-family: var(--font-display); font-weight: 900;
- font-size: 72pt; line-height: 0.9; letter-spacing: -0.01em;
- margin: 0;
-}
-h1.ch-num {
- font-family: var(--font-display); font-weight: 900;
- font-size: 260pt; line-height: 1; letter-spacing: -0.03em;
- margin: 0; color: var(--z-accent);
-}
-h1.ch-title {
- font-family: var(--font-display); font-weight: 900;
- font-size: 60pt; line-height: 0.9; letter-spacing: -0.01em;
- margin: 0 0 6pt;
-}
-h2.scene {
- font-family: var(--font-display); font-weight: 900;
- font-size: 32pt; line-height: 0.95; letter-spacing: -0.005em;
- margin: 0 0 10pt;
-}
-h3 {
- font-family: var(--font-display); font-weight: 900;
- font-size: 18pt; line-height: 1.1; letter-spacing: 0.005em;
- margin: 14pt 0 8pt;
-}
-h4 {
- font-family: var(--font-data); font-weight: 700;
- font-size: 9pt; letter-spacing: var(--track-ui);
- text-transform: uppercase; color: var(--z-mute);
- margin: 10pt 0 6pt;
-}
-p { margin: 0 0 8pt; font-size: 10.5pt; line-height: 1.55; max-width: 6.8in; }
-p.lead { font-size: 13pt; line-height: 1.45; max-width: 6.2in; }
-.kicker {
- font-family: var(--font-data); font-weight: 700;
- font-size: 8pt; letter-spacing: var(--track-ui);
- text-transform: uppercase; color: var(--z-mute);
- display: flex; gap: 8pt; align-items: center; flex-wrap: wrap;
-}
-.kicker .dash { color: var(--z-faint); }
-.kicker.big { font-size: 10pt; color: var(--z-ink); letter-spacing: 0.18em; }
-
-.accent { color: var(--z-accent); }
-.mute { color: var(--z-mute); }
-.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
-.faint { color: var(--z-mute); }
-
-.rule { border-bottom: 1px solid var(--z-line); margin: 14pt 0; }
-
-/* LOGO DISPLAY FRAMES */
-.lockup {
- border: 1px solid var(--z-line);
- padding: 24pt;
- margin: 12pt 0;
- position: relative;
-}
-.lockup[data-bg="day"] { background: #f6f4ee; color: #11120f; }
-.lockup[data-bg="paper"] { background: #f4f2ec; color: #0b0b0d; }
-.lockup .cap {
- position: absolute; top: 6pt; left: 10pt;
- font-family: var(--font-data); font-size: 7.5pt;
- letter-spacing: var(--track-ui); color: var(--z-mute);
- text-transform: uppercase;
-}
-.lockup[data-bg="day"] .cap, .lockup[data-bg="paper"] .cap { color: #696762; }
-
-/* 2-up / 4-up grids */
-.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12pt; }
-.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12pt; }
-
-/* CHART TOKENS */
-.chart-card {
- padding: 12pt 0;
- border-top: 1px solid var(--z-line);
- border-bottom: 1px solid var(--z-line);
- color: var(--z-ink);
- margin-top: 10pt;
-}
-.legend {
- display: flex; justify-content: space-between;
- font-family: var(--font-data); font-size: 9pt;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--z-mute);
- margin-top: 8pt;
-}
-.legend .mid { flex: 1; text-align: center; }
-.legend .mono { color: var(--z-ink); text-transform: none; letter-spacing: 0; font-family: var(--font-mono); }
-
-/* Top-N */
-.topn-list .row {
- display: grid;
- grid-template-columns: minmax(0, 1fr) 70pt minmax(0, 1fr) 44pt;
- gap: 8pt; align-items: baseline;
- padding: 5pt 0;
- border-bottom: 1px solid var(--z-faint);
- font-family: var(--font-data);
- font-size: 9.5pt;
- font-variant-numeric: tabular-nums;
-}
-.topn-list .row__label { color: var(--z-ink); overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
-.topn-list .row__val { text-align: right; font-weight: 700; color: var(--z-ink); }
-.topn-list .row__bar { color: var(--z-accent); }
-.topn-list .row__bar svg { width: 100%; height: 4pt; }
-.topn-list .row__pct { text-align: right; color: var(--z-mute); font-size: 8pt; }
-
-/* Dist legend */
-.dist-legend {
- display: flex; flex-wrap: wrap; gap: 14pt 26pt; margin-top: 10pt;
-}
-.dist-legend .stack { display: flex; flex-direction: column; gap: 2pt; min-width: 64pt; }
-.dist-legend .key { font-family: var(--font-data); font-size: 8pt; letter-spacing: var(--track-ui); color: var(--z-mute); text-transform: uppercase; }
-.dist-legend .mono { font-family: var(--font-mono); color: var(--z-ink); }
-.dist-legend .mono.big { font-size: 15pt; font-weight: 700; }
-.dist-legend .mono.faint { color: var(--z-mute); font-size: 9pt; }
-
-/* Heatmap */
-.heatmap {
- font-family: var(--font-mono); font-size: 8.5pt; line-height: 1.7;
- white-space: nowrap;
-}
-.heatmap-row { display: block; white-space: nowrap; }
-.heatmap-row .row-label {
- display: inline-block; width: 70pt;
- font-family: var(--font-data); font-size: 7.5pt;
- letter-spacing: var(--track-ui); color: var(--z-mute);
- text-transform: uppercase;
-}
-.heatmap-row .hc {
- display: inline-block; width: 28pt; text-align: right;
-}
-.heatmap-row.heatmap-head .hc { color: var(--z-mute); }
-
-/* Multiples grid */
-.mult-grid {
- display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12pt 14pt;
- margin-top: 8pt;
-}
-.mult-cell { color: var(--z-ink); }
-.mult-cell .mult-head {
- display: flex; justify-content: space-between; align-items: baseline;
- margin-bottom: 3pt;
- font-family: var(--font-data); font-size: 8pt;
- letter-spacing: var(--track-ui);
- text-transform: uppercase; color: var(--z-mute);
-}
-.mult-cell svg { width: 100%; height: 22px; display: block; }
-
-/* Stacked */
-.stk-wrap .stk-row {
- display: grid; grid-template-columns: 40pt 1fr 60pt;
- gap: 12pt; align-items: center;
- padding: 5pt 0;
- border-bottom: 1px solid var(--z-faint);
- font-family: var(--font-data); font-size: 9pt;
-}
-.stk-lbl { color: var(--z-mute); letter-spacing: var(--track-ui); }
-.stk-legend {
- margin-top: 6pt;
- font-family: var(--font-data); font-size: 7.5pt;
- letter-spacing: var(--track-ui); color: var(--z-mute);
- text-transform: uppercase;
-}
-
-/* Events */
-.ev-list {}
-.ev-row {
- display: grid; grid-template-columns: 80pt 40pt 1fr;
- gap: 10pt; padding: 4pt 0;
- border-bottom: 1px solid var(--z-faint);
- font-family: var(--font-mono); font-size: 8.5pt;
- font-variant-numeric: tabular-nums;
-}
-.ev-at { color: var(--z-mute); }
-.ev-sev { font-family: var(--font-data); font-size: 7.5pt; letter-spacing: var(--track-ui); text-transform: uppercase; }
-.ev-msg { color: var(--z-ink); overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
-
-/* Flowband */
-.fb-grid {
- display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
- gap: 8pt 14pt; margin-top: 8pt;
-}
-.fb-lbl .fb-name {
- font-family: var(--font-data); font-size: 8pt;
- letter-spacing: var(--track-ui); text-transform: uppercase;
-}
-
-/* Attention */
-.attn {
- font-family: var(--font-data); font-size: 13pt; line-height: 1.85;
- max-width: 6.6in;
- color: var(--z-ink);
-}
-.attn .accent { color: var(--z-accent); }
-
-/* Color swatches */
-.swatch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16pt; margin-top: 10pt; }
-.swatch {
- display: grid; grid-template-columns: 60pt 1fr 80pt;
- gap: 10pt; align-items: center;
- padding: 6pt 0;
- border-bottom: 1px solid var(--z-faint);
-}
-.swatch .chip {
- width: 60pt; height: 36pt;
- border: 1px solid var(--z-line);
-}
-.swatch .name { color: var(--z-ink); font-family: var(--font-data); font-size: 9pt; letter-spacing: var(--track-ui); text-transform: uppercase; }
-.swatch .hex { color: var(--z-mute); font-family: var(--font-mono); font-size: 9pt; text-align: right; }
-
-/* Typeface rows */
-.tf-row { padding: 10pt 0; border-bottom: 1px solid var(--z-faint); }
-.tf-row .tf-name { font-family: var(--font-data); font-size: 8pt; letter-spacing: var(--track-ui); color: var(--z-mute); text-transform: uppercase; margin-bottom: 4pt; }
-
-/* Scale ladder */
-.scale-row { display: grid; grid-template-columns: 60pt 1fr 120pt; gap: 14pt; align-items: baseline; padding: 6pt 0; border-bottom: 1px solid var(--z-faint); }
-.scale-row .px { font-family: var(--font-mono); font-size: 9pt; color: var(--z-mute); }
-.scale-row .use { font-family: var(--font-data); font-size: 8pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--z-mute); text-align: right; }
-
-/* Do/Dont */
-.verdict { display: grid; grid-template-columns: 50pt 1fr; gap: 12pt; padding: 8pt 0; border-bottom: 1px solid var(--z-faint); }
-.verdict .tag { font-family: var(--font-data); font-size: 8pt; letter-spacing: var(--track-ui); text-transform: uppercase; }
-.verdict .tag.yes { color: var(--z-accent); }
-.verdict .tag.no { color: var(--z-mute); }
-.verdict .body { font-family: var(--font-prose); font-size: 10pt; color: var(--z-ink); line-height: 1.5; }
-
-/* Size ladder cell for logo */
-.ladder-row { display: grid; grid-template-columns: 80pt 1fr 120pt; gap: 14pt; align-items: center; padding: 6pt 0; border-bottom: 1px solid var(--z-faint); }
-.ladder-row .px { font-family: var(--font-mono); font-size: 8pt; color: var(--z-mute); }
-.ladder-row .use { font-family: var(--font-data); font-size: 8pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--z-mute); text-align: right; }
-.ladder-row .ex { display: flex; align-items: baseline; }
-
-/* Contents */
-.toc-row {
- display: grid; grid-template-columns: 32pt 1fr 40pt;
- gap: 14pt; align-items: baseline;
- padding: 10pt 0;
- border-bottom: 1px solid var(--z-faint);
-}
-.toc-num { font-family: var(--font-mono); color: var(--z-accent); font-size: 11pt; font-weight: 700; }
-.toc-title { font-family: var(--font-display); font-weight: 900; font-size: 22pt; letter-spacing: 0.005em; }
-.toc-page { font-family: var(--font-mono); color: var(--z-mute); font-size: 10pt; text-align: right; font-variant-numeric: tabular-nums; }
-
-/* Narrative */
-.three-principles {
- display: grid; grid-template-columns: 1fr; gap: 14pt;
-}
-.principle {
- padding-top: 14pt;
- border-top: 1px solid var(--z-line);
-}
-
-/* 6-row dashboard infographic */
-.infog {
- border-top: 1px solid var(--z-line);
- border-bottom: 1px solid var(--z-line);
- margin-top: 12pt;
-}
-.infog .row {
- display: grid; grid-template-columns: 1fr 80pt 60pt;
- gap: 12pt; align-items: baseline;
- padding: 7pt 0; border-bottom: 1px solid var(--z-faint);
- font-family: var(--font-data); font-size: 9pt;
- letter-spacing: var(--track-ui); text-transform: uppercase;
-}
-.infog .row:last-child { border-bottom: 0; }
-.infog .row .k { color: var(--z-mute); }
-.infog .row .v { font-family: var(--font-mono); color: var(--z-ink); text-align: right; letter-spacing: 0; text-transform: none; }
-.infog .row .gold { color: var(--z-accent); text-align: right; font-family: var(--font-mono); }
-
-/* Download table */
-.dl-list {}
-.dl-row {
- display: grid; grid-template-columns: 120pt 1fr 80pt;
- gap: 12pt; align-items: baseline;
- padding: 7pt 0;
- border-bottom: 1px solid var(--z-faint);
- font-family: var(--font-data); font-size: 9pt;
- letter-spacing: var(--track-ui); text-transform: uppercase;
-}
-.dl-row .name { color: var(--z-ink); }
-.dl-row .desc { color: var(--z-mute); text-transform: none; letter-spacing: 0; font-family: var(--font-prose); font-size: 9pt; }
-.dl-row .get { color: var(--z-accent); text-align: right; }
-
-/* Rule diagram (clear space) */
-.cs-demo {
- border: 1px solid var(--z-line);
- padding: 36pt 24pt;
- margin-top: 14pt;
- background: var(--z-bg);
-}
-.cs-demo svg { width: 100%; height: auto; display: block; }
-'''
-
-
-def page_header(kicker, ch):
- return f''' <div class="phead"><span>XERJ.AI · BRAND BOOK · V1</span><span class="right">{esc(kicker)}</span></div>'''
-
-def page_footer(pgnum, section):
- return f''' <div class="pfoot"><span>{esc(section)}</span><span class="pgnum">{pgnum:02d}</span></div>'''
-
-
-# ============================================================
-# PAGE BUILDERS
-# ============================================================
-
-pages = []
-
-# --- P1 · COVER ---
-pages.append(f'''<div class="page" style="padding:0.7in; display:flex; flex-direction:column; justify-content:space-between;">
- <!-- TOP ROW · kicker left · wordmark pinned top-right as the identifier -->
- <div style="display:flex; justify-content:space-between; align-items:flex-start; gap:30pt;">
- <div class="kicker big" style="padding-top:6pt;"><span>BRAND BOOK</span><span class="dash">·</span><span>V1</span><span class="dash">·</span><span>2026·04</span></div>
- <div style="width:2.6in; flex-shrink:0;">
- {wordmark_svg()}
- </div>
- </div>
-
- <!-- CENTER · the book title IS the cover -->
- <div>
- <h1 class="cover-title">BRAND<br>BOOK.</h1>
- <p class="lead" style="color:var(--z-mute); max-width:4.6in; margin-top:18pt;">
- The rules that carry the XERJ.AI identity across every
- surface — logo, colour, typography, UX, voice — codified
- in one place.
- </p>
- </div>
-
- <!-- BOTTOM · issuance line -->
- <div style="display:flex; justify-content:space-between; font-family:var(--font-data); font-size:9pt; letter-spacing:var(--track-ui); text-transform:uppercase; color:var(--z-mute); padding-top:10pt; border-top:1px solid var(--z-line);">
- <span>ISSUED BY · XERJ.AI DESIGN</span>
- <span>XERJ.AI · OBSERVE</span>
- </div>
-</div>''')
-
-# --- P2 · COLOPHON ---
-pages.append(f'''<div class="page">
-{page_header("COLOPHON", "")}
- <div style="flex:1; display:flex; flex-direction:column; justify-content:center; max-width:5.8in;">
- <h2 class="scene">THIS BOOK<br>CODIFIES THE<br><span class="accent">LANGUAGE.</span></h2>
- <p class="lead">
- XERJ is a storage system. It looks like a storage system.
- The product is typography, negative space, and 1&thinsp;px
- lines — and this document is the rulebook that keeps it that
- way.
- </p>
- <p>
- Seven chapters. Logo, colour, typography, UX and charts,
- philosophy, voice, and resources. Every rule herein is
- non-negotiable. A designer who wants to break one is welcome
- to file a 500-word essay explaining why, and if we ship the
- exception it becomes a new rule.
- </p>
- <div class="rule"></div>
- <div class="kicker"><span>ISSUED BY</span><span class="dash">·</span><span>XERJ.AI DESIGN</span></div>
- <div class="kicker"><span>VERSION</span><span class="dash">·</span><span>1.0 · 2026-04</span></div>
- <div class="kicker"><span>REPLACES</span><span class="dash">·</span><span>—</span></div>
- <div class="kicker"><span>OWNER</span><span class="dash">·</span><span>BRAND · XERJ.AI</span></div>
- </div>
-{page_footer(2, "COLOPHON")}
-</div>''')
-
-# --- P3 · CONTENTS ---
-toc = [
- (1, 'LOGO', 'The word is the mark.', 4),
- (2, 'COLOR', 'Gold is earned.', 13),
- (3, 'TYPOGRAPHY', 'Four typefaces. Seven sizes.', 17),
- (4, 'UX & DATA', 'Type is the infographic.', 21),
- (5, 'PHILOSOPHY', 'Why it looks like this.', 33),
- (6, 'VOICE', 'Solid. Quiet. Technical.', 37),
- (7, 'RESOURCES', 'Downloads and references.', 39),
-]
-toc_rows = "\n".join(
- f''' <div class="toc-row">
- <span class="toc-num">0{n}</span>
- <span class="toc-title">{title}<span style="font-family:var(--font-prose); font-weight:400; font-size:11pt; color:var(--z-mute); margin-left:10pt;">{sub}</span></span>
- <span class="toc-page">p. {pg:02d}</span>
- </div>''' for n, title, sub, pg in toc)
-pages.append(f'''<div class="page">
-{page_header("CONTENTS", "")}
- <h2 class="scene" style="margin-bottom:14pt;">CONTENTS.</h2>
- {toc_rows}
-{page_footer(3, "CONTENTS")}
-</div>''')
-
-# ============================================================
-# CHAPTER 01 · LOGO
-# ============================================================
-
-# --- P4 · CH01 DIVIDER ---
-pages.append(f'''<div class="page" style="display:flex; flex-direction:column; justify-content:space-between;">
-{page_header("CHAPTER 01 · LOGO", "01")}
- <div style="flex:1; display:flex; flex-direction:column; justify-content:center;">
- <h1 class="ch-num">01</h1>
- <h1 class="ch-title">LOGO.</h1>
- <p class="lead" style="max-width:5.6in; margin-top:6pt;">
- The word is the mark. Two 1&thinsp;px rules carry the story —
- a paper-coloured line under XERJ, a yellow line over .AI.
- Storage on the bottom. AI on top.
- </p>
- </div>
-{page_footer(4, "CHAPTER 01 · LOGO")}
-</div>''')
-
-# --- P5 · PRIMARY WORDMARK ---
-pages.append(f'''<div class="page">
-{page_header("01 · LOGO · PRIMARY", "01")}
- <div class="kicker"><span>01</span><span class="dash">·</span><span>PRIMARY WORDMARK</span></div>
- <h2 class="scene">XERJ<span class="accent">.AI</span></h2>
- <p>
- The primary lockup. Root word set in paper (<span class="mono">#F4F2EC</span>)
- on night (<span class="mono">#0B0B0D</span>). Suffix
- <span class="accent">.AI</span> in accent (<span class="mono">#FFC400</span>).
- Paper line under XERJ (the stored record). Yellow line over .AI
- (the answer served back).
- </p>
-
- <div class="lockup" data-bg="night" style="padding:40pt;">
- <span class="cap">01 · NIGHT · PRIMARY</span>
- <div style="width:100%; max-width:5.4in; margin:0 auto;">
- {wordmark_svg()}
- </div>
- </div>
-
- <h4>CONSTRUCTION</h4>
- <p>
- Typeface: <span class="mono">Big Shoulders Display 900</span>.
- Tracking: <span class="mono">+0.24 em</span>. Both rules are
- exactly <span class="mono">1&thinsp;px</span>, placed
- <span class="mono">30&thinsp;px</span> from baseline
- (<span class="mono">y=170</span>) and
- <span class="mono">30&thinsp;px</span> from cap-top
- (<span class="mono">y=70</span>). Measured, not optical.
- </p>
-{page_footer(5, "CHAPTER 01 · LOGO")}
-</div>''')
-
-# --- P6 · RULE OF COLOUR ---
-pages.append(f'''<div class="page">
-{page_header("01 · LOGO · RULE OF COLOUR", "01")}
- <div class="kicker"><span>01</span><span class="dash">·</span><span>RULE OF COLOUR</span></div>
- <h2 class="scene">STORED <span style="color:var(--z-ink);">BELOW.</span><br>SERVED <span class="accent">ABOVE.</span></h2>
- <p class="lead">
- A rule always takes the colour of the text it touches.
- The paper line under <span style="color:var(--z-ink);">XERJ</span> is paper.
- The yellow line over <span class="accent">.AI</span> is yellow.
- Never cross-colour. Never extend one rule past the boundary to
- underline both halves.
- </p>
-
- <div class="lockup" data-bg="night">
- <span class="cap">DETAIL · THE TWO RULES MEET AT THE DOT</span>
- <div style="width:100%; max-width:5.6in; margin:14pt auto 0;">
- {wordmark_svg()}
- </div>
- </div>
-
- <p>
- Each rule owns exactly its half of the record. The offset
- between them — one above, one below — reads as
- "storage → retrieval" in a single glance. That diagonal motion
- is the mark's identity.
- </p>
-{page_footer(6, "CHAPTER 01 · LOGO")}
-</div>''')
-
-# --- P7 · SHORT FORM + LETTER MARK + SYSTEM LINE ---
-pages.append(f'''<div class="page">
-{page_header("01 · LOGO · SHORTER FORMS", "01")}
- <div class="kicker"><span>01</span><span class="dash">·</span><span>SHORTER FORMS</span></div>
- <h2 class="scene">SHORT.<br><span class="accent">SHORTER.</span></h2>
- <p>
- When space is tight the wordmark drops the suffix. At favicon
- scale only the X remains. The rule system simplifies: both
- rules take the colour of whatever text is left.
- </p>
-
- <div class="grid-2">
- <div class="lockup" data-bg="night">
- <span class="cap">02A · SHORT FORM · PAPER RULES</span>
- <div style="width:100%; max-width:3.6in; margin:14pt auto 0;">
- {short_form_svg()}
- </div>
- </div>
- <div class="lockup" data-bg="night">
- <span class="cap">02B · LETTER MARK · THE KEY</span>
- <div style="width:1.6in; margin:14pt auto 0;">
- {letter_mark_svg()}
- </div>
- </div>
- </div>
-
- <div class="lockup" data-bg="night" style="margin-top:14pt;">
- <span class="cap">03 · SYSTEM LINE · TRACKED SIGNATURE</span>
- <div style="width:100%; max-width:5.2in; margin:14pt auto 0;">
- {systemline_svg()}
- </div>
- </div>
-
- <p>
- Approved second-tag variants:
- <span class="mono">OBSERVE</span> (default),
- <span class="mono">INDEX</span> (docs),
- <span class="mono">EXPLAIN</span> (compliance),
- <span class="mono">QUERY</span> (product dashboards).
- One tag per surface. Never stacked.
- </p>
-{page_footer(7, "CHAPTER 01 · LOGO")}
-</div>''')
-
-# --- P8 · COLOR TREATMENTS (4 lockups) ---
-pages.append(f'''<div class="page">
-{page_header("01 · LOGO · COLOUR TREATMENTS", "01")}
- <div class="kicker"><span>01</span><span class="dash">·</span><span>COLOUR TREATMENTS</span></div>
- <h2 class="scene">FOUR SURFACES.<br>ONE <span class="accent">MARK.</span></h2>
-
- <div class="grid-2">
- <div class="lockup" data-bg="night">
- <span class="cap">04A · NIGHT · #0B0B0D</span>
- <div style="width:100%; max-width:3.3in; margin:12pt auto 0;">{wordmark_svg()}</div>
- </div>
- <div class="lockup" data-bg="day">
- <span class="cap">04B · DAY · #F6F4EE</span>
- <div style="width:100%; max-width:3.3in; margin:12pt auto 0;">{wordmark_svg(stroke_bottom="#11120f", stroke_top="#a06800", xerj_fill="#11120f", ai_fill="#a06800", bg="#f6f4ee")}</div>
- </div>
- <div class="lockup" data-bg="paper">
- <span class="cap">04C · PAPER · PRINT</span>
- <div style="width:100%; max-width:3.3in; margin:12pt auto 0;">{wordmark_svg(stroke_bottom="#0b0b0d", stroke_top="#a06800", xerj_fill="#0b0b0d", ai_fill="#a06800", bg="#f4f2ec")}</div>
- </div>
- <div class="lockup" data-bg="night">
- <span class="cap">04D · MONO · OUTLINE</span>
- <div style="width:100%; max-width:3.3in; margin:12pt auto 0;">{wordmark_svg(stroke_bottom="currentColor", stroke_top="currentColor", xerj_fill="currentColor", ai_fill="currentColor", bg="#0b0b0d")}</div>
- </div>
- </div>
-
- <p style="margin-top:10pt;">
- Night is primary. Day is a courtesy. Paper is for print. Mono
- (<span class="mono">currentColor</span>) is the fallback for
- decks and partner surfaces we do not control — we do not ship
- neon yellow on someone else's background.
- </p>
-{page_footer(8, "CHAPTER 01 · LOGO")}
-</div>''')
-
-# --- P9 · CLEAR SPACE ---
-pages.append(f'''<div class="page">
-{page_header("01 · LOGO · CLEAR SPACE", "01")}
- <div class="kicker"><span>01</span><span class="dash">·</span><span>CLEAR SPACE</span></div>
- <h2 class="scene">CLEAR SPACE<br>= HEIGHT OF <span class="accent">X.</span></h2>
- <p>
- Minimum padding around the wordmark on every side is equal to
- the cap height of X at whatever size the mark is rendered.
- Absolute — no edge of the wordmark ever sits closer than one X
- to a container border, photo crop, another logo, or interface
- chrome.
- </p>
-
- <div class="cs-demo">
- <svg viewBox="0 0 680 320" preserveAspectRatio="xMidYMid meet" style="color: var(--z-line);">
- <rect x="20" y="20" width="640" height="280" fill="none" stroke="currentColor" stroke-width="1"/>
- <rect x="120" y="100" width="440" height="120" fill="none" stroke="currentColor" stroke-width="1" stroke-dasharray="2 4"/>
- <line x1="150" y1="210" x2="370" y2="210" stroke="var(--z-ink)" stroke-width="1" stroke-linecap="square"/>
- <line x1="370" y1="130" x2="520" y2="130" stroke="var(--z-accent)" stroke-width="1" stroke-linecap="square"/>
- <text x="370" y="190" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="86" letter-spacing="2" text-anchor="end" fill="var(--z-ink)">XERJ</text>
- <text x="370" y="190" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="86" letter-spacing="2" text-anchor="start" fill="var(--z-accent)">.AI</text>
- <line x1="20" y1="100" x2="120" y2="100" stroke="currentColor" stroke-width="1"/>
- <line x1="20" y1="220" x2="120" y2="220" stroke="currentColor" stroke-width="1"/>
- <line x1="70" y1="20" x2="70" y2="100" stroke="currentColor" stroke-width="1"/>
- <line x1="70" y1="220" x2="70" y2="300" stroke="currentColor" stroke-width="1"/>
- <text x="50" y="62" font-family="'JetBrains Mono',monospace" font-size="12" fill="var(--z-mute)">1 X</text>
- <text x="50" y="266" font-family="'JetBrains Mono',monospace" font-size="12" fill="var(--z-mute)">1 X</text>
- <text x="72" y="164" font-family="'JetBrains Mono',monospace" font-size="12" fill="var(--z-mute)">X HT</text>
- </svg>
- </div>
-{page_footer(9, "CHAPTER 01 · LOGO")}
-</div>''')
-
-# --- P10 · SIZE LADDER ---
-def sized_wordmark(font_size=140, box_w=560, box_h=240, letter_spacing=4, with_rules=True):
- # Scale svg to keep rules visually consistent vs. wordmark height
- return f'''<div class="ex"><svg viewBox="0 0 800 240" preserveAspectRatio="xMidYMid meet" style="width:{box_w}pt; max-width:100%; height:{box_h*0.18}pt;">
- <rect width="800" height="240" fill="#0b0b0d"/>
- {'<line x1="90" y1="200" x2="530" y2="200" stroke="#f4f2ec" stroke-width="1" stroke-linecap="square"/>' if with_rules else ''}
- {'<line x1="530" y1="40" x2="710" y2="40" stroke="#ffc400" stroke-width="1" stroke-linecap="square"/>' if with_rules else ''}
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="{letter_spacing}" text-anchor="end" fill="#f4f2ec">XERJ</text>
- <text x="530" y="170" font-family="'Big Shoulders Display','Inter',sans-serif" font-weight="900" font-size="140" letter-spacing="{letter_spacing}" text-anchor="start" fill="#ffc400">.AI</text>
-</svg></div>'''
-
-pages.append(f'''<div class="page">
-{page_header("01 · LOGO · SIZE LADDER", "01")}
- <div class="kicker"><span>01</span><span class="dash">·</span><span>SIZE LADDER</span></div>
- <h2 class="scene">THE LADDER.<br>WHAT FITS <span class="accent">WHERE.</span></h2>
- <p>
- Every surface has a pre-approved size. Below the minimum the
- wordmark drops to short form, then to letter mark, then it is
- removed. The mark is never rendered below 16&thinsp;px cap
- height.
- </p>
-
- <div class="ladder-row"><span class="px">96 PT · DUAL RULES</span><span class="ex" style="font-family:var(--font-display); font-weight:900; font-size:60pt; letter-spacing:0.025em; line-height:1;">XERJ<span class="accent">.AI</span></span><span class="use">COVER · SLIDE TITLE</span></div>
- <div class="ladder-row"><span class="px">56 PT · DUAL RULES</span><span class="ex" style="font-family:var(--font-display); font-weight:900; font-size:36pt; letter-spacing:0.03em; line-height:1;">XERJ<span class="accent">.AI</span></span><span class="use">SECTION · DOC HEAD</span></div>
- <div class="ladder-row"><span class="px">32 PT · NO MARKS</span><span class="ex" style="font-family:var(--font-display); font-weight:900; font-size:22pt; letter-spacing:0.04em; line-height:1;">XERJ<span class="accent">.AI</span></span><span class="use">NAV · APP HEADER</span></div>
- <div class="ladder-row"><span class="px">20 PT · NO MARKS</span><span class="ex" style="font-family:var(--font-display); font-weight:900; font-size:14pt; letter-spacing:0.05em; line-height:1;">XERJ<span class="accent">.AI</span></span><span class="use">FOOTER · SIGNATURE</span></div>
- <div class="ladder-row"><span class="px">16 PT · MIN</span><span class="ex" style="font-family:var(--font-display); font-weight:900; font-size:11pt; letter-spacing:0.05em; line-height:1;">XERJ</span><span class="use">SHORT FORM ONLY</span></div>
- <div class="ladder-row"><span class="px">&lt; 16 PT</span><span class="ex accent" style="font-family:var(--font-display); font-weight:900; font-size:11pt; line-height:1;">X</span><span class="use">LETTER MARK · FAVICON</span></div>
-
- <p style="margin-top:10pt; color:var(--z-mute); font-size:9pt;">
- The rules are drawn at a fixed 1&thinsp;px weight regardless
- of wordmark size. Below 56&thinsp;pt the rules start to compete
- with the letterforms and drop off entirely.
- </p>
-{page_footer(10, "CHAPTER 01 · LOGO")}
-</div>''')
-
-# --- P11 · DO (rules to follow) ---
-dos = [
- "Set the wordmark in Big Shoulders Display 900, all caps, +0.24\u2009em tracking. Accent the <span class=\"accent\">.AI</span> suffix only.",
- "Place on a solid night (<span class=\"mono\">#0B0B0D</span>) or solid day (<span class=\"mono\">#F6F4EE</span>) surface. Nothing in between.",
- "Keep one full X-height of clear space on every side — including above and below.",
- "Drop to the short form at 16&thinsp;pt, then to the letter mark, then omit the logo entirely rather than shrink it further.",
- "Colour each rule to match the text it touches — paper under XERJ, yellow over .AI. The rule <em>is</em> an extension of the glyph colour, not a separate ornament.",
- "Draw rules at true 1&thinsp;px with <span class=\"mono\">stroke-linecap: square</span>. Position them 30&thinsp;px from baseline and 30&thinsp;px from cap-top — measured, not eyeballed.",
-]
-do_rows = "\n".join(f' <div class="verdict"><span class="tag yes">DO</span><span class="body">{d}</span></div>' for d in dos)
-
-pages.append(f'''<div class="page">
-{page_header("01 · LOGO · DO", "01")}
- <div class="kicker"><span>01</span><span class="dash">·</span><span>DO</span></div>
- <h2 class="scene">WHAT <span class="accent">SHIPS.</span></h2>
-{do_rows}
-{page_footer(11, "CHAPTER 01 · LOGO")}
-</div>''')
-
-# --- P12 · DON'T ---
-donts = [
- "Outline, stroke, emboss, or add a drop shadow. The mark is a solid typographic form. One weight, zero effects.",
- "Tint the root word. <span class=\"mono\">XERJ</span> is always paper-on-night or ink-on-day. Never yellow, never red, never blue.",
- "Place the wordmark on photography, gradients, screenshots, or any surface with more than 5&thinsp;% visual texture.",
- "Rotate, skew, stretch, condense, or redraw the letterforms. If it is not Big Shoulders 900 at +0.24&thinsp;em, it is not the wordmark.",
- "Lock the wordmark up with an icon, mascot, illustration, or partner logo without a full X-height gap between them.",
- "Extend one rule past the XERJ/.AI boundary to underline the whole wordmark — that collapses the two-colour story into a single underline.",
- "Cross-colour the rules (yellow line under XERJ, paper line over .AI). The rule always matches the text it connects to, never the opposite half.",
- "Put both rules on the same side of the wordmark. The rule over .AI must be above cap-top; the rule under XERJ must be below baseline. Never co-planar.",
-]
-dont_rows = "\n".join(f' <div class="verdict"><span class="tag no">DON\'T</span><span class="body">{d}</span></div>' for d in donts)
-
-pages.append(f'''<div class="page">
-{page_header("01 · LOGO · DON\'T", "01")}
- <div class="kicker"><span>01</span><span class="dash">·</span><span>DON\'T</span></div>
- <h2 class="scene">WHAT <span class="accent">DOESN\'T.</span></h2>
-{dont_rows}
-{page_footer(12, "CHAPTER 01 · LOGO")}
-</div>''')
-
-# ============================================================
-# Keep going — chapter 02 (color), 03 (typography), 04 (UX),
-# 05 (philosophy), 06 (voice), 07 (resources)
-# ============================================================
-
-# --- P13 · BREAK PAGE / CHAPTER END? Actually let's add a transitional page.
-# Skip breathing page, go straight to chapter 02 divider.
-
-# --- P13 · CHAPTER 02 DIVIDER ---
-pages.append(f'''<div class="page" style="display:flex; flex-direction:column; justify-content:space-between;">
-{page_header("CHAPTER 02 · COLOR", "02")}
- <div style="flex:1; display:flex; flex-direction:column; justify-content:center;">
- <h1 class="ch-num">02</h1>
- <h1 class="ch-title">COLOR.</h1>
- <p class="lead" style="max-width:5.6in; margin-top:6pt;">
- Five colours. One of them is yellow. It is a gold standard,
- not a mood — it is applied only where something has earned it.
- </p>
- </div>
-{page_footer(13, "CHAPTER 02 · COLOR")}
-</div>''')
-
-# --- P14 · NIGHT PALETTE ---
-night_rows = [
- ('INK · BG', '#0B0B0D', '#0B0B0D'),
- ('PAPER · INK', '#F4F2EC', '#F4F2EC'),
- ('MUTE', '#8A8680', '#8A8680'),
- ('FAINT · HAIRLINES', '#2B2A28', '#2B2A28'),
- ('LINE', '#3A3836', '#3A3836'),
- ('ACCENT · SOLID', '#FFC400', '#FFC400'),
-]
-night_html = "\n".join(f''' <div class="swatch">
- <span class="chip" style="background:{swatch};"></span>
- <span class="name">{name}</span>
- <span class="hex">{hex}</span>
- </div>''' for name, swatch, hex in night_rows)
-
-pages.append(f'''<div class="page">
-{page_header("02 · COLOR · NIGHT", "02")}
- <div class="kicker"><span>02</span><span class="dash">·</span><span>NIGHT · PRIMARY</span></div>
- <h2 class="scene">NIGHT<br>IS <span class="accent">PRIMARY.</span></h2>
- <p>
- Night is the working palette. The product is read in dim rooms
- at 2&nbsp;am when something broke. Every shade below has been
- tuned to print as 1&thinsp;px lines on ink bg and still hold
- contrast without glow.
- </p>
- <div style="margin-top:14pt;">
-{night_html}
- </div>
-{page_footer(14, "CHAPTER 02 · COLOR")}
-</div>''')
-
-# --- P15 · DAY PALETTE + ACCENT RULE ---
-day_rows = [
- ('PAPER · BG', '#F6F4EE', '#F6F4EE'),
- ('INK · INK', '#11120F', '#11120F'),
- ('MUTE', '#696762', '#696762'),
- ('FAINT · HAIRLINES', '#CFCBBF', '#CFCBBF'),
- ('ACCENT · DAY', '#A06800', '#A06800'),
-]
-day_html = "\n".join(f''' <div class="swatch">
- <span class="chip" style="background:{swatch};"></span>
- <span class="name">{name}</span>
- <span class="hex">{hex}</span>
- </div>''' for name, swatch, hex in day_rows)
-
-pages.append(f'''<div class="page">
-{page_header("02 · COLOR · DAY + ACCENT", "02")}
- <div class="kicker"><span>02</span><span class="dash">·</span><span>DAY · COURTESY</span></div>
- <h2 class="scene">DAY IS A<br><span class="accent">COURTESY.</span></h2>
- <p>
- Day exists because some surfaces insist on white backgrounds —
- invoices, press releases, partner decks. Accent shifts to ochre
- (<span class="mono">#A06800</span>) so the yellow stays
- brand-adjacent while meeting AA body contrast on cream.
- </p>
- <div style="margin-top:10pt;">
-{day_html}
- </div>
-
- <div class="rule" style="margin-top:16pt;"></div>
- <h3>THE ACCENT IS EARNED.</h3>
- <p>
- Yellow (<span class="mono">#FFC400</span> on night,
- <span class="mono">#A06800</span> on day) is reserved for
- <em>three</em> things: the <span class="accent">.AI</span>
- suffix in the wordmark, the single key number a chart is about,
- and the one word a sentence is pointing to. A row-heading
- painted yellow because it "looks nice" devalues the stamp for
- the thing that actually deserves it.
- </p>
-{page_footer(15, "CHAPTER 02 · COLOR")}
-</div>''')
-
-# --- P16 · USAGE EXAMPLES ---
-pages.append(f'''<div class="page">
-{page_header("02 · COLOR · USAGE", "02")}
- <div class="kicker"><span>02</span><span class="dash">·</span><span>USAGE</span></div>
- <h2 class="scene">ONE GOLD<br>PER <span class="accent">ROW.</span></h2>
- <p>
- The block below is a product dashboard fragment rendered only
- with the palette above — ink bg, paper text, mute labels, one
- gold stamp per row on the number the reader is meant to look
- at. No fills, no icons, no gradients.
- </p>
-
- <div class="infog">
- <div class="row"><span class="k">HYBRID QUERY P95</span><span class="v">38&nbsp;MS</span><span class="gold">GOLD</span></div>
- <div class="row"><span class="k">INGEST · SUSTAINED</span><span class="v">1.55&nbsp;M/S</span><span class="gold">GOLD</span></div>
- <div class="row"><span class="k">SIEM AGG · 1 M EVENTS</span><span class="v">0.4&nbsp;MS</span><span class="gold">GOLD</span></div>
- <div class="row"><span class="k">MEMORY · vs 4-NODE ES</span><span class="v">21×&nbsp;LESS</span><span class="gold">GOLD</span></div>
- <div class="row"><span class="k">BINARY · STATIC</span><span class="v">13&nbsp;MB</span><span class="gold">GOLD</span></div>
- <div class="row"><span class="k">COLD START · VS JVM</span><span class="v">300×&nbsp;FASTER</span><span class="gold">GOLD</span></div>
- </div>
-
- <p style="margin-top:10pt; color:var(--z-mute); font-size:9pt;">
- Six numbers, six gold stamps, six 1&thinsp;px dividers, zero
- decoration. Everything a reader needs to know about the product
- is already here.
- </p>
-{page_footer(16, "CHAPTER 02 · COLOR")}
-</div>''')
-
-# --- P17 · EMPTY BREATHE PAGE? Skip - straight to Ch03 ---
-
-# --- P17 · CHAPTER 03 DIVIDER ---
-pages.append(f'''<div class="page" style="display:flex; flex-direction:column; justify-content:space-between;">
-{page_header("CHAPTER 03 · TYPOGRAPHY", "03")}
- <div style="flex:1; display:flex; flex-direction:column; justify-content:center;">
- <h1 class="ch-num">03</h1>
- <h1 class="ch-title">TYPE.</h1>
- <p class="lead" style="max-width:5.6in; margin-top:6pt;">
- Four typefaces. Seven sizes. Nothing outside this grid ships.
- Type is the primary visual element, not a label next to a
- "real" graphic.
- </p>
- </div>
-{page_footer(17, "CHAPTER 03 · TYPOGRAPHY")}
-</div>''')
-
-# --- P18 · TYPEFACES ---
-pages.append(f'''<div class="page">
-{page_header("03 · TYPOGRAPHY · TYPEFACES", "03")}
- <div class="kicker"><span>03</span><span class="dash">·</span><span>TYPEFACES</span></div>
- <h2 class="scene">FOUR <span class="accent">TYPEFACES.</span></h2>
-
- <div class="tf-row">
- <div class="tf-name">DISPLAY · HEADLINES</div>
- <div style="font-family:var(--font-display); font-weight:900; font-size:48pt; line-height:1; letter-spacing:-0.005em;">BIG SHOULDERS DISPLAY 900</div>
- <p style="margin-top:6pt; color:var(--z-mute); font-size:9pt;">A condensed display face. All caps. Used only in headlines, the wordmark, and hero moments. Never body copy.</p>
- </div>
-
- <div class="tf-row">
- <div class="tf-name">PROSE · BODY COPY</div>
- <div style="font-family:var(--font-prose); font-weight:400; font-size:18pt; line-height:1.3;">Inter Regular. The working voice of the system — long-form reading, captions, documentation.</div>
- </div>
-
- <div class="tf-row">
- <div class="tf-name">DATA · LABELS &amp; CHROME</div>
- <div style="font-family:var(--font-data); font-weight:600; font-size:13pt; letter-spacing:0.14em; text-transform:uppercase;">IBM PLEX SANS 600 · EYEBROWS · KICKERS · UI CHROME</div>
- </div>
-
- <div class="tf-row">
- <div class="tf-name">MONO · NUMBERS &amp; CODE</div>
- <div class="mono" style="font-size:13pt;">JetBrains Mono — identifiers, hex, paths, tabular numerics, p95=38ms</div>
- </div>
-{page_footer(18, "CHAPTER 03 · TYPOGRAPHY")}
-</div>''')
-
-# --- P19 · SCALE LADDER ---
-pages.append(f'''<div class="page">
-{page_header("03 · TYPOGRAPHY · SCALE", "03")}
- <div class="kicker"><span>03</span><span class="dash">·</span><span>SCALE</span></div>
- <h2 class="scene">SEVEN <span class="accent">SIZES.</span></h2>
- <p>
- Everything is built from seven sizes. An eighth requires a
- 500-word essay to the team defending the exception.
- </p>
-
- <div class="scale-row"><span class="px">11 PX</span><span style="font-size:11px; font-family:var(--font-data);">EYEBROW · KEY — "TYPE IS THE UI"</span><span class="use">Eyebrow · key</span></div>
- <div class="scale-row"><span class="px">13 PX</span><span style="font-size:13px;">Data · row · legend · 13&thinsp;px</span><span class="use">Data · row</span></div>
- <div class="scale-row"><span class="px">16 PX</span><span style="font-size:16px;">Body copy — reading text · 16&thinsp;px</span><span class="use">Body</span></div>
- <div class="scale-row"><span class="px">20 PX</span><span style="font-size:20px;">Lead paragraph · 20&thinsp;px</span><span class="use">Lead</span></div>
- <div class="scale-row"><span class="px">32 PX</span><span style="font-size:32px; font-family:var(--font-display); font-weight:900;">SECTION H4 · 32</span><span class="use">Section h4</span></div>
- <div class="scale-row"><span class="px">56 PX</span><span style="font-size:48px; font-family:var(--font-display); font-weight:900; line-height:1;">SECTION H3</span><span class="use">Section h3</span></div>
- <div class="scale-row"><span class="px">96 PX</span><span style="font-size:72px; font-family:var(--font-display); font-weight:900; line-height:1;">SCENE</span><span class="use">Scene h2</span></div>
-{page_footer(19, "CHAPTER 03 · TYPOGRAPHY")}
-</div>''')
-
-# --- P20 · HIERARCHY / GRID ---
-pages.append(f'''<div class="page">
-{page_header("03 · TYPOGRAPHY · GRID", "03")}
- <div class="kicker"><span>03</span><span class="dash">·</span><span>GRID &amp; HIERARCHY</span></div>
- <h2 class="scene">12 COLUMNS.<br>24 PX <span class="accent">GUTTERS.</span></h2>
-
- <div class="swatch"><span style="font-family:var(--font-data); font-size:9pt; color:var(--z-mute); letter-spacing:var(--track-ui); text-transform:uppercase;">COLUMNS</span><span style="font-family:var(--font-prose); color:var(--z-ink);">12 — same on marketing, brand, product</span><span class="mono" style="color:var(--z-mute);">12</span></div>
- <div class="swatch"><span style="font-family:var(--font-data); font-size:9pt; color:var(--z-mute); letter-spacing:var(--track-ui); text-transform:uppercase;">GUTTER</span><span style="font-family:var(--font-prose); color:var(--z-ink);">24 px horizontal</span><span class="mono" style="color:var(--z-mute);">24 PX</span></div>
- <div class="swatch"><span style="font-family:var(--font-data); font-size:9pt; color:var(--z-mute); letter-spacing:var(--track-ui); text-transform:uppercase;">VERTICAL RHYTHM</span><span style="font-family:var(--font-prose); color:var(--z-ink);">4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96 · 128</span><span class="mono" style="color:var(--z-mute);">8-STEP</span></div>
- <div class="swatch"><span style="font-family:var(--font-data); font-size:9pt; color:var(--z-mute); letter-spacing:var(--track-ui); text-transform:uppercase;">MAX WIDTH</span><span style="font-family:var(--font-prose); color:var(--z-ink);">1680 px · centered above that</span><span class="mono" style="color:var(--z-mute);">1680</span></div>
- <div class="swatch"><span style="font-family:var(--font-data); font-size:9pt; color:var(--z-mute); letter-spacing:var(--track-ui); text-transform:uppercase;">BREAKPOINT</span><span style="font-family:var(--font-prose); color:var(--z-ink);">Single — 960 px</span><span class="mono" style="color:var(--z-mute);">960</span></div>
-
- <p style="margin-top:14pt; color:var(--z-mute); font-size:9pt;">
- There is no tablet layout. The product does not have a tablet
- user. Below 960&thinsp;px the hero folds to 96&thinsp;px and
- metrics stack two-up — everything else collapses naturally.
- </p>
-
- <div class="rule" style="margin-top:14pt;"></div>
- <h3>SCALE IS THE HIERARCHY.</h3>
- <p>
- Nothing bold, nothing italic, nothing larger than the next rung
- on the ladder. If a designer wants emphasis, they pick a bigger
- size — they do not bold the word. The scale carries meaning;
- weight is reserved for the typefaces themselves.
- </p>
-{page_footer(20, "CHAPTER 03 · TYPOGRAPHY")}
-</div>''')
-
-# --- Filler P21 ---
-# Actually skip and go to chapter 04 divider directly
-
-# --- P21 · CHAPTER 04 DIVIDER ---
-pages.append(f'''<div class="page" style="display:flex; flex-direction:column; justify-content:space-between;">
-{page_header("CHAPTER 04 · UX & DATA", "04")}
- <div style="flex:1; display:flex; flex-direction:column; justify-content:center;">
- <h1 class="ch-num">04</h1>
- <h1 class="ch-title">UX &amp; DATA.</h1>
- <p class="lead" style="max-width:5.6in; margin-top:6pt;">
- Seventeen chart primitives. All 1&thinsp;px. An AI data
- company that cannot show a chart cleanly cannot sell storage
- cleanly either. Type is the infographic.
- </p>
- </div>
-{page_footer(21, "CHAPTER 04 · UX & DATA")}
-</div>''')
-
-# Each chart gets a chart card on its own spread.
-# Group: 2 charts per page where reasonable, 1 per page for wide ones.
-
-# --- P22 · METRIC + SERIES ---
-series_svg_html, s_mn, s_mx = series_svg(series_latency, w=1200, h=130)
-pages.append(f'''<div class="page">
-{page_header("04 · UX · PRIMITIVES 01-02", "04")}
- <div class="kicker"><span>04</span><span class="dash">·</span><span>CORE PRIMITIVES</span></div>
- <h2 class="scene">01 · METRIC.<br>02 · <span class="accent">SERIES.</span></h2>
-
- <h4>01 · METRIC · HEADLINE + 1PX SPARK</h4>
- <p>A number and its trend shape. No axis, no grid — the shape is the annotation.</p>
- <div class="chart-card">
- <div class="kicker"><span>INGEST · SUSTAINED</span></div>
- <div style="display:grid; grid-template-columns: auto 1fr auto; gap:16pt; align-items:baseline; margin-top:6pt; color:var(--z-ink);">
- <div style="font-family:var(--font-display); font-weight:900; font-size:60pt; line-height:0.9; color:var(--z-accent);">1.55<span style="font-family:var(--font-data); font-size:14pt; color:var(--z-mute); letter-spacing:var(--track-ui); margin-left:6pt;">M/S</span></div>
- <div style="max-width:3.4in; color:var(--z-ink);">{spark_svg(spark_throughput, w=260, h=40)}</div>
- <div style="text-align:right; font-family:var(--font-data); font-size:9pt; letter-spacing:var(--track-ui); text-transform:uppercase;">
- <span class="accent">▲ 3.1 %</span><br>
- <span style="color:var(--z-mute); font-size:8pt;">vs 24 H</span>
- </div>
- </div>
- </div>
-
- <h4 style="margin-top:18pt;">02 · SERIES · 1 PX TIME LINE</h4>
- <p>One stroke across the panel. Endpoints called out beneath, never floating over the curve.</p>
- <div class="chart-card">
- <div class="kicker"><span>HYBRID QUERY P95</span><span class="dash">·</span><span>48 H</span></div>
- <div style="margin-top:8pt;">{series_svg_html}</div>
- <div class="legend">
- <span>48 H AGO · <span class="mono">{series_latency[0]:.1f} ms</span></span>
- <span class="mid">min <span class="mono">{s_mn:.1f}</span> · peak <span class="mono">{s_mx:.1f}</span></span>
- <span><span class="mono accent">{series_latency[-1]:.1f} ms</span> · NOW</span>
- </div>
- </div>
-{page_footer(22, "CHAPTER 04 · UX & DATA")}
-</div>''')
-
-# --- P23 · TOP-N + DIST ---
-dist_svg_inline, dist_legend_inline = dist_svg_html(dist_segments)
-pages.append(f'''<div class="page">
-{page_header("04 · UX · PRIMITIVES 03-04", "04")}
- <div class="kicker"><span>04</span><span class="dash">·</span><span>CORE PRIMITIVES</span></div>
- <h2 class="scene">03 · TOP-N.<br>04 · <span class="accent">DIST.</span></h2>
-
- <h4>03 · TOP-N · RANKED WITH 1 PX BARS</h4>
- <p>Replaces the horizontal-bar chart. A ranked list <em>is</em> one — label, value, bar, share.</p>
- <div class="chart-card">
- <div class="kicker"><span>TOP ENDPOINTS</span><span class="dash">·</span><span>1 M REQUESTS · 24 H</span></div>
- <div class="topn-list" style="margin-top:6pt; color:var(--z-ink);">
-{topn_rows_html(topn_items)}
- </div>
- </div>
-
- <h4 style="margin-top:18pt;">04 · DIST · 1 PX SEGMENTED BAR</h4>
- <p>Replaces pie and donut. Opacity carries the segment identity; lengths carry the share.</p>
- <div class="chart-card">
- <div class="kicker"><span>HTTP STATUS</span><span class="dash">·</span><span>24 H</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">
- {dist_svg_inline}
- <div class="dist-legend">
-{dist_legend_inline}
- </div>
- </div>
- </div>
-{page_footer(23, "CHAPTER 04 · UX & DATA")}
-</div>''')
-
-# --- P24 · HEATMAP + GAUGE ---
-pages.append(f'''<div class="page">
-{page_header("04 · UX · PRIMITIVES 05-06", "04")}
- <div class="kicker"><span>04</span><span class="dash">·</span><span>CORE PRIMITIVES</span></div>
- <h2 class="scene">05 · HEATMAP.<br>06 · <span class="accent">GAUGE.</span></h2>
-
- <h4>05 · HEATMAP · NUMBERS ARE THE VISUALISATION</h4>
- <p>A grid where text opacity encodes magnitude. No cells, no boxes, no colour bands.</p>
- <div class="chart-card">
- <div class="kicker"><span>AGENT ACTIVITY</span><span class="dash">·</span><span>COHORT × HOUR</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">
- <div class="heatmap">{heatmap_html(heat_rows_labels, heat_cols, heat_matrix)}</div>
- </div>
- </div>
-
- <h4 style="margin-top:18pt;">06 · GAUGE · 1 PX TRACK</h4>
- <p>A bounded track that fills from zero to the reading. The threshold is a single 1&thinsp;px tick.</p>
- <div class="chart-card">
- <div class="kicker"><span>DISK PRESSURE · WAL VOLUME</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">{gauge_html(73)}</div>
- </div>
-{page_footer(24, "CHAPTER 04 · UX & DATA")}
-</div>''')
-
-# --- P25 · MULTIPLES + BAR ---
-bar_svg_html, bar_mn, bar_mx = bar_html()
-pages.append(f'''<div class="page">
-{page_header("04 · UX · PRIMITIVES 07-08", "04")}
- <div class="kicker"><span>04</span><span class="dash">·</span><span>EXPANDED</span></div>
- <h2 class="scene">07 · MULTIPLES.<br>08 · <span class="accent">BAR.</span></h2>
-
- <h4>07 · MULTIPLES · EIGHT SPARKS</h4>
- <p>One sparkline per dimension. The reader scans for the one that broke ranks.</p>
- <div class="chart-card">
- <div class="kicker"><span>SERVICE LATENCIES</span><span class="dash">·</span><span>P95 · 24 H</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">{multiples_html()}</div>
- </div>
-
- <h4 style="margin-top:18pt;">08 · BAR · VERTICAL 1 PX LINES</h4>
- <p>A bar is a stroke from baseline to value. No fill, no cap, no outline.</p>
- <div class="chart-card">
- <div class="kicker"><span>QUERIES BY HOUR</span><span class="dash">·</span><span>LAST 24 H</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">{bar_svg_html}</div>
- </div>
-{page_footer(25, "CHAPTER 04 · UX & DATA")}
-</div>''')
-
-# --- P26 · SCATTER + STACKED ---
-pages.append(f'''<div class="page">
-{page_header("04 · UX · PRIMITIVES 09-10", "04")}
- <div class="kicker"><span>04</span><span class="dash">·</span><span>EXPANDED</span></div>
- <h2 class="scene">09 · SCATTER.<br>10 · <span class="accent">STACKED.</span></h2>
-
- <h4>09 · SCATTER · DOTS ARE CHARACTERS</h4>
- <p>The only chart with "point markers" — because the <span class="mono">·</span> <em>is</em> the datum.</p>
- <div class="chart-card">
- <div class="kicker"><span>LATENCY × THROUGHPUT</span><span class="dash">·</span><span>80 TENANTS</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">{scatter_html()}</div>
- </div>
-
- <h4 style="margin-top:18pt;">10 · STACKED · HORIZONTAL DISTRIBUTIONS</h4>
- <p>One <span class="mono">DIST</span> per row. Opacity carries the segment; lengths carry share.</p>
- <div class="chart-card">
- <div class="kicker"><span>HTTP STATUS BY REGION</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">{stacked_html()}</div>
- </div>
-{page_footer(26, "CHAPTER 04 · UX & DATA")}
-</div>''')
-
-# --- P27 · TREEMAP + EVENTS ---
-pages.append(f'''<div class="page">
-{page_header("04 · UX · PRIMITIVES 11-12", "04")}
- <div class="kicker"><span>04</span><span class="dash">·</span><span>EXPANDED</span></div>
- <h2 class="scene">11 · TREEMAP.<br>12 · <span class="accent">EVENTS.</span></h2>
-
- <h4>11 · TREEMAP · INDENTED HIERARCHY</h4>
- <p>Not D3 — no packed rectangles. An indented ranked list with 1&thinsp;px bars, one row per node.</p>
- <div class="chart-card">
- <div class="kicker"><span>REQUEST TREE</span><span class="dash">·</span><span>API GATEWAY</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">{treemap_html()}</div>
- </div>
-
- <h4 style="margin-top:18pt;">12 · EVENTS · LIVE TAIL</h4>
- <p>Time, severity, message. Errors take the gold accent; info stays mute.</p>
- <div class="chart-card">
- <div class="kicker"><span>LIVE TAIL</span><span class="dash">·</span><span>TENANT=acme</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">{events_html()}</div>
- </div>
-{page_footer(27, "CHAPTER 04 · UX & DATA")}
-</div>''')
-
-# --- P28 · CHAPTER 04 SUB-HEAD · AI primitives intro ---
-pages.append(f'''<div class="page">
-{page_header("04 · UX · AI PRIMITIVES", "04")}
- <div class="kicker"><span>04</span><span class="dash">·</span><span>AI · RAG · AGENTS</span></div>
- <h2 class="scene">SAME LINE.<br>SAME <span class="accent">RULE.</span></h2>
- <p class="lead">
- The charts that follow are specific to AI workloads — embedding
- clusters, retrieval flows, token budgets, multi-dim agent runs,
- attention. They are not a different language. The strokes are
- still 1&thinsp;px, the type is still the label, the accent still
- falls only where the reader is meant to look.
- </p>
- <div class="rule"></div>
- <div class="kicker"><span>CHARTS · 13–17</span></div>
- <ul style="padding-left:0; list-style:none; margin-top:10pt;">
- <li style="padding:6pt 0; border-bottom:1px solid var(--z-faint); font-family:var(--font-data); font-size:10pt; letter-spacing:var(--track-ui); text-transform:uppercase; color:var(--z-ink);">13 · EMBEDSPACE — clusters · UMAP projection · 1 px convex hulls</li>
- <li style="padding:6pt 0; border-bottom:1px solid var(--z-faint); font-family:var(--font-data); font-size:10pt; letter-spacing:var(--track-ui); text-transform:uppercase; color:var(--z-ink);">14 · CHORDARCS — connectivity · Bézier arcs · source → target</li>
- <li style="padding:6pt 0; border-bottom:1px solid var(--z-faint); font-family:var(--font-data); font-size:10pt; letter-spacing:var(--track-ui); text-transform:uppercase; color:var(--z-ink);">15 · FLOWBAND — allocation · one horizontal strip · labelled</li>
- <li style="padding:6pt 0; border-bottom:1px solid var(--z-faint); font-family:var(--font-data); font-size:10pt; letter-spacing:var(--track-ui); text-transform:uppercase; color:var(--z-ink);">16 · PARALLELCOORDS — multi-dim · N axes · 1 px per row</li>
- <li style="padding:6pt 0; font-family:var(--font-data); font-size:10pt; letter-spacing:var(--track-ui); text-transform:uppercase; color:var(--z-ink);">17 · ATTENTIONMAP — tokens · per-token opacity · paragraph is the chart</li>
- </ul>
-{page_footer(28, "CHAPTER 04 · UX & DATA")}
-</div>''')
-
-# --- P29 · EMBEDSPACE ---
-pages.append(f'''<div class="page">
-{page_header("04 · UX · 13 EMBEDSPACE", "04")}
- <div class="kicker"><span>13</span><span class="dash">·</span><span>EMBEDSPACE · CLUSTERS</span></div>
- <h2 class="scene">CLUSTERS.<br>WITH A <span class="accent">QUERY.</span></h2>
- <p>
- The iconic AI visualisation. 2&thinsp;D UMAP projection of
- high-dimensional embeddings, with 1&thinsp;px convex hulls
- around each cluster and centroid labels sitting outside the
- cloud. Dots are <span class="mono">·</span> characters; the
- gold crosshair is the current query's projected embedding. No
- kmeans fuzz, no colour palette.
- </p>
-
- <div class="chart-card">
- <div class="kicker"><span>EMBEDDING SPACE</span><span class="dash">·</span><span>UMAP</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">{embedspace_html()}</div>
- </div>
-{page_footer(29, "CHAPTER 04 · UX & DATA")}
-</div>''')
-
-# --- P30 · CHORDARCS ---
-pages.append(f'''<div class="page">
-{page_header("04 · UX · 14 CHORDARCS", "04")}
- <div class="kicker"><span>14</span><span class="dash">·</span><span>CHORDARCS · CONNECTIVITY</span></div>
- <h2 class="scene">RETRIEVAL.<br>AS <span class="accent">ARCS.</span></h2>
- <p>
- Flow between two ordered sets — queries on the left, retrieved
- chunks on the right, one 1&thinsp;px Bézier arc per retrieval.
- Arc opacity is the relevance score. Replaces Sankey for RAG
- pipelines because a Sankey wastes ninety percent of its ink on
- colour-coded ribbons; we only need the line.
- </p>
-
- <div class="chart-card">
- <div class="kicker"><span>RAG RETRIEVAL</span><span class="dash">·</span><span>TOP-K=2</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">{chordarcs_html()}</div>
- </div>
-{page_footer(30, "CHAPTER 04 · UX & DATA")}
-</div>''')
-
-# --- P31 · FLOWBAND + PARALLELCOORDS ---
-pages.append(f'''<div class="page">
-{page_header("04 · UX · 15-16", "04")}
- <div class="kicker"><span>04</span><span class="dash">·</span><span>AI · 15-16</span></div>
- <h2 class="scene">15 · FLOWBAND.<br>16 · <span class="accent">PARALLELCOORDS.</span></h2>
-
- <h4>15 · FLOWBAND · ALLOCATION</h4>
- <p>Horizontal strip split into segments, each labelled directly beneath. Token budgets, context windows, cost attribution.</p>
- <div class="chart-card">
- <div class="kicker"><span>CONTEXT WINDOW</span><span class="dash">·</span><span>28 K TOKENS</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">{flowband_html()}</div>
- </div>
-
- <h4 style="margin-top:18pt;">16 · PARALLELCOORDS</h4>
- <p>N axes, N dimensions, one 1&thinsp;px polyline per row. Gold line = one highlighted run in the density cloud.</p>
- <div class="chart-card">
- <div class="kicker"><span>AGENT RUNS</span><span class="dash">·</span><span>24 ROWS · 5 DIMENSIONS</span></div>
- <div style="margin-top:6pt; color:var(--z-ink);">{parallelcoords_html()}</div>
- </div>
-{page_footer(31, "CHAPTER 04 · UX & DATA")}
-</div>''')
-
-# --- P32 · ATTENTIONMAP ---
-pages.append(f'''<div class="page">
-{page_header("04 · UX · 17 ATTENTIONMAP", "04")}
- <div class="kicker"><span>17</span><span class="dash">·</span><span>ATTENTIONMAP</span></div>
- <h2 class="scene">THE PARAGRAPH<br>IS THE <span class="accent">CHART.</span></h2>
- <p>
- Every token's opacity equals its attention weight; the peak
- tokens cross into the gold accent. For a RAG system this is the
- cleanest possible answer to <em>which tokens actually
- mattered</em>. No heatmap overlay, no coloured highlights —
- type rendered at the weight the model assigned.
- </p>
-
- <div class="chart-card" style="padding:20pt 0;">
- <div class="kicker"><span>ATTENTION · ANSWER TOKENS</span><span class="dash">·</span><span>PROMPT="WHAT DOES XERJ DO?"</span></div>
- <div style="margin-top:14pt;">{attentionmap_html()}</div>
- </div>
-
- <div class="rule" style="margin-top:18pt;"></div>
- <h3>17 PRIMITIVES. ONE RULE.</h3>
- <p>
- Every chart in this chapter is a 1&thinsp;px stroke, a number,
- or an opacity applied to a character. No fills, no colour bars,
- no icons on axes, no legends floating over curves. The storage
- is <em>for</em> the chart; the chart <em>is</em> the storage;
- the rules are the same line.
- </p>
-{page_footer(32, "CHAPTER 04 · UX & DATA")}
-</div>''')
-
-# --- P33 · CHAPTER 05 DIVIDER ---
-pages.append(f'''<div class="page" style="display:flex; flex-direction:column; justify-content:space-between;">
-{page_header("CHAPTER 05 · PHILOSOPHY", "05")}
- <div style="flex:1; display:flex; flex-direction:column; justify-content:center;">
- <h1 class="ch-num">05</h1>
- <h1 class="ch-title">PHILOSOPHY.</h1>
- <p class="lead" style="max-width:5.6in; margin-top:6pt;">
- Why the brand looks like this. Three decisions, none
- decorative — a gold accent, a 1&thinsp;px stroke, typography
- doing the work a chart would do.
- </p>
- </div>
-{page_footer(33, "CHAPTER 05 · PHILOSOPHY")}
-</div>''')
-
-# --- P34 · GOLD ---
-pages.append(f'''<div class="page">
-{page_header("05 · PHILOSOPHY · GOLD", "05")}
- <div class="kicker"><span>05</span><span class="dash">·</span><span>GOLD</span></div>
- <h2 class="scene">THE GOLD IS<br>A <span class="accent">STANDARD.</span></h2>
-
- <p>
- Every industry that has a reference calls it the <span class="accent">gold standard</span>.
- A gold bar is 99.99&thinsp;% pure by defined assay. A gold medal
- is the winner. A gold seal is notarised truth. The word holds
- across centuries — the Roman <em>solidus</em>, the Arabic
- <em>dinar</em>, gold leaf on Qur'anic manuscripts, gold trim on
- a <em>thobe</em>, gold on any document that has to still mean
- something ten years later. Gold earned the name because gold
- does not tarnish.
- </p>
-
- <p>
- XERJ takes its name from the Arabic word for life —
- <span class="accent">ḥayāh</span>&nbsp;(حياة). In that
- tradition, gold carries weight beyond wealth. A gift of gold
- marks a milestone. Gold thread marks craft meant to outlast
- the wearer. Gold ink on parchment marks a truth the writer
- was willing to sign. Across all of it, gold is applied only to
- things already good enough to carry its weight.
- <em>Success, not material.</em>
- </p>
-
- <p>
- We use the accent (<span class="mono">#FFC400</span>) the same
- way. It marks the <em>one</em> number a chart is about, the
- <em>one</em> word a sentence is pointing to, the p95 that says
- we are shipping. If a designer paints a row heading yellow
- because it "looks nice", they have devalued the stamp for the
- thing that actually deserves it.
- </p>
-{page_footer(34, "CHAPTER 05 · PHILOSOPHY")}
-</div>''')
-
-# --- P35 · 1PX ---
-pages.append(f'''<div class="page">
-{page_header("05 · PHILOSOPHY · 1 PX", "05")}
- <div class="kicker"><span>05</span><span class="dash">·</span><span>1 PX</span></div>
- <h2 class="scene">1 PX IS THE<br>MINIMUM THAT<br><span class="accent">CARRIES MEANING.</span></h2>
-
- <p>
- Any modern screen can render a 1&thinsp;px line. Most brands do
- not trust that to be enough. They add a gradient to give it
- depth. They add a shadow to give it weight. They widen it to
- 2&thinsp;px "for emphasis". Each addition is a concession that
- the idea underneath was not strong enough to carry the line
- alone.
- </p>
-
- <p>
- Our rule is absolute. Every hairline, every axis tick, every
- divider, every border, every bar in every chart:
- <span class="accent">one pixel</span>. Never wider. Never
- gradient. Never feathered. If a design needs a thicker stroke
- to be legible, the design has a bigger problem that the
- thicker stroke is covering up. Fix the idea, not the border.
- </p>
-
- <p>
- This is engineering discipline, not aesthetic minimalism.
- Engineers do not ship a thousand lines of code when ten will
- do. Designers who have lived inside production systems do not
- ship 3&thinsp;px borders when 1&thinsp;px is sufficient. The
- narrowest line that still carries the information is the
- correct line.
- </p>
-{page_footer(35, "CHAPTER 05 · PHILOSOPHY")}
-</div>''')
-
-# --- P36 · TYPE AS INFOGRAPHIC ---
-pages.append(f'''<div class="page">
-{page_header("05 · PHILOSOPHY · TYPE", "05")}
- <div class="kicker"><span>05</span><span class="dash">·</span><span>TYPE IS DATA</span></div>
- <h2 class="scene">TYPE IS THE<br><span class="accent">INFOGRAPHIC.</span></h2>
-
- <p>
- An AI system outputs text. A log line is text. A query plan is
- text. A vector is a sequence of numbers rendered as text. A
- retrieval result is a snippet of text ranked against other
- snippets of text. The entire observable surface of a language
- model — prompt, response, embedding, audit trail — is plain
- text.
- </p>
-
- <p>
- Marketing designers usually translate that text into pictures:
- illustrations, flowcharts, isometric servers with tiny humans
- standing next to them. Every translation loses fidelity. A
- query result drawn as a generic "document" icon tells you
- nothing; the same result as monospaced JSON tells you
- everything.
- </p>
-
- <p>
- We do the opposite. Our dashboards are tables with good
- typographic taste. Our charts are 1&thinsp;px strokes over a
- typographic axis. Our marketing pages render the same numbers
- our customers see on their consoles, at the same precision,
- without stylisation. Type is the native format of an AI system.
- Any other format is a translation <em>away</em> from the truth.
- Typography is not a substitute for an infographic —
- <span class="accent">it is the infographic</span>.
- </p>
-{page_footer(36, "CHAPTER 05 · PHILOSOPHY")}
-</div>''')
-
-# --- P37 · CHAPTER 06 DIVIDER ---
-pages.append(f'''<div class="page" style="display:flex; flex-direction:column; justify-content:space-between;">
-{page_header("CHAPTER 06 · VOICE", "06")}
- <div style="flex:1; display:flex; flex-direction:column; justify-content:center;">
- <h1 class="ch-num">06</h1>
- <h1 class="ch-title">VOICE.</h1>
- <p class="lead" style="max-width:5.6in; margin-top:6pt;">
- Solid. Quiet. Technical. We write for engineers paged at
- 2&nbsp;am. Every sentence earns its place.
- </p>
- </div>
-{page_footer(37, "CHAPTER 06 · VOICE")}
-</div>''')
-
-# --- P38 · VOICE DO/DONT/NEVER ---
-pages.append(f'''<div class="page">
-{page_header("06 · VOICE", "06")}
- <div class="kicker"><span>06</span><span class="dash">·</span><span>DO · DON'T · NEVER</span></div>
- <h2 class="scene">SOLID.<br>QUIET.<br><span class="accent">TECHNICAL.</span></h2>
-
- <div class="verdict"><span class="tag yes">DO</span><span class="body">"Hybrid query p95 is 38&thinsp;ms at 1&thinsp;B vectors on one box." · "One binary, no JVM heap tuning." · "Agents are the workload." · "Explain plan is first-class."</span></div>
- <div class="verdict"><span class="tag no">DON'T</span><span class="body">"Revolutionary." · "Paradigm shift." · "Unleash the power of..." · "Next-generation AI-powered cloud-native..." · Anything with <em>journey</em>, <em>storytelling</em>, or <em>magic</em>.</span></div>
- <div class="verdict"><span class="tag no">NEVER</span><span class="body">Emojis in marketing. Humour as the primary register. Cute mascots. "Fun" at the expense of precision. We ship storage. Storage is serious.</span></div>
-
- <div class="rule"></div>
- <h3>LEAD WITH A NUMBER, A CONSTRAINT, OR A NAME.</h3>
- <p>
- Copy is not a pitch deck. Every opening sentence should contain
- at least one of: a measured value, a hard constraint, or a
- specific system name. If a line could appear in a LinkedIn
- influencer post, it does not ship.
- </p>
-
- <h3>BE <span class="accent">DIRECT</span>, NOT WARM.</h3>
- <p>
- We are not selling comfort. Warm copy reads as slick in our
- context. An engineer reading at 2&nbsp;am does not want to be
- charmed; they want to know what the p95 is and whether it can
- take another tenant before the budget breaks. Answer that
- question, end the sentence, move on.
- </p>
-{page_footer(38, "CHAPTER 06 · VOICE")}
-</div>''')
-
-# --- P39 · CHAPTER 07 DIVIDER ---
-pages.append(f'''<div class="page" style="display:flex; flex-direction:column; justify-content:space-between;">
-{page_header("CHAPTER 07 · RESOURCES", "07")}
- <div style="flex:1; display:flex; flex-direction:column; justify-content:center;">
- <h1 class="ch-num">07</h1>
- <h1 class="ch-title">RESOURCES.</h1>
- <p class="lead" style="max-width:5.6in; margin-top:6pt;">
- SVG downloads, cross-references, and links to the interactive
- playground where the chart primitives render live.
- </p>
- </div>
-{page_footer(39, "CHAPTER 07 · RESOURCES")}
-</div>''')
-
-# --- P40 · DOWNLOADS ---
-dls = [
- ('WORDMARK · NIGHT', 'Primary lockup. Paper on night, yellow .AI. Use on every dark surface.', '/brandbook/xerj-wordmark-night.svg'),
- ('WORDMARK · DAY', 'Courtesy treatment. Ink on cream, ochre .AI for AA contrast on paper.', '/brandbook/xerj-wordmark-day.svg'),
- ('WORDMARK · MONO', 'currentColor fill for emails, third-party decks, unknown backgrounds.', '/brandbook/xerj-wordmark-mono.svg'),
- ('SHORT FORM', 'XERJ without .AI. App title bars, compact headers, system tray.', '/brandbook/xerj-short.svg'),
- ('LETTER MARK', 'Yellow X on night. Favicon, app icon, social avatar.', '/brandbook/xerj-mark.svg'),
- ('LETTER MARK · INVERSE', 'Ink X on paper. Letterhead, print covers, debossed surfaces.', '/brandbook/xerj-mark-inverse.svg'),
- ('SYSTEM LINE', 'XERJ.AI · OBSERVE tracked signature for footers and headers.', '/brandbook/xerj-systemline.svg'),
-]
-dl_html = "\n".join(f''' <div class="dl-row">
- <span class="name">{n}</span>
- <span class="desc">{d}</span>
- <span class="get">SVG →</span>
- </div>''' for n, d, _ in dls)
-
-pages.append(f'''<div class="page">
-{page_header("07 · RESOURCES · DOWNLOADS", "07")}
- <div class="kicker"><span>07</span><span class="dash">·</span><span>DOWNLOADS</span></div>
- <h2 class="scene">VECTORS.<br><span class="accent">NO RASTERS.</span></h2>
- <p>
- Every asset ships as SVG. No PNG, no JPG variants — a raster of
- the wordmark is either wrong size or wrong compression, and both
- of those are easier to fix upstream by using the SVG.
- </p>
- <div class="dl-list" style="margin-top:10pt;">
-{dl_html}
- </div>
-
- <div class="rule"></div>
- <h3>CROSS-REFERENCES.</h3>
- <div class="dl-list">
- <div class="dl-row"><span class="name">BRAND CONCEPT</span><span class="desc">/brand.html · the original five laws and voice spec.</span><span class="get">URL →</span></div>
- <div class="dl-row"><span class="name">ARCHITECTURE</span><span class="desc">/architecture/index.html · 1 px SVG topologies of the platform.</span><span class="get">URL →</span></div>
- <div class="dl-row"><span class="name">PLAYGROUND</span><span class="desc">/playground.html · every chart primitive in this chapter, live.</span><span class="get">URL →</span></div>
- </div>
-{page_footer(40, "CHAPTER 07 · RESOURCES")}
-</div>''')
-
-# --- P41 · BACK COVER ---
-pages.append(f'''<div class="page" style="padding:0.7in; display:flex; flex-direction:column; justify-content:space-between;">
- <div>
- <div class="kicker big"><span>XERJ.AI</span><span class="dash">·</span><span>END OF BRAND BOOK</span></div>
- </div>
-
- <div style="display:flex; flex-direction:column; justify-content:center; gap:28pt; padding:20pt 0;">
- <div style="width:100%; max-width:5.2in;">
- {wordmark_svg()}
- </div>
-
- <p style="font-family: var(--font-display); font-weight:900; font-size: 34pt; line-height: 0.95; letter-spacing: -0.005em; max-width: 6in; margin:0;">
- TYPE IS THE UI.<br>
- <span class="accent">1 PX IS THE STANDARD.</span><br>
- GOLD IS <span class="accent">EARNED</span>.
- </p>
-
- <p style="color: var(--z-mute); font-size: 10pt; font-family: var(--font-data); letter-spacing: var(--track-ui); text-transform: uppercase;">
- 7 CHAPTERS · 17 CHART PRIMITIVES · 14 DO/DON'T RULES · 5 COLOURS · 4 TYPEFACES · 7 DOWNLOADS
- </p>
- </div>
-
- <div style="display:flex; justify-content:space-between; font-family:var(--font-data); font-size:9pt; letter-spacing:var(--track-ui); text-transform:uppercase; color:var(--z-mute); padding-top:10pt; border-top:1px solid var(--z-line);">
- <span>XERJ.AI · OBSERVE</span>
- <span>BRAND BOOK · V1 · 2026-04</span>
- </div>
-</div>''')
-
-# ============================================================
-# WRITE OUT
-# ============================================================
-
-html = f'''<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ.AI — Brand Book · V1</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<style>{STYLE}</style>
-</head>
-<body>
-{chr(10).join(pages)}
-</body>
-</html>
-'''
-
-out = Path('/home/claude/ai/xerj.ai/brief/brandbook-pdf/brandbook.html')
-out.write_text(html)
-print(f"wrote {out} · {len(html):,} bytes · {len(pages)} pages")
diff --git a/brief/brief.html b/brief/brief.html
deleted file mode 100644
index bae2db5fe..000000000
--- a/brief/brief.html
+++ /dev/null
@@ -1,1486 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ.AI — Product Brief — V1 — 2026-04</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<style>
- /* ================================================================
- XERJ.AI — PRODUCT BRIEF
- Typography-first. 1 px lines. Night palette. No frames.
- Conforms to brand.html laws 00–04.
- ================================================================ */
-
- :root {
- --bg: #0b0b0d;
- --ink: #f4f2ec;
- --mute: #8a8680;
- --faint: #2b2a28;
- --line: #3a3836;
- --accent: #ffc400;
-
- --font-display: 'Big Shoulders Display', 'Inter', system-ui, sans-serif;
- --font-prose: 'Inter', system-ui, sans-serif;
- --font-data: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
- --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
-
- --track-ui: 0.14em;
- --track-label: 0.08em;
- }
-
- @page {
- size: Letter;
- margin: 0;
- }
-
- * { box-sizing: border-box; margin: 0; padding: 0; }
-
- html, body {
- background: var(--bg);
- color: var(--ink);
- font-family: var(--font-prose);
- font-size: 11pt;
- line-height: 1.45;
- -webkit-font-smoothing: antialiased;
- text-rendering: optimizeLegibility;
- }
-
- /* ---------- page frame (every page is 8.5 × 11 in exactly) ---------- */
-
- .page {
- width: 8.5in;
- height: 11in;
- padding: 0.55in 0.6in 0.55in 0.6in;
- position: relative;
- page-break-after: always;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- }
- .page:last-child { page-break-after: auto; }
-
- /* ---------- common atoms ---------- */
-
- .kicker {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- display: flex;
- gap: 0.5em;
- align-items: center;
- flex-wrap: wrap;
- }
- .kicker .dash { color: var(--faint); }
- .kicker .accent { color: var(--accent); }
-
- .accent { color: var(--accent); }
- .mute { color: var(--mute); }
- .faint { color: var(--faint); }
- .mono { font-family: var(--font-mono); }
-
- h1, h2, h3, h4 {
- font-family: var(--font-display);
- font-weight: 900;
- text-transform: uppercase;
- letter-spacing: 0.02em;
- line-height: 0.92;
- }
-
- .hero {
- font-size: 84pt;
- letter-spacing: 0em;
- }
- .scene {
- font-size: 48pt;
- }
- h3 {
- font-size: 26pt;
- }
- h4 {
- font-size: 13pt;
- letter-spacing: var(--track-ui);
- }
-
- p.lead {
- font-family: var(--font-prose);
- font-size: 13pt;
- font-weight: 400;
- line-height: 1.5;
- color: var(--ink);
- max-width: 6.5in;
- }
- p.body {
- font-size: 10.5pt;
- line-height: 1.55;
- color: var(--ink);
- max-width: 6.5in;
- }
- p.body.wide { max-width: 100%; }
-
- /* ---------- rules / dividers ---------- */
-
- .rule-top { border-top: 1px solid var(--line); }
- .rule-bottom { border-bottom: 1px solid var(--line); }
-
- .flex { display: flex; }
- .col { flex-direction: column; }
- .grow { flex: 1 1 auto; min-height: 0; }
- .between { justify-content: space-between; }
- .end { align-items: flex-end; }
- .center { justify-content: center; align-items: center; }
-
- .sp-2 { height: 8px; }
- .sp-3 { height: 12px; }
- .sp-4 { height: 16px; }
- .sp-6 { height: 24px; }
- .sp-8 { height: 32px; }
- .sp-10 { height: 48px; }
- .sp-12 { height: 64px; }
-
- /* ---------- page header / footer ---------- */
-
- .head-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-bottom: 12px;
- border-bottom: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .head-row .brand { color: var(--ink); }
- .head-row .brand .accent { color: var(--accent); }
-
- .foot-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-top: 12px;
- border-top: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 500;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .foot-row .num { color: var(--ink); }
-
- /* ---------- key-value row (brand: label left, value right) ---------- */
-
- .kv-row {
- display: grid;
- grid-template-columns: 1.3in 1fr;
- gap: 0.3in;
- padding: 10px 0;
- border-bottom: 1px solid var(--line);
- align-items: baseline;
- }
- .kv-row .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .kv-row .v {
- font-size: 10.5pt;
- line-height: 1.5;
- color: var(--ink);
- }
-
- /* ---------- metric grid ---------- */
-
- .metric-grid {
- display: grid;
- grid-template-columns: repeat(4, 1fr);
- gap: 0;
- border-top: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- }
- .metric-grid > .cell {
- padding: 18px 14px 16px 14px;
- border-right: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 8px;
- }
- .metric-grid > .cell:last-child { border-right: 0; }
- .metric-grid .k {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .metric-grid .v {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 40pt;
- line-height: 0.95;
- letter-spacing: 0.01em;
- color: var(--ink);
- }
- .metric-grid .v .unit {
- font-family: var(--font-mono);
- font-weight: 500;
- font-size: 11pt;
- letter-spacing: 0;
- color: var(--mute);
- margin-left: 2px;
- }
- .metric-grid .sub {
- font-family: var(--font-mono);
- font-size: 8.5pt;
- color: var(--mute);
- }
-
- /* ---------- comparison bars (reused from use-cases.html) ---------- */
-
- .cmp {
- margin-top: 8px;
- }
- .cmp-head {
- display: grid;
- grid-template-columns: 1.8in 1fr 1fr;
- gap: 12px;
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- padding: 6px 0;
- border-bottom: 1px solid var(--line);
- }
- .cmp-head .a { color: var(--accent); }
- .cmp-row {
- display: grid;
- grid-template-columns: 1.8in 1fr 1fr;
- gap: 12px;
- padding: 8px 0;
- border-bottom: 1px solid var(--line);
- align-items: center;
- }
- .cmp-row .label {
- font-size: 9.5pt;
- color: var(--ink);
- }
- .cmp-val {
- display: flex;
- align-items: center;
- gap: 10px;
- position: relative;
- }
- .cmp-bar {
- flex: 0 0 auto;
- height: 1px;
- background: var(--ink);
- min-width: 2px;
- }
- .cmp-val.b .cmp-bar { background: var(--mute); }
- .cmp-val.a .cmp-num { color: var(--accent); }
- .cmp-num {
- font-family: var(--font-mono);
- font-size: 9pt;
- color: var(--ink);
- white-space: nowrap;
- }
- .cmp-ratio {
- font-family: var(--font-data);
- font-size: 8pt;
- color: var(--mute);
- margin-left: 8px;
- letter-spacing: var(--track-label);
- }
-
- /* ---------- bench table ---------- */
-
- .bench {
- display: grid;
- grid-template-columns: 3.3in 0.9in 0.9in 0.6in;
- column-gap: 0;
- width: 100%;
- }
- .bench > div {
- padding: 9px 10px;
- border-bottom: 1px solid var(--line);
- font-size: 9.5pt;
- }
- .bench.bench-compact > div { padding: 6px 10px; font-size: 9pt; }
- .bench .h {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- border-bottom: 1px solid var(--ink);
- }
- .bench .num { font-family: var(--font-mono); text-align: right; }
- .bench .delta { font-family: var(--font-mono); text-align: right; color: var(--accent); font-weight: 700; }
-
- /* ---------- series chart (ingest throughput) ---------- */
-
- .series-wrap { width: 100%; }
- svg.chart { display: block; width: 100%; height: 2.0in; color: var(--accent); overflow: visible; }
- .series-legend {
- margin-top: 8px;
- display: flex;
- justify-content: space-between;
- font-family: var(--font-data);
- font-size: 8pt;
- color: var(--mute);
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- }
- .series-legend .mono { font-family: var(--font-mono); color: var(--ink); letter-spacing: 0; text-transform: none; }
-
- /* ---------- law list (used on page 4) ---------- */
-
- .law-grid {
- display: grid;
- grid-template-columns: 0.5in 1fr;
- row-gap: 0;
- column-gap: 0.25in;
- }
- .law-grid .n {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 32pt;
- color: var(--accent);
- line-height: 1;
- padding-top: 14px;
- border-top: 1px solid var(--line);
- }
- .law-grid .law {
- padding: 14px 0;
- border-top: 1px solid var(--line);
- }
- .law-grid .t {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 20pt;
- line-height: 1;
- text-transform: uppercase;
- letter-spacing: 0.01em;
- }
- .law-grid .b {
- margin-top: 6px;
- font-size: 10pt;
- line-height: 1.5;
- color: var(--ink);
- max-width: 5.5in;
- }
-
- /* ---------- cover ---------- */
-
- .cover-hero {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 140pt;
- line-height: 0.88;
- letter-spacing: 0.01em;
- }
-
- /* ---------- use-case page ---------- */
-
- .uc-head {
- display: grid;
- grid-template-columns: 0.9in 1fr;
- gap: 0.25in;
- align-items: start;
- }
- .uc-num {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 72pt;
- line-height: 0.85;
- color: var(--accent);
- }
- .uc-title {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 38pt;
- line-height: 0.92;
- letter-spacing: 0.01em;
- text-transform: uppercase;
- }
- .uc-persona {
- margin-top: 10px;
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .uc-metric {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 22pt;
- color: var(--accent);
- letter-spacing: 0.01em;
- text-transform: uppercase;
- line-height: 1;
- margin-top: 14px;
- }
-
- /* ---------- engine internals ---------- */
-
- .eng-grid {
- display: grid;
- grid-template-columns: 1.6in 1fr;
- column-gap: 0.3in;
- }
- .eng-grid > div {
- padding: 8px 0;
- border-top: 1px solid var(--line);
- }
- .eng-grid .k {
- font-family: var(--font-data);
- font-size: 9.5pt;
- font-weight: 600;
- letter-spacing: 0.04em;
- text-transform: uppercase;
- color: var(--accent);
- }
- .eng-grid .v {
- font-size: 10pt;
- line-height: 1.5;
- }
-
- /* ---------- final CTA ---------- */
-
- .cta-block {
- padding: 36px 0;
- border-top: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- }
-
-</style>
-</head>
-<body>
-
-<!-- ============================================================ -->
-<!-- P1 · COVER -->
-<!-- ============================================================ -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>PRODUCT BRIEF · V1 · 2026-04</span>
- </div>
-
- <div class="grow flex col between">
- <div class="sp-10"></div>
-
- <div>
- <div class="kicker" style="margin-bottom:28px;">
- <span>TYPE IS THE UI</span>
- <span class="dash">·</span>
- <span>STORAGE FOR THE AGENT ERA</span>
- </div>
-
- <div class="cover-hero">
- ONE<br>
- <span class="accent">BINARY.</span><br>
- THREE<br>
- STORES.
- </div>
-
- <div class="sp-10"></div>
-
- <p class="lead" style="max-width:5.5in;">
- Logs. Vectors. Agent memory. One Rust engine instead of three
- glued systems. Measured against <span class="mono">Elasticsearch&nbsp;8.13</span>:
- <span class="accent">74×</span> faster SIEM queries,
- <span class="accent">21×</span> less memory,
- <span class="accent">300×</span> faster cold start,
- on a single node vs a 4-node cluster.
- </p>
- </div>
-
- <div class="flex between end" style="gap:24px;">
- <div class="kicker">
- <span>REPLACES</span>
- <span class="dash">·</span>
- <span>ELASTICSEARCH</span>
- <span class="dash">·</span>
- <span>PINECONE</span>
- <span class="dash">·</span>
- <span>LOGSTASH</span>
- <span class="dash">·</span>
- <span>KIBANA</span>
- </div>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · PRODUCT BRIEF</span>
- <span class="num">01 / 12</span>
- </div>
-</section>
-
-<!-- ============================================================ -->
-<!-- P2 · TL;DR — key numbers -->
-<!-- ============================================================ -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>02 · AT A GLANCE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-8"></div>
-
- <div class="kicker"><span>02</span><span class="dash">·</span><span>AT A GLANCE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">NUMBERS YOU<br><span class="accent">CAN REPRODUCE.</span></h2>
-
- <div class="sp-6"></div>
- <p class="body" style="max-width:6.8in;">
- Every number below comes from a dated, checked-in battle
- report in the engine repository. No synthetic micro-benchmarks,
- no hand-picked best run. Where <span class="mono">ES 8.13</span>
- shards its cluster across 4 nodes, XERJ runs on 1. The caveats
- are published alongside the wins.
- </p>
-
- <div class="sp-8"></div>
-
- <div class="metric-grid">
- <div class="cell">
- <span class="k">SIEM TOP IPS</span>
- <span class="v"><span class="accent">74</span>×</span>
- <span class="sub">0.4 ms vs 29.8 ms</span>
- </div>
- <div class="cell">
- <span class="k">IDLE MEMORY</span>
- <span class="v"><span class="accent">21</span>×</span>
- <span class="sub">400 MB vs 8.5 GB</span>
- </div>
- <div class="cell">
- <span class="k">COLD START</span>
- <span class="v"><span class="accent">300</span>×</span>
- <span class="sub">50 ms vs 15 s</span>
- </div>
- <div class="cell">
- <span class="k">BINARY SIZE</span>
- <span class="v"><span class="accent">56</span>×</span>
- <span class="sub">11 MB vs 620 MB</span>
- </div>
- </div>
-
- <div class="sp-8"></div>
-
- <div class="metric-grid">
- <div class="cell">
- <span class="k">NGINX TERMS</span>
- <span class="v"><span class="accent">89</span>×</span>
- <span class="sub">0.4 ms vs 35.7 ms</span>
- </div>
- <div class="cell">
- <span class="k">VECTOR SQ8</span>
- <span class="v"><span class="accent">4</span>×</span>
- <span class="sub">1M × 768-dim vs float32</span>
- </div>
- <div class="cell">
- <span class="k">INGEST PEAK</span>
- <span class="v"><span class="accent">82</span><span class="unit">K</span></span>
- <span class="sub">docs/s · one client</span>
- </div>
- <div class="cell">
- <span class="k">STACK</span>
- <span class="v"><span class="accent">6</span>→<span class="accent">1</span></span>
- <span class="sub">6 systems · 1 binary</span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>SOURCE</span>
- <span class="dash">·</span>
- <span class="mono">engine/SIEM_BATTLE_2026-04-14_184900_UTC.md</span>
- <span class="dash">·</span>
- <span class="mono">engine/CLUSTER_BATTLE_2026-04-14_180241_UTC.md</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · PRODUCT BRIEF</span>
- <span class="num">02 / 12</span>
- </div>
-</section>
-
-<!-- ============================================================ -->
-<!-- P3 · THE PROBLEM -->
-<!-- ============================================================ -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>03 · THE PROBLEM</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-8"></div>
-
- <div class="kicker"><span>03</span><span class="dash">·</span><span>THE PROBLEM</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">THREE SYSTEMS.<br>THREE BILLS.<br><span class="accent">ONE QUERY.</span></h2>
-
- <div class="sp-6"></div>
- <p class="body">
- Every agent-era workload wants three things from storage:
- full-text search, dense-vector similarity, and
- millisecond aggregations on structured events. The
- industry's answer is to bolt three products together —
- <span class="mono">Elasticsearch</span> for logs,
- <span class="mono">Pinecone</span> for vectors,
- <span class="mono">Redis</span> for memory — with a retrieval
- framework stitching them with RRF. Three systems, three
- bills, three query languages, three cache warmups, three
- failure modes. The agent sees one round trip multiplied by
- three.
- </p>
-
- <div class="sp-8"></div>
-
- <div class="kv-row">
- <div class="k">OPERATIONAL</div>
- <div class="v">
- Five binaries to deploy (ES + Logstash + Kibana + Pinecone client
- + Redis). Twelve config files. Three query DSLs to train SREs on.
- Three separate permission models.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">LATENCY</div>
- <div class="v">
- Hybrid search means two network hops, two cache layers, two
- result sets glued by an orchestrator doing reciprocal rank
- fusion. The agent sees the <em>sum</em> of every system's p99.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">COST</div>
- <div class="v">
- Elasticsearch needs a 4-node JVM cluster to not fall over at
- peak. Pinecone's per-vector pricing linearly scales with the
- corpus. Redis memory is precious and non-persistent. All three
- bills arrive at the end of the month.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">FAILURE</div>
- <div class="v">
- Three systems means three on-call rotations, three postmortem
- categories, three separate backup and restore stories. The
- agent doesn't care which one is down — it just sees a 500.
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>AGENTS ARE THE WORKLOAD</span>
- <span class="dash">·</span>
- <span>AGENTS NEED ONE STORE</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · PRODUCT BRIEF</span>
- <span class="num">03 / 12</span>
- </div>
-</section>
-
-<!-- ============================================================ -->
-<!-- P4 · THE PRODUCT -->
-<!-- ============================================================ -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>04 · THE PRODUCT</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-8"></div>
-
- <div class="kicker"><span>04</span><span class="dash">·</span><span>THE PRODUCT</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ONE ENGINE.<br><span class="accent">ZERO STACK.</span></h2>
-
- <div class="sp-6"></div>
- <p class="body">
- XERJ is a single static Rust binary — 11 MB — that speaks
- the <span class="mono">Elasticsearch 8.13</span> wire protocol
- on port 9200 and adds native hybrid search, SQ8-quantized
- vectors, OTLP ingest, and agent-memory indexes. Same client
- libraries work. Same query DSL works. The difference is what
- happens below the API.
- </p>
-
- <div class="sp-8"></div>
-
- <div class="kv-row">
- <div class="k">LOGS</div>
- <div class="v">
- Native columnar store with delta-of-delta timestamps,
- dictionary + ZSTD keyword encoding, FOR+RLE integer encoding.
- Pre-computed term histograms at ingest time — the reason
- SIEM top-source-IPs is <span class="accent">74×</span> faster
- than Elasticsearch.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">VECTORS</div>
- <div class="v">
- SQ8 quantization end-to-end. 1M × 768-dim floats is 1.2 GB
- (XERJ) vs 4.6 GB (float32 in ES + Pinecone). BM25 and ANN
- share one query tree — no RRF orchestrator, no two-system
- round trip.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">AGENT MEMORY</div>
- <div class="v">
- Conversation turns, tool traces, and retrieved context live in
- the same store as the logs they relate to. Time-decay scoring
- and token-budget-aware retrieval are native operators, not
- application-level glue.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">COST VISIBILITY</div>
- <div class="v">
- Every query returns an explain-plan with per-node cost and
- row counts. <span class="mono accent">/v1/explain-plan</span>
- is a first-class endpoint, not a debug flag. You know what
- each agent call cost before it completes.
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>API</span>
- <span class="dash">·</span>
- <span class="mono">PORT 9200</span>
- <span class="dash">·</span>
- <span>DROP-IN FOR ES 8.13 CLIENTS</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · PRODUCT BRIEF</span>
- <span class="num">04 / 12</span>
- </div>
-</section>
-
-<!-- ============================================================ -->
-<!-- P5 · DESIGN LAWS (brand principles applied to product) -->
-<!-- ============================================================ -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>05 · DESIGN LAWS</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-8"></div>
-
- <div class="kicker"><span>05</span><span class="dash">·</span><span>DESIGN LAWS</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FIVE LAWS.<br><span class="accent">NEVER BROKEN.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The dashboards are bound by the same five laws as the engine.
- They were written first and they stay written. Type is the UI;
- data is the design.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="law-grid">
- <div class="n">00</div>
- <div class="law">
- <div class="t">NO <span class="accent">FRAMES.</span></div>
- <div class="b">No boxed containers. No card backgrounds, no rounded
- rectangles, no inset shadows. Hierarchy is established by type
- weight, white space, and the 12-column grid — not by drawing a
- rectangle around every idea.</div>
- </div>
-
- <div class="n">01</div>
- <div class="law">
- <div class="t">ONLY <span class="accent">1 PX</span> LINES.</div>
- <div class="b">Every rule, every chart stroke, every hairline divider
- is exactly one pixel. A bar chart is a 1 px line. The uniformity
- is the brand.</div>
- </div>
-
- <div class="n">02</div>
- <div class="law">
- <div class="t"><span class="accent">INFOGRAPHICS</span> FIRST.</div>
- <div class="b">Every screen is an infographic. The reader understands
- the point in one pass — title, number, trend, context — with
- nothing decorative competing for attention.</div>
- </div>
-
- <div class="n">03</div>
- <div class="law">
- <div class="t"><span class="accent">TYPOGRAPHY</span> FIRST.</div>
- <div class="b">Four typefaces, seven sizes, nothing else ships.
- When the choice is between a bigger word and a bigger chart,
- the word wins.</div>
- </div>
-
- <div class="n">04</div>
- <div class="law">
- <div class="t">DESIGN BY <span class="accent">DATA POINTS.</span></div>
- <div class="b">Layout follows the shape of real values. A dashboard
- with three metrics looks different from one with twelve because
- the numbers need different room. The grid serves the data.</div>
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · PRODUCT BRIEF</span>
- <span class="num">05 / 12</span>
- </div>
-</section>
-
-<!-- ============================================================ -->
-<!-- P6 · USE CASE 01 · SECURITY ANALYTICS -->
-<!-- ============================================================ -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>06 · USE CASE 01 · SECURITY ANALYTICS</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
-
- <div class="uc-head">
- <div class="uc-num">01</div>
- <div>
- <div class="uc-title">SECURITY<br>ANALYTICS<br><span class="accent">AT SCALE.</span></div>
- <div class="uc-persona">CISO · SOC ANALYST · SECOPS</div>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <p class="body">
- SOC teams spend more time waiting for dashboards than investigating
- threats. The battery below runs 8 canonical SIEM queries — top source
- IPs, auth-failure clustering, lateral movement, brute-force detection —
- with measured p95 latency on 1M events.
- <span class="accent">XERJ</span> is the yellow bar.
- Elasticsearch is the gray one.
- </p>
-
- <div class="uc-metric">74× FASTER SIEM QUERIES</div>
-
- <div class="sp-6"></div>
-
- <div class="kicker"><span>SIEM QUERY BATTERY · P95 LATENCY · 1M EVENTS</span></div>
- <div class="sp-3"></div>
-
- <div class="cmp">
- <div class="cmp-head">
- <span></span><span class="a">XERJ</span><span>ES 8.13</span>
- </div>
- <div class="cmp-row">
- <span class="label">Top source IPs</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:3px;"></span><span class="cmp-num">0.4 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:74px;"></span><span class="cmp-num">29.8 ms <span class="cmp-ratio">74.5×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Auth failures / hour</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:2px;"></span><span class="cmp-num">0.3 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:50px;"></span><span class="cmp-num">18.2 ms <span class="cmp-ratio">60.7×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Lateral movement</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:5px;"></span><span class="cmp-num">1.2 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:113px;"></span><span class="cmp-num">45.1 ms <span class="cmp-ratio">37.6×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">DNS tunneling</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:4px;"></span><span class="cmp-num">0.8 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:82px;"></span><span class="cmp-num">32.7 ms <span class="cmp-ratio">40.9×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Process tree anomaly</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:8px;"></span><span class="cmp-num">2.1 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:223px;"></span><span class="cmp-num">89.3 ms <span class="cmp-ratio">42.5×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Brute force detection</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:3px;"></span><span class="cmp-num">0.5 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:103px;"></span><span class="cmp-num">41.0 ms <span class="cmp-ratio">82.0×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Geo-impossible login</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:6px;"></span><span class="cmp-num">1.8 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:168px;"></span><span class="cmp-num">67.2 ms <span class="cmp-ratio">37.3×</span></span></span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker"><span>WHY</span><span class="dash">·</span><span>PRE-COMPUTED TERM HISTOGRAMS READ DIRECTLY AT AGGREGATION TIME</span></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · PRODUCT BRIEF</span>
- <span class="num">06 / 12</span>
- </div>
-</section>
-
-<!-- ============================================================ -->
-<!-- P7 · USE CASE 02 · OPERATIONAL INTELLIGENCE -->
-<!-- ============================================================ -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>07 · USE CASE 02 · OPERATIONAL INTELLIGENCE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
-
- <div class="uc-head">
- <div class="uc-num">02</div>
- <div>
- <div class="uc-title">OPERATIONAL<br><span class="accent">INTELLIGENCE.</span></div>
- <div class="uc-persona">SRE · DEVOPS · PLATFORM ENGINEERING</div>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <p class="body">
- Ship logs at line rate. Query hot data in milliseconds. No ILM
- policy puzzles, no shard tuning, no Logstash pipeline to babysit.
- The chart below shows sustained ingest throughput over 24 hours —
- 80K docs/s from a single client, diurnal traffic pattern, zero
- write-stalls.
- </p>
-
- <div class="uc-metric">80K DOCS/S SUSTAINED</div>
-
- <div class="sp-8"></div>
-
- <div class="kicker"><span>INGEST THROUGHPUT · 24H · SINGLE CLIENT</span></div>
- <div class="sp-3"></div>
-
- <div class="series-wrap">
- <svg class="chart" viewBox="0 0 1200 180" preserveAspectRatio="none">
- <polyline points="0.00,180.00 8.39,180.00 16.78,180.00 25.17,180.00 33.57,180.00 41.96,178.11 50.35,180.00 58.74,180.00 67.13,180.00 75.52,180.00 83.92,173.83 92.31,180.00 100.70,180.00 109.09,171.61 117.48,180.00 125.87,163.04 134.27,175.10 142.66,169.87 151.05,174.25 159.44,160.45 167.83,152.63 176.22,158.45 184.62,142.50 193.01,153.53 201.40,144.25 209.79,132.83 218.18,133.43 226.57,139.35 234.97,124.23 243.36,125.25 251.75,113.83 260.14,110.17 268.53,108.71 276.92,117.26 285.31,113.56 293.71,94.98 302.10,102.70 310.49,98.53 318.88,101.66 327.27,75.90 335.66,88.80 344.06,81.59 352.45,82.55 360.84,74.10 369.23,72.67 377.62,60.14 386.01,56.82 394.41,61.13 402.80,50.17 411.19,47.27 419.58,38.09 427.97,39.13 436.36,34.36 444.76,48.38 453.15,26.64 461.54,31.20 469.93,34.32 478.32,18.61 486.71,18.10 495.10,19.39 503.50,30.40 511.89,23.51 520.28,11.56 528.67,17.67 537.06,10.96 545.45,1.18 553.85,11.12 562.24,9.54 570.63,0.00 579.02,10.03 587.41,9.93 595.80,6.96 604.20,12.22 612.59,0.14 620.98,17.27 629.37,17.61 637.76,8.04 646.15,1.73 654.55,16.40 662.94,7.31 671.33,5.78 679.72,23.80 688.11,16.11 696.50,6.55 704.90,29.60 713.29,26.82 721.68,30.83 730.07,32.46 738.46,24.65 746.85,22.14 755.24,26.41 763.64,36.35 772.03,33.91 780.42,53.38 788.81,55.70 797.20,52.59 805.59,60.14 813.99,48.14 822.38,55.36 830.77,75.46 839.16,67.95 847.55,70.94 855.94,81.43 864.34,86.68 872.73,90.41 881.12,81.16 889.51,93.36 897.90,97.87 906.29,88.14 914.69,114.00 923.08,114.45 931.47,107.91 939.86,123.26 948.25,112.07 956.64,114.55 965.03,119.77 973.43,142.39 981.82,144.46 990.21,134.86 998.60,134.18 1006.99,135.42 1015.38,157.89 1023.78,156.42 1032.17,149.66 1040.56,166.21 1048.95,163.42 1057.34,174.02 1065.73,167.68 1074.13,176.24 1082.52,168.57 1090.91,180.00 1099.30,168.38 1107.69,180.00 1116.08,180.00 1124.48,172.28 1132.87,180.00 1141.26,180.00 1149.65,180.00 1158.04,180.00 1166.43,180.00 1174.83,180.00 1183.22,180.00 1191.61,180.00 1200.00,180.00" fill="none" stroke="currentColor" stroke-width="1.4"/>
- </svg>
- <div class="series-legend">
- <span>00:00 · <span class="mono">20K docs/s</span></span>
- <span>MIN <span class="mono">20K</span> · PEAK <span class="mono">82.51K</span> DOCS/S</span>
- <span><span class="mono">20K docs/s</span> · 24:00</span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <div class="kv-row">
- <div class="k">WHY</div>
- <div class="v">
- Single-process ingest: the NGINX / JSON / syslog / OTLP parsers
- run in the same process as the writer. One fsync. One network
- hop. End-to-end back-pressure with no Kafka queue as a buffer.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">DISK</div>
- <div class="v">
- 85 MB for 1M SIEM events post-ingest — <span class="accent">2.8×</span>
- smaller than ES on the same corpus. Delta-of-delta + dictionary +
- ZSTD, no shards to rebalance.
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · PRODUCT BRIEF</span>
- <span class="num">07 / 12</span>
- </div>
-</section>
-
-<!-- ============================================================ -->
-<!-- P8 · USE CASE 03 · AI SEARCH & RETRIEVAL -->
-<!-- ============================================================ -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>08 · USE CASE 03 · AI SEARCH &amp; RETRIEVAL</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
-
- <div class="uc-head">
- <div class="uc-num">03</div>
- <div>
- <div class="uc-title">AI-NATIVE<br>SEARCH &amp;<br><span class="accent">RETRIEVAL.</span></div>
- <div class="uc-persona">ML ENGINEER · DATA SCIENTIST · AI PLATFORM</div>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <p class="body">
- Hybrid semantic + keyword search in one query. BM25 and vector
- similarity share a single query tree, a single cost model, and a
- single execution pass — not a Python orchestrator calling two
- systems and merging with RRF. The memory footprint below shows
- the cost of running vectors at scale.
- </p>
-
- <div class="uc-metric">4× MEMORY SAVINGS · 1 QUERY</div>
-
- <div class="sp-6"></div>
-
- <div class="kicker"><span>VECTOR MEMORY · XERJ SQ8 vs ES + PINECONE FLOAT32</span></div>
- <div class="sp-3"></div>
-
- <div class="cmp">
- <div class="cmp-head">
- <span></span><span class="a">XERJ (SQ8)</span><span>ES + PINECONE (FLOAT32)</span>
- </div>
- <div class="cmp-row">
- <span class="label">1M × 768-dim</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:3px;"></span><span class="cmp-num">1.2 GB</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:11px;"></span><span class="cmp-num">4.6 GB <span class="cmp-ratio">3.8×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">5M × 768-dim</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:14px;"></span><span class="cmp-num">5.8 GB</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:56px;"></span><span class="cmp-num">23 GB <span class="cmp-ratio">4.0×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">10M × 1536-dim</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:44px;"></span><span class="cmp-num">18 GB</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:224px;"></span><span class="cmp-num">92 GB <span class="cmp-ratio">5.1×</span></span></span>
- </div>
- </div>
-
- <div class="sp-8"></div>
-
- <div class="kv-row">
- <div class="k">HYBRID QUERY</div>
- <div class="v">
- BM25 + ANN in one query tree. p95 is 38 ms on 1B vectors on a
- single box. RRF orchestration is unnecessary — the planner
- sees both signals and ranks them jointly.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">AGENT MEMORY</div>
- <div class="v">
- Conversation turns, tool traces, retrieved context — same
- store, same index. Time-decay scoring and token-budget
- retrieval are native operators. No application glue.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">EMBEDDINGS</div>
- <div class="v">
- SQ8 end-to-end. Quantization happens at ingest, not at query.
- Recall@10 drops under 0.5 pp vs float32 on MS MARCO.
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · PRODUCT BRIEF</span>
- <span class="num">08 / 12</span>
- </div>
-</section>
-
-<!-- ============================================================ -->
-<!-- P9 · USE CASE 04 · ELASTICSEARCH REPLACEMENT -->
-<!-- ============================================================ -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>09 · USE CASE 04 · ELASTICSEARCH REPLACEMENT</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
-
- <div class="uc-head">
- <div class="uc-num">04</div>
- <div>
- <div class="uc-title">ELASTICSEARCH<br><span class="accent">REPLACEMENT.</span></div>
- <div class="uc-persona">VP ENGINEERING · CTO · PLATFORM TEAM</div>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <p class="body">
- Same API on port 9200. Same query DSL. Same client libraries.
- The comparison below shows what <em>changes</em>: memory, disk,
- cold start, configuration surface, and component count. Yellow
- is XERJ on a single node. Gray is a 4-node Elasticsearch cluster
- doing the same job.
- </p>
-
- <div class="uc-metric">21× LESS MEMORY · ~80% TCO</div>
-
- <div class="sp-6"></div>
-
- <div class="kicker"><span>RESOURCE COMPARISON · XERJ 1-NODE vs ES 8.13 4-NODE</span></div>
- <div class="sp-3"></div>
-
- <div class="cmp">
- <div class="cmp-head">
- <span></span><span class="a">XERJ (1-NODE)</span><span>ES 8.13 (4-NODE)</span>
- </div>
- <div class="cmp-row">
- <span class="label">Idle memory</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:2px;"></span><span class="cmp-num">400 MB</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:42px;"></span><span class="cmp-num">8.5 GB <span class="cmp-ratio">21.3×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Disk (1M SIEM)</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:3px;"></span><span class="cmp-num">85 MB</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:9px;"></span><span class="cmp-num">240 MB <span class="cmp-ratio">2.8×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Cold start</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:2px;"></span><span class="cmp-num">50 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:224px;"></span><span class="cmp-num">15 s <span class="cmp-ratio">300.0×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Config knobs</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:3px;"></span><span class="cmp-num">47</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:200px;"></span><span class="cmp-num">3,000+ <span class="cmp-ratio">63.8×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Binaries to run</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:3px;"></span><span class="cmp-num">1</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:16px;"></span><span class="cmp-num">5 <span class="cmp-ratio">5.0×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Release binary</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:3px;"></span><span class="cmp-num">11 MB</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:200px;"></span><span class="cmp-num">620 MB <span class="cmp-ratio">56.4×</span></span></span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <div class="kicker"><span>MIGRATION</span><span class="dash">·</span><span>SAME CLIENT LIBRARIES · NO CODE CHANGES</span></div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · PRODUCT BRIEF</span>
- <span class="num">09 / 12</span>
- </div>
-</section>
-
-<!-- ============================================================ -->
-<!-- P10 · USE CASE 05 · UNIFIED OBSERVABILITY -->
-<!-- ============================================================ -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>10 · USE CASE 05 · UNIFIED OBSERVABILITY</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
-
- <div class="uc-head">
- <div class="uc-num">05</div>
- <div>
- <div class="uc-title">UNIFIED<br><span class="accent">OBSERVABILITY.</span></div>
- <div class="uc-persona">OBSERVABILITY LEAD · SRE · INFRA</div>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <p class="body">
- Logs, traces, and metrics in one store. OTLP in, Prometheus-style
- queries out. No Grafana–Loki–Tempo–Mimir stack to babysit, no
- cross-store join written by hand, no three separate retention
- policies to reason about.
- </p>
-
- <div class="uc-metric">6 SYSTEMS → 1 BINARY</div>
-
- <div class="sp-6"></div>
-
- <div class="kicker"><span>OPERATIONAL SURFACE · XERJ vs SPLUNK + PROM + TEMPO</span></div>
- <div class="sp-3"></div>
-
- <div class="cmp">
- <div class="cmp-head">
- <span></span><span class="a">XERJ</span><span>SPLUNK + PROM + TEMPO</span>
- </div>
- <div class="cmp-row">
- <span class="label">Binaries</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:20px;"></span><span class="cmp-num">1</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:120px;"></span><span class="cmp-num">6 <span class="cmp-ratio">6.0×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Config files</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:17px;"></span><span class="cmp-num">1</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:200px;"></span><span class="cmp-num">12 <span class="cmp-ratio">12.0×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Query languages</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:20px;"></span><span class="cmp-num">1</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:60px;"></span><span class="cmp-num">3 <span class="cmp-ratio">3.0×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Storage backends</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:20px;"></span><span class="cmp-num">1</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:60px;"></span><span class="cmp-num">3 <span class="cmp-ratio">3.0×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Retention policies</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:20px;"></span><span class="cmp-num">1</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:60px;"></span><span class="cmp-num">3 <span class="cmp-ratio">3.0×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Monthly bill lines</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:20px;"></span><span class="cmp-num">1</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:100px;"></span><span class="cmp-num">5 <span class="cmp-ratio">5.0×</span></span></span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker"><span>INTAKE</span><span class="dash">·</span><span class="mono">OTLP · PROMETHEUS REMOTE_WRITE · SYSLOG · JSON · NGINX</span></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · PRODUCT BRIEF</span>
- <span class="num">10 / 12</span>
- </div>
-</section>
-
-<!-- ============================================================ -->
-<!-- P11 · BENCHMARKS TABLE -->
-<!-- ============================================================ -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>11 · MEASURED vs ELASTICSEARCH 8.13</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
-
- <h2 class="scene" style="font-size:36pt;">WHAT MAKES IT <span class="accent">FAST.</span></h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- Every row below is a dated, checked-in battle report in the
- engine repository. Repro scripts and hardware profiles ship
- alongside. Where ES shards across 4 nodes, XERJ runs on 1.
- </p>
-
- <div class="sp-4"></div>
-
- <div class="bench bench-compact">
- <div class="h">TEST · 1M EVENTS · P95 LATENCY</div>
- <div class="h num">ES 8.13</div>
- <div class="h num">XERJ</div>
- <div class="h num">Δ</div>
-
- <div>SIEM top-source-IPs · terms aggregation</div>
- <div class="num">29.8 ms</div>
- <div class="num">0.4 ms</div>
- <div class="delta">74×</div>
-
- <div>SIEM 16-query analyst battery · median</div>
- <div class="num">4.1 ms</div>
- <div class="num">0.6 ms</div>
- <div class="delta">6.8×</div>
-
- <div>NGINX terms aggregation · 5 distinct values</div>
- <div class="num">35.7 ms</div>
- <div class="num">0.4 ms</div>
- <div class="delta">89×</div>
-
- <div>NGINX keyword · method=GET · warm cache</div>
- <div class="num">2.0 ms</div>
- <div class="num">0.3 ms</div>
- <div class="delta">6.7×</div>
-
- <div>Cold start · JVM warm-up vs static binary</div>
- <div class="num">~15 s</div>
- <div class="num">50 ms</div>
- <div class="delta">300×</div>
-
- <div>Release binary size · deploy footprint</div>
- <div class="num">620 MB</div>
- <div class="num">11 MB</div>
- <div class="delta">56×</div>
-
- <div>Idle memory · 1-node XERJ vs 4-node ES</div>
- <div class="num">8.5 GB</div>
- <div class="num">400 MB</div>
- <div class="delta">21×</div>
-
- <div>Disk footprint · 1M SIEM events</div>
- <div class="num">240 MB</div>
- <div class="num">85 MB</div>
- <div class="delta">2.8×</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4 class="accent" style="letter-spacing:0.04em; color:var(--accent); font-size:11pt;">ENGINE INTERNALS</h4>
- <div class="sp-2"></div>
-
- <div class="eng-grid">
- <div class="k">NO JVM</div>
- <div class="v">Rust static binary. No heap, no GC pauses, no warm-up. Cold start 50 ms, not 15 s.</div>
- <div class="k">COLUMNAR NATIVE</div>
- <div class="v">Delta-of-delta timestamps, dictionary + ZSTD keywords, FOR+RLE small ints, SQ8 vectors — all at write time.</div>
- <div class="k">TERM HISTOGRAMS</div>
- <div class="v">Pre-computed at ingest. Terms aggregations read the histogram directly, not the posting list. That is the 74×.</div>
- <div class="k">HYBRID PLANNER</div>
- <div class="v">BM25 + vector share one query tree, one cost model, one execution pass. No RRF, no two-system hop.</div>
- <div class="k">SINGLE-PROC INGEST</div>
- <div class="v">Parsers + writer in one process. One fsync, one network hop, end-to-end back-pressure.</div>
- <div class="k">EXPLAIN-PLAN</div>
- <div class="v"><span class="mono">/v1/explain-plan</span> returns optimizer tree with per-node cost and row counts. First-class, not a debug flag.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · PRODUCT BRIEF</span>
- <span class="num">11 / 12</span>
- </div>
-</section>
-
-<!-- ============================================================ -->
-<!-- P12 · REQUEST ACCESS -->
-<!-- ============================================================ -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>12 · REQUEST ACCESS</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-10"></div>
-
- <div class="kicker"><span>12</span><span class="dash">·</span><span>REQUEST ACCESS</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">RUN IT ON<br><span class="accent">YOUR DATA.</span></h2>
-
- <div class="sp-6"></div>
- <p class="body">
- Leave a work email and we will reply within one business day
- with a private binary, the reproduction scripts for every
- benchmark in this document, and a 45-minute walkthrough on
- hardware you choose.
- </p>
-
- <div class="sp-10"></div>
-
- <div class="cta-block">
- <div class="flex col">
- <div class="kicker"><span>CONTACT</span></div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-display); font-weight: 900; font-size: 48pt; line-height:1; letter-spacing: 0.01em;">
- HELLO<span class="accent">@</span>XERJ.AI
- </div>
- <div class="sp-4"></div>
- <div style="font-family: var(--font-data); font-size: 10pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--mute);">
- XERJ.AI · XERJ.COM · XERJ.DEV
- </div>
- </div>
- </div>
-
- <div class="sp-10"></div>
-
- <div class="kv-row">
- <div class="k">WHAT YOU GET</div>
- <div class="v">
- Private static binary (Linux x86_64 or aarch64, macOS arm64).
- Reproduction scripts and seeded datasets for every benchmark
- in this brief. A single config file to get to running in
- under a minute.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">WALKTHROUGH</div>
- <div class="v">
- 45 minutes, scheduled at your convenience. We run your
- queries on your data (or ours, if you prefer). You keep the
- binary and the datasets either way.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">NEXT STEPS</div>
- <div class="v">
- Email <span class="mono accent">[email protected]</span> with
- your workload (SIEM, observability, RAG, ES replacement).
- We reply within one business day. No sales call, no NDA
- required to see the binary.
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>XERJ.AI</span>
- <span class="dash">·</span>
- <span>PRODUCT BRIEF · V1</span>
- <span class="dash">·</span>
- <span>2026-04</span>
- <span class="dash">·</span>
- <span>STORAGE FOR THE AGENT ERA</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · PRODUCT BRIEF</span>
- <span class="num">12 / 12</span>
- </div>
-</section>
-
-</body>
-</html>
diff --git a/brief/build-arch.js b/brief/build-arch.js
deleted file mode 100644
index e0da0a31b..000000000
--- a/brief/build-arch.js
+++ /dev/null
@@ -1,57 +0,0 @@
-/* XERJ architecture brief — same SVG-injection pipeline as exec/tech,
- but renders via headless Chrome directly (no puppeteer dependency). */
-const path = require('path');
-const fs = require('fs');
-const os = require('os');
-const { execFileSync } = require('child_process');
-
-(async () => {
- const tplPath = path.resolve(__dirname, 'arch-brief.html');
- const svgDir = path.resolve(__dirname, 'svg');
- const outHtml = path.resolve(__dirname, '_arch-brief.rendered.html');
- const outPdf = path.resolve(__dirname, 'xerj-architecture-brief.pdf');
-
- let html = fs.readFileSync(tplPath, 'utf8');
- html = html.replace(/\{\{SVG:([a-z_-]+)\}\}/g, (_, name) => {
- const p = path.join(svgDir, name + '.html');
- if (!fs.existsSync(p)) throw new Error('missing SVG: ' + name);
- let svg = fs.readFileSync(p, 'utf8');
- svg = svg.replace(/(<svg\b[^>]*\bstyle=")([^"]*?)(")/g, (m, a, body, c) => {
- const cleaned = body
- .replace(/height\s*:\s*[^;"]+;?/ig, '')
- .replace(/overflow\s*:\s*visible;?/ig, 'overflow:hidden;')
- .trim()
- .replace(/;+$/, '');
- return a + cleaned + c;
- });
- const secIdx = svg.indexOf('</section>');
- if (secIdx !== -1) svg = svg.slice(0, secIdx);
- const opens = (svg.match(/<div\b/g) || []).length;
- const closes = (svg.match(/<\/div>/g) || []).length;
- let excess = closes - opens;
- while (excess-- > 0) {
- svg = svg.replace(/\s*<\/div>\s*$/, '');
- }
- return svg;
- });
- fs.writeFileSync(outHtml, html);
-
- const tmpProfile = fs.mkdtempSync(path.join(os.tmpdir(), 'xerj-chrome-'));
- try {
- execFileSync('google-chrome', [
- '--headless=new',
- '--disable-gpu',
- '--no-sandbox',
- '--no-pdf-header-footer',
- '--font-render-hinting=none',
- '--virtual-time-budget=10000',
- '--user-data-dir=' + tmpProfile,
- '--print-to-pdf-no-header',
- '--print-to-pdf=' + outPdf,
- 'file://' + outHtml,
- ], { stdio: 'inherit' });
- console.log('OK:', outPdf, fs.statSync(outPdf).size, 'bytes');
- } finally {
- fs.rmSync(tmpProfile, { recursive: true, force: true });
- }
-})();
diff --git a/brief/build-brandbook.js b/brief/build-brandbook.js
deleted file mode 100644
index 000addd08..000000000
--- a/brief/build-brandbook.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/* XERJ.AI Brand Book V1 → PDF.
- Renders a dedicated, print-structured HTML (41 pages of cover /
- colophon / contents / 7 chapters / back cover) to a single PDF.
- This is NOT a print of the website — it's a book. */
-const puppeteer = require('puppeteer');
-const path = require('path');
-const fs = require('fs');
-
-const SRC = 'file://' + path.resolve(__dirname, 'brandbook-pdf/brandbook.html');
-const OUT = path.resolve(__dirname, 'xerj-brandbook.pdf');
-
-(async () => {
- const browser = await puppeteer.launch({
- headless: true,
- args: [
- '--no-sandbox',
- '--disable-setuid-sandbox',
- '--font-render-hinting=none',
- ],
- });
- try {
- const page = await browser.newPage();
- await page.emulateMediaType('print');
- console.log('→ loading', SRC);
- await page.goto(SRC, { waitUntil: 'networkidle0', timeout: 90000 });
- await page.evaluateHandle('document.fonts.ready');
- await page.evaluate(() => new Promise((r) => setTimeout(r, 400)));
-
- console.log('→ rendering PDF');
- await page.pdf({
- path: OUT,
- width: '8.5in',
- height: '11in',
- printBackground: true,
- preferCSSPageSize: true,
- margin: { top: 0, right: 0, bottom: 0, left: 0 },
- });
- const size = fs.statSync(OUT).size;
- console.log('OK:', OUT, `${(size / 1024).toFixed(1)} KB`);
- } finally {
- await browser.close();
- }
-})().catch((err) => {
- console.error('FAILED:', err);
- process.exit(1);
-});
diff --git a/brief/build-compare.js b/brief/build-compare.js
deleted file mode 100644
index 7631cbe6e..000000000
--- a/brief/build-compare.js
+++ /dev/null
@@ -1,57 +0,0 @@
-/* XERJ head-to-head comparison brief — same SVG-injection pipeline as
- arch-brief, rendered via headless Chrome (no puppeteer). */
-const path = require('path');
-const fs = require('fs');
-const os = require('os');
-const { execFileSync } = require('child_process');
-
-(async () => {
- const tplPath = path.resolve(__dirname, 'compare-brief.html');
- const svgDir = path.resolve(__dirname, 'svg');
- const outHtml = path.resolve(__dirname, '_compare-brief.rendered.html');
- const outPdf = path.resolve(__dirname, 'xerj-compare-brief.pdf');
-
- let html = fs.readFileSync(tplPath, 'utf8');
- html = html.replace(/\{\{SVG:([a-z_-]+)\}\}/g, (_, name) => {
- const p = path.join(svgDir, name + '.html');
- if (!fs.existsSync(p)) throw new Error('missing SVG: ' + name);
- let svg = fs.readFileSync(p, 'utf8');
- svg = svg.replace(/(<svg\b[^>]*\bstyle=")([^"]*?)(")/g, (m, a, body, c) => {
- const cleaned = body
- .replace(/height\s*:\s*[^;"]+;?/ig, '')
- .replace(/overflow\s*:\s*visible;?/ig, 'overflow:hidden;')
- .trim()
- .replace(/;+$/, '');
- return a + cleaned + c;
- });
- const secIdx = svg.indexOf('</section>');
- if (secIdx !== -1) svg = svg.slice(0, secIdx);
- const opens = (svg.match(/<div\b/g) || []).length;
- const closes = (svg.match(/<\/div>/g) || []).length;
- let excess = closes - opens;
- while (excess-- > 0) {
- svg = svg.replace(/\s*<\/div>\s*$/, '');
- }
- return svg;
- });
- fs.writeFileSync(outHtml, html);
-
- const tmpProfile = fs.mkdtempSync(path.join(os.tmpdir(), 'xerj-chrome-'));
- try {
- execFileSync('google-chrome', [
- '--headless=new',
- '--disable-gpu',
- '--no-sandbox',
- '--no-pdf-header-footer',
- '--font-render-hinting=none',
- '--virtual-time-budget=10000',
- '--user-data-dir=' + tmpProfile,
- '--print-to-pdf-no-header',
- '--print-to-pdf=' + outPdf,
- 'file://' + outHtml,
- ], { stdio: 'inherit' });
- console.log('OK:', outPdf, fs.statSync(outPdf).size, 'bytes');
- } finally {
- fs.rmSync(tmpProfile, { recursive: true, force: true });
- }
-})();
diff --git a/brief/build-exec.js b/brief/build-exec.js
deleted file mode 100644
index c1ecd6cb7..000000000
--- a/brief/build-exec.js
+++ /dev/null
@@ -1,61 +0,0 @@
-/* XERJ.AI executive brief — HTML → PDF.
- Substitutes {{SVG:name}} markers with file contents from svg/, then renders. */
-const puppeteer = require('puppeteer');
-const path = require('path');
-const fs = require('fs');
-
-(async () => {
- const tplPath = path.resolve(__dirname, 'exec-brief.html');
- const svgDir = path.resolve(__dirname, 'svg');
- const outHtml = path.resolve(__dirname, '_exec-brief.rendered.html');
- const outPdf = path.resolve(__dirname, 'xerj-exec-brief.pdf');
-
- let html = fs.readFileSync(tplPath, 'utf8');
- html = html.replace(/\{\{SVG:([a-z_-]+)\}\}/g, (_, name) => {
- const p = path.join(svgDir, name + '.html');
- if (!fs.existsSync(p)) throw new Error('missing SVG: ' + name);
- let svg = fs.readFileSync(p, 'utf8');
- // Strip pixel heights from SVG style attrs so CSS rules win.
- svg = svg.replace(/(<svg\b[^>]*\bstyle=")([^"]*?)(")/g, (m, a, body, c) => {
- const cleaned = body
- .replace(/height\s*:\s*[^;"]+;?/ig, '')
- .replace(/overflow\s*:\s*visible;?/ig, 'overflow:hidden;')
- .trim()
- .replace(/;+$/, '');
- return a + cleaned + c;
- });
- // Extracted files include closers from the original product.html.
- // Only strip trailing </div>s when we also saw a </section> — those
- // </div>s were closing scene-section wrappers that don't exist here.
- // Otherwise (e.g. heatmap.html) the </div>s legitimately close the
- // viz's own structure and must be kept.
- const secIdx = svg.indexOf('</section>');
- if (secIdx !== -1) {
- svg = svg.slice(0, secIdx);
- svg = svg.replace(/(\s*<\/div>)+\s*$/m, '');
- }
- return svg;
- });
- fs.writeFileSync(outHtml, html);
-
- const browser = await puppeteer.launch({
- headless: true,
- args: ['--no-sandbox', '--disable-setuid-sandbox', '--font-render-hinting=none'],
- });
- try {
- const page = await browser.newPage();
- await page.emulateMediaType('print');
- await page.goto('file://' + outHtml, { waitUntil: 'networkidle0', timeout: 60000 });
- await page.evaluateHandle('document.fonts.ready');
- await page.pdf({
- path: outPdf,
- format: 'Letter',
- printBackground: true,
- preferCSSPageSize: true,
- margin: { top: 0, right: 0, bottom: 0, left: 0 },
- });
- console.log('OK:', outPdf, fs.statSync(outPdf).size, 'bytes');
- } finally {
- await browser.close();
- }
-})();
diff --git a/brief/build-tech.js b/brief/build-tech.js
deleted file mode 100644
index 6fcbcfa20..000000000
--- a/brief/build-tech.js
+++ /dev/null
@@ -1,58 +0,0 @@
-/* XERJ Engine tech brief — same SVG-injection pipeline as exec. */
-const puppeteer = require('puppeteer');
-const path = require('path');
-const fs = require('fs');
-
-(async () => {
- const tplPath = path.resolve(__dirname, 'tech-brief.html');
- const svgDir = path.resolve(__dirname, 'svg');
- const outHtml = path.resolve(__dirname, '_tech-brief.rendered.html');
- const outPdf = path.resolve(__dirname, 'xerj-tech-brief.pdf');
-
- let html = fs.readFileSync(tplPath, 'utf8');
- html = html.replace(/\{\{SVG:([a-z_-]+)\}\}/g, (_, name) => {
- const p = path.join(svgDir, name + '.html');
- if (!fs.existsSync(p)) throw new Error('missing SVG: ' + name);
- let svg = fs.readFileSync(p, 'utf8');
- svg = svg.replace(/(<svg\b[^>]*\bstyle=")([^"]*?)(")/g, (m, a, body, c) => {
- const cleaned = body
- .replace(/height\s*:\s*[^;"]+;?/ig, '')
- .replace(/overflow\s*:\s*visible;?/ig, 'overflow:hidden;')
- .trim()
- .replace(/;+$/, '');
- return a + cleaned + c;
- });
- const secIdx = svg.indexOf('</section>');
- if (secIdx !== -1) svg = svg.slice(0, secIdx);
- // Balance <div> opens vs closes — strip excess trailing </div>s only.
- const opens = (svg.match(/<div\b/g) || []).length;
- const closes = (svg.match(/<\/div>/g) || []).length;
- let excess = closes - opens;
- while (excess-- > 0) {
- svg = svg.replace(/\s*<\/div>\s*$/, '');
- }
- return svg;
- });
- fs.writeFileSync(outHtml, html);
-
- const browser = await puppeteer.launch({
- headless: true,
- args: ['--no-sandbox', '--disable-setuid-sandbox', '--font-render-hinting=none'],
- });
- try {
- const page = await browser.newPage();
- await page.emulateMediaType('print');
- await page.goto('file://' + outHtml, { waitUntil: 'networkidle0', timeout: 60000 });
- await page.evaluateHandle('document.fonts.ready');
- await page.pdf({
- path: outPdf,
- format: 'Letter',
- printBackground: true,
- preferCSSPageSize: true,
- margin: { top: 0, right: 0, bottom: 0, left: 0 },
- });
- console.log('OK:', outPdf, fs.statSync(outPdf).size, 'bytes');
- } finally {
- await browser.close();
- }
-})();
diff --git a/brief/build.js b/brief/build.js
deleted file mode 100644
index 452f5671b..000000000
--- a/brief/build.js
+++ /dev/null
@@ -1,40 +0,0 @@
-/* XERJ.AI product brief — HTML → PDF via puppeteer.
- Renders brief.html at exact Letter size with print CSS. */
-const puppeteer = require('puppeteer');
-const path = require('path');
-const fs = require('fs');
-
-(async () => {
- const inPath = path.resolve(__dirname, 'brief.html');
- const outPath = path.resolve(__dirname, 'xerj-product-brief.pdf');
-
- if (!fs.existsSync(inPath)) {
- console.error('missing', inPath);
- process.exit(1);
- }
-
- const browser = await puppeteer.launch({
- headless: true,
- args: ['--no-sandbox', '--disable-setuid-sandbox', '--font-render-hinting=none'],
- });
-
- try {
- const page = await browser.newPage();
- await page.emulateMediaType('print');
- await page.goto('file://' + inPath, { waitUntil: 'networkidle0', timeout: 60000 });
- await page.evaluateHandle('document.fonts.ready');
-
- await page.pdf({
- path: outPath,
- format: 'Letter',
- printBackground: true,
- preferCSSPageSize: true,
- margin: { top: 0, right: 0, bottom: 0, left: 0 },
- });
-
- const stat = fs.statSync(outPath);
- console.log('OK:', outPath, stat.size, 'bytes');
- } finally {
- await browser.close();
- }
-})();
diff --git a/brief/compare-brief.html b/brief/compare-brief.html
deleted file mode 100644
index db7adcc29..000000000
--- a/brief/compare-brief.html
+++ /dev/null
@@ -1,1347 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ — Head-to-Head vs Elasticsearch / ELK — V1 — 2026-04</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<style>
- :root {
- --bg: #0b0b0d;
- --ink: #f4f2ec;
- --mute: #8a8680;
- --faint: #2b2a28;
- --line: #3a3836;
- --accent: #ffc400;
-
- --font-display: 'Big Shoulders Display', 'Inter', system-ui, sans-serif;
- --font-prose: 'Inter', system-ui, sans-serif;
- --font-data: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
- --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
-
- --track-ui: 0.14em;
- --track-label: 0.08em;
- }
-
- @page { size: Letter; margin: 0; }
- * { box-sizing: border-box; margin: 0; padding: 0; }
-
- html, body {
- background: var(--bg);
- color: var(--ink);
- font-family: var(--font-prose);
- font-size: 10.5pt;
- line-height: 1.45;
- -webkit-font-smoothing: antialiased;
- text-rendering: optimizeLegibility;
- }
-
- .page {
- width: 8.5in;
- height: 11in;
- padding: 0.55in 0.6in;
- position: relative;
- page-break-after: always;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- }
- .page:last-child { page-break-after: auto; }
-
- .kicker {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- display: flex;
- gap: 0.5em;
- align-items: center;
- flex-wrap: wrap;
- }
- .kicker .dash { color: var(--faint); }
- .kicker .accent { color: var(--accent); }
-
- .accent { color: var(--accent); }
- .mute { color: var(--mute); }
- .mono { font-family: var(--font-mono); }
-
- h1, h2, h3, h4 {
- font-family: var(--font-display);
- font-weight: 900;
- text-transform: uppercase;
- letter-spacing: 0.02em;
- line-height: 0.92;
- }
-
- .hero { font-size: 64pt; line-height: 0.92; }
- .scene { font-size: 36pt; }
- h3 { font-size: 18pt; }
- h4 { font-size: 11pt; letter-spacing: var(--track-ui); color: var(--accent); }
-
- p.lead { font-size: 12pt; line-height: 1.5; max-width: 6.5in; }
- p.body { font-size: 9.5pt; line-height: 1.55; max-width: 6.5in; }
- p.body.wide { max-width: 100%; }
-
- em { font-style: italic; }
- code, .code { font-family: var(--font-mono); font-size: 9pt; color: var(--ink); }
-
- .sp-1 { height: 4px; }
- .sp-2 { height: 8px; } .sp-3 { height: 12px; } .sp-4 { height: 16px; }
- .sp-6 { height: 24px; } .sp-8 { height: 32px; } .sp-10 { height: 48px; }
-
- .flex { display: flex; } .col { flex-direction: column; }
- .grow { flex: 1 1 auto; min-height: 0; }
- .between { justify-content: space-between; }
-
- /* page frame */
- .head-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-bottom: 10px;
- border-bottom: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .head-row .brand { color: var(--ink); }
- .head-row .brand .accent { color: var(--accent); }
-
- .foot-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-top: 10px;
- border-top: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 500;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .foot-row .num { color: var(--ink); }
-
- /* key-value row */
- .kv-row {
- display: grid;
- grid-template-columns: 1.3in 1fr;
- gap: 0.25in;
- padding: 7px 0;
- border-bottom: 1px solid var(--line);
- align-items: baseline;
- }
- .kv-row .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .kv-row .v { font-size: 9.5pt; line-height: 1.5; }
-
- /* 4-up value quadrant */
- .quad-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- grid-template-rows: 1fr 1fr;
- border-top: 1px solid var(--line);
- border-left: 1px solid var(--line);
- }
- .quad-grid > .cell {
- padding: 16px;
- border-right: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 6px;
- min-height: 1.6in;
- }
- .quad-grid .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .quad-grid .t {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 18pt;
- color: var(--ink);
- line-height: 1;
- text-transform: uppercase;
- letter-spacing: 0.01em;
- }
- .quad-grid .t .accent { color: var(--accent); }
- .quad-grid .b {
- font-size: 9.5pt;
- line-height: 1.45;
- color: var(--ink);
- margin-top: auto;
- }
-
- /* feature / capability matrix */
- .matrix {
- display: grid;
- grid-template-columns: 1.6in 1fr 0.7in;
- gap: 0;
- }
- .matrix > div {
- padding: 5px 10px;
- border-bottom: 1px solid var(--line);
- font-size: 9pt;
- line-height: 1.42;
- }
- .matrix .h {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- border-bottom: 1px solid var(--ink);
- }
- .matrix .k {
- font-family: var(--font-mono);
- font-size: 9pt;
- color: var(--accent);
- }
- .matrix .status {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- text-align: right;
- }
- .matrix .status.ga { color: var(--accent); }
- .matrix .status.beta { color: var(--ink); }
- .matrix .status.road { color: var(--mute); }
-
- /* perf table */
- .perf {
- display: grid;
- grid-template-columns: 1.7in repeat(4, 1fr);
- width: 100%;
- }
- .perf > div {
- padding: 7px 10px;
- border-bottom: 1px solid var(--line);
- font-size: 9pt;
- }
- .perf .h {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- border-bottom: 1px solid var(--ink);
- }
- .perf .n { font-family: var(--font-mono); text-align: right; color: var(--ink); }
-
- /* architecture SVG block — preserves square geometry */
- .arch {
- width: 100%;
- margin: 6px 0 0 0;
- color: var(--ink);
- }
- .arch svg {
- display: block;
- width: 100%;
- height: auto;
- color: var(--ink);
- }
- .arch .legend {
- margin-top: 10px;
- font-family: var(--font-data);
- font-size: 8pt;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- display: flex;
- gap: 18px;
- flex-wrap: wrap;
- }
- .arch .legend .ink { color: var(--ink); }
- .arch .legend .yel { color: var(--accent); }
- .arch .legend .swatch {
- display: inline-block;
- width: 14px; height: 1px;
- background: currentColor;
- vertical-align: 3px;
- margin-right: 6px;
- }
- .arch .legend .swatch.dashed {
- height: 0;
- border-top: 1px dashed currentColor;
- background: transparent;
- }
-
- /* cover hero */
- .cover-hero {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 60pt;
- line-height: 0.9;
- letter-spacing: 0.01em;
- }
-
- /* big stat row */
- .bigstat {
- display: grid;
- grid-template-columns: 1fr 1fr 1fr 1fr;
- border-top: 1px solid var(--line);
- }
- .bigstat > .b {
- padding: 14px 12px;
- border-right: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 4px;
- }
- .bigstat > .b:last-child { border-right: 0; }
- .bigstat .k {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .bigstat .v {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 30pt;
- line-height: 1;
- color: var(--accent);
- letter-spacing: 0.01em;
- }
- .bigstat .u {
- font-family: var(--font-data);
- font-size: 8pt;
- color: var(--mute);
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- }
-
- /* VS two-column grid */
- .vs {
- display: grid;
- grid-template-columns: 1fr 1fr;
- border-top: 1px solid var(--line);
- border-left: 1px solid var(--line);
- }
- .vs > .col-h, .vs > .col-c {
- padding: 12px 14px;
- border-right: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- }
- .vs > .col-h {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 700;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- background: transparent;
- }
- .vs > .col-h.es { color: var(--ink); }
- .vs > .col-h.xa { color: var(--accent); }
- .vs > .col-c { font-size: 9pt; line-height: 1.5; }
- .vs > .col-c .lbl {
- font-family: var(--font-data);
- font-size: 8pt;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- display: block;
- margin-bottom: 3px;
- }
- .vs > .col-c.xa .lbl { color: var(--accent); }
-
- /* QUOTE WALL */
- .quote-wall {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 0;
- border-top: 1px solid var(--line);
- border-left: 1px solid var(--line);
- }
- .quote-wall .qc {
- padding: 14px 16px;
- border-right: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 8px;
- min-height: 1.55in;
- }
- .quote-wall .qc .q {
- font-family: var(--font-prose);
- font-size: 10pt;
- line-height: 1.5;
- color: var(--ink);
- font-style: italic;
- }
- .quote-wall .qc .q::before { content: "\201C"; color: var(--accent); margin-right: 2px; }
- .quote-wall .qc .q::after { content: "\201D"; color: var(--accent); margin-left: 2px; }
- .quote-wall .qc .a {
- margin-top: auto;
- font-family: var(--font-data);
- font-size: 7.5pt;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- line-height: 1.55;
- }
- .quote-wall .qc .a .who { color: var(--ink); }
-
- /* full-width feature quote */
- .pull-quote {
- border-top: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- padding: 16px 0;
- }
- .pull-quote .q {
- font-family: var(--font-display);
- font-weight: 800;
- font-size: 22pt;
- line-height: 1.05;
- text-transform: uppercase;
- letter-spacing: 0.005em;
- color: var(--ink);
- }
- .pull-quote .q .accent { color: var(--accent); }
- .pull-quote .a {
- margin-top: 10px;
- font-family: var(--font-data);
- font-size: 8.5pt;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .pull-quote .a .who { color: var(--ink); }
-
- /* sources block */
- .src {
- font-family: var(--font-data);
- font-size: 7.5pt;
- line-height: 1.55;
- color: var(--mute);
- letter-spacing: 0.04em;
- }
- .src .url { font-family: var(--font-mono); color: var(--ink); font-size: 7.5pt; }
-</style>
-</head>
-<body>
-
-<!-- =========================================================== -->
-<!-- P1 · COVER -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>HEAD-TO-HEAD · ES / ELK · V1 · 2026-04</span>
- </div>
-
- <div class="grow flex col between">
- <div class="sp-10"></div>
-
- <div>
- <div class="kicker" style="margin-bottom:20px;">
- <span>FOR ARCHITECTS</span>
- <span class="dash">·</span>
- <span>SRE LEADS</span>
- <span class="dash">·</span>
- <span>AI PROGRAM OWNERS</span>
- </div>
-
- <div class="cover-hero">
- ELASTICSEARCH<br>
- + VECTOR DB<br>
- + ELK + REDIS?<br>
- <span class="accent">ONE BINARY.</span>
- </div>
-
- <div class="sp-8"></div>
-
- <p class="lead" style="max-width:6in;">
- A head-to-head architecture brief for teams running — or about to
- run — the legacy retrieval stack under AI workloads. Vector,
- full-text, histograms, and agent memory through one engine, one
- wire protocol, and one bill. The voices in this brief are real,
- public, and dated.
- </p>
- </div>
-
- <div class="flex between" style="gap:24px;">
- <div class="kicker">
- <span>RELEASE V1.0.0-RC.1</span>
- <span class="dash">·</span>
- <span>ES 8.13 WIRE-COMPATIBLE</span>
- <span class="dash">·</span>
- <span>SELF-HOSTED</span>
- <span class="dash">·</span>
- <span>AGENT-READY</span>
- </div>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">01 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P2 · WHY THIS COMPARISON, NOW -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>02 · WHY THIS COMPARISON, NOW</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>AI WORKLOADS BREAK THE OLD STACK</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">AGENTS DON'T REPLACE<br>THE RETRIEVAL STACK.<br><span class="accent">THEY AMPLIFY ITS CRACKS.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Elasticsearch and the wider ELK stack carried a decade of search,
- logging, and SIEM workloads. They were not designed for the
- retrieval pattern an LLM agent imposes — many small, latency-bound,
- cross-modality calls per turn. Vendor-grade hybrid search, vector
- indexes, and agent memory have been bolted on. The architectural
- consequences land on the team running the cluster.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="quad-grid">
- <div class="cell">
- <span class="k">JVM HEAP</span>
- <span class="t">31 GB CEILING.<br><span class="accent">GC PAUSES.</span></span>
- <span class="b">Above 31 GB heap, compressed object pointers turn off and usable memory halves. Below that, GC pauses and circuit breakers govern tail latency. Vector graphs want everything in RAM.</span>
- </div>
- <div class="cell">
- <span class="k">QUERY SHAPE</span>
- <span class="t">HYBRID RETRIEVAL<br><span class="accent">IS A HAIR-BALL.</span></span>
- <span class="b">kNN + filter + BM25 + agg in one request requires post-filter workarounds, doubled scores, and rank-fusion in app code or a paid ranker. Score normalisation is the architect's problem.</span>
- </div>
- <div class="cell">
- <span class="k">SCALE TAX</span>
- <span class="t">RECOVERY STORMS.<br><span class="accent">FIELD EXPLOSIONS.</span></span>
- <span class="b">Tens of thousands of small shards each consume a fixed slice of heap. A node restart triggers a recovery storm. Dynamic mappings turn ingest mistakes into cluster-state bloat.</span>
- </div>
- <div class="cell">
- <span class="k">VENDOR FAN-OUT</span>
- <span class="t">FOUR STORES.<br><span class="accent">FOUR BILLS.</span></span>
- <span class="b">Most AI-native shops now run ES + a vector DB + Redis + something for logs. Four wire protocols, four quotas, four on-calls. The agent loop is one turn. The tail is four tails added together.</span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <h4>WHAT THIS BRIEF DOES</h4>
- <div class="sp-2"></div>
- <p class="body">
- Walks an architect through the head-to-head: where the legacy
- stack hurts under AI workloads, where Xerj is structurally
- different, and what the published, real-user voices actually say.
- Quotes are dated. Sources are listed.
- </p>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">02 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P3 · STACK CHOICE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>03 · THE STACK CHOICE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>THE STACK CHOICE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FOUR VENDORS.<br><span class="accent">OR ONE BINARY.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Today's AI shop runs the retrieval stack as a federation of point
- products, glued together in Python. Xerj collapses that
- federation into a single Rust binary that already speaks the
- Elasticsearch wire protocol. The agent code does not change. The
- architecture diagram does.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
- {{SVG:cmp_stack}}
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">DATA PATH</span></span>
- <span><span class="swatch yel"></span><span class="yel">XERJ PATH · :9200</span></span>
- <span><span class="swatch dashed"></span><span>BOUNDARY</span></span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>FROM THE CLIENT'S POINT OF VIEW</span>
- <span class="dash">·</span>
- <span>NOTHING CHANGES — THE NUMBER OF VENDORS DOES</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">03 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P4 · JVM TRAP -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>04 · THE JVM TRAP</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>HEAP, GC, AND THE 31 GB WALL</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">A CEILING YOU<br>CAN'T <span class="accent">UPGRADE OUT OF.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The single most persistent source of instability in production
- Elasticsearch clusters is JVM memory management. Vector workloads
- raise the stakes: the HNSW graph wants the full vector set in RAM,
- filtered kNN can fall back to brute force, and a stop-the-world
- pause becomes a user-visible stall in every agent turn that
- touches the node.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
- {{SVG:cmp_jvm}}
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">ELASTICSEARCH HEAP REGIME</span></span>
- <span><span class="swatch yel"></span><span class="yel">XERJ RUNTIME</span></span>
- <span><span class="swatch dashed"></span><span>ZONE BOUNDARY</span></span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>SOURCE</span>
- <span class="dash">·</span>
- <span>ELASTIC TROUBLESHOOTING DOCS · SIRIUS OPEN SOURCE OPS NOTES · 2024–26</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">04 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P5 · HYBRID QUERY REALITY -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>05 · HYBRID QUERY REALITY</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>HYBRID QUERY REALITY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FOUR HOPS.<br><span class="accent">OR ONE PLAN.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Hybrid retrieval — keyword + dense vector + filter + aggregation,
- fused — is the default request shape for an AI agent. In
- Elasticsearch it is several requests stitched together, each with
- its own scoring regime. In Xerj it is one request the planner
- decomposes, runs in parallel, and fuses in-engine.
- </p>
-
- <div class="sp-4"></div>
-
- <div class="pull-quote">
- <div class="q">
- BUILDING HYBRID SEARCH WITH ELASTICSEARCH REQUIRES <span class="accent">WRESTLING WITH ONE OF THE HAIRIEST QUERIES OUT THERE</span> — THE KNN QUERY.
- </div>
- <div class="a">
- <span class="who">DOUG TURNBULL</span> · INDEPENDENT SEARCH CONSULTANT · SOFTWAREDOUG LLC · FEB 2025
- </div>
- </div>
-
- <div class="sp-4"></div>
-
- <div class="arch">
- {{SVG:cmp_query}}
- <div class="legend">
- <span><span class="swatch ink"></span><span class="ink">ES PATH</span></span>
- <span><span class="swatch yel"></span><span class="yel">XERJ PATH</span></span>
- <span><span class="swatch dashed"></span><span>BOUNDARY</span></span>
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">05 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P6 · KNN + FILTER CLIFF -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>06 · KNN + FILTER CLIFF</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>06</span><span class="dash">·</span><span>WHEN THE FILTER MAKES IT SLOWER</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SEMI-RESTRICTIVE<br>FILTERS <span class="accent">BREAK HNSW.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Conventional databases get faster as filters get more restrictive.
- Filtered approximate kNN does the opposite: an HNSW graph
- traversal that has to skip non-matching nodes does <em>more</em>
- vector comparisons, not fewer, and can fall back to a brute-force
- scan. Architectures that depend on selective filters discover this
- the hard way — in production, on real corpora.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="pull-quote">
- <div class="q">
- THE PERFORMANCE SIGNIFICANTLY DEGRADES, AND IN SOME CASES <span class="accent">I ENCOUNTER RESPONSE TIMEOUT ERRORS (&gt; 60 SECONDS).</span>
- </div>
- <div class="a">
- <span class="who">SALEH ABUALI</span> · ELASTIC DISCUSS USER · 200 M-DOC INDEX · 6 NODES · 34 GB HEAP / 66 GB RAM EACH · APR 2025
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>WHY THIS HAPPENS — AND WHAT XERJ DOES INSTEAD</h4>
- <div class="sp-2"></div>
-
- <div class="vs">
- <div class="col-h es">ELASTICSEARCH</div>
- <div class="col-h xa">XERJ</div>
-
- <div class="col-c">
- <span class="lbl">FILTER PLACEMENT</span>
- Post-filter on a candidate set; selective filters force re-traversal or brute force fallback. Recent ACORN work helps but does not erase the cliff for older 8.x deployments.
- </div>
- <div class="col-c xa">
- <span class="lbl">FILTER PLACEMENT</span>
- Filter is a planner input, not a post-condition. Range, term, and exists predicates compose with HNSW traversal in one pass.
- </div>
-
- <div class="col-c">
- <span class="lbl">RECALL DIAL</span>
- ef-search and num_candidates are settable, but tuning per-query requires re-thinking the request from the app side.
- </div>
- <div class="col-c xa">
- <span class="lbl">RECALL DIAL</span>
- Single runtime parameter trades recall for latency without rebuilding the index. Same artifact serves chat UI and offline batch.
- </div>
-
- <div class="col-c">
- <span class="lbl">MEMORY APPETITE</span>
- Graph wants RAM. Off-heap mmap helps; if it spills to disk, latency degrades. JVM heap and OS cache trade against each other.
- </div>
- <div class="col-c xa">
- <span class="lbl">MEMORY APPETITE</span>
- SQ8 quantization (4× compression) is the working representation. Optional float32 re-rank pass restores precision on the final top-K.
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">06 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P7 · COST -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>07 · FOOTPRINT &amp; COST</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>07</span><span class="dash">·</span><span>FOOTPRINT &amp; COST</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">A FREE LICENCE<br>IS NOT <span class="accent">A FREE STACK.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The dominant cost in an ELK deployment is not the licence — it is
- the hardware, the sustained heap, the duplicated retention layers,
- and the engineering cost of running a JVM platform at scale.
- Independent analyst figures put a small ELK environment past two
- million dollars over three years; a large one north of sixty.
- Xerj is one static binary on commodity NVMe.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="bigstat">
- <div class="b">
- <span class="k">ES BINARY IMAGE</span>
- <span class="v">~600 MB</span>
- <span class="u">JRE + plugins + tooling</span>
- </div>
- <div class="b">
- <span class="k">XERJ BINARY</span>
- <span class="v">19.6 MB</span>
- <span class="u">single static · no JVM</span>
- </div>
- <div class="b">
- <span class="k">RSS · 1 K VECTORS</span>
- <span class="v">3.9×</span>
- <span class="u">ES 2 857 MB · XERJ 727 MB</span>
- </div>
- <div class="b">
- <span class="k">COLD START</span>
- <span class="v">863×</span>
- <span class="u">ES 6.05 s · XERJ 4 ms</span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>3-YEAR ELK STACK TCO — INDEPENDENT ANALYST RANGE</h4>
- <div class="sp-2"></div>
-
- <div class="perf">
- <div class="h">ENVIRONMENT</div>
- <div class="h n">YEAR 1</div>
- <div class="h n">YEAR 2</div>
- <div class="h n">YEAR 3</div>
- <div class="h n">3-YEAR TCO</div>
-
- <div>Small ELK</div>
- <div class="n">$427 K</div>
- <div class="n">$723 K</div>
- <div class="n">$1.22 M</div>
- <div class="n accent">$2.37 M</div>
-
- <div>Large ELK · 20 TB / day</div>
- <div class="n">$15.85 M</div>
- <div class="n">$21.13 M</div>
- <div class="n">$28.54 M</div>
- <div class="n accent">$65.62 M</div>
- </div>
-
- <div class="sp-3"></div>
- <p class="src">
- Source: ChaosSearch, "ELK Stack Costs Add Up: Here's How to Switch" — independent
- TCO model summarising hardware, retention, and operational labour.
- Elastic announced a pricing change effective <span class="url">2025-01-27</span>
- with an estimated <span class="url">~30 %</span> increase for a typical production workload
- (Quesma analysis, 2025).
- </p>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>WHAT THE STATIC BINARY BUYS</span>
- <span class="dash">·</span>
- <span>NO JRE · NO PLUGIN MATRIX · NO LANGUAGE RUNTIME PAGER ROTATION</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">07 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P8 · VOICES FROM PRODUCTION -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>08 · VOICES FROM PRODUCTION</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>08</span><span class="dash">·</span><span>VOICES FROM PRODUCTION · 2023–26</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">PUBLIC. DATED.<br><span class="accent">UNEDITED.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- A sample of public, attributed observations from architects,
- consultants, and forum operators running Elasticsearch at scale
- against AI workloads. Each is reproduced verbatim. Sources are
- listed on the closing page.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="quote-wall">
- <div class="qc">
- <div class="q">It's a big ugly query with lots of repetition.</div>
- <div class="a">
- <span class="who">DOUG TURNBULL</span> · INDEPENDENT SEARCH CONSULTANT<br>
- ON IMPLEMENTING HYBRID SEARCH IN ES · FEB 2025
- </div>
- </div>
- <div class="qc">
- <div class="q">It eats up alllll the resources (maxed out CPU and ate up loads of RAM).</div>
- <div class="a">
- <span class="who">NDTREVIV</span> · ELASTIC DISCUSS USER<br>
- ES vs MILVUS AS A VECTOR DB · 2023
- </div>
- </div>
-
- <div class="qc">
- <div class="q">A complex query might pass the pre-flight check but expand exponentially during execution, causing heap exhaust.</div>
- <div class="a">
- <span class="who">SIRIUS OPEN SOURCE</span><br>
- PROBLEMS &amp; OPERATIONAL WEAKNESSES OF ELASTICSEARCH
- </div>
- </div>
- <div class="qc">
- <div class="q">If the JVM executes a major collection, the node is effectively frozen during a stop-the-world pause.</div>
- <div class="a">
- <span class="who">SIRIUS OPEN SOURCE</span><br>
- ON GC BEHAVIOUR IN PRODUCTION CLUSTERS
- </div>
- </div>
-
- <div class="qc">
- <div class="q">Accumulating tens of thousands of small shards is problematic because each shard consumes a non-trivial fixed cost of JVM heap.</div>
- <div class="a">
- <span class="who">SIRIUS OPEN SOURCE</span><br>
- ON SHARD ECONOMICS
- </div>
- </div>
- <div class="qc">
- <div class="q">Elasticsearch is great for traditional keyword search, but it struggles with semantic understanding […] and latency at scale.</div>
- <div class="a">
- <span class="who">NIC SCHELTEMA</span> · SHAPED.AI<br>
- THE 7 BEST ELASTICSEARCH ALTERNATIVES IN 2025
- </div>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>EVERY QUOTE</span>
- <span class="dash">·</span>
- <span>PUBLIC URL · ATTRIBUTABLE AUTHOR · ORIGINAL CONTEXT — SEE PAGE 12</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">08 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P9 · INDEPENDENT BENCHMARKS -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>09 · INDEPENDENT BENCHMARKS</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>09</span><span class="dash">·</span><span>NUMBERS YOU CAN REPRODUCE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">THIRD-PARTY.<br><span class="accent">SAME HARDWARE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Two reference points. Trail of Bits, an independent security and
- systems firm, published a March 2025 benchmark comparing
- Elasticsearch 8.15.4 to OpenSearch 2.17.1 on the canonical Big5
- query set. Xerj's v1.0.0-rc.1 verification run measured the same
- Elasticsearch build on the same NVMe host, using identical wire
- payloads — not extrapolated.
- </p>
-
- <div class="sp-6"></div>
-
- <h4>TRAIL OF BITS — ES 8.15.4 vs OS 2.17.1 — MARCH 2025</h4>
- <div class="sp-2"></div>
-
- <div class="perf">
- <div class="h">DIMENSION</div>
- <div class="h n">ELASTICSEARCH</div>
- <div class="h n">OPENSEARCH</div>
- <div class="h n">DELTA</div>
- <div class="h n">SOURCE</div>
-
- <div>Big5 · geomean</div>
- <div class="n">baseline</div>
- <div class="n">1.6× faster</div>
- <div class="n accent">+60 %</div>
- <div class="n">trail of bits</div>
-
- <div>Date histogram</div>
- <div class="n">baseline</div>
- <div class="n">16.55× faster</div>
- <div class="n accent">16.55×</div>
- <div class="n">trail of bits</div>
-
- <div>Term aggregation</div>
- <div class="n">baseline</div>
- <div class="n">3.38× faster</div>
- <div class="n accent">3.38×</div>
- <div class="n">trail of bits</div>
-
- <div>Vector search · default engine</div>
- <div class="n">baseline</div>
- <div class="n">11 % faster</div>
- <div class="n accent">+11 %</div>
- <div class="n">trail of bits</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>XERJ V1.0.0-RC.1 vs ELASTICSEARCH 8.13 — VERIFY RUN</h4>
- <div class="sp-2"></div>
-
- <div class="perf">
- <div class="h">DIMENSION</div>
- <div class="h n">ES 8.13</div>
- <div class="h n">XERJ</div>
- <div class="h n">DELTA</div>
- <div class="h n">SOURCE</div>
-
- <div>Cold start</div>
- <div class="n">6.05 s</div>
- <div class="n">4 ms</div>
- <div class="n accent">863×</div>
- <div class="n">verify run</div>
-
- <div>RSS · 1 K-vector index</div>
- <div class="n">2 857 MB</div>
- <div class="n">727 MB</div>
- <div class="n accent">3.9×</div>
- <div class="n">verify run</div>
-
- <div>Index creation</div>
- <div class="n">93.9 ms</div>
- <div class="n">2.4 ms</div>
- <div class="n accent">39×</div>
- <div class="n">verify run</div>
-
- <div>Top-K sort · p50</div>
- <div class="n">4.28 ms</div>
- <div class="n">0.34 ms</div>
- <div class="n accent">12.6×</div>
- <div class="n">verify run</div>
-
- <div>Bulk · 1 K vectors</div>
- <div class="n">10 219 d/s</div>
- <div class="n">22 974 d/s</div>
- <div class="n accent">2.25×</div>
- <div class="n">verify run</div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>EVERY ROW</span>
- <span class="dash">·</span>
- <span>REPRODUCIBLE WITH PUBLISHED SCRIPTS · SAME HOST · SAME WIRE</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">09 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P10 · CAPABILITY MATRIX -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>10 · CAPABILITY MATRIX</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>10</span><span class="dash">·</span><span>VECTOR + FTS + HISTOGRAM + MEMORY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SAME WORKLOAD.<br><span class="accent">SAME ENGINE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The four modalities an AI agent uses in a single turn — full-text
- ranking, dense-vector recall, time-series histograms, and agent
- memory — all live in Xerj behind one wire protocol, one segment
- cache, one permission model, one explain-plan. Elasticsearch
- covers the first three with mature implementations and a
- platform-grown ecosystem; agent memory remains an
- assemble-it-yourself problem.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="arch">
- {{SVG:cmp_capability}}
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>FULL</span><span class="dash">·</span><span>NATIVE, GA</span>
- <span class="dash">·</span>
- <span>PARTIAL</span><span class="dash">·</span><span>NATIVE BUT WITH ARCHITECTURAL CAVEAT</span>
- <span class="dash">·</span>
- <span>NOT NATIVE</span><span class="dash">·</span><span>REQUIRES EXTRA SYSTEM</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">10 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P11 · MIGRATION -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>11 · MIGRATION PATH</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>11</span><span class="dash">·</span><span>FROM CLUSTER TO BINARY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">A CONFIG CHANGE.<br><span class="accent">NOT A REWRITE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Xerj speaks the Elasticsearch 8.13 wire protocol on port 9200 —
- bulk, scroll, kNN, hybrid, aggregations, the 38 query types your
- ingest collectors and dashboards already speak. The migration is
- structurally a swap of endpoint, not a rewrite of code.
- </p>
-
- <div class="sp-6"></div>
-
- <h4>A FOUR-WEEK PATH FOR THE TYPICAL AI WORKLOAD</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">WEEK 0 · SCOPING</div>
- <div class="v">Pick one workload — RAG, SIEM, observability, or agent memory. Confirm the wire surface in use (Bulk, kNN, RRF, aggs). Sign mutual NDA if required (not a precondition for the binary).</div>
- </div>
- <div class="kv-row">
- <div class="k">WEEK 1 · DEPLOY</div>
- <div class="v">Single binary or Helm chart in your environment. Reproduce the published numbers on sample data. Smoke-test the existing client SDKs (official Elasticsearch, LangChain, LlamaIndex). No code change required.</div>
- </div>
- <div class="kv-row">
- <div class="k">WEEK 2 · SHADOW</div>
- <div class="v">Mirror real traffic. Compare latency, footprint, and cost on identical hardware. Measure where the JVM tail used to live. Surface any compatibility gap as a triaged item, not a blocker.</div>
- </div>
- <div class="kv-row">
- <div class="k">WEEK 3 · DECISION</div>
- <div class="v">Decision meeting on your numbers. We hand over reproduction scripts, the Prometheus dashboards, and the audit-chain export so the result is independently verifiable inside your perimeter.</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>WHAT MIGRATION DOES NOT ASK</h4>
- <div class="sp-2"></div>
-
- <div class="vs">
- <div class="col-h es">NOT REQUIRED</div>
- <div class="col-h xa">PROVIDED</div>
-
- <div class="col-c">
- <span class="lbl">CLIENT REWRITE</span>
- Existing official Elasticsearch SDKs continue to work. LangChain and LlamaIndex retrievers connect unchanged. Kibana boards continue to query.
- </div>
- <div class="col-c xa">
- <span class="lbl">DROP-IN ENDPOINT</span>
- :9200 with bulk, scroll, kNN, search, aggs. 38 query types. 1 305 / 1 329 conformance cases against the published ES 8.13 REST suite.
- </div>
-
- <div class="col-c">
- <span class="lbl">SHARD-COUNT TUNING</span>
- No JVM heap tuning, no shard-count maths, no recovery-storm runbooks.
- </div>
- <div class="col-c xa">
- <span class="lbl">ONE CONFIG FILE</span>
- One static binary. One metrics endpoint. One audit trail. One backup story. Liveness + readiness on both data ports.
- </div>
-
- <div class="col-c">
- <span class="lbl">NEW RUNBOOK</span>
- Day-2 ops continue with the same primitives — Prometheus, Kubernetes probes, structured logs.
- </div>
- <div class="col-c xa">
- <span class="lbl">SAME OPS SURFACE</span>
- Helm StatefulSet · PVC · headless service · multi-arch image · HEALTHCHECK wired to readiness · RBAC and audit included in the binary.
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">11 / 12</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P12 · CTA + SOURCES -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>12 · GET STARTED · SOURCES</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>12</span><span class="dash">·</span><span>GET STARTED · SOURCES</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">PROVE IT<br><span class="accent">ON YOUR DATA.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- We send the binary, the Helm chart, and the reproduction scripts
- for every number in this brief. You send one workload. We meet
- again in two weeks with your numbers, on your hardware, behind
- your perimeter.
- </p>
-
- <div class="sp-4"></div>
-
- <div style="padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);">
- <div class="kicker"><span>CONTACT</span></div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-display); font-weight: 900; font-size: 36pt; line-height:1; letter-spacing: 0.01em;">
- HELLO<span class="accent">@</span>XERJ.AI
- </div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-data); font-size: 9pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--mute);">
- XERJ.AI · XERJ.COM · XERJ.DEV
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>SOURCES — VERBATIM QUOTES &amp; FIGURES IN THIS BRIEF</h4>
- <div class="sp-2"></div>
-
- <p class="src">
- <strong style="color:var(--ink);">Doug Turnbull</strong>, "Elasticsearch hybrid search in practice" — <span class="url">softwaredoug.com/blog/2025/02/08/elasticsearch-hybrid-search</span> — Feb 2025. Independent search consultant, SoftwareDoug LLC.
- </p>
- <p class="src">
- <strong style="color:var(--ink);">Saleh AbuAli</strong>, "Performance Issue with KNN + Filter on Large Index (v8.12)" — <span class="url">discuss.elastic.co/t/377279</span> — Apr 2025. Production operator, 200 M-doc index.
- </p>
- <p class="src">
- <strong style="color:var(--ink);">Sirius Open Source</strong>, "Problems and Operational Weaknesses of Elasticsearch" — <span class="url">siriusopensource.com/en-us/blog/problems-and-operational-weaknesses-elasticsearch</span>. JVM, sharding, recovery, and field-explosion observations.
- </p>
- <p class="src">
- <strong style="color:var(--ink);">Nic Scheltema</strong>, "The 7 Best Elasticsearch Alternatives in 2025" — <span class="url">shaped.ai/blog/the-7-best-elasticsearch-alternatives-in-2025</span> — 2025.
- </p>
- <p class="src">
- <strong style="color:var(--ink);">ndtreviv</strong>, "Pros and Cons of using Elastic as a vector database" — <span class="url">discuss.elastic.co/t/338733</span> — 2023. Forum operator comparing Elasticsearch to Milvus.
- </p>
- <p class="src">
- <strong style="color:var(--ink);">Evan Downing, Trail of Bits</strong>, "Benchmarking OpenSearch and Elasticsearch" — <span class="url">blog.trailofbits.com/2025/03/06/benchmarking-opensearch-and-elasticsearch</span> — Mar 2025.
- </p>
- <p class="src">
- <strong style="color:var(--ink);">ChaosSearch</strong>, "ELK Stack Costs Add Up: Here's How to Switch" — <span class="url">chaossearch.io/blog/switching-from-the-elk-stack-elasticsearch-costs</span>. 3-year ELK TCO model. Pricing change reference: Quesma analysis, 2025.
- </p>
- <p class="src">
- <strong style="color:var(--ink);">Elastic — official troubleshooting docs</strong>, "Managing and troubleshooting Elasticsearch memory" / "High JVM memory pressure" — <span class="url">elastic.co/blog/managing-and-troubleshooting-elasticsearch-memory</span>. Heap, circuit breaker, and 31 GB compressed-OOPs ceiling.
- </p>
- <p class="src">
- <strong style="color:var(--ink);">Xerj — verify run</strong>, v1.0.0-rc.1. Single 32-core NVMe host, identical wire payloads, identical client. Reproduction scripts included with the pilot drop.
- </p>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>XERJ.AI</span>
- <span class="dash">·</span>
- <span>HEAD-TO-HEAD BRIEF · V1</span>
- <span class="dash">·</span>
- <span>ENGINE V1.0.0-RC.1 · 2026-04</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · HEAD-TO-HEAD vs ELASTICSEARCH / ELK</span>
- <span class="num">12 / 12</span>
- </div>
-</section>
-
-</body>
-</html>
diff --git a/brief/exec-brief.html b/brief/exec-brief.html
deleted file mode 100644
index f8a4085eb..000000000
--- a/brief/exec-brief.html
+++ /dev/null
@@ -1,1404 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ.AI — Executive Brief — V1 — 2026-04</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<style>
- /* ================================================================
- XERJ.AI — EXECUTIVE BRIEF
- Audience: C-suite leading AI transformation.
- Typography-first. 1 px lines. Night palette. No frames.
- Conforms to brand.html laws 00–04.
- ================================================================ */
-
- :root {
- --bg: #0b0b0d;
- --ink: #f4f2ec;
- --mute: #8a8680;
- --faint: #2b2a28;
- --line: #3a3836;
- --accent: #ffc400;
-
- --z-bg: var(--bg); --z-ink: var(--ink); --z-mute: var(--mute);
- --z-line: var(--line); --z-accent: var(--accent); --z-faint: var(--faint);
-
- --font-display: 'Big Shoulders Display', 'Inter', system-ui, sans-serif;
- --font-prose: 'Inter', system-ui, sans-serif;
- --font-data: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
- --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
-
- --fs-11: 11px; --fs-13: 13px; --fs-16: 16px;
-
- --track-ui: 0.14em;
- --track-label: 0.08em;
- }
-
- @page { size: Letter; margin: 0; }
- * { box-sizing: border-box; margin: 0; padding: 0; }
-
- html, body {
- background: var(--bg);
- color: var(--ink);
- font-family: var(--font-prose);
- font-size: 11pt;
- line-height: 1.45;
- -webkit-font-smoothing: antialiased;
- text-rendering: optimizeLegibility;
- }
-
- .page {
- width: 8.5in;
- height: 11in;
- padding: 0.55in 0.6in;
- position: relative;
- page-break-after: always;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- }
- .page:last-child { page-break-after: auto; }
-
- /* -------- atoms -------- */
-
- .kicker {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- display: flex;
- gap: 0.5em;
- align-items: center;
- flex-wrap: wrap;
- }
- .kicker .dash { color: var(--faint); }
- .kicker .accent { color: var(--accent); }
-
- .accent { color: var(--accent); }
- .mute { color: var(--mute); }
- .mono { font-family: var(--font-mono); }
-
- h1, h2, h3, h4 {
- font-family: var(--font-display);
- font-weight: 900;
- text-transform: uppercase;
- letter-spacing: 0.02em;
- line-height: 0.92;
- }
-
- .hero { font-size: 78pt; line-height: 0.9; }
- .scene { font-size: 44pt; }
- h3 { font-size: 22pt; }
- h4 { font-size: 12pt; letter-spacing: var(--track-ui); }
-
- p.lead { font-size: 13pt; line-height: 1.5; max-width: 6.5in; }
- p.body { font-size: 10.5pt; line-height: 1.55; max-width: 6.5in; }
- p.body.wide { max-width: 100%; }
-
- em { font-style: italic; color: var(--ink); }
-
- /* spacers */
- .sp-2 { height: 8px; }
- .sp-3 { height: 12px; }
- .sp-4 { height: 16px; }
- .sp-6 { height: 24px; }
- .sp-8 { height: 32px; }
- .sp-10 { height: 48px; }
- .sp-12 { height: 64px; }
-
- .flex { display: flex; }
- .col { flex-direction: column; }
- .grow { flex: 1 1 auto; min-height: 0; }
- .between { justify-content: space-between; }
- .end { align-items: flex-end; }
- .center { justify-content: center; align-items: center; }
-
- /* -------- page header/footer -------- */
-
- .head-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-bottom: 12px;
- border-bottom: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .head-row .brand { color: var(--ink); }
- .head-row .brand .accent { color: var(--accent); }
-
- .foot-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-top: 12px;
- border-top: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 500;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .foot-row .num { color: var(--ink); }
-
- /* -------- key-value row -------- */
-
- .kv-row {
- display: grid;
- grid-template-columns: 1.5in 1fr;
- gap: 0.3in;
- padding: 10px 0;
- border-bottom: 1px solid var(--line);
- align-items: baseline;
- }
- .kv-row .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .kv-row .v {
- font-size: 10.5pt;
- line-height: 1.5;
- }
-
- /* -------- board outcome grid (2x2) -------- */
-
- .outcome-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- grid-template-rows: 1fr 1fr;
- border-top: 1px solid var(--line);
- border-left: 1px solid var(--line);
- }
- .outcome-grid > .cell {
- padding: 22px 22px 22px 22px;
- border-right: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 10px;
- min-height: 2.3in;
- }
- .outcome-grid .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .outcome-grid .v {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 40pt;
- line-height: 0.95;
- color: var(--accent);
- letter-spacing: 0.01em;
- margin-top: 2px;
- }
- .outcome-grid .t {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 16pt;
- line-height: 1;
- color: var(--ink);
- margin-top: 4px;
- text-transform: uppercase;
- letter-spacing: 0.01em;
- }
- .outcome-grid .b {
- font-size: 9.5pt;
- line-height: 1.45;
- color: var(--ink);
- margin-top: auto;
- }
-
- /* -------- comparison bars -------- */
-
- .cmp-head {
- display: grid;
- grid-template-columns: 2.0in 1fr 1fr;
- gap: 12px;
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- padding: 6px 0;
- border-bottom: 1px solid var(--line);
- }
- .cmp-head .a { color: var(--accent); }
- .cmp-row {
- display: grid;
- grid-template-columns: 2.0in 1fr 1fr;
- gap: 12px;
- padding: 8px 0;
- border-bottom: 1px solid var(--line);
- align-items: center;
- }
- .cmp-row .label { font-size: 9.5pt; }
- .cmp-val {
- display: flex;
- align-items: center;
- gap: 10px;
- }
- .cmp-bar {
- flex: 0 0 auto;
- height: 1px;
- background: var(--ink);
- min-width: 2px;
- }
- .cmp-val.b .cmp-bar { background: var(--mute); }
- .cmp-val.a .cmp-num { color: var(--accent); }
- .cmp-num {
- font-family: var(--font-mono);
- font-size: 9pt;
- white-space: nowrap;
- }
- .cmp-ratio {
- font-family: var(--font-data);
- font-size: 8pt;
- color: var(--mute);
- margin-left: 8px;
- letter-spacing: var(--track-label);
- }
-
- /* -------- chart wrapper (for embedded UX visuals) -------- */
-
- .viz {
- width: 100%;
- margin-top: 10px;
- max-height: 3.2in;
- overflow: hidden;
- padding-right: 60px;
- }
- .viz svg.chart {
- display: block;
- width: 100%;
- height: 3in;
- max-height: 3in;
- color: var(--accent);
- overflow: visible;
- }
- .viz .kicker { margin-bottom: 6px; }
- /* Normalize nested viz-block wrappers from extracted product.html */
- .viz .viz-block { margin-top: 0 !important; width: 100%; }
- .viz .viz-block .kicker { margin-bottom: 6px; }
- .series-legend {
- margin-top: 10px;
- display: flex;
- justify-content: space-between;
- font-family: var(--font-data);
- font-size: 8.5pt;
- color: var(--mute);
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- }
- .series-legend .mono { font-family: var(--font-mono); color: var(--ink); letter-spacing: 0; text-transform: none; }
- .viz-caption {
- margin-top: 10px;
- font-family: var(--font-prose);
- font-size: 10pt;
- color: var(--mute);
- max-width: 6in;
- }
-
-
- /* -------- cost heatmap styles (copied from landing style.css) -------- */
- .heatmap {
- font-family: var(--font-mono);
- font-size: 10pt;
- color: var(--accent);
- letter-spacing: 0;
- margin-top: 6px;
- }
- .heatmap-row {
- display: flex;
- align-items: baseline;
- padding: 3px 0;
- border-bottom: 1px solid var(--line);
- }
- .heatmap-row .row-label {
- width: 4ch;
- font-family: var(--font-data);
- font-size: 9pt;
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- color: var(--mute);
- margin-right: 8px;
- }
- .heatmap-head { border-bottom: 1px solid var(--ink); }
-
- /* -------- roadmap -------- */
-
- .phase-grid {
- display: grid;
- grid-template-columns: 0.9in 1.5in 1fr;
- column-gap: 0.3in;
- }
- .phase-grid > div {
- padding: 12px 0;
- border-top: 1px solid var(--line);
- font-size: 10pt;
- line-height: 1.5;
- }
- .phase-grid .p {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 26pt;
- color: var(--accent);
- line-height: 1;
- }
- .phase-grid .t {
- font-family: var(--font-data);
- font-size: 9.5pt;
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- color: var(--ink);
- }
-
- /* -------- tco table -------- */
-
- .tco {
- display: grid;
- grid-template-columns: 2.2in 1.4in 1.4in 0.9in;
- width: 100%;
- }
- .tco > div {
- padding: 9px 10px;
- border-bottom: 1px solid var(--line);
- font-size: 9.5pt;
- }
- .tco .h {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- border-bottom: 1px solid var(--ink);
- }
- .tco .num { font-family: var(--font-mono); text-align: right; }
- .tco .delta { font-family: var(--font-mono); text-align: right; color: var(--accent); font-weight: 700; }
-
- /* -------- cover -------- */
-
- .cover-hero {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 72pt;
- line-height: 0.9;
- letter-spacing: 0.01em;
- }
-
- /* -------- contact block -------- */
-
- .contact-line {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 44pt;
- line-height: 1;
- letter-spacing: 0.01em;
- }
-</style>
-</head>
-<body>
-
-<!-- =========================================================== -->
-<!-- P1 · COVER -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>EXECUTIVE BRIEF · V1 · 2026-04</span>
- </div>
-
- <div class="grow flex col between">
- <div class="sp-10"></div>
-
- <div>
- <div class="kicker" style="margin-bottom:24px;">
- <span>FOR LEADERS OF ENTERPRISE AI TRANSFORMATION</span>
- </div>
-
- <div class="cover-hero">
- THE DATA<br>
- LAYER YOUR<br>
- <span class="accent">AGENTS</span><br>
- WILL RUN ON.
- </div>
-
- <div class="sp-10"></div>
-
- <p class="lead" style="max-width:5.8in;">
- Every enterprise AI initiative eventually arrives at the data
- layer. XERJ is a single data plane — logs, knowledge, agent
- memory, observability — under one API, one contract, one bill.
- <span class="accent">~80%</span> infrastructure TCO reduction
- on log and search workloads, measured.
- </p>
- </div>
-
- <div class="flex between end" style="gap:24px;">
- <div class="kicker">
- <span>BUILT FOR</span>
- <span class="dash">·</span>
- <span>CIO</span>
- <span class="dash">·</span>
- <span>CDO</span>
- <span class="dash">·</span>
- <span>CAIO</span>
- <span class="dash">·</span>
- <span>CTO</span>
- <span class="dash">·</span>
- <span>CISO</span>
- <span class="dash">·</span>
- <span>CFO</span>
- </div>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">01 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P2 · BOARD-LEVEL OUTCOMES -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>02 · BOARD OUTCOMES</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-8"></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>BOARD OUTCOMES</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FOUR NUMBERS.<br><span class="accent">ONE SLIDE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The outcomes the finance, audit, and risk committee will ask
- about — measured on public battle reports with reproduction
- scripts. Not projections. Not case studies. Numbers from code
- that shipped.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="outcome-grid">
- <div class="cell">
- <span class="k">INFRASTRUCTURE TCO</span>
- <span class="v">~80%</span>
- <span class="t">REDUCTION</span>
- <span class="b">
- One platform replaces Elasticsearch, a vector DB, a memory
- store, and the stitching framework. Single vendor, single
- contract, single SLA. Five monthly bill-lines collapse to
- one.
- </span>
- </div>
- <div class="cell">
- <span class="k">TIME-TO-INSIGHT · ANALYSTS</span>
- <span class="v">74×</span>
- <span class="t">FASTER</span>
- <span class="b">
- SIEM analyst investigations that required coffee-break
- latency return in milliseconds. Board-reportable MTTD and
- MTTR reduction without adding headcount.
- </span>
- </div>
- <div class="cell">
- <span class="k">RAG MEMORY · AT SCALE</span>
- <span class="v">4×</span>
- <span class="t">EFFICIENCY</span>
- <span class="b">
- Enterprise-scale retrieval (10 M + embeddings) fits in a
- quarter of the memory. More agents per node. Same accuracy.
- Lower cloud bill.
- </span>
- </div>
- <div class="cell">
- <span class="k">CONSOLIDATION</span>
- <span class="v">6 → 1</span>
- <span class="t">SYSTEMS</span>
- <span class="b">
- Splunk · Prometheus · Tempo · Loki · a vector DB · a memory
- store — replaced by one platform. One on-call rotation. One
- audit surface. One cost dashboard the CFO reads without
- translation.
- </span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>SOURCE</span>
- <span class="dash">·</span>
- <span class="mono">engine/SIEM_BATTLE_2026-04-14 · engine/CLUSTER_BATTLE_2026-04-14</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">02 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P3 · THE AI TRANSFORMATION PROBLEM -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>03 · THE PROBLEM</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-8"></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>THE PROBLEM</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ENTERPRISE AI<br>STALLS AT THE<br><span class="accent">DATA LAYER.</span></h2>
-
- <div class="sp-6"></div>
-
- <p class="body">
- Every enterprise AI roadmap promises agents that read
- documents, monitor systems, answer customers, investigate
- alerts, and close tickets. Most pilots work. Most production
- rollouts don't. The failure is rarely the model. It is almost
- always the data layer beneath it — fragmented, slow, expensive,
- and owned by three separate teams.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="kv-row">
- <div class="k">FRAGMENTATION</div>
- <div class="v">
- Logs in Splunk or Elasticsearch. Embeddings in Pinecone or a
- self-hosted vector DB. Agent memory in Redis. Observability
- in Grafana–Loki–Tempo. Each system has its own query language,
- its own permission model, its own failure mode.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">LATENCY COMPOUNDS</div>
- <div class="v">
- A single agent turn can touch three data stores through two
- Python orchestrators doing reciprocal rank fusion. The agent
- sees the <em>sum</em> of every system's p99. Users see a
- product that feels slow even when individual queries look
- fast in a dashboard.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">COSTS MULTIPLY</div>
- <div class="v">
- A 4-node Elasticsearch cluster for logs. Per-vector pricing
- for the embedding store. Memory for the session cache. Seat
- licenses for the observability stack. Four bills, four
- contract renewals, four audits.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">RISK SURFACE</div>
- <div class="v">
- Three data layers means three places data can leak, three
- backup stories, three postmortem categories. When the CISO
- asks "where is customer X's data and who queried it last?"
- the honest answer is usually a week of engineering work.
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>THE DATA LAYER IS THE TRANSFORMATION</span>
- <span class="dash">·</span>
- <span>NOT THE MODEL</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">03 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P4 · THE POSITION -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>04 · THE POSITION</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-8"></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>THE POSITION</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ONE DATA PLANE.<br><span class="accent">EVERY AGENT.</span></h2>
-
- <div class="sp-6"></div>
-
- <p class="body">
- XERJ is a single data plane that holds every kind of data an
- AI agent needs: full-text search, dense-vector retrieval,
- structured logs, metrics, traces, and agent memory. One API
- stands in front of all of them. One contract sits behind all
- of them. One platform for the whole AI transformation.
- </p>
-
- <div class="sp-8"></div>
-
- <div class="kv-row">
- <div class="k">DROP-IN</div>
- <div class="v">
- XERJ speaks the Elasticsearch 8.13 wire protocol. Your
- existing clients, dashboards, and ingest pipelines work
- unchanged. Migration is a configuration change, not a
- rewrite.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">HYBRID NATIVE</div>
- <div class="v">
- Keyword and vector search share one query, one cost model,
- one pass. No Python orchestrator. No reciprocal rank fusion.
- The ranking is native, the latency is one hop.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">COST-VISIBLE</div>
- <div class="v">
- Every query returns an explain-plan with per-node cost and
- row counts. Finance audits AI spend at the query level. The
- CFO sees AI as a line-item, not a rounding error.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">SOVEREIGN</div>
- <div class="v">
- Self-hosted on your cloud or your metal. No data leaves your
- perimeter. No proprietary cloud dependency. Procurement and
- legal review takes a week, not a quarter.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">DETERMINISTIC</div>
- <div class="v">
- No JVM garbage collector, no warm-up tax, no surprise
- pauses. Cold start measured in milliseconds, not seconds.
- Latency budgets mean something in board-level SLOs.
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">04 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P5 · UX SHOWCASE 01 · SERVICE GRAPH / CONNECTIVITY -->
-<!-- =========================================================== -->
-<section class="page viz-page-lg">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>05 · DATA LINEAGE &amp; CONNECTIVITY</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>DATA LINEAGE &amp; CONNECTIVITY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SEE EVERY HOP.<br><span class="accent">KNOW WHAT'S TALKING</span><br>TO WHAT.</h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- Every flow between services and indexes is visible, measurable,
- and auditable. One view replaces APM, data-catalog, and
- observability-lineage tools for teams managing agent workloads.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="viz">
- {{SVG:graph}}
- </div>
-
- <p class="viz-caption">
- Eleven flows across five source services and five target
- indexes. Line weight encodes request rate. Audit teams see
- the same view engineers see — no separate lineage tool, no
- manual documentation to drift out of date.
- </p>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">05 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P6 · UX SHOWCASE 02 · QUERY CLUSTERS (UMAP) -->
-<!-- =========================================================== -->
-<section class="page viz-page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>06 · HOW YOUR AGENTS ACTUALLY SEARCH</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>06</span><span class="dash">·</span><span>HOW YOUR AGENTS SEARCH</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">WHERE YOUR<br><span class="accent">QUERIES</span> LIVE.</h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- 830,000 real queries from 48 hours of production traffic,
- projected into 2D by intent. Six clusters. Product owners,
- data-science leads, and SecOps look at the same picture.
- </p>
-
- <div class="sp-4"></div>
-
- <div class="viz">
- {{SVG:umap}}
- </div>
-
- <p class="viz-caption">
- RAG retrieval dominates — the large central mass. Peripheral
- clusters are internal analytics, security detections, and
- long-tail agent memory lookups. One chart tells leadership
- what the agent estate is actually doing.
- </p>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">06 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P7 · UX SHOWCASE 03 · LATENCY RIBBON (AXONOMETRIC) -->
-<!-- =========================================================== -->
-<section class="page viz-page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>07 · CROSS-MODEL LATENCY</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>07</span><span class="dash">·</span><span>CROSS-MODEL LATENCY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">EVERY MODEL.<br><span class="accent">ONE AXIS.</span></h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- Latency across five foundation models (Opus, Sonnet, Haiku,
- GPT-5, Gemini 3) on one axonometric ribbon. Leadership sees
- the latency tax of each provider instantly — without a
- procurement spreadsheet.
- </p>
-
- <div class="sp-4"></div>
-
- <div class="viz">
- {{SVG:ribbon}}
- </div>
-
- <p class="viz-caption">
- Depth encodes generation. Opus 4.6 at the front, Haiku 4.5 at
- the back. The same data layer serves every agent — switching
- models is a configuration change, not a re-platform.
- </p>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">07 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P8 · UX SHOWCASE 04 · COST VISIBILITY HEATMAP -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>08 · COST VISIBILITY · BOARD-READY</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>08</span><span class="dash">·</span><span>COST VISIBILITY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">WATCH THE<br><span class="accent">MONEY MOVE.</span></h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- Every agent query returns an explain-plan with per-node cost
- and row count. The board-ready heatmap below aggregates spend
- by weekday × 2-hour window. Finance owns AI spend at the
- line-item level — not the end-of-quarter invoice.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="viz">
- <div class="kicker"><span>AGENT SPEND · WEEKDAY × 2H WINDOW · $ / WINDOW</span></div>
- <div class="sp-3"></div>
- {{SVG:heatmap}}
- </div>
-
- <p class="viz-caption">
- Business-hour tiles show the concentration of agent traffic
- during working weekdays. Off-hours stay near baseline. The
- CFO audits three clicks, not three spreadsheets.
- </p>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">08 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P9 · OUTCOME 01 · SECURITY POSTURE (CISO) -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>09 · OUTCOME 01 · SECURITY POSTURE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>09</span><span class="dash">·</span><span>OUTCOME 01 · CISO</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">MTTD IN<br><span class="accent">MILLISECONDS.</span></h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- Eight canonical SIEM queries — top source IPs, lateral
- movement, DNS tunneling, brute-force detection — on one million
- events. SOC analysts who used to switch tabs while a dashboard
- loaded now iterate inside their train of thought.
- <span class="accent">Mean time to detect drops by an order of
- magnitude without adding headcount.</span>
- </p>
-
- <div class="sp-6"></div>
-
- <div class="kicker"><span>SIEM QUERY BATTERY · P95 LATENCY · 1M EVENTS</span></div>
- <div class="sp-3"></div>
-
- <div>
- <div class="cmp-head">
- <span></span><span class="a">XERJ</span><span>LEGACY STACK</span>
- </div>
- <div class="cmp-row">
- <span class="label">Top source IPs · triage</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:2px;"></span><span class="cmp-num">0.4 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:74px;"></span><span class="cmp-num">29.8 ms <span class="cmp-ratio">74.5×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Auth failures / hour</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:2px;"></span><span class="cmp-num">0.3 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:50px;"></span><span class="cmp-num">18.2 ms <span class="cmp-ratio">60.7×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Lateral movement</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:4px;"></span><span class="cmp-num">1.2 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:113px;"></span><span class="cmp-num">45.1 ms <span class="cmp-ratio">37.6×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">DNS tunneling · detection</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:3px;"></span><span class="cmp-num">0.8 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:82px;"></span><span class="cmp-num">32.7 ms <span class="cmp-ratio">40.9×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Process tree anomaly</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:6px;"></span><span class="cmp-num">2.1 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:223px;"></span><span class="cmp-num">89.3 ms <span class="cmp-ratio">42.5×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Brute-force detection</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:2px;"></span><span class="cmp-num">0.5 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:103px;"></span><span class="cmp-num">41.0 ms <span class="cmp-ratio">82.0×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">Geo-impossible login</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:5px;"></span><span class="cmp-num">1.8 ms</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:168px;"></span><span class="cmp-num">67.2 ms <span class="cmp-ratio">37.3×</span></span></span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker"><span>BOARD NARRATIVE</span><span class="dash">·</span><span>FASTER ANALYST CYCLES · SAME HEADCOUNT · SAME DATA LAKE</span></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">09 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P10 · OUTCOME 02 · AI / RAG AT SCALE (CDO / CAIO) -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>10 · OUTCOME 02 · AI PLATFORM</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>10</span><span class="dash">·</span><span>OUTCOME 02 · CDO · CAIO</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">RAG THAT FITS<br><span class="accent">THE BUDGET.</span></h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- Agent performance at enterprise scale is a memory problem
- before it is a model problem. XERJ's quantized-by-default
- vector index cuts the memory footprint four- to five-fold —
- the difference between ten million embeddings fitting on one
- node and sprawling across a cluster. Hybrid semantic + keyword
- retrieval is one query, one index, one hop.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="kicker"><span>VECTOR MEMORY AT AI SCALE · XERJ vs LEGACY STACK</span></div>
- <div class="sp-3"></div>
-
- <div>
- <div class="cmp-head">
- <span></span><span class="a">XERJ</span><span>ES + DEDICATED VECTOR DB</span>
- </div>
- <div class="cmp-row">
- <span class="label">1 M × 768-dim</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:3px;"></span><span class="cmp-num">1.2 GB</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:11px;"></span><span class="cmp-num">4.6 GB <span class="cmp-ratio">3.8×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">5 M × 768-dim</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:14px;"></span><span class="cmp-num">5.8 GB</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:56px;"></span><span class="cmp-num">23 GB <span class="cmp-ratio">4.0×</span></span></span>
- </div>
- <div class="cmp-row">
- <span class="label">10 M × 1536-dim · enterprise</span>
- <span class="cmp-val a"><span class="cmp-bar" style="width:44px;"></span><span class="cmp-num">18 GB</span></span>
- <span class="cmp-val b"><span class="cmp-bar" style="width:224px;"></span><span class="cmp-num">92 GB <span class="cmp-ratio">5.1×</span></span></span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <div class="kv-row">
- <div class="k">HYBRID RETRIEVAL</div>
- <div class="v">
- Semantic vector similarity and keyword relevance share one
- query plan. No Python orchestrator. No RRF. The p95 on one
- billion vectors is 38 ms on a single node.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">AGENT MEMORY</div>
- <div class="v">
- Conversation turns, tool traces, retrieved context — same
- store, same index. Time-decay scoring and token-budget-aware
- retrieval are native. No application-level glue for teams to
- maintain.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">RECALL</div>
- <div class="v">
- Recall@10 drops under 0.5 pp against float32 on MS&nbsp;MARCO.
- You trade 0.5 % recall for 75 % memory, delivered at the
- index, not in a downstream inference step.
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">10 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P11 · OUTCOME 03 · CONSOLIDATION & TCO (CIO/CFO) -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>11 · OUTCOME 03 · CONSOLIDATION &amp; TCO</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>11</span><span class="dash">·</span><span>OUTCOME 03 · CIO · CFO</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SIX SYSTEMS.<br>ONE BILL.<br><span class="accent">ONE API.</span></h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- The operational surface of the data layer shrinks by every
- axis that shows up in a procurement review: binaries to run,
- configs to maintain, query languages to train teams on, bills
- to reconcile, audits to sit through.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="kicker"><span>OPERATIONAL SURFACE · XERJ vs TRADITIONAL STACK</span></div>
- <div class="sp-3"></div>
-
- <div class="tco">
- <div class="h">DIMENSION</div>
- <div class="h num">LEGACY</div>
- <div class="h num">XERJ</div>
- <div class="h num">Δ</div>
-
- <div>Systems to run</div>
- <div class="num">6</div>
- <div class="num">1</div>
- <div class="delta">6×</div>
-
- <div>Config files</div>
- <div class="num">12</div>
- <div class="num">1</div>
- <div class="delta">12×</div>
-
- <div>Query languages</div>
- <div class="num">3</div>
- <div class="num">1</div>
- <div class="delta">3×</div>
-
- <div>Retention policies</div>
- <div class="num">3</div>
- <div class="num">1</div>
- <div class="delta">3×</div>
-
- <div>Monthly bill lines</div>
- <div class="num">5</div>
- <div class="num">1</div>
- <div class="delta">5×</div>
-
- <div>Idle memory footprint</div>
- <div class="num">8.5 GB</div>
- <div class="num">400 MB</div>
- <div class="delta">21×</div>
-
- <div>Disk · 1 M events</div>
- <div class="num">240 MB</div>
- <div class="num">85 MB</div>
- <div class="delta">2.8×</div>
-
- <div>Cold start</div>
- <div class="num">~15 s</div>
- <div class="num">50 ms</div>
- <div class="delta">300×</div>
- </div>
-
- <div class="sp-6"></div>
-
- <div class="kv-row">
- <div class="k">TCO</div>
- <div class="v">
- <span class="accent">~80 % infrastructure cost reduction</span>
- on log and search workloads, measured on a like-for-like
- corpus. Most of the saving is headcount: one team owns the
- data layer, not four.
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">11 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P12 · GOVERNANCE · RISK · COMPLIANCE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>12 · GOVERNANCE · RISK · COMPLIANCE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>12</span><span class="dash">·</span><span>GRC</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">AUDIT-GRADE.<br><span class="accent">BY DEFAULT.</span></h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- The agent era is not the time to accept a data layer that
- cannot answer the CISO, the DPO, or the auditor. XERJ is
- engineered to answer those questions in the same query
- language as everything else.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="kv-row">
- <div class="k">DATA SOVEREIGNTY</div>
- <div class="v">
- Self-hosted. Runs on your cloud, your VPC, your bare metal.
- Nothing leaves your perimeter. Procurement and legal
- reviews finish in a week, not a quarter.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">AUDIT TRAIL</div>
- <div class="v">
- Every query returns a structured explain-plan with per-node
- cost, row counts, and index hits. Audit teams query the
- explain-plan the same way they query the data.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">LINEAGE</div>
- <div class="v">
- Service-graph view shows data flows in real time (page 05).
- No manual data-catalog to drift out of date. Teams see what
- agents see.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">ACCESS MODEL</div>
- <div class="v">
- One permission model across logs, vectors, memory, and
- metrics. No reconciliation of three RBAC systems at
- audit time.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">DETERMINISM</div>
- <div class="v">
- No JVM garbage-collector pauses. No warm-up spikes. Latency
- budgets in SLOs are honored, including the 99.9 percentile
- that appears in board-level incident reports.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">VENDOR RISK</div>
- <div class="v">
- Elasticsearch wire-protocol compatibility means a migration
- away — if you ever need one — is the same configuration
- change as the migration in. No proprietary query DSL to
- lock you in.
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">12 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P13 · ADOPTION ROADMAP -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>13 · ADOPTION ROADMAP</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>13</span><span class="dash">·</span><span>ADOPTION ROADMAP</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FIVE PHASES.<br><span class="accent">ONE YEAR.</span></h2>
-
- <div class="sp-4"></div>
-
- <p class="body">
- A typical enterprise rollout. Low-risk, reversible, and
- measured at every stage. No big-bang migration. No contract
- that locks value to a future quarter.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="phase-grid">
- <div class="p">01</div>
- <div class="t">PILOT<br>WEEKS 1–2</div>
- <div>Reproduce the battle reports in this document on your own corpus. Private binary, seeded data, reproduction scripts. No integration. Outcome: your numbers, your hardware, your decision.</div>
-
- <div class="p">02</div>
- <div class="t">SHADOW<br>WEEKS 3–6</div>
- <div>Run XERJ alongside your existing Elasticsearch cluster. Dual-write from one ingest pipeline. Compare latency, cost, and accuracy on production traffic. No user impact.</div>
-
- <div class="p">03</div>
- <div class="t">MIGRATE SIEM<br>QUARTER 2</div>
- <div>Cut one workload over — typically SIEM or observability. Same ingest, same queries, same dashboards. Decommission the shadowed system. First line-item removed from the monthly bill.</div>
-
- <div class="p">04</div>
- <div class="t">CONSOLIDATE VECTORS<br>QUARTER 3</div>
- <div>Move the vector database and agent-memory store onto the same plane. Hybrid retrieval lights up. RAG orchestrators simplify. Teams merge.</div>
-
- <div class="p">05</div>
- <div class="t">ONE DATA PLANE<br>QUARTER 4</div>
- <div>Full consolidation. Logs, metrics, traces, vectors, and memory on one platform. One contract, one on-call, one audit surface. Board metrics ready by Q4 earnings cycle.</div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker"><span>REVERSIBLE</span><span class="dash">·</span><span>ES WIRE-PROTOCOL COMPATIBILITY MEANS NO LOCK-IN AT ANY PHASE</span></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">13 / 14</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P14 · EXECUTIVE CONTACT -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>14 · EXECUTIVE BRIEFING</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-10"></div>
- <div class="kicker"><span>14</span><span class="dash">·</span><span>EXECUTIVE BRIEFING</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">RUN IT ON<br><span class="accent">YOUR DATA.</span></h2>
-
- <div class="sp-6"></div>
-
- <p class="body">
- Executive briefings are 45 minutes. We bring the platform, the
- reproduction scripts, and the battle reports behind every
- number in this document. You bring a workload and whichever
- executives own the outcome. We reply within one business day.
- </p>
-
- <div class="sp-10"></div>
-
- <div style="padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);">
- <div class="kicker"><span>EXECUTIVE CONTACT</span></div>
- <div class="sp-3"></div>
- <div class="contact-line">
- HELLO<span class="accent">@</span>XERJ.AI
- </div>
- <div class="sp-4"></div>
- <div style="font-family: var(--font-data); font-size: 9.5pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--mute);">
- XERJ.AI · XERJ.COM · XERJ.DEV
- </div>
- </div>
-
- <div class="sp-8"></div>
-
- <div class="kv-row">
- <div class="k">WHAT YOU GET</div>
- <div class="v">
- Private binary with reproduction scripts and seeded datasets
- for every number in this brief. A 45-minute executive
- briefing, scheduled at your convenience.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">WHAT YOU BRING</div>
- <div class="v">
- A workload to reproduce on (SIEM, observability, RAG,
- Elasticsearch replacement), and whichever executives own the
- outcome and the budget.
- </div>
- </div>
- <div class="kv-row">
- <div class="k">TERMS</div>
- <div class="v">
- No sales call. No NDA required to see the binary. No
- procurement dependency to run the pilot.
- </div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>XERJ.AI</span>
- <span class="dash">·</span>
- <span>EXECUTIVE BRIEF · V1</span>
- <span class="dash">·</span>
- <span>2026-04</span>
- <span class="dash">·</span>
- <span>ONE DATA PLANE · EVERY AGENT</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ.AI · EXECUTIVE BRIEF</span>
- <span class="num">14 / 14</span>
- </div>
-</section>
-
-</body>
-</html>
diff --git a/brief/export-logos.js b/brief/export-logos.js
deleted file mode 100644
index 7c687dfcf..000000000
--- a/brief/export-logos.js
+++ /dev/null
@@ -1,183 +0,0 @@
-// XERJ.AI logo export — SVG (transparent bg) + PNG at 4 sizes,
-// for every shape (wordmark · short · mark · systemline) in three
-// colour modes: on-dark, on-light, mono (currentColor).
-// Naming convention: files include `on-dark` / `on-light` for the
-// INTENDED BACKGROUND; actual canvases are transparent.
-const puppeteer = require('puppeteer');
-const path = require('path');
-const fs = require('fs');
-const { execSync } = require('child_process');
-
-const OUT = '/tmp/xerj-logos';
-const ZIP = '/tmp/xerj-logos.zip';
-fs.rmSync(OUT, { recursive: true, force: true });
-fs.mkdirSync(OUT, { recursive: true });
-fs.mkdirSync(path.join(OUT, 'svg'));
-fs.mkdirSync(path.join(OUT, 'png'));
-
-const FONT_STACK = "'Big Shoulders Display','Inter',sans-serif";
-const SYS_FONT = "'IBM Plex Sans','Inter',sans-serif";
-
-// -------- SVG BUILDERS (transparent bg, three colour modes) --------
-
-// Colour tokens for each mode · rule/XERJ/.AI
-const MODES = {
- 'on-dark': { rule_b: '#f4f2ec', rule_t: '#ffc400', xerj: '#f4f2ec', ai: '#ffc400' },
- 'on-light': { rule_b: '#11120f', rule_t: '#a06800', xerj: '#11120f', ai: '#a06800' },
- 'mono': { rule_b: 'currentColor', rule_t: 'currentColor', xerj: 'currentColor', ai: 'currentColor' },
-};
-
-function wordmarkSvg(mode) {
- const c = MODES[mode];
- return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 240" width="800" height="240">
- <line x1="90" y1="200" x2="530" y2="200" stroke="${c.rule_b}" stroke-width="1" stroke-linecap="square"/>
- <line x1="530" y1="40" x2="710" y2="40" stroke="${c.rule_t}" stroke-width="1" stroke-linecap="square"/>
- <text x="530" y="170" font-family="${FONT_STACK}" font-weight="900" font-size="140" letter-spacing="4" text-anchor="end" fill="${c.xerj}">XERJ</text>
- <text x="530" y="170" font-family="${FONT_STACK}" font-weight="900" font-size="140" letter-spacing="4" text-anchor="start" fill="${c.ai}">.AI</text>
-</svg>`;
-}
-
-function shortSvg(mode) {
- const c = MODES[mode];
- return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 240" width="600" height="240">
- <line x1="90" y1="40" x2="510" y2="40" stroke="${c.xerj}" stroke-width="1" stroke-linecap="square"/>
- <line x1="90" y1="200" x2="510" y2="200" stroke="${c.xerj}" stroke-width="1" stroke-linecap="square"/>
- <text x="300" y="170" font-family="${FONT_STACK}" font-weight="900" font-size="140" letter-spacing="4" text-anchor="middle" fill="${c.xerj}">XERJ</text>
-</svg>`;
-}
-
-function markSvg(mode) {
- // For mark variants the X itself always takes the accent colour on dark, ink on light, currentColor in mono.
- const c = MODES[mode];
- // on-dark: yellow X + yellow rules; on-light: ink X + ink rules; mono: currentColor.
- const color = mode === 'on-dark' ? '#ffc400' : mode === 'on-light' ? '#11120f' : 'currentColor';
- return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" width="200" height="200">
- <line x1="30" y1="24" x2="170" y2="24" stroke="${color}" stroke-width="1" stroke-linecap="square"/>
- <line x1="30" y1="170" x2="170" y2="170" stroke="${color}" stroke-width="1" stroke-linecap="square"/>
- <text x="100" y="140" font-family="${FONT_STACK}" font-weight="900" font-size="120" text-anchor="middle" fill="${color}">X</text>
-</svg>`;
-}
-
-function systemlineSvg(mode) {
- const c = MODES[mode];
- // Keep the dual-colour faint rule / accent rule split where meaningful.
- const faintBottom = mode === 'on-dark' ? '#3a3836' : mode === 'on-light' ? '#cfcbbf' : 'currentColor';
- const accentTop = mode === 'on-dark' ? '#ffc400' : mode === 'on-light' ? '#a06800' : 'currentColor';
- const textColor = mode === 'on-dark' ? '#f4f2ec' : mode === 'on-light' ? '#11120f' : 'currentColor';
- return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 100" width="800" height="100">
- <line x1="210" y1="78" x2="450" y2="78" stroke="${faintBottom}" stroke-width="1" stroke-linecap="square"/>
- <line x1="450" y1="22" x2="600" y2="22" stroke="${accentTop}" stroke-width="1" stroke-linecap="square"/>
- <text x="400" y="58" font-family="${SYS_FONT}" font-weight="600" font-size="20" letter-spacing="4.8" text-anchor="middle" fill="${textColor}">XERJ.AI · OBSERVE</text>
-</svg>`;
-}
-
-// -------- shape manifest (viewBox + target PNG widths) --------
-// aspect = w/h from viewBox; intrinsic height at each width = width / aspect
-const shapes = [
- { name: 'wordmark', aspect: 800/240, build: wordmarkSvg, widths: [512, 1024, 2048, 4096], darkFallback: '#0b0b0d' },
- { name: 'short', aspect: 600/240, build: shortSvg, widths: [512, 1024, 2048, 4096], darkFallback: '#0b0b0d' },
- { name: 'mark', aspect: 200/200, build: markSvg, widths: [256, 512, 1024, 2048], darkFallback: '#0b0b0d' },
- { name: 'systemline', aspect: 800/100, build: systemlineSvg, widths: [512, 1024, 2048, 4096], darkFallback: '#0b0b0d' },
-];
-
-const modes = ['on-dark', 'on-light', 'mono'];
-
-// -------- write all SVGs --------
-const manifest = [];
-for (const shape of shapes) {
- fs.mkdirSync(path.join(OUT, 'svg', shape.name), { recursive: true });
- fs.mkdirSync(path.join(OUT, 'png', shape.name), { recursive: true });
- for (const mode of modes) {
- const svg = shape.build(mode);
- const filename = `xerj-${shape.name}.${mode}.svg`;
- const svgPath = path.join(OUT, 'svg', shape.name, filename);
- fs.writeFileSync(svgPath, svg);
- manifest.push({ kind: 'SVG', shape: shape.name, mode, width: 'scalable', height: 'scalable', path: `svg/${shape.name}/${filename}` });
- }
-}
-
-// -------- rasterize SVGs to PNGs via puppeteer --------
-
-(async () => {
- const browser = await puppeteer.launch({
- headless: true,
- args: ['--no-sandbox', '--disable-setuid-sandbox'],
- });
- try {
- const page = await browser.newPage();
-
- for (const shape of shapes) {
- for (const mode of modes) {
- const svg = shape.build(mode);
- for (const w of shape.widths) {
- const h = Math.round(w / shape.aspect);
- // Host the SVG in an HTML shell · transparent bg · fonts loaded
- const html = `<!DOCTYPE html><html><head>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@900&family=Inter:wght@600;700&family=IBM+Plex+Sans:wght@600&display=swap" rel="stylesheet">
-<style>
-html,body{margin:0;padding:0;background:transparent;color:${mode === 'on-dark' ? '#f4f2ec' : '#11120f'};}
-body{width:${w}px; height:${h}px; display:flex; align-items:center; justify-content:center;}
-svg{width:${w}px; height:${h}px; display:block;}
-</style>
-</head><body>${svg}</body></html>`;
-
- await page.setViewport({ width: w, height: h, deviceScaleFactor: 1 });
- await page.setContent(html, { waitUntil: 'load', timeout: 60000 });
- await page.evaluateHandle('document.fonts.ready');
- await page.evaluate(() => new Promise(r => setTimeout(r, 120)));
-
- const filename = `xerj-${shape.name}.${mode}.${w}x${h}.png`;
- const pngPath = path.join(OUT, 'png', shape.name, filename);
- await page.screenshot({ path: pngPath, omitBackground: true, type: 'png' });
- manifest.push({ kind: 'PNG', shape: shape.name, mode, width: w, height: h, path: `png/${shape.name}/${filename}` });
- process.stdout.write(` ${filename} · ${w}×${h}\n`);
- }
- }
- }
- } finally {
- await browser.close();
- }
-
- // -------- write README / manifest --------
- const readme = [
- 'XERJ.AI · Logo export bundle',
- 'Generated ' + new Date().toISOString().slice(0, 10),
- '',
- 'NAMING · on-dark / on-light / mono',
- ' on-dark → for placement on dark surfaces (paper + gold on transparent bg)',
- ' on-light → for placement on light surfaces (ink + ochre on transparent bg)',
- ' mono → currentColor fill; inherits whatever color you set on the parent',
- '',
- 'ALL backgrounds are transparent. The filename tag only indicates the INTENDED surface.',
- '',
- 'SHAPES',
- ' wordmark · XERJ.AI with dual 1px rules (paper under XERJ, yellow over .AI). Use for hero / cover / section titles.',
- ' short · XERJ with paper rules above + below. Use when .AI suffix cannot fit.',
- ' mark · X letter with yellow rules top + bottom inside a 200×200 canvas. Use as app icon, favicon, social avatar.',
- ' systemline · XERJ.AI · OBSERVE tracked signature with faint + accent rules. Use for footers, PDF headers, email signatures.',
- '',
- 'RASTER SIZES (PNG · transparent bg)',
- ' wordmark · 512×154 · 1024×307 · 2048×614 · 4096×1229',
- ' short · 512×205 · 1024×410 · 2048×819 · 4096×1638',
- ' mark · 256×256 · 512×512 · 1024×1024 · 2048×2048',
- ' systemline · 512×64 · 1024×128 · 2048×256 · 4096×512',
- '',
- 'VECTOR · SVG (transparent bg, scalable, no PNG rasters for this tier)',
- '',
- 'FILE MANIFEST (' + manifest.length + ' files)',
- ' ────────────────────────────────',
- ...manifest.map(m => ` ${m.kind.padEnd(4)} ${m.shape.padEnd(11)} ${m.mode.padEnd(8)} ${String(m.width).padStart(10)}×${String(m.height).padEnd(10)} ${m.path}`),
- ].join('\n');
- fs.writeFileSync(path.join(OUT, 'README.txt'), readme);
-
- // -------- zip --------
- try { fs.unlinkSync(ZIP); } catch (_) {}
- execSync(`cd /tmp/xerj-logos && zip -r ${ZIP} . -q`);
- const zipSize = fs.statSync(ZIP).size;
- console.log(`\n${ZIP} · ${(zipSize / 1024).toFixed(1)} KB · ${manifest.length} files`);
-})().catch((err) => {
- console.error('FAILED:', err);
- process.exit(1);
-});
diff --git a/brief/kit/build-kit.js b/brief/kit/build-kit.js
deleted file mode 100644
index 91edbb56f..000000000
--- a/brief/kit/build-kit.js
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Build script for the XERJ sales kit.
- Renders every .html in /brief/kit/src/ to PDF under /brief/kit/. */
-const puppeteer = require('puppeteer');
-const path = require('path');
-const fs = require('fs');
-
-const srcDir = path.resolve(__dirname, 'src');
-const outDir = path.resolve(__dirname);
-const files = fs.readdirSync(srcDir).filter(f => f.endsWith('.html')).sort();
-
-(async () => {
- const browser = await puppeteer.launch({
- headless: true,
- args: ['--no-sandbox', '--disable-setuid-sandbox', '--font-render-hinting=none'],
- });
- try {
- for (const f of files) {
- const inPath = path.join(srcDir, f);
- const outPdf = path.join(outDir, 'xerj-' + f.replace(/\.html$/, '.pdf'));
- const page = await browser.newPage();
- await page.emulateMediaType('print');
- await page.goto('file://' + inPath, { waitUntil: 'networkidle0', timeout: 60000 });
- await page.evaluateHandle('document.fonts.ready');
- await page.pdf({
- path: outPdf,
- format: 'Letter',
- printBackground: true,
- preferCSSPageSize: true,
- margin: { top: 0, right: 0, bottom: 0, left: 0 },
- });
- await page.close();
- const stat = fs.statSync(outPdf);
- console.log('OK:', path.basename(outPdf), stat.size, 'bytes');
- }
- } finally {
- await browser.close();
- }
-})();
diff --git a/brief/kit/common.css b/brief/kit/common.css
deleted file mode 100644
index d340a5143..000000000
--- a/brief/kit/common.css
+++ /dev/null
@@ -1,372 +0,0 @@
-/* ================================================================
- XERJ · SALES KIT · SHARED CSS
- Every use-case and industry brief links this one file.
- Typography-first · night palette · 1 px lines · brand.html laws.
- ================================================================ */
-
-:root {
- --bg: #0b0b0d;
- --ink: #f4f2ec;
- --mute: #8a8680;
- --faint: #2b2a28;
- --line: #3a3836;
- --accent: #ffc400;
-
- --z-bg: var(--bg); --z-ink: var(--ink); --z-mute: var(--mute);
- --z-line: var(--line); --z-accent: var(--accent); --z-faint: var(--faint);
-
- --font-display: 'Big Shoulders Display', 'Inter', system-ui, sans-serif;
- --font-prose: 'Inter', system-ui, sans-serif;
- --font-data: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
- --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
-
- --track-ui: 0.14em;
- --track-label: 0.08em;
-}
-
-@page { size: Letter; margin: 0; }
-* { box-sizing: border-box; margin: 0; padding: 0; }
-
-html, body {
- background: var(--bg);
- color: var(--ink);
- font-family: var(--font-prose);
- font-size: 10.5pt;
- line-height: 1.45;
- -webkit-font-smoothing: antialiased;
- text-rendering: optimizeLegibility;
-}
-
-.page {
- width: 8.5in;
- height: 11in;
- padding: 0.55in 0.6in;
- position: relative;
- page-break-after: always;
- overflow: hidden;
- display: flex;
- flex-direction: column;
-}
-.page:last-child { page-break-after: auto; }
-
-.kicker {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- display: flex;
- gap: 0.5em;
- align-items: center;
- flex-wrap: wrap;
-}
-.kicker .dash { color: var(--faint); }
-.kicker .accent { color: var(--accent); }
-
-.accent { color: var(--accent); }
-.mute { color: var(--mute); }
-.mono { font-family: var(--font-mono); }
-
-h1, h2, h3, h4 {
- font-family: var(--font-display);
- font-weight: 900;
- text-transform: uppercase;
- letter-spacing: 0.02em;
- line-height: 0.92;
-}
-
-.hero { font-size: 68pt; line-height: 0.9; }
-.scene { font-size: 38pt; }
-h3 { font-size: 18pt; }
-h4 { font-size: 11pt; letter-spacing: var(--track-ui); color: var(--accent); }
-
-p.lead { font-size: 12pt; line-height: 1.5; max-width: 6.5in; }
-p.body { font-size: 9.5pt; line-height: 1.55; max-width: 6.5in; }
-p.body.wide { max-width: 100%; }
-em { font-style: italic; }
-code, .code { font-family: var(--font-mono); font-size: 9pt; color: var(--ink); }
-
-.sp-2 { height: 8px; } .sp-3 { height: 12px; } .sp-4 { height: 16px; }
-.sp-6 { height: 24px; } .sp-8 { height: 32px; } .sp-10 { height: 48px; }
-
-.flex { display: flex; } .col { flex-direction: column; }
-.grow { flex: 1 1 auto; min-height: 0; }
-.between { justify-content: space-between; }
-
-/* page header / footer */
-.head-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-bottom: 10px;
- border-bottom: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
-}
-.head-row .brand { color: var(--ink); }
-.head-row .brand .accent { color: var(--accent); }
-
-.foot-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-top: 10px;
- border-top: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 500;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
-}
-.foot-row .num { color: var(--ink); }
-
-/* key-value rows */
-.kv-row {
- display: grid;
- grid-template-columns: 1.3in 1fr;
- gap: 0.25in;
- padding: 7px 0;
- border-bottom: 1px solid var(--line);
- align-items: baseline;
-}
-.kv-row .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
-}
-.kv-row .v { font-size: 9.5pt; line-height: 1.5; }
-.kv-row .v .mono { font-size: 9pt; color: var(--ink); }
-
-/* status pills */
-.pill {
- display: inline-block;
- font-family: var(--font-data);
- font-size: 7.5pt;
- font-weight: 700;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- padding: 1px 6px;
- border: 1px solid;
- margin-left: 4px;
- vertical-align: 1px;
-}
-.pill.ga { color: var(--accent); border-color: var(--accent); }
-.pill.beta { color: var(--ink); border-color: var(--ink); }
-.pill.road { color: var(--mute); border-color: var(--line); }
-
-/* 4-up value quadrant */
-.quad-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- grid-template-rows: 1fr 1fr;
- border-top: 1px solid var(--line);
- border-left: 1px solid var(--line);
-}
-.quad-grid > .cell {
- padding: 16px;
- border-right: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 6px;
- min-height: 1.7in;
-}
-.quad-grid .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
-}
-.quad-grid .v {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 32pt;
- line-height: 0.95;
- color: var(--accent);
- letter-spacing: 0.01em;
-}
-.quad-grid .t {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 16pt;
- line-height: 1;
- text-transform: uppercase;
- letter-spacing: 0.01em;
- color: var(--ink);
-}
-.quad-grid .t .accent { color: var(--accent); }
-.quad-grid .b {
- font-size: 9.5pt;
- line-height: 1.45;
- margin-top: auto;
-}
-
-/* matrix / capability table */
-.matrix {
- display: grid;
- gap: 0;
-}
-.matrix.m3 { grid-template-columns: 1.4in 1fr 0.7in; }
-.matrix.m2 { grid-template-columns: 1.4in 1fr; }
-.matrix > div {
- padding: 5px 10px;
- border-bottom: 1px solid var(--line);
- font-size: 9pt;
- line-height: 1.42;
-}
-.matrix .h {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- border-bottom: 1px solid var(--ink);
-}
-.matrix .k {
- font-family: var(--font-mono);
- font-size: 9pt;
- color: var(--accent);
-}
-.matrix .status {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- text-align: right;
-}
-.matrix .status.ga { color: var(--accent); }
-.matrix .status.beta { color: var(--ink); }
-.matrix .status.road { color: var(--mute); }
-
-/* versus table */
-.versus {
- display: grid;
- grid-template-columns: 1.25in 1fr 1fr;
- gap: 0.2in;
-}
-.versus > .h {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- padding: 6px 0;
- border-bottom: 1px solid var(--ink);
-}
-.versus > .h.a { color: var(--accent); }
-.versus > div {
- padding: 4px 0;
- border-bottom: 1px solid var(--line);
- font-size: 8.75pt;
- line-height: 1.35;
-}
-.versus > div.dim {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- color: var(--mute);
-}
-.versus .accent { color: var(--accent); }
-
-/* ASCII topology */
-.arch-pre {
- font-family: var(--font-mono);
- font-size: 8.5pt;
- line-height: 1.45;
- color: var(--ink);
- white-space: pre;
- padding: 12px 0;
- border-top: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- overflow: hidden;
-}
-.arch-pre .accent { color: var(--accent); }
-.arch-pre .mute { color: var(--mute); }
-.arch-pre .ink { color: var(--ink); }
-
-/* phase rail */
-.road-rail {
- display: grid;
- grid-template-columns: 0.85in 1.1in 1fr;
- column-gap: 0.2in;
-}
-.road-rail > div {
- padding: 9px 0;
- border-top: 1px solid var(--line);
- font-size: 9.5pt;
- line-height: 1.45;
-}
-.road-rail .q {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 20pt;
- color: var(--accent);
- line-height: 1;
-}
-.road-rail .t {
- font-family: var(--font-data);
- font-size: 9pt;
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- color: var(--ink);
-}
-
-/* cover hero */
-.cover-hero {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 68pt;
- line-height: 0.9;
- letter-spacing: 0.01em;
-}
-
-/* compliance checkbox grid */
-.compliance {
- display: grid;
- grid-template-columns: 1.3in 1fr 1in;
- gap: 0;
-}
-.compliance > div {
- padding: 5px 10px;
- border-bottom: 1px solid var(--line);
- font-size: 9pt;
- line-height: 1.4;
-}
-.compliance .h {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- border-bottom: 1px solid var(--ink);
-}
-.compliance .k { font-family: var(--font-mono); color: var(--accent); }
-.compliance .status {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- text-align: right;
- color: var(--mute);
-}
-.compliance .status.ga { color: var(--accent); }
-.compliance .status.yes { color: var(--accent); }
diff --git a/brief/kit/probe-kit.js b/brief/kit/probe-kit.js
deleted file mode 100644
index 86442f4df..000000000
--- a/brief/kit/probe-kit.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Probe every rendered HTML in kit/src for page overflow. */
-const puppeteer = require('puppeteer');
-const path = require('path');
-const fs = require('fs');
-
-(async () => {
- const srcDir = path.resolve(__dirname, 'src');
- const files = fs.readdirSync(srcDir).filter(f => f.endsWith('.html')).sort();
- const browser = await puppeteer.launch({ headless: true, args: ['--no-sandbox'] });
- let anyOver = 0;
- for (const f of files) {
- const page = await browser.newPage();
- await page.emulateMediaType('print');
- await page.setViewport({ width: 816, height: 1056 });
- await page.goto('file://' + path.join(srcDir, f), { waitUntil: 'networkidle0' });
- await page.evaluateHandle('document.fonts.ready');
- const issues = await page.evaluate(() => {
- const pages = [...document.querySelectorAll('.page')];
- return pages.map((pg, i) => {
- const inner = pg.querySelector('.grow.flex.col');
- return {
- i: i + 1,
- ok: pg.scrollHeight === pg.clientHeight
- && (!inner || inner.scrollHeight <= inner.clientHeight),
- pageH: pg.clientHeight,
- pageSH: pg.scrollHeight,
- innerH: inner ? inner.clientHeight : 0,
- innerSH: inner ? inner.scrollHeight : 0,
- };
- });
- });
- const bad = issues.filter(x => !x.ok);
- if (bad.length) {
- console.log(f);
- for (const b of bad) {
- console.log(` p${b.i}: pageH=${b.pageH} pageSH=${b.pageSH} innerH=${b.innerH} innerSH=${b.innerSH}`);
- anyOver++;
- }
- } else {
- console.log(f + ' ok (' + issues.length + ' pages)');
- }
- await page.close();
- }
- await browser.close();
- if (!anyOver) console.log('\nALL BRIEFS FIT');
-})();
diff --git a/brief/kit/src/industry-finserv.html b/brief/kit/src/industry-finserv.html
deleted file mode 100644
index b0a75f903..000000000
--- a/brief/kit/src/industry-finserv.html
+++ /dev/null
@@ -1,323 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ — Financial Services — Industry Brief</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<link rel="stylesheet" href="../common.css">
-</head>
-<body>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>INDUSTRY · FINANCIAL SERVICES · V1 · 2026-04</span></div>
- <div class="grow flex col between">
- <div class="sp-10"></div>
- <div>
- <div class="kicker" style="margin-bottom:20px;"><span>INDUSTRY BRIEF</span><span class="dash">·</span><span>FOR CIO · CDO · CISO · HEAD OF AI · RISK</span></div>
- <div class="cover-hero">AI IN<br>FINANCIAL<br><span class="accent">SERVICES.</span><br>ON YOUR DATA.</div>
- <div class="sp-8"></div>
- <p class="lead" style="max-width:6in;">Banks, insurers, and asset managers run AI under the tightest data controls in the world. XERJ is a self-hosted data plane that runs inside your perimeter — full-text, vector, and agent memory on one platform — so the AI transformation never requires sending data to a third-party retrieval vendor.</p>
- </div>
- <div class="kicker"><span>SELF-HOSTED</span><span class="dash">·</span><span>DATA-SOVEREIGN</span><span class="dash">·</span><span>AUDIT-GRADE</span></div>
- </div>
- <div class="foot-row"><span>XERJ · FINANCIAL SERVICES · INDUSTRY BRIEF</span><span class="num">01 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>02 · THE FINSERV AI PROBLEM</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>WHY THIS MATTERS NOW</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">AI TRANSFORMATION<br>MEETS THE<br><span class="accent">DATA RULE BOOK.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Every board agenda in banking and insurance names AI productivity as a top-three priority. Every regulator has responded with guidance — SR 11-7, EBA on model risk, PRA SS1/23, NAIC Bulletin. The AI platform conversation is no longer about what model to use; it is about whether the retrieval layer and the audit trail beneath it meet the rule book.</p>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">DATA SOVEREIGNTY</div><div class="v">GDPR, DORA, cross-border data rules, national privacy acts. Your retrieval layer cannot call a vendor API in a different jurisdiction. Self-hosted is not a preference — it is a constraint.</div></div>
- <div class="kv-row"><div class="k">MODEL-RISK GOVERNANCE</div><div class="v">SR 11-7 and equivalents require documented inputs, outputs, and validation evidence for every AI decision. The retrieval layer is part of the model chain and must produce its own audit artifact per query.</div></div>
- <div class="kv-row"><div class="k">FRAUD &amp; AML LATENCY</div><div class="v">Transaction monitoring and fraud decisions increasingly rely on vector similarity to historical patterns. The retrieval has to fit inside the payment-authorization budget — milliseconds, not seconds.</div></div>
- <div class="kv-row"><div class="k">LEGACY STACK DRAG</div><div class="v">Three separate retrieval stacks for security, compliance, and analyst productivity. Each has a dedicated team, contract, and audit. AI programs inherit the sum of their complexity.</div></div>
- <div class="grow"></div>
- <div class="kicker"><span>FINSERV AI NEEDS A UNIFIED DATA PLANE</span><span class="dash">·</span><span>INSIDE THE PERIMETER</span></div>
- </div>
- <div class="foot-row"><span>XERJ · FINANCIAL SERVICES · INDUSTRY BRIEF</span><span class="num">02 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>03 · XERJ POSITIONING</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>UNIFIED AI DATA STACK · FINSERV-READY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ONE PLATFORM.<br>INSIDE YOUR<br><span class="accent">PERIMETER.</span></h2>
- <div class="sp-4"></div>
- <p class="body">XERJ is a single Rust binary that hosts logs, vectors, agent memory, and hybrid retrieval — under one RBAC model, one audit trail, one BYOK story. Deploys inside your VPC, your data centre, or an air-gapped enclave. Nothing leaves the perimeter unless an embedder is deliberately pointed outside.</p>
- <div class="sp-6"></div>
- <div class="quad-grid">
- <div class="cell"><span class="k">SOVEREIGNTY</span><span class="v">100 %</span><span class="t">SELF-HOSTED<br><span class="accent">BY DEFAULT</span></span><span class="b">Your cloud, your VPC, your data centre. Air-gap supported. No XERJ-side telemetry egress in <span class="mono">AIRGAP=1</span> mode.</span></div>
- <div class="cell"><span class="k">AUDIT</span><span class="v">PER-QUERY</span><span class="t">EXPLAIN-PLAN<br><span class="accent">FIRST-CLASS</span></span><span class="b">Every retrieval returns a structured audit artifact — query, principal, cost, rows. Model-risk evidence by default.</span></div>
- <div class="cell"><span class="k">FRAUD LATENCY</div><span class="v">0.4 MS</span><span class="t">TERMS AGG<br><span class="accent">p95</span></span><span class="b">Retrieval inside the payment-authorization budget. Hybrid similarity + keyword filter in one query.</span></div>
- <div class="cell"><span class="k">CONSOLIDATION</span><span class="v">4 → 1</span><span class="t">RETRIEVAL STACKS<br><span class="accent">UNIFIED</span></span><span class="b">Compliance logs, fraud vectors, analyst RAG, SIEM — one platform, one audit surface.</span></div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>DROP-IN ES 8.13 WIRE PROTOCOL</span><span class="dash">·</span><span>BYOK · RBAC · AIR-GAP</span></div>
- </div>
- <div class="foot-row"><span>XERJ · FINANCIAL SERVICES · INDUSTRY BRIEF</span><span class="num">03 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>04 · REFERENCE ARCHITECTURE</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>FINSERV BLUEPRINT</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ONE DATA PLANE.<br><span class="accent">MANY WORKLOADS.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Three XERJ clusters — one per security domain — serving distinct finserv workloads. Same binary, same audit model, different data-classification boundaries.</p>
- <div class="sp-4"></div>
- <div class="arch-pre"><span class="accent">DOMAIN A · RETAIL BANKING</span> VPC · production cardholder environment
- Fraud events · transaction logs · card-auth streams
- │
- ▼
- XERJ cluster · 3-node HA · PCI-DSS-scoped
- Workloads: fraud similarity · AML case retrieval · tx-log SIEM
- Retention: hot 30 d · warm 90 d · cold 7 y (regulatory)
-
-<span class="accent">DOMAIN B · CORPORATE &amp; INVESTMENT BANKING</span> VPC · restricted
- Research notes · term sheets · trade tickets · client correspondence
- │
- ▼
- XERJ cluster · 3-node HA · analyst RAG
- Workloads: research RAG · trade-ticket search · compliance surveillance
- Retention: hot 90 d · warm 1 y · cold 7 y (regulatory)
-
-<span class="accent">DOMAIN C · RISK &amp; MODEL GOVERNANCE</span> VPC · model-ops
- Model outputs · feature vectors · validation evidence · audit trails
- │
- ▼
- XERJ cluster · 3-node HA · model-risk archive
- Workloads: SR 11-7 evidence store · validation retrieval · explain-plan audit
- Retention: model lifecycle + 7 y
-
-<span class="accent">SHARED</span> BYOK via enterprise KMS · SAML federated identity (roadmap Q2)
- Regional deployment · no cross-border data flow · tenant isolation
-</div>
- <div class="grow"></div>
- <div class="kicker"><span>ONE BINARY · THREE PERIMETERS</span><span class="dash">·</span><span>SAME AUDIT MODEL</span></div>
- </div>
- <div class="foot-row"><span>XERJ · FINANCIAL SERVICES · INDUSTRY BRIEF</span><span class="num">04 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>05 · FINSERV USE CASES</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>WHERE XERJ APPLIES</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FIVE PATTERNS.<br><span class="accent">ONE PLATFORM.</span></h2>
- <div class="sp-4"></div>
- <p class="body">The five AI-era workloads that show up in every finserv roadmap. Each maps cleanly to one XERJ deployment pattern.</p>
- <div class="sp-6"></div>
- <div class="matrix m3">
- <div class="h">WORKLOAD</div><div class="h">PATTERN</div><div class="h">STORE</div>
-
- <div class="k">FRAUD DETECTION</div><div>Vector similarity against historical fraud patterns + keyword filter on merchant / geography. Result inside payment-auth budget.</div><div class="status ga">HYBRID</div>
-
- <div class="k">AML / SURVEILLANCE</div><div>Retrieval-augmented case review. Analyst queries unified across transaction logs, KYC notes, prior-case narratives.</div><div class="status ga">HYBRID</div>
-
- <div class="k">ANALYST RAG</div><div>Research RAG over internal + external corpora. Citation fidelity matters · recall @ 10 tracked · re-embed on drift.</div><div class="status ga">VECTOR</div>
-
- <div class="k">COMPLIANCE SEARCH</div><div>eDiscovery-style search across regulated correspondence · legal hold markers · tenant-isolated indices per jurisdiction.</div><div class="status ga">FTS</div>
-
- <div class="k">MODEL-RISK AUDIT</div><div>Store of model inputs, outputs, and validation evidence · queryable by auditors · SR 11-7-aligned · explain-plan audit.</div><div class="status ga">COLUMNAR</div>
-
- <div class="k">CUSTOMER SUPPORT</div><div>Agent-assisted servicing over transcripts + KB + policy. Agent memory scoped per session. Time-decay retrieval for recency.</div><div class="status ga">AGENT MEM</div>
-
- <div class="k">SIEM</div><div>Unified SOC data plane across cloud + on-prem + identity. 74× faster p95 on SIEM aggregation batteries.</div><div class="status ga">LOGS</div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>ALL FIVE</span><span class="dash">·</span><span>ON ONE XERJ PLATFORM · ONE RBAC MODEL</span></div>
- </div>
- <div class="foot-row"><span>XERJ · FINANCIAL SERVICES · INDUSTRY BRIEF</span><span class="num">05 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>06 · COMPLIANCE POSTURE</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>06</span><span class="dash">·</span><span>REGULATORY POSTURE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">AUDIT-READY.<br><span class="accent">BY DEFAULT.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Security controls an enterprise architect signs off on day one; certifications on a published roadmap. Self-hosted means most regulatory scope is inherited from customer controls — XERJ's certification track reinforces rather than replaces them.</p>
- <div class="sp-6"></div>
- <h4>STANDARDS &amp; ATTESTATIONS</h4>
- <div class="sp-2"></div>
- <div class="compliance">
- <div class="h">STANDARD</div><div class="h">RELEVANCE</div><div class="h">STATUS</div>
-
- <div class="k">SOC 2 TYPE I</div><div>Platform controls · access mgmt · incident response · change mgmt</div><div class="status road">ROAD Q3 2026</div>
- <div class="k">SOC 2 TYPE II</div><div>12-month operating effectiveness · follows Type I</div><div class="status road">ROAD Q2 2027</div>
- <div class="k">ISO 27001</div><div>ISMS over platform engineering + SaaS ops</div><div class="status road">ROAD Q4 2026</div>
- <div class="k">PCI-DSS v4.0</div><div>Segments + WAL encrypted at rest · BYOK · RBAC · audit trail</div><div class="status yes">INHERITED (SELF-HOSTED)</div>
- <div class="k">GDPR / DORA</div><div>Self-hosted in customer region · no cross-border data transfer</div><div class="status ga">GA</div>
- <div class="k">SR 11-7 MODEL RISK</div><div>Per-query explain-plan + audit trail = model evidence artifact</div><div class="status ga">GA</div>
- <div class="k">FIPS 140-2</div><div>AES-256-GCM via KMS · TLS 1.3 restricted ciphers · cert roadmap</div><div class="status road">ROAD 2027</div>
- <div class="k">GDPR DATA-SUBJECT RIGHTS</div><div>Tenant-isolated indices · per-doc delete · tombstones · replayable audit</div><div class="status ga">GA</div>
- </div>
- <div class="sp-4"></div>
- <div class="kv-row"><div class="k">KEY MGMT</div><div class="v">BYOK via AWS KMS / GCP KMS / HashiCorp Vault (roadmap Q2). Rotation without downtime. No XERJ-side plaintext key access.</div></div>
- <div class="kv-row"><div class="k">NETWORK</div><div class="v">TLS 1.3 all listeners. Modern AEAD ciphers. Certificate rotation without restart. Air-gap mode disables all telemetry egress.</div></div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · FINANCIAL SERVICES · INDUSTRY BRIEF</span><span class="num">06 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>07 · INTEGRATION ECOSYSTEM</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>07</span><span class="dash">·</span><span>FINSERV STACK · INTEGRATED</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">BANK STACK.<br><span class="accent">UNCHANGED.</span></h2>
- <div class="sp-4"></div>
- <p class="body">The tooling a bank or insurer already runs — ES-backed SIEM, Kafka streams, KMS-managed keys, federated identity — works out of the box.</p>
- <div class="sp-6"></div>
- <div class="matrix m3">
- <div class="h">CATEGORY</div><div class="h">TOOLS</div><div class="h">STATUS</div>
-
- <div class="k">MARKET DATA</div><div>Bloomberg / Refinitiv feeds → normalize → ingest via Vector · Kafka source (roadmap Q3)</div><div class="status ga">GA</div>
-
- <div class="k">CARD NETWORKS</div><div>Visa / Mastercard event streams · ISO 8583 message ingestion via custom adapter</div><div class="status ga">GA</div>
-
- <div class="k">IDENTITY</div><div>OIDC · SAML · enterprise AD · Okta · Azure AD · Ping · SailPoint · RBAC mapped to LDAP groups</div><div class="status road">ROAD Q2</div>
-
- <div class="k">KMS</div><div>AWS KMS · GCP KMS · Azure Key Vault · HashiCorp Vault · Thales Luna HSM · BYOK via industry-standard KMIP</div><div class="status road">ROAD Q2</div>
-
- <div class="k">COMPLIANCE</div><div>eDiscovery tools via ES API · legal-hold markers · tenant isolation · immutable audit trail</div><div class="status ga">GA</div>
-
- <div class="k">SIEM</div><div>Wazuh · Elastic Security · Sigma rules · splunk-compatible exports via scheduled job</div><div class="status ga">GA</div>
-
- <div class="k">RAG FRAMEWORKS</div><div>LangChain / LlamaIndex / Haystack / DSPy · ES retriever · pluggable embedder (in-house / vendor)</div><div class="status ga">GA</div>
-
- <div class="k">CORE BANKING</div><div>Temenos · Finastra · FIS · Fiserv · via change-data-capture into XERJ log index</div><div class="status ga">GA</div>
-
- <div class="k">ANALYTICS</div><div>Tableau · Power BI · via SQL frontend (roadmap Q4); today via ES query API</div><div class="status road">ROAD Q4</div>
- </div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · FINANCIAL SERVICES · INDUSTRY BRIEF</span><span class="num">07 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>08 · MEASURED OUTCOMES</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>08</span><span class="dash">·</span><span>MEASURED vs LEGACY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">NUMBERS THE<br>BOARD READS.<br><span class="accent">OUT OF THE BOX.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Finserv retrieval workloads are where the operational delta is most measurable. Same corpus, same hardware class, same query shape.</p>
- <div class="sp-6"></div>
- <div class="versus">
- <div class="h">METRIC</div>
- <div class="h a">XERJ</div>
- <div class="h">LEGACY STACK</div>
-
- <div class="dim">Fraud · vector lookup p95</div>
- <div><span class="accent">1.2 ms</span></div>
- <div>45 ms <span class="mute">(ES + Pinecone)</span></div>
-
- <div class="dim">AML case retrieval p95</div>
- <div><span class="accent">0.4 ms</span></div>
- <div>29.8 ms <span class="mute">(ES 8.13)</span></div>
-
- <div class="dim">Analyst RAG · recall @ 10</div>
- <div><span class="accent">&lt; 0.5 pp loss vs float32</span></div>
- <div>baseline <span class="mute">(float32)</span></div>
-
- <div class="dim">Vector memory · 10 M × 1.5 K</div>
- <div><span class="accent">18 GB</span></div>
- <div>92 GB <span class="mute">— 5.1×</span></div>
-
- <div class="dim">Binary deploy footprint</div>
- <div><span class="accent">13 MB</span></div>
- <div>~620 MB JAR + JRE</div>
-
- <div class="dim">Cold start</div>
- <div><span class="accent">50 ms</span></div>
- <div>~15 s JVM warm-up</div>
-
- <div class="dim">Per-query audit artifact</div>
- <div><span class="accent">yes · explain-plan</span></div>
- <div>application-level plumbing</div>
-
- <div class="dim">Cross-border data egress</div>
- <div><span class="accent">0</span> <span class="mute">(self-hosted)</span></div>
- <div>depends on vendor region</div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">TCO IMPACT</div><div class="v">~80 % infrastructure cost reduction on log + search + vector workloads. Most savings are headcount and vendor consolidation: one platform team, one contract renewal cycle, one SOC 2 audit scope.</div></div>
- <div class="kv-row"><div class="k">GRC IMPACT</div><div class="v">Per-query explain-plan becomes a first-class audit artifact. Model-risk evidence production drops from a ticket-per-query exercise to a queryable index.</div></div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · FINANCIAL SERVICES · INDUSTRY BRIEF</span><span class="num">08 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>09 · IMPLEMENTATION PATH</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>09</span><span class="dash">·</span><span>FIVE PHASES · ONE YEAR</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">LOW-RISK<br>ROLLOUT.<br><span class="accent">REGULATED.</span></h2>
- <div class="sp-4"></div>
- <p class="body">A typical finserv rollout starts with a non-regulated pilot, then migrates into the regulated perimeter once the security posture is signed off by the CISO's office.</p>
- <div class="sp-6"></div>
- <div class="road-rail">
- <div class="q">01</div><div class="t">NON-PROD PILOT<br><span class="accent">WEEKS 1–2</span></div><div>Dev VPC · sanitized corpus · reproduce SIEM_BATTLE + RAG_BENCH · CISO-office review of architecture + secure-by-default controls.</div>
-
- <div class="q">02</div><div class="t">UAT · REGULATED-ADJACENT<br><span class="accent">WEEKS 3–10</span></div><div>Staging VPC · real data in a regulated-adjacent classification · shadow-deploy one fraud-detection query · compare p95 + recall with production stack.</div>
-
- <div class="q">03</div><div class="t">DOMAIN A PRODUCTION<br><span class="accent">QUARTER 2</span></div><div>Deploy into retail banking VPC · PCI-DSS scope · fraud + AML workloads primary · decommission shadowed legacy systems.</div>
-
- <div class="q">04</div><div class="t">DOMAIN B &amp; C<br><span class="accent">QUARTER 3</span></div><div>Corporate &amp; investment banking analyst RAG · model-risk archive · SR 11-7 audit-evidence store. Federated identity + BYOK complete.</div>
-
- <div class="q">05</div><div class="t">CONSOLIDATION<br><span class="accent">QUARTER 4</span></div><div>Legacy retrieval contracts retired · one platform team owns the AI data plane · board-level TCO + model-risk dashboards live.</div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>REVERSIBLE AT EVERY PHASE</span><span class="dash">·</span><span>ES WIRE MEANS NO LOCK-IN</span></div>
- </div>
- <div class="foot-row"><span>XERJ · FINANCIAL SERVICES · INDUSTRY BRIEF</span><span class="num">09 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>10 · GET STARTED</span></div>
- <div class="grow flex col">
- <div class="sp-10"></div>
- <div class="kicker"><span>10</span><span class="dash">·</span><span>NEXT STEPS</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">PROVE IT.<br><span class="accent">IN YOUR VPC.</span></h2>
- <div class="sp-6"></div>
- <p class="body">A two-week CISO-signoff pilot · sanitized data · private binary · architecture + controls review. We can bring a mutual NDA day one; binary delivery does not require one.</p>
- <div class="sp-10"></div>
- <div style="padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);">
- <div class="kicker"><span>FINSERV CONTACT</span></div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-display); font-weight: 900; font-size: 42pt; line-height:1; letter-spacing: 0.01em;">HELLO<span class="accent">@</span>XERJ.AI</div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-data); font-size: 9pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--mute);">XERJ.AI · XERJ.COM · XERJ.DEV</div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">COMPANION BRIEFS</div><div class="v"><span class="mono">xerj-exec-brief.pdf</span> (board) · <span class="mono">xerj-tech-brief.pdf</span> (architect) · <span class="mono">xerj-usecase-security.pdf</span> (CISO) · <span class="mono">xerj-usecase-rag.pdf</span> (CDO)</div></div>
- <div class="kv-row"><div class="k">CISO REVIEW PACKAGE</div><div class="v">Secure-by-default controls matrix · BYOK + KMS integration detail · air-gap deployment checklist · SOC 2 roadmap with dated milestones.</div></div>
- <div class="grow"></div>
- <div class="kicker"><span>XERJ.AI · FINANCIAL SERVICES · INDUSTRY BRIEF</span><span class="dash">·</span><span>V1 · 2026-04</span></div>
- </div>
- <div class="foot-row"><span>XERJ · FINANCIAL SERVICES · INDUSTRY BRIEF</span><span class="num">10 / 10</span></div>
-</section>
-
-</body>
-</html>
diff --git a/brief/kit/src/industry-healthcare.html b/brief/kit/src/industry-healthcare.html
deleted file mode 100644
index 078fa658f..000000000
--- a/brief/kit/src/industry-healthcare.html
+++ /dev/null
@@ -1,323 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ — Healthcare &amp; Life Sciences — Industry Brief</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<link rel="stylesheet" href="../common.css">
-</head>
-<body>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>INDUSTRY · HEALTHCARE &amp; LIFE SCIENCES · V1 · 2026-04</span></div>
- <div class="grow flex col between">
- <div class="sp-10"></div>
- <div>
- <div class="kicker" style="margin-bottom:20px;"><span>INDUSTRY BRIEF</span><span class="dash">·</span><span>FOR CIO · CMIO · CHIEF DIGITAL · HEAD OF AI · CISO</span></div>
- <div class="cover-hero">CLINICAL AI.<br>PHI-<br><span class="accent">SOVEREIGN.</span><br>AUDIT-READY.</div>
- <div class="sp-8"></div>
- <p class="lead" style="max-width:6in;">Clinical AI lives or dies at the PHI boundary. XERJ is a self-hosted data plane that holds logs, embeddings, and agent memory inside a hospital VPC or a pharma research enclave — drop-in for existing Elasticsearch clients, auditable per query, HIPAA-BAA-ready.</p>
- </div>
- <div class="kicker"><span>PHI-SOVEREIGN</span><span class="dash">·</span><span>HIPAA-READY</span><span class="dash">·</span><span>DROP-IN</span></div>
- </div>
- <div class="foot-row"><span>XERJ · HEALTHCARE &amp; LIFE SCIENCES · INDUSTRY BRIEF</span><span class="num">01 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>02 · HEALTHCARE AI PROBLEM</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>WHY THIS MATTERS NOW</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">AI IN CARE<br>MEETS THE<br><span class="accent">PHI BOUNDARY.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Every health system has an AI strategy: ambient documentation, clinical decision support, patient-portal copilots, claims automation, research RAG. Every one of them stalls at the data layer — PHI cannot leave the perimeter, and the retrieval stacks that commercial AI vendors ship require it to.</p>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">PHI SOVEREIGNTY</div><div class="v">HIPAA · GDPR · provincial / national health-data laws. Patient data cannot be embedded in a vendor's cloud retrieval service. The retrieval layer must run inside the provider's perimeter.</div></div>
- <div class="kv-row"><div class="k">CLINICAL LATENCY</div><div class="v">Ambient scribes, CDS alerts, MAR reconciliation — retrieval latencies above ~200 ms disrupt the clinical workflow. Most vendor RAG stacks exceed that once orchestration is added.</div></div>
- <div class="kv-row"><div class="k">FRAGMENTED STACKS</div><div class="v">EHR analytics on one store, embeddings on another, audit logs on a third. A PHI-access audit crosses three systems with three RBAC models. Compliance becomes adversarial.</div></div>
- <div class="kv-row"><div class="k">RESEARCH SILOS</div><div class="v">Genomics, imaging, publication corpus, clinical trials · each in a separate retrieval tool. Researcher RAG productivity stalls on retrieval-stack migration, not on model capability.</div></div>
- <div class="grow"></div>
- <div class="kicker"><span>HEALTHCARE AI NEEDS A UNIFIED PHI-SAFE DATA PLANE</span></div>
- </div>
- <div class="foot-row"><span>XERJ · HEALTHCARE &amp; LIFE SCIENCES · INDUSTRY BRIEF</span><span class="num">02 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>03 · XERJ POSITIONING</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>UNIFIED AI DATA STACK · PHI-SAFE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ONE PLATFORM.<br>INSIDE THE<br><span class="accent">PHI BOUNDARY.</span></h2>
- <div class="sp-4"></div>
- <p class="body">XERJ runs inside the hospital VPC, the pharma research enclave, or the sovereign cloud of your choice. One binary hosts every retrieval primitive a clinical or life-sciences AI workload needs — and every retrieval is audit-logged as PHI-access evidence.</p>
- <div class="sp-6"></div>
- <div class="quad-grid">
- <div class="cell"><span class="k">SOVEREIGNTY</span><span class="v">100 %</span><span class="t">SELF-HOSTED<br><span class="accent">PHI-SAFE</span></span><span class="b">Your VPC · your data centre · HIPAA-BAA-eligible. Embeddings of PHI never leave the perimeter unless a sanctioned embedder is configured.</span></div>
- <div class="cell"><span class="k">LATENCY</span><span class="v">&lt; 40 MS</span><span class="t">HYBRID P95<br><span class="accent">CLINICAL BUDGET</span></span><span class="b">Fits inside EHR round-trip budgets. Ambient-scribe retrieval keeps up with conversation cadence.</span></div>
- <div class="cell"><span class="k">AUDIT</span><span class="v">PER-QUERY</span><span class="t">EXPLAIN-PLAN<br><span class="accent">PHI-ACCESS LOG</span></span><span class="b">Every retrieval is structured audit: principal, query, rows returned, cost. Exportable to compliance teams.</span></div>
- <div class="cell"><span class="k">CONSOLIDATION</span><span class="v">4 → 1</span><span class="t">RETRIEVAL STACKS<br><span class="accent">UNIFIED</span></span><span class="b">EHR analytics + research RAG + clinical agent memory + SIEM on one platform.</span></div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>DROP-IN ES 8.13</span><span class="dash">·</span><span>BYOK · TENANT-ISOLATED · HIPAA BAA ON ENTERPRISE</span></div>
- </div>
- <div class="foot-row"><span>XERJ · HEALTHCARE &amp; LIFE SCIENCES · INDUSTRY BRIEF</span><span class="num">03 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>04 · REFERENCE ARCHITECTURE</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>HEALTHCARE BLUEPRINT</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">CLINICAL<br>BOUNDARIES.<br><span class="accent">ONE PLATFORM.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Two XERJ environments split by data-classification boundary. Same binary, same audit model, different PHI scopes.</p>
- <div class="sp-4"></div>
- <div class="arch-pre"><span class="accent">DOMAIN A · CLINICAL OPERATIONS</span> PHI · inside hospital VPC
- Sources: Epic / Cerner analytic extracts · HL7 · FHIR · device telemetry
- │
- ▼
- XERJ cluster · 3-node HA · HIPAA BAA scope
- Workloads:
- · ambient scribe RAG (encounter notes + patient history)
- · clinical decision support (retrieval from local KB)
- · care-gap detection via longitudinal record queries
- · patient-portal copilot (scoped to the patient)
- Retention: encounter 7 y · audit 10 y · PHI tombstones tracked
-
-<span class="accent">DOMAIN B · RESEARCH &amp; OPERATIONS</span> de-identified · research enclave
- Sources: genomics · imaging · publication corpus · trial registries
- │
- ▼
- XERJ cluster · 3-node HA · de-identified + consented
- Workloads:
- · researcher RAG (pubs + internal corpus)
- · trial-matching over eligibility criteria
- · imaging similarity (radiologist second opinion)
- Retention: research 10 y · trial lifecycle + regulatory minimums
-
-<span class="accent">SHARED</span>
- Enterprise KMS (BYOK roadmap Q2) · SAML/OIDC tied to directory
- Per-tenant indices by service line · mutual TLS between services
-</div>
- <div class="grow"></div>
- <div class="kicker"><span>ONE BINARY · TWO PERIMETERS</span><span class="dash">·</span><span>PHI NEVER LEAVES DOMAIN A</span></div>
- </div>
- <div class="foot-row"><span>XERJ · HEALTHCARE &amp; LIFE SCIENCES · INDUSTRY BRIEF</span><span class="num">04 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>05 · HEALTHCARE USE CASES</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>WHERE XERJ APPLIES</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">CARE.<br>RESEARCH.<br><span class="accent">OPERATIONS.</span></h2>
- <div class="sp-4"></div>
- <p class="body">The AI workloads that dominate health-system and life-sciences roadmaps. Each maps to one XERJ deployment pattern.</p>
- <div class="sp-6"></div>
- <div class="matrix m3">
- <div class="h">WORKLOAD</div><div class="h">PATTERN</div><div class="h">STORE</div>
-
- <div class="k">AMBIENT SCRIBE</div><div>Encounter transcripts + patient history retrieved in real time. Hybrid keyword + vector against chart data. Agent memory per encounter.</div><div class="status ga">HYBRID</div>
-
- <div class="k">CLINICAL DECISION</div><div>Guideline + local-policy retrieval at the order-entry moment. Latency inside EHR round-trip budget. Per-specialty RBAC.</div><div class="status ga">FTS</div>
-
- <div class="k">PATIENT PORTAL COPILOT</div><div>Patient-scoped agent retrieves from their own chart + approved KB. Session-isolated agent memory. Time-decay for recent encounters.</div><div class="status ga">HYBRID</div>
-
- <div class="k">RESEARCHER RAG</div><div>PubMed mirror + internal corpus · hybrid retrieval for literature review. De-identified workspace. Re-embed on corpus refresh.</div><div class="status ga">VECTOR</div>
-
- <div class="k">TRIAL MATCHING</div><div>Eligibility criteria as retrievable structured queries. Match patient cohort against protocol criteria in milliseconds.</div><div class="status ga">HYBRID</div>
-
- <div class="k">IMAGING SIMILARITY</div><div>Radiology-image embeddings stored alongside metadata. Hybrid: keyword filter (modality / anatomy) + vector nearest neighbors.</div><div class="status ga">VECTOR</div>
-
- <div class="k">CLAIMS / BILLING</div><div>Denials analysis · remark-code clustering · retrieval-augmented appeal-letter generation. Revenue-cycle automation on unified data plane.</div><div class="status ga">COLUMNAR</div>
-
- <div class="k">SOC / SIEM</div><div>Health-system cyber SOC · MTTD in milliseconds · unified with cloud audit + identity logs. Inherits the HIPAA Security Rule posture.</div><div class="status ga">LOGS</div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>EIGHT WORKLOADS</span><span class="dash">·</span><span>ONE PLATFORM · ONE AUDIT TRAIL</span></div>
- </div>
- <div class="foot-row"><span>XERJ · HEALTHCARE &amp; LIFE SCIENCES · INDUSTRY BRIEF</span><span class="num">05 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>06 · COMPLIANCE POSTURE</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>06</span><span class="dash">·</span><span>COMPLIANCE &amp; PRIVACY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">PHI-GRADE.<br><span class="accent">BY DEFAULT.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Controls required to meet HIPAA Security Rule / Privacy Rule, HITECH breach notification, and equivalent national health-data regulations. Self-hosted means most obligations flow from customer controls — XERJ supplies the engineered-in controls auditors expect to see.</p>
- <div class="sp-6"></div>
- <div class="compliance">
- <div class="h">STANDARD</div><div class="h">RELEVANCE</div><div class="h">STATUS</div>
-
- <div class="k">HIPAA · HITECH</div><div>BAA on Enterprise tier · self-hosted inherits customer Security Rule posture</div><div class="status road">BAA 2027</div>
- <div class="k">PHI ENCRYPTION AT REST</div><div>AES-256-GCM on segment + WAL · keys in external KMS</div><div class="status beta">BETA</div>
- <div class="k">BYOK</div><div>Customer-managed keys · no XERJ-side plaintext · rotation without downtime</div><div class="status road">ROAD Q2</div>
- <div class="k">GDPR ART. 9 HEALTH</div><div>Explicit consent · right to erasure · cross-border transfer controls · self-hosted in region</div><div class="status ga">GA</div>
- <div class="k">SOC 2 TYPE I</div><div>Platform controls for SaaS offering</div><div class="status road">ROAD Q3 2026</div>
- <div class="k">ISO 27001</div><div>ISMS for platform engineering</div><div class="status road">ROAD Q4 2026</div>
- <div class="k">HITRUST CSF</div><div>Inherits agency controls · commercial roadmap 2027</div><div class="status road">ROAD 2027</div>
- <div class="k">FDA GOOD MACHINE LEARNING</div><div>Per-query explain-plan aligns with change-control + audit-trail expectations</div><div class="status ga">GA</div>
- </div>
- <div class="sp-4"></div>
- <div class="kv-row"><div class="k">AUDIT ARTIFACT</div><div class="v">Every retrieval produces a structured log: principal, query, index, row-count, cost. Exportable as HIPAA PHI-access audit. Replayable for breach-investigation drills.</div></div>
- <div class="kv-row"><div class="k">DATA LIFECYCLE</div><div class="v">Per-tenant, per-index retention policies. Patient-right-of-erasure supported through tombstone + segment-level compaction. Tombstones survive rebuilds.</div></div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · HEALTHCARE &amp; LIFE SCIENCES · INDUSTRY BRIEF</span><span class="num">06 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>07 · INTEGRATION ECOSYSTEM</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>07</span><span class="dash">·</span><span>CLINICAL STACK · INTEGRATED</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">EHR.<br>EMPI.<br><span class="accent">ALL-IN.</span></h2>
- <div class="sp-4"></div>
- <p class="body">The clinical and research tools a health system already runs integrate via standards (FHIR, HL7, DICOM-metadata, ES wire, OTLP) rather than bespoke connectors.</p>
- <div class="sp-6"></div>
- <div class="matrix m3">
- <div class="h">CATEGORY</div><div class="h">TOOLS</div><div class="h">STATUS</div>
-
- <div class="k">EHR</div><div>Epic · Cerner / Oracle Health · Meditech · Athenahealth — via FHIR bulk export + HL7 v2 feed + CDC streams</div><div class="status ga">GA</div>
-
- <div class="k">EMPI / MDM</div><div>IBM Initiate · Rhapsody · Redox · via patient-ID resolver service that queries XERJ</div><div class="status ga">GA</div>
-
- <div class="k">IMAGING</div><div>DICOM-metadata ingest · PACS integration via HTTP proxy · image embeddings stored with study metadata</div><div class="status ga">GA</div>
-
- <div class="k">LAB / LIS</div><div>HL7 ORU messages · LOINC-coded results · ingested as structured events</div><div class="status ga">GA</div>
-
- <div class="k">IDENTITY</div><div>OIDC · SAML · enterprise AD · SMART-on-FHIR for clinical apps · SCIM provisioning</div><div class="status road">ROAD Q2</div>
-
- <div class="k">AI FRAMEWORKS</div><div>LangChain · LlamaIndex · Haystack · DSPy · via ES retriever · clinical embedder options (OpenAI · Voyage · Gemini · self-hosted)</div><div class="status ga">GA</div>
-
- <div class="k">DE-IDENTIFICATION</div><div>Safe-Harbor / Expert-Determination rules applied pre-index via Vector / Otel processor · plug-in de-identifier services</div><div class="status ga">GA</div>
-
- <div class="k">RESEARCH</div><div>PubMed mirror · clinicaltrials.gov · internal publication store · OMOP / CDM data marts</div><div class="status ga">GA</div>
-
- <div class="k">REVENUE CYCLE</div><div>837/835 claim data · denial-reason code retrieval · prior-auth workflow agents · via ES API</div><div class="status ga">GA</div>
- </div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · HEALTHCARE &amp; LIFE SCIENCES · INDUSTRY BRIEF</span><span class="num">07 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>08 · MEASURED OUTCOMES</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>08</span><span class="dash">·</span><span>MEASURED vs LEGACY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">NUMBERS<br>CLINICIANS<br><span class="accent">DON'T NOTICE.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Clinical AI succeeds when the retrieval layer is invisible. These are the latency and footprint numbers that make invisibility possible.</p>
- <div class="sp-6"></div>
- <div class="versus">
- <div class="h">METRIC</div>
- <div class="h a">XERJ</div>
- <div class="h">LEGACY STACK</div>
-
- <div class="dim">Hybrid retrieval p95 · 1 B vectors</div>
- <div><span class="accent">38 ms</span></div>
- <div>100–250 ms (orchestrator)</div>
-
- <div class="dim">Ambient-scribe lookup · in-session</div>
- <div><span class="accent">&lt; 40 ms</span></div>
- <div>typically &gt; 150 ms</div>
-
- <div class="dim">Vector memory · 10 M × 1.5 K</div>
- <div><span class="accent">18 GB</span></div>
- <div>92 GB <span class="mute">— 5.1×</span></div>
-
- <div class="dim">Recall @ 10 vs float32</div>
- <div><span class="accent">&lt; 0.5 pp loss</span></div>
- <div>baseline</div>
-
- <div class="dim">Cold start</div>
- <div><span class="accent">50 ms</span></div>
- <div>~15 s JVM warm-up</div>
-
- <div class="dim">Per-query PHI audit</div>
- <div><span class="accent">native · explain-plan</span></div>
- <div>application plumbing</div>
-
- <div class="dim">PHI data egress</div>
- <div><span class="accent">0 (self-hosted)</span></div>
- <div>varies by vendor</div>
-
- <div class="dim">Deploy footprint</div>
- <div><span class="accent">13 MB binary</span></div>
- <div>~620 MB JAR + JRE</div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">CLINICAL IMPACT</div><div class="v">Ambient scribes keep pace with conversation. CDS alerts fire inside order-entry latency budgets. Researcher RAG replaces a literature review that used to take hours.</div></div>
- <div class="kv-row"><div class="k">FINANCIAL IMPACT</div><div class="v">Vector-DB + session-cache + SIEM contracts collapse to one. ~80 % infrastructure reduction on the consolidated stack. BAA scope reduced to one vendor.</div></div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · HEALTHCARE &amp; LIFE SCIENCES · INDUSTRY BRIEF</span><span class="num">08 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>09 · IMPLEMENTATION PATH</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>09</span><span class="dash">·</span><span>FIVE PHASES · ONE YEAR</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">NON-PHI.<br>DE-ID.<br><span class="accent">PHI.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Health-system rollouts start outside the PHI boundary, graduate to de-identified workloads, then move into the PHI environment once the BAA and CISO-office reviews complete.</p>
- <div class="sp-6"></div>
- <div class="road-rail">
- <div class="q">01</div><div class="t">NON-PHI PILOT<br><span class="accent">WEEKS 1–2</span></div><div>Dev environment · open-data corpus (PubMed subset) · reproduce RAG_BENCH · CISO + privacy-office architectural review · draft data-flow diagrams.</div>
-
- <div class="q">02</div><div class="t">DE-ID UAT<br><span class="accent">MONTHS 1–3</span></div><div>De-identified clinical corpus · Safe-Harbor pipeline · initial RAG workloads for researchers · BAA conversation opened · initial DPIA / privacy impact assessment.</div>
-
- <div class="q">03</div><div class="t">PHI PILOT<br><span class="accent">QUARTER 2</span></div><div>BAA executed · production-adjacent PHI scope · ambient-scribe or patient-portal pilot · KMS integration · audit-trail validation with privacy office.</div>
-
- <div class="q">04</div><div class="t">CLINICAL PRODUCTION<br><span class="accent">QUARTER 3</span></div><div>First PHI workload at production scale · EHR-adjacent deployment · per-encounter audit logs flowing into compliance dashboards.</div>
-
- <div class="q">05</div><div class="t">PLATFORM CONSOLIDATION<br><span class="accent">QUARTER 4</span></div><div>Second + third PHI workload · vector-DB contract retired · unified retrieval platform owned by the data team · board metrics live.</div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>PHI NEVER LEAVES THE PERIMETER</span><span class="dash">·</span><span>REVERSIBLE AT EVERY PHASE</span></div>
- </div>
- <div class="foot-row"><span>XERJ · HEALTHCARE &amp; LIFE SCIENCES · INDUSTRY BRIEF</span><span class="num">09 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>10 · GET STARTED</span></div>
- <div class="grow flex col">
- <div class="sp-10"></div>
- <div class="kicker"><span>10</span><span class="dash">·</span><span>NEXT STEPS</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">PROVE IT.<br><span class="accent">OUTSIDE PHI.</span></h2>
- <div class="sp-6"></div>
- <p class="body">A two-week non-PHI pilot. Open-data corpus. Architecture review with your CISO and privacy office. A dated BAA conversation on day one if Enterprise tier is in scope.</p>
- <div class="sp-10"></div>
- <div style="padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);">
- <div class="kicker"><span>HEALTHCARE CONTACT</span></div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-display); font-weight: 900; font-size: 42pt; line-height:1; letter-spacing: 0.01em;">HELLO<span class="accent">@</span>XERJ.AI</div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-data); font-size: 9pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--mute);">XERJ.AI · XERJ.COM · XERJ.DEV</div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">WHAT YOU GET</div><div class="v">Private binary · PubMed-subset embedding pipeline · Vector de-id processor config · HIPAA Security-Rule control crosswalk · audit-log export example.</div></div>
- <div class="kv-row"><div class="k">COMPANION BRIEFS</div><div class="v"><span class="mono">xerj-tech-brief.pdf</span> (architect) · <span class="mono">xerj-usecase-rag.pdf</span> (RAG) · <span class="mono">xerj-usecase-security.pdf</span> (cyber SOC)</div></div>
- <div class="grow"></div>
- <div class="kicker"><span>XERJ.AI · HEALTHCARE &amp; LIFE SCIENCES · INDUSTRY BRIEF</span><span class="dash">·</span><span>V1 · 2026-04</span></div>
- </div>
- <div class="foot-row"><span>XERJ · HEALTHCARE &amp; LIFE SCIENCES · INDUSTRY BRIEF</span><span class="num">10 / 10</span></div>
-</section>
-
-</body>
-</html>
diff --git a/brief/kit/src/industry-public-sector.html b/brief/kit/src/industry-public-sector.html
deleted file mode 100644
index f92a41add..000000000
--- a/brief/kit/src/industry-public-sector.html
+++ /dev/null
@@ -1,326 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ — Public Sector — Industry Brief</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<link rel="stylesheet" href="../common.css">
-</head>
-<body>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>INDUSTRY · PUBLIC SECTOR · V1 · 2026-04</span></div>
- <div class="grow flex col between">
- <div class="sp-10"></div>
- <div>
- <div class="kicker" style="margin-bottom:20px;"><span>INDUSTRY BRIEF</span><span class="dash">·</span><span>FOR CIO · CISO · CTO · HEAD OF DATA · CCIO</span></div>
- <div class="cover-hero">GOVERNMENT<br>AI.<br><span class="accent">AIR-GAPPED.</span><br>SOVEREIGN.</div>
- <div class="sp-8"></div>
- <p class="lead" style="max-width:6in;">Public-sector AI cannot depend on a retrieval vendor reachable over the commercial internet. XERJ is a single Rust binary that runs inside a sealed rack, a SCIF, or a national-cloud enclave — with every retrieval primitive an AI workload needs and zero telemetry egress when air-gap mode is on.</p>
- </div>
- <div class="kicker"><span>AIR-GAP-READY</span><span class="dash">·</span><span>SOVEREIGN DEPLOYMENT</span><span class="dash">·</span><span>SIGNED OFFLINE UPDATES</span></div>
- </div>
- <div class="foot-row"><span>XERJ · PUBLIC SECTOR · INDUSTRY BRIEF</span><span class="num">01 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>02 · PUBLIC SECTOR AI PROBLEM</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>WHY THIS MATTERS NOW</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">AI MANDATES<br>MEET THE<br><span class="accent">ATO REALITY.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Every national government has published an AI strategy. Every agency has been told to adopt one. Every CIO has discovered the same constraint: the AI retrieval stack most commercial vendors ship cannot pass an ATO (Authority-to-Operate) review because it depends on infrastructure outside the perimeter.</p>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">DATA SOVEREIGNTY</div><div class="v">Citizen data, classified material, and intelligence must not leave the national perimeter. A hosted vector DB in a commercial region fails before the conversation starts.</div></div>
- <div class="kv-row"><div class="k">AIR-GAP REQUIREMENT</div><div class="v">Classified networks, SCIFs, and defence enclaves have no internet. Installing, updating, and operating the retrieval layer must work offline with signed artifacts.</div></div>
- <div class="kv-row"><div class="k">LONG ATO CYCLES</div><div class="v">A new piece of infrastructure takes quarters to accredit. The less the retrieval stack is — binaries, network dependencies, third-party SaaS — the faster the ATO.</div></div>
- <div class="kv-row"><div class="k">FedRAMP / IL5 / CJIS</div><div class="v">Controls frameworks vary by mission. The retrieval layer must produce audit artifacts in the shape regulators already accept. Custom logging pipelines delay everything.</div></div>
- <div class="grow"></div>
- <div class="kicker"><span>PUBLIC-SECTOR AI NEEDS A SOVEREIGN DATA PLANE</span></div>
- </div>
- <div class="foot-row"><span>XERJ · PUBLIC SECTOR · INDUSTRY BRIEF</span><span class="num">02 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>03 · XERJ POSITIONING</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>SOVEREIGN AI DATA STACK</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ONE BINARY.<br>AIR-GAP MODE.<br><span class="accent">SIGNED UPDATES.</span></h2>
- <div class="sp-4"></div>
- <p class="body">13 MB static binary. Runs on Linux, on a sealed rack, in a SCIF. Offline install + signed release manifest. When <span class="mono">XERJ_AIRGAP=1</span> is set, zero telemetry egress — no phone-home, no update check, no license ping.</p>
- <div class="sp-6"></div>
- <div class="quad-grid">
- <div class="cell"><span class="k">FOOTPRINT</span><span class="v">13 MB</span><span class="t">STATIC BINARY<br><span class="accent">OFFLINE-DEPLOYABLE</span></span><span class="b">Ship on media. Verify signed manifest. Run on any Linux box. No JVM, no JRE, no dependency graph.</span></div>
- <div class="cell"><span class="k">AIR-GAP</span><span class="v">1 ENV VAR</span><span class="t">NO TELEMETRY<br><span class="accent">NO PHONE HOME</span></span><span class="b"><span class="mono">XERJ_AIRGAP=1</span> disables all egress. Offline-update channel · signed bundle · installable into a SCIF.</span></div>
- <div class="cell"><span class="k">SOVEREIGNTY</span><span class="v">100 %</span><span class="t">ON YOUR<br><span class="accent">HARDWARE</span></span><span class="b">No commercial cloud dependency. National-cloud, on-prem, or classified enclave. Data never leaves the perimeter.</span></div>
- <div class="cell"><span class="k">ACCREDITATION</span><span class="v">SBOM</span><span class="t">SIGNED BUILDS<br><span class="accent">SBOM + SLSA</span></span><span class="b">Every release ships an SBOM. SLSA-compliant provenance (roadmap Q3). Cross-walkable to FedRAMP Moderate + IL5 controls.</span></div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>ONE BINARY · ONE RUNBOOK</span><span class="dash">·</span><span>AUDITABLE TOP TO BOTTOM</span></div>
- </div>
- <div class="foot-row"><span>XERJ · PUBLIC SECTOR · INDUSTRY BRIEF</span><span class="num">03 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>04 · REFERENCE ARCHITECTURE</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>AIR-GAPPED BLUEPRINT</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SEALED RACK.<br><span class="accent">ONE BINARY.</span></h2>
- <div class="sp-4"></div>
- <p class="body">A three-node XERJ cluster inside a classified enclave. No outbound connectivity. Offline-update channel through a data-diode. Same binary, same configuration surface as a commercial deployment.</p>
- <div class="sp-4"></div>
- <div class="arch-pre"><span class="accent">CLASSIFIED ENCLAVE</span> no-internet · signed-media only · physical access control
- ┌──────────────────────────────────────────────────────────────┐
- │ DATA SOURCES (inside the perimeter) │
- │ ops logs · sensor feeds · mission docs · archival data │
- │ │ │
- │ ▼ │
- │ OTEL COLLECTOR (on-prem build) + Vector / Fluent Bit │
- │ │ │
- │ ▼ │
- │ ┌────────────────────────────────────────────────────┐ │
- │ │ XERJ CLUSTER 3-node HA AIRGAP=1 │ │
- │ │ │ │
- │ │ FTS · VECTOR · COLUMNAR · AGENT MEMORY │ │
- │ │ encrypted segments (AES-256-GCM · BYOK) │ │
- │ │ RBAC (roadmap Q2) · per-tenant isolation │ │
- │ └────────────────────────────────────────────────────┘ │
- │ │ │
- │ ▼ │
- │ CONSUMERS │
- │ mission analysts · internal dashboards │
- │ AI agents running on approved model weights │
- │ ┌────────────────────────────────────────────────────┐ │
- │ │ UPDATES │ │
- │ │ signed offline bundle delivered via data-diode │ │
- │ │ manifest verified before install │ │
- │ │ rollback supported across one-minor-version │ │
- │ └────────────────────────────────────────────────────┘ │
- └──────────────────────────────────────────────────────────────┘
-
- <span class="mute">no outbound · no telemetry · no license ping · no update probe</span></div>
- <div class="grow"></div>
- <div class="kicker"><span>SIZING</span><span class="dash">·</span><span>3-NODE HA · OFFLINE OPERATION · ONE-MINOR-VERSION ROLLBACK</span></div>
- </div>
- <div class="foot-row"><span>XERJ · PUBLIC SECTOR · INDUSTRY BRIEF</span><span class="num">04 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>05 · PUBLIC SECTOR USE CASES</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>WHERE XERJ APPLIES</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">MISSION.<br>OPERATIONS.<br><span class="accent">SERVICES.</span></h2>
- <div class="sp-4"></div>
- <p class="body">The AI workloads every public-sector CIO has on the 24-month roadmap. Each maps to one XERJ deployment pattern.</p>
- <div class="sp-6"></div>
- <div class="matrix m3">
- <div class="h">WORKLOAD</div><div class="h">PATTERN</div><div class="h">STORE</div>
-
- <div class="k">CITIZEN SERVICES</div><div>Retrieval-augmented case workers across benefits, tax, licensing. Sovereign RAG over agency knowledge bases. Per-agency RBAC.</div><div class="status ga">HYBRID</div>
-
- <div class="k">DEFENCE INTEL</div><div>Semantic search over classified reports, OSINT, sensor feeds. Air-gap-mandatory. Agent memory for investigation sessions.</div><div class="status ga">VECTOR</div>
-
- <div class="k">CYBER SOC</div><div>Federal / state SOC over log fleet. MTTD in milliseconds. SIEM battery 74× faster than legacy on 1 M events.</div><div class="status ga">LOGS</div>
-
- <div class="k">LEGISLATIVE ANALYSIS</div><div>Bill text, precedent case law, policy documents · hybrid BM25 + vector search for research staff and committees.</div><div class="status ga">HYBRID</div>
-
- <div class="k">AUDIT &amp; IG</div><div>Inspector-general workflows · retrieval across contract records, financial transactions, correspondence. Legal-hold markers.</div><div class="status ga">FTS</div>
-
- <div class="k">EMERGENCY RESPONSE</div><div>Real-time ingest of sensor + situational data + responder comms. Unified retrieval for command-and-control agents.</div><div class="status ga">HYBRID</div>
-
- <div class="k">BIOMEDICAL RESEARCH</div><div>Grant portfolios, publication corpus, clinical-trial registries. RAG for research-officer productivity. Per-agency quotas.</div><div class="status ga">VECTOR</div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>ALL SEVEN</span><span class="dash">·</span><span>ON ONE XERJ PLATFORM · AIR-GAP-CAPABLE</span></div>
- </div>
- <div class="foot-row"><span>XERJ · PUBLIC SECTOR · INDUSTRY BRIEF</span><span class="num">05 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>06 · ACCREDITATION POSTURE</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>06</span><span class="dash">·</span><span>ATO-READY CONTROLS</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">BUILDING<br>BLOCKS FOR<br><span class="accent">ATO.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Self-hosted means most accreditation scope is inherited from agency controls. XERJ supplies the engineered-in controls the ATO body expects to see in the submission.</p>
- <div class="sp-6"></div>
- <h4>STANDARDS &amp; CERTIFICATIONS</h4>
- <div class="sp-2"></div>
- <div class="compliance">
- <div class="h">STANDARD</div><div class="h">RELEVANCE</div><div class="h">STATUS</div>
-
- <div class="k">FedRAMP MODERATE</div><div>Commercial SaaS offering; self-hosted inherits agency baseline</div><div class="status road">ROAD 2027</div>
- <div class="k">FedRAMP HIGH</div><div>Higher-impact workloads · planning phase</div><div class="status road">ROAD 2027+</div>
- <div class="k">DoD IL5</div><div>BYOK + FIPS-validated crypto + air-gap · engineering scope ready · accreditation roadmap</div><div class="status road">ROAD 2027</div>
- <div class="k">CJIS</div><div>Tenant isolation + audit trail + encryption at rest + access control</div><div class="status yes">INHERITED (SELF-HOSTED)</div>
- <div class="k">NIST 800-53 REV5</div><div>Controls cross-walk available · security control implementation summary (SCIS) template</div><div class="status ga">GA</div>
- <div class="k">NIST AI RMF</div><div>Per-query explain-plan + audit trail aligns with "measure" + "manage" functions</div><div class="status ga">GA</div>
- <div class="k">ISO 27001</div><div>ISMS scope · commercial track</div><div class="status road">ROAD Q4 2026</div>
- <div class="k">CMMC Lvl 2</div><div>DFARS 252.204-7012 · self-hosted inherits organizational controls</div><div class="status yes">INHERITED</div>
- </div>
- <div class="sp-4"></div>
- <div class="kv-row"><div class="k">SUPPLY CHAIN</div><div class="v">Every release ships an SBOM. SLSA-compliant provenance (roadmap Q3). Reproducible builds. Signed Git tags + signed artifact manifests.</div></div>
- <div class="kv-row"><div class="k">CRYPTO</div><div class="v">AES-256-GCM at rest · TLS 1.3 in transit · FIPS 140-2 validation (roadmap 2027). BYOK via KMS / HSM · Thales Luna · CloudHSM · AWS KMS.</div></div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · PUBLIC SECTOR · INDUSTRY BRIEF</span><span class="num">06 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>07 · INTEGRATION ECOSYSTEM</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>07</span><span class="dash">·</span><span>GOVERNMENT STACK · INTEGRATED</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">YOUR STACK.<br><span class="accent">APPROVED.</span></h2>
- <div class="sp-4"></div>
- <p class="body">The tools agencies already run — ES-backed SIEMs, PIV / CAC authentication, Red Hat / Oracle Linux · air-gapped KMS — work out of the box.</p>
- <div class="sp-6"></div>
- <div class="matrix m3">
- <div class="h">CATEGORY</div><div class="h">TOOLS</div><div class="h">STATUS</div>
-
- <div class="k">OS / RUNTIME</div><div>RHEL · Oracle Linux · Ubuntu LTS · SUSE · amd64 + aarch64 · offline RPM / DEB bundle</div><div class="status ga">GA</div>
-
- <div class="k">IDENTITY</div><div>PIV / CAC · smart-card via OIDC bridge · SAML 2.0 · Active Directory · Okta · agency IdP</div><div class="status road">ROAD Q2</div>
-
- <div class="k">CLOUD</div><div>AWS GovCloud · Azure Gov · GCP Assured Workloads · Oracle Gov Cloud · VMware on-prem</div><div class="status ga">GA</div>
-
- <div class="k">KMS / HSM</div><div>Thales Luna · AWS CloudHSM · Azure Dedicated HSM · HashiCorp Vault (FIPS) · BYOK</div><div class="status road">ROAD Q2</div>
-
- <div class="k">SIEM</div><div>Wazuh · Elastic Security · commercial SIEMs via ES wire · Sigma rule conversion</div><div class="status ga">GA</div>
-
- <div class="k">COLLECTORS</div><div>Otel Collector (on-prem) · Vector · Fluent Bit · Filebeat · syslog TCP/UDP listeners (roadmap)</div><div class="status ga">GA</div>
-
- <div class="k">AGENT FRAMEWORKS</div><div>LangChain · LlamaIndex · Haystack · DSPy · local model weights · air-gapped RAG pipelines</div><div class="status ga">GA</div>
-
- <div class="k">BACKUP / DR</div><div>Object storage (S3-compatible) · on-prem S3 appliances · incremental, encrypted, restorable per segment</div><div class="status ga">GA</div>
-
- <div class="k">STIG / HARDENING</div><div>Config templates aligned with STIG controls · CIS benchmark · hardened container images (planned)</div><div class="status road">ROAD Q3</div>
- </div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · PUBLIC SECTOR · INDUSTRY BRIEF</span><span class="num">07 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>08 · MEASURED OUTCOMES</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>08</span><span class="dash">·</span><span>OPERATIONAL MEASURED</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">NUMBERS.<br><span class="accent">REPRODUCIBLE.</span></h2>
- <div class="sp-4"></div>
- <p class="body">The performance profile an agency cares about is the one that fits inside a constrained deployment envelope. XERJ numbers on a single node against a 4-node ES baseline.</p>
- <div class="sp-6"></div>
- <div class="versus">
- <div class="h">METRIC</div>
- <div class="h a">XERJ</div>
- <div class="h">LEGACY (ES 8.13)</div>
-
- <div class="dim">Binary footprint</div>
- <div><span class="accent">13 MB</span></div>
- <div>~620 MB JAR + JRE <span class="mute">— 56×</span></div>
-
- <div class="dim">Cold start</div>
- <div><span class="accent">50 ms</span></div>
- <div>~15 s JVM warm-up <span class="mute">— 300×</span></div>
-
- <div class="dim">Idle memory</div>
- <div><span class="accent">400 MB</span></div>
- <div>8.5 GB (4-node) <span class="mute">— 21×</span></div>
-
- <div class="dim">SIEM agg p95 · 1 M events</div>
- <div><span class="accent">0.4 ms</span></div>
- <div>29.8 ms <span class="mute">— 74×</span></div>
-
- <div class="dim">Disk · 1 M events</div>
- <div><span class="accent">85 MB</span></div>
- <div>240 MB <span class="mute">— 2.8×</span></div>
-
- <div class="dim">Network dependencies</div>
- <div><span class="accent">0 external</span></div>
- <div>varies</div>
-
- <div class="dim">Offline-install time</div>
- <div><span class="accent">&lt; 5 min</span></div>
- <div>hours (JRE · deps · config)</div>
-
- <div class="dim">Audit artifact per query</div>
- <div><span class="accent">explain-plan built in</span></div>
- <div>application-level plumbing</div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">MISSION IMPACT</div><div class="v">Smaller deploy footprint fits inside ATO boundaries that reject JVM-based stacks. Offline-operation capability means accreditation bodies approve the same binary deployed in commercial and classified enclaves.</div></div>
- <div class="kv-row"><div class="k">SOURCES</div><div class="v"><span class="mono">SIEM_BATTLE_2026-04-14</span> · <span class="mono">CLUSTER_BATTLE_2026-04-14</span> · <span class="mono">CAPPED_RAM_BATTLE_2026-04-13</span> — all reproducible with scripts that ship with the binary.</div></div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · PUBLIC SECTOR · INDUSTRY BRIEF</span><span class="num">08 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>09 · IMPLEMENTATION PATH</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>09</span><span class="dash">·</span><span>FROM POC TO ATO</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">LAB.<br>UAT.<br><span class="accent">PRODUCTION.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Public-sector deployments start in an unclassified lab, graduate to a low-side UAT, and finally cross into the production enclave once the ATO evidence is complete.</p>
- <div class="sp-6"></div>
- <div class="road-rail">
- <div class="q">01</div><div class="t">UNCLASSIFIED LAB<br><span class="accent">WEEKS 1–4</span></div><div>Install on an unclass lab network · reproduce SIEM_BATTLE + RAG_BENCH on open data · architecture review with agency CISO · draft ATO package outline.</div>
-
- <div class="q">02</div><div class="t">UAT · LOW-SIDE<br><span class="accent">MONTHS 2–4</span></div><div>Deploy in low-side staging · integrate with agency IdP · conduct vulnerability + penetration testing · finalize ATO package · interim authority considerations.</div>
-
- <div class="q">03</div><div class="t">ATO AUTHORIZATION<br><span class="accent">MONTH 5</span></div><div>Submit accreditation package · respond to ARs · obtain ATO. NIST 800-53 crosswalk and SBOM accelerate review.</div>
-
- <div class="q">04</div><div class="t">PRODUCTION ENCLAVE<br><span class="accent">MONTHS 6–9</span></div><div>Deploy to production perimeter · air-gap mode on · offline-update channel commissioned · first mission workload migrated · runbooks handed to ops team.</div>
-
- <div class="q">05</div><div class="t">MULTI-MISSION<br><span class="accent">QUARTER 4</span></div><div>Additional mission workloads migrate onto the same data plane · tenant-isolated indices · shared RBAC and audit trail · consolidated ops surface.</div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>OFFLINE-OPERATION</span><span class="dash">·</span><span>SIGNED UPDATES · REVERSIBLE AT EVERY PHASE</span></div>
- </div>
- <div class="foot-row"><span>XERJ · PUBLIC SECTOR · INDUSTRY BRIEF</span><span class="num">09 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>10 · GET STARTED</span></div>
- <div class="grow flex col">
- <div class="sp-10"></div>
- <div class="kicker"><span>10</span><span class="dash">·</span><span>NEXT STEPS</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">PROVE IT.<br><span class="accent">IN YOUR LAB.</span></h2>
- <div class="sp-6"></div>
- <p class="body">An unclassified lab pilot. Offline-install bundle. Reproduction scripts for the SIEM and RAG battle reports on open data. Architecture review with your CISO / accreditation body.</p>
- <div class="sp-10"></div>
- <div style="padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);">
- <div class="kicker"><span>PUBLIC SECTOR CONTACT</span></div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-display); font-weight: 900; font-size: 42pt; line-height:1; letter-spacing: 0.01em;">HELLO<span class="accent">@</span>XERJ.AI</div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-data); font-size: 9pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--mute);">XERJ.AI · XERJ.COM · XERJ.DEV</div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">LAB KIT</div><div class="v">Offline-install bundle · signed manifest · SBOM · NIST 800-53 crosswalk · SIEM_BATTLE + RAG_BENCH reproduction scripts.</div></div>
- <div class="kv-row"><div class="k">COMPANION BRIEFS</div><div class="v"><span class="mono">xerj-tech-brief.pdf</span> (architect) · <span class="mono">xerj-usecase-security.pdf</span> (cyber SOC) · <span class="mono">xerj-usecase-rag.pdf</span> (research RAG)</div></div>
- <div class="grow"></div>
- <div class="kicker"><span>XERJ.AI · PUBLIC SECTOR · INDUSTRY BRIEF</span><span class="dash">·</span><span>V1 · 2026-04</span></div>
- </div>
- <div class="foot-row"><span>XERJ · PUBLIC SECTOR · INDUSTRY BRIEF</span><span class="num">10 / 10</span></div>
-</section>
-
-</body>
-</html>
diff --git a/brief/kit/src/industry-retail.html b/brief/kit/src/industry-retail.html
deleted file mode 100644
index db3cecc54..000000000
--- a/brief/kit/src/industry-retail.html
+++ /dev/null
@@ -1,325 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ — Retail &amp; Consumer — Industry Brief</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<link rel="stylesheet" href="../common.css">
-</head>
-<body>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>INDUSTRY · RETAIL &amp; CONSUMER · V1 · 2026-04</span></div>
- <div class="grow flex col between">
- <div class="sp-10"></div>
- <div>
- <div class="kicker" style="margin-bottom:20px;"><span>INDUSTRY BRIEF</span><span class="dash">·</span><span>FOR CIO · CTO · HEAD OF AI · HEAD OF DATA · CDO</span></div>
- <div class="cover-hero">PRODUCT<br>SEARCH.<br>RAG.<br><span class="accent">ONE STORE.</span></div>
- <div class="sp-8"></div>
- <p class="lead" style="max-width:6in;">Retail AI lives at the seam between product catalog, user behavior, and conversational commerce. XERJ runs the catalog search, the embedding index, the session memory, and the observability data plane in one self-hosted process — compatible with the Elasticsearch your e-commerce stack already expects.</p>
- </div>
- <div class="kicker"><span>CATALOG + RAG + SESSIONS</span><span class="dash">·</span><span>ONE PLATFORM</span><span class="dash">·</span><span>DROP-IN</span></div>
- </div>
- <div class="foot-row"><span>XERJ · RETAIL &amp; CONSUMER · INDUSTRY BRIEF</span><span class="num">01 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>02 · RETAIL AI PROBLEM</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>WHY THIS MATTERS NOW</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SEARCH USED<br>TO BE BM25.<br><span class="accent">NOW IT IS AI.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Conversational commerce, agent-assisted servicing, semantic catalog search — every retail AI initiative demands the same retrieval primitive: a keyword filter plus a semantic similarity plus a personalization signal, executed inside the page-render budget. Most retailers' existing Elasticsearch cluster cannot do that without a Python orchestrator.</p>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">CONVERSATIONAL SHOPPING</div><div class="v">Conversational commerce replaces facets with natural-language queries. The retrieval layer must combine semantic intent, inventory, geography, and personalization in one hop.</div></div>
- <div class="kv-row"><div class="k">CATALOG SIZE</div><div class="v">Millions of SKUs · hundreds of thousands of new product descriptions per quarter. Embedding + re-embedding at that scale crushes general-purpose vector DBs.</div></div>
- <div class="kv-row"><div class="k">AGENT MEMORY</div><div class="v">Customer-service copilots, ambient shopping assistants, on-site agents — all need session memory that persists across channels. Redis-as-memory is a stopgap; session-scoped retrieval is native.</div></div>
- <div class="kv-row"><div class="k">OBSERVABILITY + FRAUD</div><div class="v">Retail runs high-volume log fleets and fraud-detection workloads on the same infrastructure. Consolidation of observability + commerce retrieval is a natural win.</div></div>
- <div class="grow"></div>
- <div class="kicker"><span>RETAIL AI NEEDS A UNIFIED RETRIEVAL PLANE</span></div>
- </div>
- <div class="foot-row"><span>XERJ · RETAIL &amp; CONSUMER · INDUSTRY BRIEF</span><span class="num">02 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>03 · XERJ POSITIONING</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>UNIFIED AI DATA STACK · RETAIL</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">CATALOG.<br>AGENTS.<br><span class="accent">ONE ENGINE.</span></h2>
- <div class="sp-4"></div>
- <p class="body">XERJ hosts the product catalog's BM25 index, the semantic-search HNSW index, the session-scoped agent memory, and the observability log plane on a single binary. Drop-in for existing ES clients — your e-commerce stack continues to work while the retrieval layer underneath upgrades.</p>
- <div class="sp-6"></div>
- <div class="quad-grid">
- <div class="cell"><span class="k">RETRIEVAL LATENCY</span><span class="v">&lt; 40 MS</span><span class="t">HYBRID P95<br><span class="accent">PAGE-RENDER</span></span><span class="b">Inside the page-render budget. Conversational shopping keeps up with the customer.</span></div>
- <div class="cell"><span class="k">CATALOG SCALE</span><span class="v">10 M + SKU</span><span class="t">EMBEDDINGS<br><span class="accent">PER NODE</span></span><span class="b">SQ8 quantization · 4× memory over float32 · re-embedding at catalog refresh cadence.</span></div>
- <div class="cell"><span class="k">SESSION MEMORY</span><span class="v">NATIVE</span><span class="t">TIME-DECAY<br><span class="accent">TOKEN-AWARE</span></span><span class="b">Agent memory is a first-class store · per-session indices · no Redis TTL glue code.</span></div>
- <div class="cell"><span class="k">CONSOLIDATION</span><span class="v">5 → 1</span><span class="t">RETRIEVAL STACKS<br><span class="accent">UNIFIED</span></span><span class="b">Catalog search + RAG + recommendations + sessions + observability on one platform.</span></div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>DROP-IN ES 8.13</span><span class="dash">·</span><span>LANGCHAIN + LLAMAINDEX · COMMERCE SDKs UNCHANGED</span></div>
- </div>
- <div class="foot-row"><span>XERJ · RETAIL &amp; CONSUMER · INDUSTRY BRIEF</span><span class="num">03 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>04 · REFERENCE ARCHITECTURE</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>RETAIL BLUEPRINT</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">CATALOG.<br>COPILOT.<br><span class="accent">OBSERVABILITY.</span></h2>
- <div class="sp-4"></div>
- <p class="body">A three-node XERJ cluster for an e-commerce platform. Serves catalog search, shopping agents, and backend observability from the same data plane.</p>
- <div class="sp-4"></div>
- <div class="arch-pre"><span class="accent">CATALOG</span>
- Product DB · PIM · merchandising feed
- │
- ▼ <span class="mute">chunker + embedder (OpenAI · Voyage · Cohere)</span>
- Embedding pipeline · product-description vectors + metadata
-
-<span class="accent">STORE BEHAVIOUR</span>
- Click logs · add-to-cart · browse · conversion · search queries
- │
- ▼ <span class="mute">Vector / Fluent Bit · ES _bulk</span>
-
-<span class="accent">XERJ DATA PLANE</span> 3-node HA cluster
- ┌──────────────────────────────────────────────────────────────┐
- │ CATALOG INDEX BM25 + HNSW + metadata + tenant ACL │
- │ SESSION MEMORY shopping session · cart · recent views │
- │ LOG INDEX click/behav/backend logs · obs + SIEM │
- │ FRAUD INDEX transaction patterns · similarity lookup │
- └──────────────────────────────────────────────────────────────┘
- │
- ▼ <span class="mute">ES 8.13 wire · explain-plan · /metrics</span>
-<span class="accent">CONSUMERS</span>
- E-commerce front end hybrid catalog search · facets <span class="mute">&lt; 40 ms p95</span>
- Shopping agent conversational commerce · session memory <span class="mute">hybrid retrieval</span>
- Customer service copilot history + KB + entitlements <span class="mute">agent memory</span>
- Fraud + SOC real-time scoring · MTTD in milliseconds
- Merch analytics on-catalog + on-behaviour dashboards
-
-<span class="accent">SIZING</span>
- 10 M SKUs at 1,024-dim fits in one node under SQ8.
- 80 K behavioural events/sec sustained on the log index.</div>
- <div class="grow"></div>
- <div class="kicker"><span>ONE PLATFORM · ONE QUERY API</span><span class="dash">·</span><span>FIVE RETAIL WORKLOADS</span></div>
- </div>
- <div class="foot-row"><span>XERJ · RETAIL &amp; CONSUMER · INDUSTRY BRIEF</span><span class="num">04 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>05 · RETAIL USE CASES</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>WHERE XERJ APPLIES</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SHOPPING.<br>OPERATIONS.<br><span class="accent">GROWTH.</span></h2>
- <div class="sp-4"></div>
- <p class="body">The AI workloads that matter in retail and consumer roadmaps. Each maps to one XERJ deployment pattern.</p>
- <div class="sp-6"></div>
- <div class="matrix m3">
- <div class="h">WORKLOAD</div><div class="h">PATTERN</div><div class="h">STORE</div>
-
- <div class="k">CATALOG SEARCH</div><div>Hybrid BM25 + semantic search on product corpus. Facet filter · price · inventory · geography · personalization signal.</div><div class="status ga">HYBRID</div>
-
- <div class="k">CONVERSATIONAL COMMERCE</div><div>Natural-language shopping agent. Session memory persists across channels. Time-decay on recent views · token-budget retrieval.</div><div class="status ga">HYBRID</div>
-
- <div class="k">CUSTOMER-SERVICE COPILOT</div><div>Agent retrieves order history, policy, KB, entitlements. One unified retrieval across customer / order / product / KB.</div><div class="status ga">HYBRID</div>
-
- <div class="k">RECOMMENDATIONS</div><div>Vector similarity to recent views · keyword filter for availability · personalization via metadata. Real-time, per-request.</div><div class="status ga">VECTOR</div>
-
- <div class="k">FRAUD DETECTION</div><div>Vector similarity to historical fraud patterns + keyword on card / merchant / geography. Retrieval inside auth budget.</div><div class="status ga">HYBRID</div>
-
- <div class="k">MERCHANDISING ANALYTICS</div><div>Behavioural events aggregated with millisecond latency. Merch teams query live. Agents generate narratives.</div><div class="status ga">COLUMNAR</div>
-
- <div class="k">OBSERVABILITY + SIEM</div><div>E-commerce backend log fleet · MTTD in milliseconds · unified with application and identity logs.</div><div class="status ga">LOGS</div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>SEVEN RETAIL WORKLOADS</span><span class="dash">·</span><span>ONE PLATFORM · ONE CONTRACT</span></div>
- </div>
- <div class="foot-row"><span>XERJ · RETAIL &amp; CONSUMER · INDUSTRY BRIEF</span><span class="num">05 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>06 · COMPLIANCE &amp; PRIVACY</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>06</span><span class="dash">·</span><span>PRIVACY POSTURE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">CUSTOMER DATA.<br><span class="accent">TENANT-ISOLATED.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Retail data is PII, payment data is PCI, and every jurisdiction has its own consumer-privacy rules. XERJ's controls are designed so that the same platform works under CCPA, GDPR, LGPD, PIPEDA, or national equivalents.</p>
- <div class="sp-6"></div>
- <div class="compliance">
- <div class="h">STANDARD</div><div class="h">RELEVANCE</div><div class="h">STATUS</div>
-
- <div class="k">PCI-DSS v4.0</div><div>Segments + WAL encrypted at rest · BYOK · RBAC · audit · tenant isolation for card-adjacent data</div><div class="status yes">INHERITED (SELF-HOSTED)</div>
- <div class="k">SOC 2 TYPE I</div><div>Platform controls for SaaS offering</div><div class="status road">ROAD Q3 2026</div>
- <div class="k">ISO 27001</div><div>ISMS for platform engineering</div><div class="status road">ROAD Q4 2026</div>
- <div class="k">GDPR</div><div>Self-hosted in-region · right-to-erasure via tombstone · consent-tagged retention</div><div class="status ga">GA</div>
- <div class="k">CCPA · CPRA</div><div>Right-to-know / right-to-delete enforced at index level · tenant-scoped indices per market</div><div class="status ga">GA</div>
- <div class="k">LGPD · PIPEDA</div><div>Same mechanics as GDPR · self-hosted in appropriate region</div><div class="status ga">GA</div>
- <div class="k">AGE-GATING · CHILDREN'S DATA</div><div>Per-index RBAC + tenant isolation · age-gated-content tagging · COPPA alignment</div><div class="status ga">GA</div>
- <div class="k">AI GOVERNANCE</div><div>Per-query explain-plan = retrieval-layer audit artifact · supports EU AI Act traceability</div><div class="status ga">GA</div>
- </div>
- <div class="sp-4"></div>
- <div class="kv-row"><div class="k">PERSONALIZATION</div><div class="v">Customer-level personalization vectors live in per-tenant indices. Consent-scoped retrieval: if consent is revoked, the index removes the doc and audit trail records the deletion.</div></div>
- <div class="kv-row"><div class="k">CARDHOLDER</div><div class="v">Card-adjacent data (fraud patterns, tokens) lives in a PCI-DSS-scoped index with dedicated RBAC. BYOK keys scoped to the PCI perimeter.</div></div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · RETAIL &amp; CONSUMER · INDUSTRY BRIEF</span><span class="num">06 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>07 · INTEGRATION ECOSYSTEM</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>07</span><span class="dash">·</span><span>RETAIL STACK · INTEGRATED</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">COMMERCE.<br>ANALYTICS.<br><span class="accent">UNCHANGED.</span></h2>
- <div class="sp-4"></div>
- <p class="body">The commerce, analytics, and customer-data tools already in a retailer's stack keep working. ES-wire-compatible; standard e-commerce integrations bolt on.</p>
- <div class="sp-6"></div>
- <div class="matrix m3">
- <div class="h">CATEGORY</div><div class="h">TOOLS</div><div class="h">STATUS</div>
-
- <div class="k">COMMERCE PLATFORMS</div><div>Shopify · Salesforce Commerce Cloud · Adobe Commerce · commercetools · BigCommerce — ES-compatible search backends</div><div class="status ga">GA</div>
-
- <div class="k">PIM / CATALOG</div><div>Akeneo · Salsify · inriver · contentful-style product feeds · CDC ingest via Vector / Kafka source</div><div class="status ga">GA</div>
-
- <div class="k">BEHAVIOURAL</div><div>Segment · mParticle · Rudderstack · custom event pipes · via ES _bulk or Kafka source (roadmap Q3)</div><div class="status ga">GA</div>
-
- <div class="k">CUSTOMER DATA</div><div>Salesforce CDP · Treasure Data · Tealium · ADX · tenant-scoped customer profile index</div><div class="status ga">GA</div>
-
- <div class="k">RECOMMENDATION</div><div>Custom ranker over XERJ retrieval · LTR hooks · LLM re-rank for zero-shot use cases</div><div class="status ga">GA</div>
-
- <div class="k">AGENT FRAMEWORKS</div><div>LangChain · LlamaIndex · Haystack · via ES retriever · pluggable embedder (OpenAI / Voyage / Cohere)</div><div class="status ga">GA</div>
-
- <div class="k">OBSERVABILITY</div><div>Datadog ES source · New Relic ES source · Grafana · Kibana — pointed at XERJ</div><div class="status ga">GA</div>
-
- <div class="k">FRAUD</div><div>Signifyd · Riskified · Kount · via shared XERJ fraud-pattern index + ES query API</div><div class="status ga">GA</div>
-
- <div class="k">IDENTITY</div><div>OIDC · SAML · auth0 · Okta · Auth.js · tenant-per-brand isolation</div><div class="status road">ROAD Q2</div>
- </div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · RETAIL &amp; CONSUMER · INDUSTRY BRIEF</span><span class="num">07 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>08 · MEASURED OUTCOMES</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>08</span><span class="dash">·</span><span>MEASURED vs LEGACY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">PAGE RENDER.<br>AGENT TURN.<br><span class="accent">MEASURED.</span></h2>
- <div class="sp-4"></div>
- <p class="body">The retail benchmarks that decide whether AI commerce ships or stays in pilot. XERJ against a legacy ES + Pinecone + Redis reference stack doing the same job.</p>
- <div class="sp-6"></div>
- <div class="versus">
- <div class="h">METRIC</div>
- <div class="h a">XERJ</div>
- <div class="h">LEGACY STACK</div>
-
- <div class="dim">Catalog hybrid search p95</div>
- <div><span class="accent">&lt; 40 ms</span></div>
- <div>100–250 ms <span class="mute">(orchestrator)</span></div>
-
- <div class="dim">Shopping-agent turn (10 hops)</div>
- <div><span class="accent">~400 ms</span></div>
- <div>~2 s <span class="mute">(incl. LLM)</span></div>
-
- <div class="dim">Vector memory · 10 M × 1.5 K</div>
- <div><span class="accent">18 GB</span></div>
- <div>92 GB <span class="mute">— 5.1×</span></div>
-
- <div class="dim">Recall @ 10 vs float32</div>
- <div><span class="accent">&lt; 0.5 pp loss</span></div>
- <div>baseline</div>
-
- <div class="dim">Behavioural log ingest</div>
- <div><span class="accent">80 K/sec sustained</span></div>
- <div>varies · typically 20–40 K</div>
-
- <div class="dim">Cold start</div>
- <div><span class="accent">50 ms</span></div>
- <div>~15 s</div>
-
- <div class="dim">Consent-driven delete</div>
- <div><span class="accent">segment-level tombstone</span></div>
- <div>varies · tooling gaps</div>
-
- <div class="dim">Retrieval vendors</div>
- <div><span class="accent">1</span></div>
- <div>3–4 (ES + vector + sessions + fraud)</div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">CONVERSION IMPACT</div><div class="v">Faster page renders + semantically better catalog retrieval move conversion. Shopping-agent turn times that fit inside attention budgets keep customers on-task.</div></div>
- <div class="kv-row"><div class="k">OPERATIONAL IMPACT</div><div class="v">Vector-DB contract + session-cache contract + log-store contract collapse. ~80 % infrastructure cost reduction on consolidated retrieval; one on-call rotation for the data plane.</div></div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · RETAIL &amp; CONSUMER · INDUSTRY BRIEF</span><span class="num">08 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>09 · IMPLEMENTATION PATH</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>09</span><span class="dash">·</span><span>FIVE PHASES · ONE YEAR</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FROM CATALOG<br>TO THE<br><span class="accent">WHOLE STACK.</span></h2>
- <div class="sp-4"></div>
- <p class="body">A typical retail rollout. Catalog search is the lowest-risk, highest-visibility win — ideal first workload. Conversational commerce and agent memory follow once retrieval latency is validated at production volume.</p>
- <div class="sp-6"></div>
- <div class="road-rail">
- <div class="q">01</div><div class="t">CATALOG PILOT<br><span class="accent">WEEKS 1–2</span></div><div>Single node · 1 M SKU embed · reproduce RAG_BENCH · compare hybrid p95 against the production ES cluster on the same corpus · no customer impact.</div>
-
- <div class="q">02</div><div class="t">CATALOG SHADOW<br><span class="accent">WEEKS 3–6</span></div><div>3-node HA · dual-write catalog embeddings · A/B on 1–5 % of search traffic · measure CTR + conversion deltas alongside p95 + recall.</div>
-
- <div class="q">03</div><div class="t">CATALOG PRIMARY<br><span class="accent">QUARTER 2</span></div><div>Primary search serving XERJ. Merch teams use the live analytics API. Decommission dedicated vector-DB contract for catalog workload.</div>
-
- <div class="q">04</div><div class="t">AGENTS + SESSIONS<br><span class="accent">QUARTER 3</span></div><div>Shopping copilot + customer-service copilot launched over XERJ. Session memory native · Redis retired. Fraud-pattern index migrated.</div>
-
- <div class="q">05</div><div class="t">OBSERVABILITY<br><span class="accent">QUARTER 4</span></div><div>Backend log fleet + SIEM consolidate onto the same platform. One retrieval platform, one audit trail, one on-call rotation for the data layer.</div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>REVERSIBLE</span><span class="dash">·</span><span>ES WIRE PROTOCOL MEANS NO LOCK-IN AT ANY PHASE</span></div>
- </div>
- <div class="foot-row"><span>XERJ · RETAIL &amp; CONSUMER · INDUSTRY BRIEF</span><span class="num">09 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>10 · GET STARTED</span></div>
- <div class="grow flex col">
- <div class="sp-10"></div>
- <div class="kicker"><span>10</span><span class="dash">·</span><span>NEXT STEPS</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">RUN HYBRID.<br><span class="accent">ON YOUR CATALOG.</span></h2>
- <div class="sp-6"></div>
- <p class="body">A two-week pilot on a real catalog corpus. We ship the binary, the embedding pipeline, and a sample shopping-agent template. You bring a catalog, your current p95, and the CTR baseline.</p>
- <div class="sp-10"></div>
- <div style="padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);">
- <div class="kicker"><span>RETAIL CONTACT</span></div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-display); font-weight: 900; font-size: 42pt; line-height:1; letter-spacing: 0.01em;">HELLO<span class="accent">@</span>XERJ.AI</div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-data); font-size: 9pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--mute);">XERJ.AI · XERJ.COM · XERJ.DEV</div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">WHAT YOU GET</div><div class="v">Private binary · catalog-embedding pipeline · LangChain retriever example · shopping-agent template · merch-analytics dashboard JSON.</div></div>
- <div class="kv-row"><div class="k">WHAT YOU BRING</div><div class="v">One catalog corpus · current search p95 · a CTR baseline for one search query · optionally one fraud-pattern corpus.</div></div>
- <div class="kv-row"><div class="k">COMPANION BRIEFS</div><div class="v"><span class="mono">xerj-usecase-rag.pdf</span> (RAG) · <span class="mono">xerj-usecase-observability.pdf</span> (obs) · <span class="mono">xerj-tech-brief.pdf</span> (architect)</div></div>
- <div class="grow"></div>
- <div class="kicker"><span>XERJ.AI · RETAIL &amp; CONSUMER · INDUSTRY BRIEF</span><span class="dash">·</span><span>V1 · 2026-04</span></div>
- </div>
- <div class="foot-row"><span>XERJ · RETAIL &amp; CONSUMER · INDUSTRY BRIEF</span><span class="num">10 / 10</span></div>
-</section>
-
-</body>
-</html>
diff --git a/brief/kit/src/usecase-es-replacement.html b/brief/kit/src/usecase-es-replacement.html
deleted file mode 100644
index 7a68c6d8f..000000000
--- a/brief/kit/src/usecase-es-replacement.html
+++ /dev/null
@@ -1,305 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ — Elasticsearch Replacement — Use Case Brief</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<link rel="stylesheet" href="../common.css">
-</head>
-<body>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>USE CASE · ELASTICSEARCH REPLACEMENT · V1 · 2026-04</span></div>
- <div class="grow flex col between">
- <div class="sp-10"></div>
- <div>
- <div class="kicker" style="margin-bottom:20px;"><span>USE CASE 04</span><span class="dash">·</span><span>FOR VP ENGINEERING · CTO · PLATFORM TEAMS</span></div>
- <div class="cover-hero">DROP-IN.<br>MODERN<br><span class="accent">RUNTIME.</span><br>SAME API.</div>
- <div class="sp-8"></div>
- <p class="lead" style="max-width:6in;">Your Elasticsearch clients, dashboards, ingest pipelines, and detection rules stay unchanged. What changes is the runtime beneath them — one Rust binary instead of a JVM cluster, 50 ms cold start instead of 15 seconds, 400 MB idle instead of 8.5 GB.</p>
- </div>
- <div class="kicker"><span>21× LESS MEMORY</span><span class="dash">·</span><span>300× FASTER COLD START</span><span class="dash">·</span><span>SAME CLIENTS</span></div>
- </div>
- <div class="foot-row"><span>XERJ · ELASTICSEARCH REPLACEMENT · USE CASE BRIEF</span><span class="num">01 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>02 · WHY THIS MATTERS NOW</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>LICENSING · OPERATIONS · AI</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ES RUNS THE<br>WORLD.<br><span class="accent">AT A COST.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Every enterprise already runs Elasticsearch. And every enterprise has the same three complaints: the license model changed, the JVM operations burden never shrinks, and the vector story arrived late and expensive. Meanwhile the AI transformation roadmap needs retrieval infrastructure that's faster, cheaper, and compatible with existing clients. Rewriting everything is not on the table.</p>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">LICENSING DRIFT</div><div class="v">SSPL, feature gating, paid-only security tiers. The open-source ES era ended; the alternatives require migration. Your boards asked what the alternative looks like.</div></div>
- <div class="kv-row"><div class="k">JVM OPERATIONS</div><div class="v">Heap sizing. G1 vs ZGC tuning. Cold starts measured in seconds. Memory reserved up front and rarely returned. On-call runbooks half-filled with JVM incantations.</div></div>
- <div class="kv-row"><div class="k">VECTOR BOLT-ON</div><div class="v">Elasticsearch shipped kNN search, but vector workloads still compete with BM25 for heap. RAG teams move to Pinecone; the single-store advantage disappears.</div></div>
- <div class="kv-row"><div class="k">MIGRATION RISK</div><div class="v">Swapping a search engine is a year-long project. Every client library, every Logstash pipeline, every Kibana dashboard is a migration risk. Teams stay on the current ES because the alternative is worse.</div></div>
- <div class="grow"></div>
- <div class="kicker"><span>MIGRATION IS THE RISK</span><span class="dash">·</span><span>REMOVE THE RISK · KEEP THE API</span></div>
- </div>
- <div class="foot-row"><span>XERJ · ELASTICSEARCH REPLACEMENT · USE CASE BRIEF</span><span class="num">02 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>03 · XERJ POSITIONING</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>SAME API · DIFFERENT ENGINE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">PORT :9200.<br>YOUR CLIENTS.<br><span class="accent">OUR ENGINE.</span></h2>
- <div class="sp-4"></div>
- <p class="body">XERJ speaks the Elasticsearch 8.13 wire protocol. 5,165 LOC of compat layer covers 38 query types, every common aggregation, the bulk API, the scroll API, and the cluster-health endpoint. The client library you use today is the client library you use tomorrow. Migration is a configuration change, not a rewrite.</p>
- <div class="sp-6"></div>
- <div class="quad-grid">
- <div class="cell"><span class="k">MEMORY</span><span class="v">21×</span><span class="t">LESS IDLE<br><span class="accent">RAM</span></span><span class="b">400 MB single node vs 8.5 GB for a 4-node ES cluster. RSS tracks working set — jemalloc returns pages.</span></div>
- <div class="cell"><span class="k">COLD START</span><span class="v">300×</span><span class="t">FASTER<br><span class="accent">RESTART</span></span><span class="b">50 ms vs ~15 s JVM bootstrap. First query served when the socket binds — no classloader, no JIT warmup.</span></div>
- <div class="cell"><span class="k">BINARY</span><span class="v">56×</span><span class="t">SMALLER<br><span class="accent">DEPLOY</span></span><span class="b">13 MB static binary vs ~620 MB JAR + JRE + config + policy files. Distroless base image.</span></div>
- <div class="cell"><span class="k">COMPAT</span><span class="v">ES 8.13</span><span class="t">WIRE PROTOCOL<br><span class="accent">DROP-IN</span></span><span class="b">38 query types · bulk · scroll · cluster health · same response envelope. No client rewrite.</span></div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>MIGRATION IS A CONFIG CHANGE</span><span class="dash">·</span><span>NOT A YEAR-LONG PROJECT</span></div>
- </div>
- <div class="foot-row"><span>XERJ · ELASTICSEARCH REPLACEMENT · USE CASE BRIEF</span><span class="num">03 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>04 · REFERENCE ARCHITECTURE</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>DROP-IN BLUEPRINT</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SAME CLIENTS.<br><span class="accent">NEW ENGINE.</span></h2>
- <div class="sp-4"></div>
- <p class="body">A three-node HA cluster that replaces a 4-node Elasticsearch cluster. Same client libraries continue pointing at <span class="mono">:9200</span>. Same dashboards, same detection rules, same Logstash pipelines.</p>
- <div class="sp-4"></div>
- <div class="arch-pre"><span class="accent">CLIENTS · UNCHANGED</span>
- elasticsearch-py · elasticsearch-js · elasticsearch-java
- Kibana · Grafana (ES datasource) · custom dashboards
- Filebeat · Logstash · Vector · Fluentd
- LangChain · LlamaIndex · Haystack — ES retriever
- │
- ▼ <span class="mute">HTTP :9200 · ES 8.13 wire protocol · same headers, same shapes</span>
-<span class="accent">XERJ CLUSTER</span> 3-node HA · same ingest / query API as ES
- ┌──────────────────────────────────────────────────────────────┐
- │ FTS index BM25 · 38 query types · analyzers │
- │ VECTOR HNSW · SQ8 · nibble · rerank │
- │ COLUMNS doc-values · delta-ts · dictionary · varint │
- │ AGENT MEMORY session-scoped · time-decay │
- │ WAL + mmap segment cache · lock-free readers │
- └──────────────────────────────────────────────────────────────┘
- │
- ▼
-<span class="accent">MIGRATION MECHANICS</span>
- Dual-write ingest pipeline writes to ES + XERJ in parallel
- Shadow-query application reads primary = ES · compare against XERJ
- Cut-over primary = XERJ · keep ES warm for N days
- Decommission ES cluster retired · contract terminated
-
-<span class="accent">SIZING</span>
- XERJ 1-node covers 4-node ES idle baseline.
- XERJ 3-node HA matches 4-node ES on throughput + adds SLO headroom.</div>
- <div class="grow"></div>
- <div class="kicker"><span>SAME :9200</span><span class="dash">·</span><span>SAME DSL · SAME RESPONSE ENVELOPE</span></div>
- </div>
- <div class="foot-row"><span>XERJ · ELASTICSEARCH REPLACEMENT · USE CASE BRIEF</span><span class="num">04 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>05 · TECHNICAL BENEFITS</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>WHERE THE DELTA COMES FROM</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">NO JVM.<br>NO GC.<br><span class="accent">NO DRIFT.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Five runtime properties that Elasticsearch cannot match without a rewrite it cannot do. Each is a measurable consequence of the Rust + tokio + mmap architecture, not a feature flag.</p>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">AOT STATIC BINARY</div><div class="v">First byte served when the socket binds. No classloader scan, no JIT warmup, no policy-file verification. Cold start is 50 ms vs ~15 s — which matters for Kubernetes rolling restarts at fleet scale.</div></div>
- <div class="kv-row"><div class="k">NO GC PAUSES</div><div class="v">Ownership frees objects at scope exit. No tracing GC means no stop-the-world, no deopt cascade, no safepoint coordination. p99.9 tracks p50 plus cache-miss and disk — knowable, not tuned.</div></div>
- <div class="kv-row"><div class="k">MMAP-SHARED CACHE</div><div class="v">One OS page cache backs every reader. No repeated <span class="mono">mmap()</span> syscalls, no per-reader copy. A 30-day log retention stays hot without multiplying memory.</div></div>
- <div class="kv-row"><div class="k">LOCK-FREE READERS</div><div class="v">ArcSwap segment view + DashMap version map. Queries allocate nothing and acquire no mutex on the hot path. Flush swaps the view atomically; in-flight queries finish on the old view.</div></div>
- <div class="kv-row"><div class="k">ONE PROCESS</div><div class="v">Ingest parsers, query planner, and writer are the same tokio process. One fsync per batch, one network hop, end-to-end back-pressure. No Logstash box to babysit.</div></div>
- <div class="kv-row"><div class="k">FORWARD-COMPAT SEGMENTS</div><div class="v">Segment format versioned with a section table; older binaries skip unknown sections rather than fail. Rolling upgrades do not require full reindex.</div></div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · ELASTICSEARCH REPLACEMENT · USE CASE BRIEF</span><span class="num">05 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>06 · MEASURED OUTCOMES</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>06</span><span class="dash">·</span><span>MEASURED vs ES 8.13</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ONE NODE.<br>FOUR-NODE<br><span class="accent">PARITY.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Nine axes a procurement review looks at. XERJ on one node vs. a 4-node Elasticsearch 8.13 cluster doing the same SIEM + log workload.</p>
- <div class="sp-6"></div>
- <div class="versus">
- <div class="h">AXIS</div>
- <div class="h a">XERJ</div>
- <div class="h">ES 8.13 (4-NODE)</div>
-
- <div class="dim">Idle memory</div>
- <div><span class="accent">400 MB</span></div>
- <div>8.5 GB <span class="mute">— 21.3×</span></div>
-
- <div class="dim">Cold start</div>
- <div><span class="accent">50 ms</span></div>
- <div>~15 s <span class="mute">— 300×</span></div>
-
- <div class="dim">Release binary</div>
- <div><span class="accent">13 MB</span></div>
- <div>~620 MB <span class="mute">— 56×</span></div>
-
- <div class="dim">Config knobs</div>
- <div><span class="accent">47</span></div>
- <div>3,000+ <span class="mute">— 63.8×</span></div>
-
- <div class="dim">Binaries to run</div>
- <div><span class="accent">1</span></div>
- <div>5 (ES + Logstash + Kibana +…)</div>
-
- <div class="dim">Disk · 1 M SIEM events</div>
- <div><span class="accent">85 MB</span></div>
- <div>240 MB <span class="mute">— 2.8×</span></div>
-
- <div class="dim">SIEM top-source-IPs p95</div>
- <div><span class="accent">0.4 ms</span></div>
- <div>29.8 ms <span class="mute">— 74×</span></div>
-
- <div class="dim">NGINX terms agg p95</div>
- <div><span class="accent">0.4 ms</span></div>
- <div>35.7 ms <span class="mute">— 89×</span></div>
-
- <div class="dim">Client library changes</div>
- <div><span class="accent">0</span></div>
- <div>0 (ES native)</div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">COST IMPACT</div><div class="v">~80 % infrastructure cost reduction on log + search workloads, measured on a like-for-like corpus. Most of the saving is headcount: one team owns the data layer, not four.</div></div>
- <div class="kv-row"><div class="k">SOURCE</div><div class="v"><span class="mono">SIEM_BATTLE_2026-04-14_184900_UTC.md</span> · <span class="mono">CLUSTER_BATTLE_2026-04-14_180241_UTC.md</span> · <span class="mono">FAIR_BATTLE_V3_20GB_2026-04-14.md</span> — reports ship with reproduction scripts.</div></div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · ELASTICSEARCH REPLACEMENT · USE CASE BRIEF</span><span class="num">06 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>07 · INTEGRATION ECOSYSTEM</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>07</span><span class="dash">·</span><span>EVERYTHING ES · UNCHANGED</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SAME CLIENTS.<br>SAME INGEST.<br><span class="accent">SAME DASHBOARDS.</span></h2>
- <div class="sp-4"></div>
- <p class="body">The promise is that nothing in your stack above port 9200 changes. Here's the list.</p>
- <div class="sp-6"></div>
- <div class="matrix m3">
- <div class="h">CATEGORY</div><div class="h">TOOLS</div><div class="h">STATUS</div>
-
- <div class="k">CLIENT LIBRARIES</div><div>elasticsearch-py · elasticsearch-js · elasticsearch-java · Go · .NET · Ruby · PHP · Rust — all via ES wire</div><div class="status ga">GA</div>
-
- <div class="k">INGEST</div><div>Filebeat · Winlogbeat · Auditbeat · Metricbeat · Packetbeat · Logstash · Vector · Fluentd · Fluent Bit</div><div class="status ga">GA</div>
-
- <div class="k">DASHBOARDS</div><div>Kibana (community-validated) · Grafana with ES datasource · any custom dashboard using ES HTTP API</div><div class="status ga">GA</div>
-
- <div class="k">SEARCH UIS</div><div>Search UI frameworks built on ES · Relevance Workbench equivalents · App Search replacements</div><div class="status ga">GA</div>
-
- <div class="k">RAG / AI</div><div>LangChain ES retriever · LlamaIndex ES backend · Haystack · DSPy — zero adapter code</div><div class="status ga">GA</div>
-
- <div class="k">SIEM TOOLS</div><div>Wazuh · Elastic Security · Sigma rule converters · detection-as-code frameworks</div><div class="status ga">GA</div>
-
- <div class="k">SCROLL / PIT</div><div>Point-in-time snapshots + scroll cursors · ES-compat semantics · same response envelope</div><div class="status ga">GA</div>
-
- <div class="k">IDENTITY</div><div>OIDC · SAML 2.0 · AWS IAM · Azure AD · Okta · SCIM provisioning · per-tenant indices</div><div class="status road">ROAD Q2</div>
-
- <div class="k">X-PACK FEATURES</div><div>RBAC · audit log · ILM · ML anomaly detection — covered by XERJ-native equivalents or on roadmap</div><div class="status road">ROAD Q2–Q4</div>
- </div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · ELASTICSEARCH REPLACEMENT · USE CASE BRIEF</span><span class="num">07 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>08 · MIGRATION RISK MANAGEMENT</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>08</span><span class="dash">·</span><span>HOW MIGRATION STAYS SAFE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">DUAL-WRITE.<br>SHADOW-READ.<br><span class="accent">REVERSIBLE.</span></h2>
- <div class="sp-4"></div>
- <p class="body">ES-wire compatibility means the migration is reversible at every step. If the XERJ pilot fails on a benchmark, rolling back is a config change — the original ES cluster stays primary until the team commits.</p>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">DUAL-WRITE</div><div class="v">Ingest pipeline writes to ES primary + XERJ shadow in parallel. Same batch, same _bulk call, two destinations. No code change; one Logstash/Vector config line.</div></div>
- <div class="kv-row"><div class="k">SHADOW-READ</div><div class="v">Application reads from ES primary. A sampled fraction of queries is replayed against XERJ for latency, correctness, and recall comparison. No user impact.</div></div>
- <div class="kv-row"><div class="k">A/B SWITCH</div><div class="v">One env var flip routes N % of read traffic to XERJ. Start at 1 %, ramp as confidence grows. Monitoring shows p95, error rate, and recall drift side by side.</div></div>
- <div class="kv-row"><div class="k">CUT-OVER</div><div class="v">Primary becomes XERJ. ES stays warm as rollback target for N days. Once decommissioned, the ES license terminates and the 4-node JVM cluster is reclaimed.</div></div>
- <div class="kv-row"><div class="k">ROLLBACK</div><div class="v">One env var flip routes back to ES. Segments created on XERJ during the primary window are snapshot-exportable to ES-readable format (roadmap Q3). Worst case: re-ingest from the hot source.</div></div>
- <div class="kv-row"><div class="k">DATA MIGRATION</div><div class="v">Historical data: snapshot + re-ingest is fastest at most scales. Dedicated migration tooling lands Q2 (ES snapshot → XERJ segment). Re-embedding required for vector workloads.</div></div>
- <div class="grow"></div>
- <div class="kicker"><span>NO LOCK-IN</span><span class="dash">·</span><span>ES WIRE COMPATIBILITY GOES BOTH WAYS</span></div>
- </div>
- <div class="foot-row"><span>XERJ · ELASTICSEARCH REPLACEMENT · USE CASE BRIEF</span><span class="num">08 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>09 · IMPLEMENTATION PATH</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>09</span><span class="dash">·</span><span>FIVE PHASES · ONE YEAR</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">MIGRATE<br><span class="accent">WITHOUT RISK.</span></h2>
- <div class="sp-4"></div>
- <p class="body">A typical enterprise ES-replacement rollout. Low-risk, reversible, and measured at every stage.</p>
- <div class="sp-6"></div>
- <div class="road-rail">
- <div class="q">01</div><div class="t">PILOT<br><span class="accent">WEEKS 1–2</span></div><div>Reproduce the SIEM_BATTLE and CLUSTER_BATTLE reports on your own corpus. Private binary, seeded data, reproduction scripts. Your numbers, your hardware, your decision.</div>
-
- <div class="q">02</div><div class="t">SHADOW<br><span class="accent">WEEKS 3–6</span></div><div>Run XERJ alongside ES. Dual-write · sampled shadow-read · Kibana on both. Compare latency, memory, correctness on production traffic. Still no user impact.</div>
-
- <div class="q">03</div><div class="t">CUT-OVER ONE WORKLOAD<br><span class="accent">QUARTER 2</span></div><div>Pick the smallest workload — usually observability logs or SIEM. Primary flips to XERJ. ES warm-standby for rollback. First bill line removed.</div>
-
- <div class="q">04</div><div class="t">ADD VECTOR + MEMORY<br><span class="accent">QUARTER 3</span></div><div>Move the vector DB and session cache onto the same platform. Hybrid retrieval lights up. RAG orchestrators simplify. One team owns the retrieval layer now.</div>
-
- <div class="q">05</div><div class="t">DECOMMISSION ES<br><span class="accent">QUARTER 4</span></div><div>Final workloads migrated. ES cluster retired. Contract terminated. One platform, one vendor, one SLA, one audit surface.</div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>REVERSIBLE AT EVERY PHASE</span><span class="dash">·</span><span>ES WIRE COMPATIBILITY MEANS NO LOCK-IN</span></div>
- </div>
- <div class="foot-row"><span>XERJ · ELASTICSEARCH REPLACEMENT · USE CASE BRIEF</span><span class="num">09 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>10 · GET STARTED</span></div>
- <div class="grow flex col">
- <div class="sp-10"></div>
- <div class="kicker"><span>10</span><span class="dash">·</span><span>NEXT STEPS</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">RUN IT.<br><span class="accent">ALONGSIDE ES.</span></h2>
- <div class="sp-6"></div>
- <p class="body">A two-week shadow pilot. Private binary. Repro scripts for SIEM_BATTLE and CLUSTER_BATTLE. Config templates for Filebeat / Vector dual-write.</p>
- <div class="sp-10"></div>
- <div style="padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);">
- <div class="kicker"><span>PLATFORM CONTACT</span></div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-display); font-weight: 900; font-size: 42pt; line-height:1; letter-spacing: 0.01em;">HELLO<span class="accent">@</span>XERJ.AI</div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-data); font-size: 9pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--mute);">XERJ.AI · XERJ.COM · XERJ.DEV</div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">WHAT YOU GET</div><div class="v">Private binary · SIEM_BATTLE + CLUSTER_BATTLE repro · Filebeat / Vector dual-write config · Kibana dashboard JSON · migration runbook.</div></div>
- <div class="kv-row"><div class="k">WHAT YOU BRING</div><div class="v">One existing ES-backed workload · its current client library list · a latency baseline for at least one query you care about.</div></div>
- <div class="kv-row"><div class="k">COMPANION BRIEFS</div><div class="v"><span class="mono">xerj-tech-brief.pdf</span> · <span class="mono">xerj-exec-brief.pdf</span> · <span class="mono">xerj-usecase-security.pdf</span> · <span class="mono">xerj-usecase-rag.pdf</span></div></div>
- <div class="grow"></div>
- <div class="kicker"><span>XERJ.AI · ELASTICSEARCH REPLACEMENT · USE CASE BRIEF</span><span class="dash">·</span><span>V1 · 2026-04</span></div>
- </div>
- <div class="foot-row"><span>XERJ · ELASTICSEARCH REPLACEMENT · USE CASE BRIEF</span><span class="num">10 / 10</span></div>
-</section>
-
-</body>
-</html>
diff --git a/brief/kit/src/usecase-observability.html b/brief/kit/src/usecase-observability.html
deleted file mode 100644
index 49c5f441b..000000000
--- a/brief/kit/src/usecase-observability.html
+++ /dev/null
@@ -1,301 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ — Unified Observability — Use Case Brief</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<link rel="stylesheet" href="../common.css">
-</head>
-<body>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>USE CASE · UNIFIED OBSERVABILITY · V1 · 2026-04</span></div>
- <div class="grow flex col between">
- <div class="sp-10"></div>
- <div>
- <div class="kicker" style="margin-bottom:20px;"><span>USE CASE 03</span><span class="dash">·</span><span>FOR OBSERVABILITY LEADS · SRE · PLATFORM</span></div>
- <div class="cover-hero">SIX SYSTEMS.<br>ONE <span class="accent">BINARY.</span><br>ONE BILL.</div>
- <div class="sp-8"></div>
- <p class="lead" style="max-width:6in;">Logs, metrics, and traces arrive at the same data plane. One binary replaces the Splunk + Prometheus + Loki + Tempo + Mimir stack for teams that want unified observability without a multi-vendor bill.</p>
- </div>
- <div class="kicker"><span>6 → 1 SYSTEMS</span><span class="dash">·</span><span>80K DOCS/S SUSTAINED</span><span class="dash">·</span><span>OTLP NATIVE (BETA)</span></div>
- </div>
- <div class="foot-row"><span>XERJ · UNIFIED OBSERVABILITY · USE CASE BRIEF</span><span class="num">01 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>02 · WHY THIS MATTERS NOW</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>THE OBSERVABILITY STACK IS BROKEN</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">THREE PILLARS.<br>SIX SYSTEMS.<br><span class="accent">ONE ROOT CAUSE.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Observability teams pay for three data stores to answer one question: what happened. Logs are in one cluster, metrics in another, traces in a third, and the correlation query is a tab-switch between three UIs. AI agents expected to help with on-call cannot traverse the same evidence a human would.</p>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">COGNITIVE LOAD</div><div class="v">SPL for logs · PromQL for metrics · TraceQL for traces. Three dialects for one incident. Junior SREs spend their first year learning the query languages before they can contribute to postmortems.</div></div>
- <div class="kv-row"><div class="k">FAN-OUT COST</div><div class="v">Ingest fans out to three stores. Three retention policies. Three compactors. Three backup schedules. The same event is stored three times in three shapes at three prices.</div></div>
- <div class="kv-row"><div class="k">AGENT-UNFRIENDLY</div><div class="v">On-call agents need one query surface. Three APIs with three semantics means the agent either learns an orchestrator or defers to a human. Either way the MTTR story stalls.</div></div>
- <div class="kv-row"><div class="k">OPERATIONAL SPRAWL</div><div class="v">12 config files. 6 Helm charts. 5 monthly bill lines. Every version upgrade touches three teams. On-call rotations split by telemetry type, not by ownership.</div></div>
- <div class="grow"></div>
- <div class="kicker"><span>OBSERVABILITY IS A UNIFICATION PROBLEM</span><span class="dash">·</span><span>NOT A TOOLING PROBLEM</span></div>
- </div>
- <div class="foot-row"><span>XERJ · UNIFIED OBSERVABILITY · USE CASE BRIEF</span><span class="num">02 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>03 · XERJ POSITIONING</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>UNIFIED AI DATA STACK</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ONE ENGINE.<br>THREE PILLARS.<br><span class="accent">ONE QUERY.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Logs, metrics, and traces into the same XERJ data plane. Prometheus remote_write on the metrics side (roadmap Q3), OTLP on the traces side (beta), ES Bulk on the logs side (GA). One query language across all three — ES DSL today, SQL roadmap Q4. Agents query the same surface humans do.</p>
- <div class="sp-6"></div>
- <div class="quad-grid">
- <div class="cell"><span class="k">CONSOLIDATION</span><span class="v">6 → 1</span><span class="t">SYSTEMS<br><span class="accent">REPLACED</span></span><span class="b">Splunk · Prometheus · Tempo · Loki · Mimir · session store — one binary.</span></div>
- <div class="cell"><span class="k">INGEST</span><span class="v">80 K</span><span class="t">DOCS/SEC<br><span class="accent">SUSTAINED</span></span><span class="b">Single-client, diurnal traffic, zero write-stalls. Scales horizontally on sharded ingest (roadmap Q3).</span></div>
- <div class="cell"><span class="k">LANGUAGES</span><span class="v">3 → 1</span><span class="t">ES DSL<br><span class="accent">+ SQL ROADMAP</span></span><span class="b">One query dialect across logs + metrics + traces. Agents use one retriever.</span></div>
- <div class="cell"><span class="k">COST</span><span class="v">5 → 1</span><span class="t">BILL LINES<br><span class="accent">PER MONTH</span></span><span class="b">One vendor, one contract, one SLA, one audit surface, one on-call rotation.</span></div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>OTLP IN · PROMETHEUS OUT · ES BULK IN</span><span class="dash">·</span><span>SAME BINARY</span></div>
- </div>
- <div class="foot-row"><span>XERJ · UNIFIED OBSERVABILITY · USE CASE BRIEF</span><span class="num">03 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>04 · REFERENCE ARCHITECTURE</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>OBSERVABILITY BLUEPRINT</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ONE PIPELINE.<br><span class="accent">THREE PILLARS.</span></h2>
- <div class="sp-4"></div>
- <p class="body">A three-node XERJ cluster serving logs, metrics, and traces for a mid-size engineering org. Same platform, one ingest surface, one retention policy framework, one dashboard layer.</p>
- <div class="sp-4"></div>
- <div class="arch-pre"><span class="accent">SOURCES</span>
- Application logs · infra metrics · traces · audit events · cloud events
- │
- ▼ <span class="mute">Otel Collector / Vector / Fluent Bit · one agent per host</span>
- Unified ingest pipeline (OTLP / Prom / ES Bulk / syslog)
- │
- ▼
-<span class="accent">XERJ DATA PLANE</span> 3-node HA · hot-SSD · warm-HDD · cold-S3
- ┌──────────────────────────────────────────────────────────────┐
- │ LOGS columnar · delta-ts · dictionary · ZSTD │
- │ METRICS columnar · down-sampled rollups (roadmap Q3) │
- │ TRACES span tree · service-graph join (roadmap Q4) │
- │ INDEXES FTS + vector (for log-embedding similarity) │
- └──────────────────────────────────────────────────────────────┘
- │
- ▼ <span class="mute">ES wire · Prometheus remote_read · OTLP export</span>
-<span class="accent">CONSUMERS</span>
- Grafana unified dashboards (logs + metrics + traces panel-per-type)
- Kibana for log-centric workflows
- On-call runbooks · alerting via threshold + anomaly (roadmap Q4)
- SRE agents · runbook automation · RCA assistant
-
-<span class="accent">RETENTION</span>
- Logs hot 14 d · warm 30 d · cold 90 d (object storage)
- Metrics raw 30 d · downsampled 1 y · yearly rollups archived
- Traces full 7 d · head-sampled 30 d · tail-sampled on error
-</div>
- <div class="grow"></div>
- <div class="kicker"><span>SIZING</span><span class="dash">·</span><span>3 NODES · 80K EVENTS/SEC SUSTAINED · MIXED LOGS + METRICS</span></div>
- </div>
- <div class="foot-row"><span>XERJ · UNIFIED OBSERVABILITY · USE CASE BRIEF</span><span class="num">04 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>05 · TECHNICAL BENEFITS</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>WHY THIS SCALES</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ENGINEERING<br>CHOICES FOR<br><span class="accent">OBSERVABILITY.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Six decisions that make a single platform viable for the three pillars. Each is a property of the data plane, not an integration story.</p>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">COLUMNAR LOGS</div><div class="v">Delta-of-delta timestamps · dictionary keywords · varint integers · ZSTD block compression. 85 MB per 1 M events — 2.8× smaller than ES on the same corpus. Makes long retention affordable.</div></div>
- <div class="kv-row"><div class="k">SINGLE-PROCESS INGEST</div><div class="v">Parsers live in the writer process. One fsync, one network hop, end-to-end back-pressure. No Kafka queue as a buffer, no Logstash pipeline to babysit, no separate ingest service to monitor.</div></div>
- <div class="kv-row"><div class="k">LOCK-FREE READERS</div><div class="v">Flush never blocks analyst queries. A 24-hour ingest surge writes through without stalling the dashboard. ArcSwap segment view swaps atomically; in-flight queries finish on the old view.</div></div>
- <div class="kv-row"><div class="k">NO GC TAIL</div><div class="v">Rust · jemalloc · no JVM. p99.9 tracks p50 plus cache-miss and disk I/O. Observability SLOs that require bounded latency become achievable without tuning.</div></div>
- <div class="kv-row"><div class="k">EXPLAIN-PLAN</div><div class="v">Every query — log search, metric aggregation, trace fetch — returns per-node cost. Capacity planning and cost attribution share one JSON shape.</div></div>
- <div class="kv-row"><div class="k">PROMETHEUS METRICS NATIVE</div><div class="v">XERJ's own <span class="mono">/metrics</span> endpoint is a first-class surface. Scrape XERJ with XERJ if the self-referential story appeals. Dogfooding is a demo, not a workaround.</div></div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · UNIFIED OBSERVABILITY · USE CASE BRIEF</span><span class="num">05 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>06 · MEASURED OUTCOMES</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>06</span><span class="dash">·</span><span>MEASURED OUTCOMES</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">OPERATIONAL<br>SURFACE.<br><span class="accent">COLLAPSED.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Every axis that shows up in a procurement review. XERJ on one platform vs. a Splunk + Prometheus + Tempo reference stack doing the same job.</p>
- <div class="sp-6"></div>
- <div class="versus">
- <div class="h">DIMENSION</div>
- <div class="h a">XERJ</div>
- <div class="h">SPLUNK + PROM + TEMPO</div>
-
- <div class="dim">Binaries to deploy</div>
- <div><span class="accent">1</span></div>
- <div>6 <span class="mute">— 6×</span></div>
-
- <div class="dim">Config files</div>
- <div><span class="accent">1</span></div>
- <div>12 <span class="mute">— 12×</span></div>
-
- <div class="dim">Query languages</div>
- <div><span class="accent">1</span> <span class="mute">(ES DSL)</span></div>
- <div>3 (SPL + PromQL + TraceQL)</div>
-
- <div class="dim">Storage backends</div>
- <div><span class="accent">1</span></div>
- <div>3 <span class="mute">— 3×</span></div>
-
- <div class="dim">Retention policies</div>
- <div><span class="accent">1 unified</span></div>
- <div>3 separate</div>
-
- <div class="dim">Monthly bill lines</div>
- <div><span class="accent">1</span></div>
- <div>5 <span class="mute">— 5×</span></div>
-
- <div class="dim">Idle cluster memory</div>
- <div><span class="accent">400 MB · 1 node</span></div>
- <div>8.5 GB · 4-node ES baseline</div>
-
- <div class="dim">Cold start</div>
- <div><span class="accent">50 ms</span></div>
- <div>~15 s JVM warm-up</div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">OPERATIONAL IMPACT</div><div class="v">One on-call rotation instead of three. Junior SREs productive in weeks, not quarters. One upgrade cycle instead of six.</div></div>
- <div class="kv-row"><div class="k">COST IMPACT</div><div class="v">~80 % infrastructure cost reduction on consolidated log + search + vector workloads. Most of the saving is headcount: one team owns the data layer, not four.</div></div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · UNIFIED OBSERVABILITY · USE CASE BRIEF</span><span class="num">06 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>07 · INTEGRATION ECOSYSTEM</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>07</span><span class="dash">·</span><span>YOUR OBSERVABILITY STACK</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">OTEL.<br>PROMETHEUS.<br><span class="accent">DROP-IN.</span></h2>
- <div class="sp-4"></div>
- <p class="body">XERJ speaks the standard wire protocols. Every collector that already ships to ES or OpenTelemetry works as-is. Dashboards keep their queries.</p>
- <div class="sp-6"></div>
- <div class="matrix m3">
- <div class="h">CATEGORY</div><div class="h">TOOLS</div><div class="h">STATUS</div>
-
- <div class="k">COLLECTORS</div><div>OpenTelemetry Collector · Vector · Fluent Bit · Fluentd · Otel SDKs · Otel Operator</div><div class="status ga">GA</div>
-
- <div class="k">METRICS IN</div><div>Prometheus remote_write · native pull scrape for ES metrics · Otel metrics via OTLP</div><div class="status road">ROAD Q3</div>
-
- <div class="k">TRACES IN</div><div>OTLP/HTTP · OTLP/gRPC · Zipkin adapter (via Otel Collector) · Jaeger adapter</div><div class="status beta">BETA</div>
-
- <div class="k">LOGS IN</div><div>ES _bulk · Filebeat · Vector · Fluentd · direct JSON over HTTP · syslog (roadmap)</div><div class="status ga">GA</div>
-
- <div class="k">DASHBOARDS</div><div>Grafana · Kibana · custom · unified logs-metrics-traces panels via Grafana 10+ mixed datasources</div><div class="status ga">GA</div>
-
- <div class="k">ALERTING</div><div>Alertmanager-compatible rules · Grafana alerting · webhooks · PagerDuty · Slack · anomaly detection (roadmap Q4)</div><div class="status ga">GA</div>
-
- <div class="k">EXPORT</div><div>OTLP/HTTP export to downstream systems · Prometheus remote_read · ES search API · long-term S3 archives</div><div class="status ga">GA</div>
-
- <div class="k">IDENTITY</div><div>OIDC · SAML · AWS IAM · Azure AD · per-team index isolation with quotas</div><div class="status road">ROAD Q2</div>
-
- <div class="k">INCIDENT MGMT</div><div>PagerDuty · Opsgenie · Incident.io · ServiceNow · via webhook · runbook-aware alert enrichment (roadmap)</div><div class="status ga">GA</div>
- </div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · UNIFIED OBSERVABILITY · USE CASE BRIEF</span><span class="num">07 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>08 · OPERATIONS</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>08</span><span class="dash">·</span><span>DAY-TWO OPERATIONS</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ONE BINARY.<br><span class="accent">ONE RUNBOOK.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Day-two operations are where observability platforms usually lose teams. XERJ is engineered for rolling restart, hot-reload config, and segment-level backup from day one.</p>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">METRICS</div><div class="v">Prometheus on <span class="mono">/metrics</span>. 13 counters / histograms / gauges across ingest, query, flush, cache. Per-instance registry — no global-singleton label collisions in multi-tenant setups.</div></div>
- <div class="kv-row"><div class="k">HEALTH / READINESS</div><div class="v"><span class="mono">GET /healthz</span> for liveness · <span class="mono">GET /readyz</span> holds until WAL replay completes — rolling restart fleet-safe by default.</div></div>
- <div class="kv-row"><div class="k">LOGS</div><div class="v">Structured JSON to stdout. One event per line. Correlation ID on every request. Tail with <span class="mono">jq</span>, ship with any log-forwarding agent.</div></div>
- <div class="kv-row"><div class="k">UPGRADES</div><div class="v">Rolling restart supported. Segment + WAL formats are forward-compatible across minor versions. One-minor-version window for rollback. Helm rolling update + HPA work out of the box.</div></div>
- <div class="kv-row"><div class="k">BACKUP · RESTORE</div><div class="v">Snapshots to S3 / GCS / Azure Blob. Incremental · encrypted · restorable at segment granularity. <span class="mono">xerj snapshot create|list|restore</span>.</div></div>
- <div class="kv-row"><div class="k">CAPACITY PLANNING</div><div class="v">~80 K events/sec sustained per node · diurnal pattern absorbed · write-stalls rare under documented sizing. Scale horizontally from 3 to 12 nodes as throughput grows.</div></div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · UNIFIED OBSERVABILITY · USE CASE BRIEF</span><span class="num">08 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>09 · IMPLEMENTATION PATH</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>09</span><span class="dash">·</span><span>FROM PILOT TO CONSOLIDATION</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FIVE PHASES.<br><span class="accent">ONE YEAR.</span></h2>
- <div class="sp-4"></div>
- <p class="body">A reversible rollout that swaps each pillar one at a time. Logs first (highest volume, clearest cost win), then traces, then metrics.</p>
- <div class="sp-6"></div>
- <div class="road-rail">
- <div class="q">01</div><div class="t">PILOT<br><span class="accent">WEEKS 1–2</span></div><div>Single node · route one log stream (NGINX / app logs) to XERJ via Vector · keep existing SIEM primary · compare ingest cost, query latency on Kibana side-by-side.</div>
-
- <div class="q">02</div><div class="t">SHADOW<br><span class="accent">WEEKS 3–6</span></div><div>3-node HA cluster · dual-write all log streams · Grafana reads from both. Log dashboard A/B. OTLP traces beta testing on internal services.</div>
-
- <div class="q">03</div><div class="t">MIGRATE LOGS<br><span class="accent">QUARTER 2</span></div><div>Cut over logs primary. Decommission Splunk / Loki log index. First bill line removed. Retention policies unified. Kibana or Grafana as single log UI.</div>
-
- <div class="q">04</div><div class="t">MIGRATE TRACES<br><span class="accent">QUARTER 3</span></div><div>OTLP traces primary. Tempo decommissioned. Service-graph materialization lands. Runbook agents retrieve across logs + traces in one hybrid query.</div>
-
- <div class="q">05</div><div class="t">MIGRATE METRICS<br><span class="accent">QUARTER 4</span></div><div>Prometheus remote_write in primary. Mimir / Thanos long-term store retired. Three pillars, one engine. Single alerting config. One on-call rotation.</div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>REVERSIBLE</span><span class="dash">·</span><span>ES + PROMETHEUS + OTLP MEAN NO LOCK-IN AT ANY PHASE</span></div>
- </div>
- <div class="foot-row"><span>XERJ · UNIFIED OBSERVABILITY · USE CASE BRIEF</span><span class="num">09 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>10 · GET STARTED</span></div>
- <div class="grow flex col">
- <div class="sp-10"></div>
- <div class="kicker"><span>10</span><span class="dash">·</span><span>NEXT STEPS</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">RUN IT.<br><span class="accent">ON YOUR TELEMETRY.</span></h2>
- <div class="sp-6"></div>
- <p class="body">A two-week pilot on one log stream. We ship the binary, Grafana dashboard JSON, and the ingest + query scripts. You bring one log stream and a Grafana baseline p95.</p>
- <div class="sp-10"></div>
- <div style="padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);">
- <div class="kicker"><span>OBSERVABILITY CONTACT</span></div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-display); font-weight: 900; font-size: 42pt; line-height:1; letter-spacing: 0.01em;">HELLO<span class="accent">@</span>XERJ.AI</div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-data); font-size: 9pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--mute);">XERJ.AI · XERJ.COM · XERJ.DEV</div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">WHAT YOU GET</div><div class="v">Private binary · Otel Collector config · Vector config · Grafana dashboard JSON · Prometheus scrape examples · synthetic 24-hour ingest corpus.</div></div>
- <div class="kv-row"><div class="k">WHAT YOU BRING</div><div class="v">One production log stream · one Grafana dashboard · a p95 latency baseline for at least one existing query.</div></div>
- <div class="kv-row"><div class="k">COMPANION BRIEFS</div><div class="v"><span class="mono">xerj-tech-brief.pdf</span> (architect) · <span class="mono">xerj-usecase-security.pdf</span> for SIEM modernization · <span class="mono">xerj-usecase-ops-intel.pdf</span> for operational intelligence</div></div>
- <div class="grow"></div>
- <div class="kicker"><span>XERJ.AI · UNIFIED OBSERVABILITY · USE CASE BRIEF</span><span class="dash">·</span><span>V1 · 2026-04</span></div>
- </div>
- <div class="foot-row"><span>XERJ · UNIFIED OBSERVABILITY · USE CASE BRIEF</span><span class="num">10 / 10</span></div>
-</section>
-
-</body>
-</html>
diff --git a/brief/kit/src/usecase-ops-intel.html b/brief/kit/src/usecase-ops-intel.html
deleted file mode 100644
index 0817a3531..000000000
--- a/brief/kit/src/usecase-ops-intel.html
+++ /dev/null
@@ -1,301 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ — Operational Intelligence — Use Case Brief</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<link rel="stylesheet" href="../common.css">
-</head>
-<body>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>USE CASE · OPERATIONAL INTELLIGENCE · V1 · 2026-04</span></div>
- <div class="grow flex col between">
- <div class="sp-10"></div>
- <div>
- <div class="kicker" style="margin-bottom:20px;"><span>USE CASE 05</span><span class="dash">·</span><span>FOR SRE · DEVOPS · PLATFORM</span></div>
- <div class="cover-hero">LOGS AT<br>LINE RATE.<br><span class="accent">QUERIES IN</span><br>MILLISECONDS.</div>
- <div class="sp-8"></div>
- <p class="lead" style="max-width:6in;">Operational intelligence is where AI transformation meets pager duty. Agents that remediate, enrich, and triage need retrieval at agent cadence — not at log-pipeline cadence. XERJ ingests at line rate and returns aggregations in milliseconds on the same data.</p>
- </div>
- <div class="kicker"><span>80K DOCS/S SUSTAINED</span><span class="dash">·</span><span>NO WRITE-STALLS</span><span class="dash">·</span><span>89× FASTER TERMS AGGS</span></div>
- </div>
- <div class="foot-row"><span>XERJ · OPERATIONAL INTELLIGENCE · USE CASE BRIEF</span><span class="num">01 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>02 · WHY THIS MATTERS NOW</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>AI MEETS ON-CALL</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">AGENTS NEED<br>EVIDENCE.<br><span class="accent">AT AGENT SPEED.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Your AI roadmap names on-call copilots, remediation agents, and runbook automation. Every one of them fails on the same bottleneck: the logs they need to read are in a store that was never designed to answer an agent's question in milliseconds. The SRE team pays the price twice — once to the incumbent log vendor, once to the embedding provider for context retrieval.</p>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">INGEST vs QUERY</div><div class="v">Log pipelines optimize for throughput. Query engines optimize for latency. Most systems pick one. Agents need both — high-volume ingest AND sub-second aggregations on the same data.</div></div>
- <div class="kv-row"><div class="k">ILM PUZZLES</div><div class="v">Index Lifecycle Management (ES), retention buckets (Loki), storage tiers (Splunk) — every vendor has their own version of "where does old data go?" All require tuning; all misbehave under ingest spikes.</div></div>
- <div class="kv-row"><div class="k">SHARD TUNING</div><div class="v">Shard count, shard size, heap ratios, index rollover policies — the SRE team's runbook is half operational ceremony. Junior engineers spend quarters learning the vendor-specific dark arts.</div></div>
- <div class="kv-row"><div class="k">AGENT BLIND SPOTS</div><div class="v">An agent asking "what services saw 429s in the last 5 minutes" needs a terms agg. At 30 ms p95 a human accepts it; at 30 ms per call an agent with a 10-hop investigation accepts nothing.</div></div>
- <div class="grow"></div>
- <div class="kicker"><span>AGENTS ARE THE WORKLOAD</span><span class="dash">·</span><span>AGENTS NEED MILLISECOND EVIDENCE</span></div>
- </div>
- <div class="foot-row"><span>XERJ · OPERATIONAL INTELLIGENCE · USE CASE BRIEF</span><span class="num">02 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>03 · XERJ POSITIONING</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>INGEST + QUERY ON ONE PLANE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">80 K/S IN.<br>MS AGGS OUT.<br><span class="accent">SAME NODE.</span></h2>
- <div class="sp-4"></div>
- <p class="body">XERJ is the first data plane engineered so that ingest throughput and query latency are not a tradeoff. Columnar log storage, lock-free readers, single-process ingest — the same node that absorbs 80 K docs/sec from Vector also serves a 0.4 ms p95 terms aggregation to an agent.</p>
- <div class="sp-6"></div>
- <div class="quad-grid">
- <div class="cell"><span class="k">INGEST</span><span class="v">80 K</span><span class="t">DOCS/SEC<br><span class="accent">ONE CLIENT</span></span><span class="b">Sustained · diurnal · single-producer. Scales on sharded ingest (roadmap Q3).</span></div>
- <div class="cell"><span class="k">QUERY</span><span class="v">89×</span><span class="t">FASTER TERMS AGG<br><span class="accent">VS ES 8.13</span></span><span class="b">0.4 ms p95 vs 35.7 ms. Agents iterate through evidence without budget-burn.</span></div>
- <div class="cell"><span class="k">STORAGE</span><span class="v">2.8×</span><span class="t">LESS DISK<br><span class="accent">PER M EVENTS</span></span><span class="b">85 MB vs 240 MB. Longer hot retention on the same hardware. Agents see more history.</span></div>
- <div class="cell"><span class="k">STALLS</span><span class="v">0</span><span class="t">WRITE-STALLS<br><span class="accent">UNDER SIZING</span></span><span class="b">Lock-free readers mean flush never blocks agent queries. Agent context stays fresh during ingest spikes.</span></div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>NO ILM PUZZLES</span><span class="dash">·</span><span>NO SHARD TUNING · NO LOGSTASH PIPELINE</span></div>
- </div>
- <div class="foot-row"><span>XERJ · OPERATIONAL INTELLIGENCE · USE CASE BRIEF</span><span class="num">03 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>04 · REFERENCE ARCHITECTURE</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>OPS-INTEL BLUEPRINT</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ONE PIPELINE.<br><span class="accent">ONE API.</span></h2>
- <div class="sp-4"></div>
- <p class="body">A three-node XERJ cluster acting as the operational-intelligence layer for an engineering org. Ingest from the fleet; query by humans and agents over the same surface.</p>
- <div class="sp-4"></div>
- <div class="arch-pre"><span class="accent">FLEET</span>
- Application logs · system logs · k8s events · cloud audit · network
- │
- ▼ <span class="mute">one Otel / Vector agent per host</span>
- Unified ingest (OTLP · ES _bulk · JSON / NDJSON · syslog)
- │
- ▼
-<span class="accent">XERJ DATA PLANE</span> 3-node HA · 80 K events/sec sustained
- ┌──────────────────────────────────────────────────────────────┐
- │ COLUMNAR LOGS (delta-ts · dict · varint · ZSTD) │
- │ FTS index for free-text search on message bodies │
- │ VECTOR index for log-embedding similarity (anomaly lookup) │
- │ pre-computed term histograms (roadmap Q2) — fast agg path │
- └──────────────────────────────────────────────────────────────┘
- │
- ▼ <span class="mute">ES 8.13 wire · explain-plan · /metrics</span>
-<span class="accent">CONSUMERS</span>
- SREs Grafana dashboards · Kibana log search · CLI
- Agents runbook agent · RCA agent · on-call copilot
- · hybrid retrieval: keyword filter + vector similarity
- Alerting Alertmanager-compat · anomaly-detection hooks (roadmap)
-
-<span class="accent">RETENTION</span>
- Hot (SSD) 14 d · interactive + agent queries
- Warm (HDD) 30 d · aggregation-only queries
- Cold (S3) 90 d · incremental encrypted snapshots
-</div>
- <div class="grow"></div>
- <div class="kicker"><span>SIZING</span><span class="dash">·</span><span>3 NODES · 80K SUSTAINED · ~2.5 TB/NODE</span></div>
- </div>
- <div class="foot-row"><span>XERJ · OPERATIONAL INTELLIGENCE · USE CASE BRIEF</span><span class="num">04 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>05 · TECHNICAL BENEFITS</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>WHY INGEST + QUERY COEXIST</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ENGINEERING<br>CHOICES THAT<br><span class="accent">MAKE IT WORK.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Six choices that let one node absorb 80 K events/sec while serving millisecond aggregations to agents on the same data.</p>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">LOCK-FREE READERS</div><div class="v">ArcSwap segment view means the writer never blocks a reader. A 24 h ingest surge does not stall the agent's query. No GC pauses.</div></div>
- <div class="kv-row"><div class="k">SINGLE-PROCESS INGEST</div><div class="v">Parser + writer in one process. One fsync, one network hop, end-to-end back-pressure. No Logstash to tune · no Kafka buffer to operate · no cross-service retry logic.</div></div>
- <div class="kv-row"><div class="k">COLUMNAR BY DEFAULT</div><div class="v">85 MB per 1 M SIEM events post-ingest · 2.8× smaller than ES on the same corpus. Delta-of-delta timestamps · dictionary keywords · varint integers · ZSTD blocks.</div></div>
- <div class="kv-row"><div class="k">TERM HISTOGRAMS</div><div class="v">Pre-computed per-column histograms at ingest time (roadmap Q2). Terms aggregations read the answer instead of scanning the column. The 89× NGINX number depends on this path.</div></div>
- <div class="kv-row"><div class="k">MMAP SHARED CACHE</div><div class="v">One OS page cache backs every reader. No repeated <span class="mono">mmap()</span> syscalls. Hot data stays hot across restart, across HPA scale-up, across rolling deploy.</div></div>
- <div class="kv-row"><div class="k">EXPLAIN-PLAN FOR AGENTS</div><div class="v">Agents call <span class="mono">/v1/indices/{idx}/explain-plan</span> before the real query to budget cost. Runaway agents fail loud, not expensive. Per-tenant quotas enforce the budget.</div></div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · OPERATIONAL INTELLIGENCE · USE CASE BRIEF</span><span class="num">05 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>06 · MEASURED OUTCOMES</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>06</span><span class="dash">·</span><span>MEASURED vs ES 8.13</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">INGEST +<br>QUERY.<br><span class="accent">SAME NODE.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Eight operational queries representative of AI-assisted on-call. p95 on 1 M events. XERJ single node vs. 4-node ES baseline.</p>
- <div class="sp-6"></div>
- <div class="versus">
- <div class="h">QUERY / METRIC</div>
- <div class="h a">XERJ</div>
- <div class="h">ES 8.13 (4-NODE)</div>
-
- <div class="dim">NGINX terms agg · 5 distinct</div>
- <div><span class="accent">0.4 ms</span></div>
- <div>35.7 ms <span class="mute">— 89×</span></div>
-
- <div class="dim">Top error codes · 1 M events</div>
- <div><span class="accent">0.4 ms</span></div>
- <div>29.8 ms <span class="mute">— 74×</span></div>
-
- <div class="dim">Keyword search · method=GET</div>
- <div><span class="accent">0.3 ms</span></div>
- <div>2.0 ms <span class="mute">— 6.7×</span></div>
-
- <div class="dim">Sustained ingest · one client</div>
- <div><span class="accent">80 K docs/s</span></div>
- <div>typically 20–40 K</div>
-
- <div class="dim">Disk · 1 M events post-ingest</div>
- <div><span class="accent">85 MB</span></div>
- <div>240 MB <span class="mute">— 2.8×</span></div>
-
- <div class="dim">Cold start</div>
- <div><span class="accent">50 ms</span></div>
- <div>~15 s JVM warm-up</div>
-
- <div class="dim">Idle memory</div>
- <div><span class="accent">400 MB</span></div>
- <div>8.5 GB <span class="mute">— 21×</span></div>
-
- <div class="dim">Write-stalls under diurnal peak</div>
- <div><span class="accent">0</span></div>
- <div>occasional · depends on shard tuning</div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">AGENT IMPACT</div><div class="v">An on-call agent doing a 10-query RCA completes in under 10 ms of retrieval budget. The same chain over ES 8.13 on the same corpus routinely burns 300 + ms in aggregations alone.</div></div>
- <div class="kv-row"><div class="k">SOURCE</div><div class="v"><span class="mono">SIEM_BATTLE_2026-04-14_184900_UTC.md</span> · <span class="mono">BATTLE_20M_2026-04-15.md</span> · <span class="mono">BATTLE_SLA_RESULTS_2026-04-15_21-32-15.md</span></div></div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · OPERATIONAL INTELLIGENCE · USE CASE BRIEF</span><span class="num">06 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>07 · INTEGRATION ECOSYSTEM</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>07</span><span class="dash">·</span><span>YOUR OPS STACK</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">VECTOR.<br>OTEL.<br><span class="accent">AS-IS.</span></h2>
- <div class="sp-4"></div>
- <p class="body">The collectors, dashboards, and alerting tools your SRE team already operates work with XERJ out of the box — via ES wire, OTLP, or Prometheus.</p>
- <div class="sp-6"></div>
- <div class="matrix m3">
- <div class="h">CATEGORY</div><div class="h">TOOLS</div><div class="h">STATUS</div>
-
- <div class="k">COLLECTORS</div><div>OpenTelemetry Collector · Vector · Fluent Bit · Fluentd · Filebeat · Metricbeat</div><div class="status ga">GA</div>
-
- <div class="k">DASHBOARDS</div><div>Grafana ES datasource · Kibana · custom UI via ES query API · real-time log-tailer</div><div class="status ga">GA</div>
-
- <div class="k">ALERTING</div><div>Alertmanager-compatible · Grafana alerting · PagerDuty / Opsgenie webhooks · anomaly detection (roadmap Q4)</div><div class="status ga">GA</div>
-
- <div class="k">RUNBOOK AGENTS</div><div>LangChain · LlamaIndex · Anthropic Agent SDK · OpenAI Agents — ES retriever, hybrid retrieval, explain-plan</div><div class="status ga">GA</div>
-
- <div class="k">INCIDENT MGMT</div><div>PagerDuty · Opsgenie · Incident.io · ServiceNow via webhook — auto-enrichment from XERJ context</div><div class="status ga">GA</div>
-
- <div class="k">K8S</div><div>Helm chart · Kubernetes Operator (roadmap Q2) · StatefulSet per data-plane role · HPA on CPU + ingest rate</div><div class="status road">ROAD Q2</div>
-
- <div class="k">IAC</div><div>Terraform module (roadmap Q2) · Pulumi · Ansible · Helm chart</div><div class="status road">ROAD Q2</div>
-
- <div class="k">CHAT-OPS</div><div>Slack bot · Microsoft Teams · generic webhook · /summon agent that retrieves live context on request</div><div class="status ga">GA</div>
-
- <div class="k">TOPOLOGY</div><div>ServiceNow CMDB · AWS/GCP/Azure inventory · OpenTelemetry resource attributes · auto-enriched on ingest</div><div class="status ga">GA</div>
- </div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · OPERATIONAL INTELLIGENCE · USE CASE BRIEF</span><span class="num">07 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>08 · DAY-TWO OPERATIONS</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>08</span><span class="dash">·</span><span>DAY TWO</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ROLLING DEPLOYS.<br><span class="accent">BY DEFAULT.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Day-two operations is where AI-ops platforms usually lose credibility. XERJ is engineered for rolling restart, hot-reload config, and segment-level backup from the first binary.</p>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">HEALTH · READINESS</div><div class="v"><span class="mono">/healthz</span> for liveness. <span class="mono">/readyz</span> holds until WAL replay completes — rolling restart fleet-safe. HPA autoscales on CPU + ingest queue depth.</div></div>
- <div class="kv-row"><div class="k">METRICS OUT</div><div class="v">Prometheus on <span class="mono">/metrics</span>. 13 counters / histograms / gauges across ingest, query, flush, cache. Per-instance registry · multi-tenant-safe.</div></div>
- <div class="kv-row"><div class="k">CONFIG</div><div class="v">Single TOML file · <span class="mono">XERJ_CONFIG</span> env · hot-reload via SIGHUP on non-structural changes. Schema validated on load; broken config refuses to start, never to serve.</div></div>
- <div class="kv-row"><div class="k">UPGRADES</div><div class="v">Rolling restart supported. Segment + WAL formats forward-compatible across minor versions. One-minor-version rollback window. Helm rolling update in-place.</div></div>
- <div class="kv-row"><div class="k">BACKUP · RESTORE</div><div class="v">Snapshots to S3 / GCS / Azure Blob. Incremental · encrypted · restorable at segment granularity. <span class="mono">xerj snapshot create|list|restore</span>.</div></div>
- <div class="kv-row"><div class="k">CAPACITY</div><div class="v">Sizing guide: ~80 K events/sec sustained per node. Scale horizontally from 3 to 12 nodes. Sharded ingest (roadmap Q3) extends to hundreds of K events/sec per cluster.</div></div>
- <div class="grow"></div>
- </div>
- <div class="foot-row"><span>XERJ · OPERATIONAL INTELLIGENCE · USE CASE BRIEF</span><span class="num">08 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>09 · IMPLEMENTATION PATH</span></div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>09</span><span class="dash">·</span><span>FIVE PHASES · ONE YEAR</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FROM PILOT<br><span class="accent">TO AGENTS.</span></h2>
- <div class="sp-4"></div>
- <p class="body">Start with the highest-volume log stream. End with on-call agents operating on unified retrieval across logs, traces, and runbook embeddings.</p>
- <div class="sp-6"></div>
- <div class="road-rail">
- <div class="q">01</div><div class="t">PILOT<br><span class="accent">WEEKS 1–2</span></div><div>Single node · highest-volume log stream routed via Vector · reproduce BATTLE_20M on your hardware · first Grafana dashboard points at XERJ.</div>
-
- <div class="q">02</div><div class="t">SHADOW<br><span class="accent">WEEKS 3–6</span></div><div>3-node HA · dual-write from Vector · Kibana / Grafana on both · compare ingest throughput, query latency, disk footprint on production traffic.</div>
-
- <div class="q">03</div><div class="t">LOGS PRIMARY<br><span class="accent">QUARTER 2</span></div><div>Primary = XERJ for log workloads. Decommission shadowed log store. First bill line removed. SRE runbooks point at XERJ; on-call runs on XERJ.</div>
-
- <div class="q">04</div><div class="t">ADD AGENTS<br><span class="accent">QUARTER 3</span></div><div>Deploy runbook + RCA agents over hybrid retrieval. Embed runbooks + postmortems as vectors in the same platform. MTTR drops as agents do tier-1 triage.</div>
-
- <div class="q">05</div><div class="t">UNIFY<br><span class="accent">QUARTER 4</span></div><div>Metrics and traces migrate onto XERJ (see Unified Observability brief). One platform, one query surface, one on-call rotation for the data layer.</div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>REVERSIBLE</span><span class="dash">·</span><span>ES + OTLP MEAN NO LOCK-IN AT ANY PHASE</span></div>
- </div>
- <div class="foot-row"><span>XERJ · OPERATIONAL INTELLIGENCE · USE CASE BRIEF</span><span class="num">09 / 10</span></div>
-</section>
-
-<section class="page">
- <div class="head-row"><span class="brand">XERJ<span class="accent">.AI</span></span><span>10 · GET STARTED</span></div>
- <div class="grow flex col">
- <div class="sp-10"></div>
- <div class="kicker"><span>10</span><span class="dash">·</span><span>NEXT STEPS</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">RUN IT.<br><span class="accent">ON YOUR FLEET.</span></h2>
- <div class="sp-6"></div>
- <p class="body">A two-week pilot on one high-volume log stream. We send the binary, Vector dual-write config, and the BATTLE_20M reproduction pack. You bring the stream and a latency baseline.</p>
- <div class="sp-10"></div>
- <div style="padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);">
- <div class="kicker"><span>SRE / PLATFORM CONTACT</span></div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-display); font-weight: 900; font-size: 42pt; line-height:1; letter-spacing: 0.01em;">HELLO<span class="accent">@</span>XERJ.AI</div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-data); font-size: 9pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--mute);">XERJ.AI · XERJ.COM · XERJ.DEV</div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row"><div class="k">WHAT YOU GET</div><div class="v">Private binary · Vector dual-write config · Grafana dashboard JSON · BATTLE_20M reproduction scripts · RCA-agent starter.</div></div>
- <div class="kv-row"><div class="k">WHAT YOU BRING</div><div class="v">One high-volume log stream · its ingest rate baseline · one terms agg or keyword query with its p95.</div></div>
- <div class="kv-row"><div class="k">COMPANION BRIEFS</div><div class="v"><span class="mono">xerj-usecase-observability.pdf</span> for unified obs · <span class="mono">xerj-usecase-security.pdf</span> for SIEM · <span class="mono">xerj-tech-brief.pdf</span> for architect detail</div></div>
- <div class="grow"></div>
- <div class="kicker"><span>XERJ.AI · OPERATIONAL INTELLIGENCE · USE CASE BRIEF</span><span class="dash">·</span><span>V1 · 2026-04</span></div>
- </div>
- <div class="foot-row"><span>XERJ · OPERATIONAL INTELLIGENCE · USE CASE BRIEF</span><span class="num">10 / 10</span></div>
-</section>
-
-</body>
-</html>
diff --git a/brief/kit/src/usecase-rag.html b/brief/kit/src/usecase-rag.html
deleted file mode 100644
index 516f2e247..000000000
--- a/brief/kit/src/usecase-rag.html
+++ /dev/null
@@ -1,542 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ — AI Search & RAG — Use Case Brief</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<link rel="stylesheet" href="../common.css">
-</head>
-<body>
-
-<!-- P1 · COVER -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>USE CASE · AI SEARCH &amp; RAG · V1 · 2026-04</span>
- </div>
- <div class="grow flex col between">
- <div class="sp-10"></div>
- <div>
- <div class="kicker" style="margin-bottom:20px;">
- <span>USE CASE 02</span>
- <span class="dash">·</span>
- <span>FOR CDO · CAIO · AI PLATFORM LEADS</span>
- </div>
- <div class="cover-hero">
- HYBRID<br>
- RETRIEVAL.<br>
- <span class="accent">ONE QUERY.</span><br>
- ONE HOP.
- </div>
- <div class="sp-8"></div>
- <p class="lead" style="max-width:6in;">
- Agent performance at enterprise scale is a retrieval
- problem before it is a model problem. XERJ runs BM25 and
- HNSW vector search in the same process, against the same
- segment cache, through a single Elasticsearch-compatible
- API. No Python orchestrator. No second network hop. No
- dedicated vector bill.
- </p>
- </div>
- <div class="kicker">
- <span>4× RAG MEMORY</span>
- <span class="dash">·</span>
- <span>38 MS P95 ON 1 B VECTORS</span>
- <span class="dash">·</span>
- <span>ONE QUERY</span>
- </div>
- </div>
- <div class="foot-row">
- <span>XERJ · AI SEARCH &amp; RAG · USE CASE BRIEF</span>
- <span class="num">01 / 10</span>
- </div>
-</section>
-
-<!-- P2 · PROBLEM -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>02 · WHY THIS MATTERS NOW</span>
- </div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>THE RAG DATA PROBLEM</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">RAG STALLS<br>AT THE<br><span class="accent">DATA LAYER.</span></h2>
- <div class="sp-4"></div>
- <p class="body">
- Every RAG pilot works. Most production rollouts don't. The
- failure is rarely the model. It is almost always the data
- layer beneath it — fragmented across a vector DB, a full-text
- store, a session cache, and a retrieval orchestrator that
- glues the three together in Python.
- </p>
- <div class="sp-6"></div>
- <div class="kv-row">
- <div class="k">LATENCY COMPOUNDS</div>
- <div class="v">A single retrieval turn crosses three data stores through a Python orchestrator doing RRF. The agent sees the sum of every system's p99. Users see a product that feels slow even when individual queries look fast.</div>
- </div>
- <div class="kv-row">
- <div class="k">MEMORY EXPLODES</div>
- <div class="v">10 M embeddings at 1,536 dim is 92 GB of float32 — before you factor in HNSW graph overhead. Enterprise RAG workloads routinely land in the hundreds of GB of hot memory per tenant.</div>
- </div>
- <div class="kv-row">
- <div class="k">COSTS MULTIPLY</div>
- <div class="v">Per-vector pricing for the embedding store. JVM heap for the keyword index. Redis for session memory. LLM tokens for every orchestrator call. Four bills, four renewals, four procurement cycles.</div>
- </div>
- <div class="kv-row">
- <div class="k">AGENT MEMORY IS ORPHANED</div>
- <div class="v">Conversation turns, tool traces, retrieved context — where do they live? Usually in Redis until the TTL fires. Time-decay, token-budget-aware retrieval ends up as application glue code three teams own.</div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>ONE DATA PLANE</span><span class="dash">·</span><span>NOT THREE SUBSYSTEMS AND A FRAMEWORK</span></div>
- </div>
- <div class="foot-row">
- <span>XERJ · AI SEARCH &amp; RAG · USE CASE BRIEF</span>
- <span class="num">02 / 10</span>
- </div>
-</section>
-
-<!-- P3 · THESIS -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>03 · XERJ POSITIONING</span>
- </div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>UNIFIED AI DATA STACK</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">VECTOR.<br>KEYWORD.<br><span class="accent">ONE ENGINE.</span></h2>
- <div class="sp-4"></div>
- <p class="body">
- XERJ runs HNSW vector search and BM25 full-text in one
- process, against one segment cache, through a single ES 8.13
- wire-protocol API. SQ8 quantization is default — 4× memory
- reduction with &lt; 0.5 pp recall loss on MS MARCO. Optional
- float32 re-rank closes the gap.
- </p>
- <div class="sp-6"></div>
- <div class="quad-grid">
- <div class="cell">
- <span class="k">EFFICIENCY</span>
- <span class="v">4–5×</span>
- <span class="t">LESS MEMORY<br><span class="accent">AT AI SCALE</span></span>
- <span class="b">10 M × 1,536-dim fits in 18 GB under SQ8 vs 92 GB for float32 in ES + Pinecone.</span>
- </div>
- <div class="cell">
- <span class="k">LATENCY</span>
- <span class="v">38 MS</span>
- <span class="t">HYBRID P95<br><span class="accent">1 B VECTORS</span></span>
- <span class="b">BM25 + vector + aggregation in one query tree, one execution pass, one process.</span>
- </div>
- <div class="cell">
- <span class="k">UNIFIED</span>
- <span class="v">1 HOP</span>
- <span class="t">AGENT TURN<br><span class="accent">NO RRF GLUE</span></span>
- <span class="b">Reciprocal rank fusion is native — no Python orchestrator, no second network call.</span>
- </div>
- <div class="cell">
- <span class="k">MEMORY</span>
- <span class="v">NATIVE</span>
- <span class="t">TIME-DECAY<br><span class="accent">TOKEN-BUDGET</span></span>
- <span class="b">Agent memory (sessions, traces, retrieved context) is a first-class store — not glue code.</span>
- </div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>ES 8.13 WIRE PROTOCOL</span><span class="dash">·</span><span>LANGCHAIN · LLAMAINDEX · DSPY WORK UNCHANGED</span></div>
- </div>
- <div class="foot-row">
- <span>XERJ · AI SEARCH &amp; RAG · USE CASE BRIEF</span>
- <span class="num">03 / 10</span>
- </div>
-</section>
-
-<!-- P4 · REFERENCE ARCHITECTURE -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>04 · REFERENCE ARCHITECTURE</span>
- </div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>REFERENCE ARCHITECTURE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">RAG BLUEPRINT.<br><span class="accent">ONE PLATFORM.</span></h2>
- <div class="sp-4"></div>
- <p class="body">
- A three-node XERJ cluster serving an enterprise RAG workload.
- Same ES-compat API used by LangChain / LlamaIndex retrievers
- and by the custom chat application.
- </p>
- <div class="sp-4"></div>
- <div class="arch-pre"><span class="accent">SOURCE</span>
- Knowledge base · tickets · docs · wiki · contracts · CRM
- │
- ▼ <span class="mute">chunker + embedder (OpenAI · Voyage · Anthropic · Cohere)</span>
- Embedding pipeline · 768 / 1024 / 1536-dim float32
- │
- ▼ <span class="mute">ES _bulk — one index per corpus</span>
-<span class="accent">XERJ DATA PLANE</span>
- ┌──────────────────────────────────────────────────────────────┐
- │ HNSW index (SQ8 quantized, 4× compression) │
- │ BM25 index on original text (keyword filter + phrase) │
- │ COLUMNS: metadata · tenant · acl · last-modified │
- │ AGENT MEMORY: session-scoped · time-decay · token-aware │
- └──────────────────────────────────────────────────────────────┘
- │
- ▼ <span class="mute">hybrid query: BM25 filter + vector ANN + ACL · RRF native</span>
-<span class="accent">AGENT RUNTIME</span>
- LangChain · LlamaIndex retriever <span class="mute">single ES query</span>
- Chat API · classification API · summarization <span class="mute">hybrid, one hop</span>
- Feedback loop · re-embed on drift <span class="mute">scheduled</span>
-
-<span class="accent">QUANTIZATION TIER</span>
- &lt; 1 M vectors float32 · max recall · cheapest test path
- 1 M – 10 M SQ8 (4×) · production default · &lt; 0.5 pp loss
- &gt; 10 M nibble (8×) + re-rank · cost-per-GB dominant</div>
- <div class="grow"></div>
- <div class="kicker"><span>SIZING</span><span class="dash">·</span><span>~55 M × 768-DIM / NODE · HYBRID P95 &lt; 40 MS</span></div>
- </div>
- <div class="foot-row">
- <span>XERJ · AI SEARCH &amp; RAG · USE CASE BRIEF</span>
- <span class="num">04 / 10</span>
- </div>
-</section>
-
-<!-- P5 · TECHNICAL BENEFITS -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>05 · TECHNICAL BENEFITS</span>
- </div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>WHY THIS SCALES FOR RAG</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ENGINEERING<br>CHOICES THAT<br><span class="accent">PAY AT SCALE.</span></h2>
- <div class="sp-4"></div>
- <p class="body">
- Six decisions that matter for an enterprise RAG workload.
- Each is a measurable property of the data plane — not a
- framework to configure.
- </p>
- <div class="sp-6"></div>
- <div class="kv-row">
- <div class="k">SQ8 BY DEFAULT</div>
- <div class="v">Scalar 8-bit quantization runs through the HNSW traversal, not just at rest. Graph RAM shrinks 4× too. Re-rank with float32 on the top-K candidates closes the &lt; 0.5 pp recall gap.</div>
- </div>
- <div class="kv-row">
- <div class="k">NATIVE HYBRID</div>
- <div class="v">Reciprocal Rank Fusion is a planner primitive, not a Python wrapper. BM25 and vector ranks combine in-process; no calibration problem between BM25 float and cosine float.</div>
- </div>
- <div class="kv-row">
- <div class="k">ACL IN THE QUERY</div>
- <div class="v">Tenant / role / document-level ACL is a filter clause on the same hybrid query. No separate permission service, no second round trip, no post-filter leak.</div>
- </div>
- <div class="kv-row">
- <div class="k">EXPLAIN-PLAN</div>
- <div class="v"><span class="mono">POST /v1/indices/rag/explain-plan</span> returns per-node cost and row-scan estimate for every retrieval. Capacity planning, cost visibility, and outlier debugging share one JSON shape.</div>
- </div>
- <div class="kv-row">
- <div class="k">AGENT MEMORY NATIVE</div>
- <div class="v">Time-decay scoring, token-budget-aware retrieval, session-scoped indices — all native operators. No Redis TTL story, no glue code to maintain across three teams.</div>
- </div>
- <div class="kv-row">
- <div class="k">COST VISIBILITY</div>
- <div class="v">Every query returns realized CPU, I/O, and row counts. Finance audits AI spend at the query level; the CFO sees embedding retrieval cost as a line-item, not as an end-of-quarter surprise.</div>
- </div>
- <div class="grow"></div>
- </div>
- <div class="foot-row">
- <span>XERJ · AI SEARCH &amp; RAG · USE CASE BRIEF</span>
- <span class="num">05 / 10</span>
- </div>
-</section>
-
-<!-- P6 · OUTCOMES -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>06 · MEASURED OUTCOMES</span>
- </div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>06</span><span class="dash">·</span><span>MEASURED OUTCOMES</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">VECTOR MEMORY<br>AT ENTERPRISE<br><span class="accent">SCALE.</span></h2>
- <div class="sp-4"></div>
- <p class="body">
- Memory footprint for hybrid retrieval indices at the three
- corpus sizes that typically decide hardware plans. XERJ
- under SQ8 default vs. legacy ES + dedicated vector DB in
- float32.
- </p>
- <div class="sp-6"></div>
- <div class="versus">
- <div class="h">CORPUS</div>
- <div class="h a">XERJ (SQ8)</div>
- <div class="h">ES + VECTOR DB (FLOAT32)</div>
-
- <div class="dim">1 M × 768-dim</div>
- <div><span class="accent">1.2 GB</span></div>
- <div>4.6 GB <span class="mute">— 3.8×</span></div>
-
- <div class="dim">5 M × 768-dim</div>
- <div><span class="accent">5.8 GB</span></div>
- <div>23 GB <span class="mute">— 4.0×</span></div>
-
- <div class="dim">10 M × 1,536-dim · enterprise</div>
- <div><span class="accent">18 GB</span></div>
- <div>92 GB <span class="mute">— 5.1×</span></div>
-
- <div class="dim">Hybrid query p95 (1 B vectors)</div>
- <div><span class="accent">38 ms</span></div>
- <div>orchestrator adds 30 + ms</div>
-
- <div class="dim">Recall @ 10 vs float32</div>
- <div><span class="accent">&lt; 0.5 pp loss</span></div>
- <div>baseline</div>
-
- <div class="dim">Network hops per turn</div>
- <div><span class="accent">1</span></div>
- <div>2–3 (RRF orchestrator)</div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row">
- <div class="k">COST IMPACT</div>
- <div class="v">10 M × 1,536-dim RAG corpus fits on one node under SQ8. The same corpus on ES + Pinecone floats needs a multi-node cluster plus per-vector cloud billing.</div>
- </div>
- <div class="kv-row">
- <div class="k">AGENT IMPACT</div>
- <div class="v">A 10-hop agent turn completes in ~400 ms including LLM roundtrip. The same chain over orchestrated ES+Pinecone+Redis regularly exceeds 2 seconds at the same corpus size.</div>
- </div>
- <div class="grow"></div>
- </div>
- <div class="foot-row">
- <span>XERJ · AI SEARCH &amp; RAG · USE CASE BRIEF</span>
- <span class="num">06 / 10</span>
- </div>
-</section>
-
-<!-- P7 · INTEGRATIONS -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>07 · INTEGRATION ECOSYSTEM</span>
- </div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>07</span><span class="dash">·</span><span>YOUR RAG STACK, UNCHANGED</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">LANGCHAIN.<br>LLAMAINDEX.<br><span class="accent">DROP-IN.</span></h2>
- <div class="sp-4"></div>
- <p class="body">
- XERJ exposes ES 8.13 semantics. Every RAG framework with an
- ES retriever works as-is. Embedders plug in through a
- pluggable provider interface.
- </p>
- <div class="sp-6"></div>
- <div class="matrix m3">
- <div class="h">CATEGORY</div>
- <div class="h">TOOLS</div>
- <div class="h">STATUS</div>
-
- <div class="k">RAG FRAMEWORKS</div>
- <div>LangChain · LlamaIndex · Haystack · DSPy — ES retriever / backend · zero adapter code</div>
- <div class="status ga">GA</div>
-
- <div class="k">EMBEDDING PROVIDERS</div>
- <div>OpenAI · Anthropic · Voyage · Cohere · Bedrock · Azure OpenAI · self-hosted · pluggable</div>
- <div class="status ga">GA</div>
-
- <div class="k">CLIENT LIBRARIES</div>
- <div>elasticsearch-py · elasticsearch-js · elasticsearch-java · Go · .NET via official ES clients</div>
- <div class="status ga">GA</div>
-
- <div class="k">DASHBOARDS</div>
- <div>Kibana · Grafana · custom · real-time query shape, cost, recall-drift dashboards</div>
- <div class="status ga">GA</div>
-
- <div class="k">AGENT FRAMEWORKS</div>
- <div>Anthropic Agent SDK · OpenAI Agents · LangGraph · CrewAI — all via ES-compatible retriever</div>
- <div class="status ga">GA</div>
-
- <div class="k">INGEST</div>
- <div>ES _bulk · NDJSON · Vector · custom embedding pipelines via SDK · drift detector (roadmap Q3)</div>
- <div class="status ga">GA</div>
-
- <div class="k">IDENTITY</div>
- <div>OIDC / SAML · AWS IAM · Azure AD · Okta · per-tenant index isolation</div>
- <div class="status road">ROAD Q2</div>
-
- <div class="k">MLOPS</div>
- <div>MLflow model registry · W&amp;B traces · recall-monitoring hooks · scheduled re-embed</div>
- <div class="status road">ROAD Q3</div>
- </div>
- <div class="grow"></div>
- </div>
- <div class="foot-row">
- <span>XERJ · AI SEARCH &amp; RAG · USE CASE BRIEF</span>
- <span class="num">07 / 10</span>
- </div>
-</section>
-
-<!-- P8 · GOVERNANCE -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>08 · GOVERNANCE &amp; COST CONTROL</span>
- </div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>08</span><span class="dash">·</span><span>GOVERNANCE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">RAG COST.<br><span class="accent">BOARD-READABLE.</span></h2>
- <div class="sp-4"></div>
- <p class="body">
- AI infrastructure is where finance loses visibility fastest.
- XERJ makes retrieval-layer cost a queryable metric — not an
- end-of-month vendor surprise.
- </p>
- <div class="sp-6"></div>
- <div class="kv-row">
- <div class="k">PER-QUERY COST</div>
- <div class="v">Every retrieval returns CPU, I/O, and row-count estimates before execution and realized counts after. Dashboards query the same field agents query.</div>
- </div>
- <div class="kv-row">
- <div class="k">CIRCUIT-BREAKERS</div>
- <div class="v">Per-request heap · per-request time · per-tenant concurrency · per-index doc-scan ceiling. Runaway agents fail loud, not expensive.</div>
- </div>
- <div class="kv-row">
- <div class="k">TENANT ISOLATION</div>
- <div class="v">Per-tenant indices, quotas, and explain-plans. Noisy-neighbor agents cannot starve another tenant's retrieval budget.</div>
- </div>
- <div class="kv-row">
- <div class="k">DATA SOVEREIGNTY</div>
- <div class="v">Self-hosted. Your cloud, your VPC, your region. Embeddings never leave the perimeter unless an embedder is configured to an external API.</div>
- </div>
- <div class="kv-row">
- <div class="k">AUDIT TRAIL</div>
- <div class="v">Every retrieval logged with principal, query shape, and realized cost. Replayable. Exportable. Queryable as a regular XERJ index.</div>
- </div>
- <div class="kv-row">
- <div class="k">DRIFT &amp; RECALL</div>
- <div class="v">Query-shape dashboard surfaces recall drift, latency outliers, and re-embed candidates. Scheduled monitoring hooks <span class="pill road">Q3</span>.</div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>COST AS DATA</span><span class="dash">·</span><span>NOT A POST-HOC BILL RECONCILIATION</span></div>
- </div>
- <div class="foot-row">
- <span>XERJ · AI SEARCH &amp; RAG · USE CASE BRIEF</span>
- <span class="num">08 / 10</span>
- </div>
-</section>
-
-<!-- P9 · IMPLEMENTATION -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>09 · IMPLEMENTATION PATH</span>
- </div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>09</span><span class="dash">·</span><span>FROM PILOT TO PRODUCTION</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FIVE PHASES.<br><span class="accent">ONE YEAR.</span></h2>
- <div class="sp-4"></div>
- <p class="body">
- A reversible rollout. Start with one RAG corpus on a single
- node; end with a consolidated retrieval platform replacing the
- vector-DB contract, the session cache, and the keyword store.
- </p>
- <div class="sp-6"></div>
- <div class="road-rail">
- <div class="q">01</div>
- <div class="t">PILOT<br><span class="accent">WEEKS 1–2</span></div>
- <div>Single node · embed one corpus (~1 M docs) · run the RAG_BENCH report · compare recall &amp; latency against your current stack on the same corpus. No application change.</div>
-
- <div class="q">02</div>
- <div class="t">SHADOW<br><span class="accent">WEEKS 3–6</span></div>
- <div>3-node HA cluster · dual-write embeddings to XERJ + incumbent vector DB · LangChain / LlamaIndex retriever switch is one env var. Side-by-side A/B on the chat app.</div>
-
- <div class="q">03</div>
- <div class="t">MIGRATE PRIMARY RAG CORPUS<br><span class="accent">QUARTER 2</span></div>
- <div>Make XERJ primary for one RAG workload (docs · tickets · KB). Decommission the shadowed vector DB index. First line removed from the monthly vector-DB bill.</div>
-
- <div class="q">04</div>
- <div class="t">ADD AGENT MEMORY<br><span class="accent">QUARTER 3</span></div>
- <div>Move conversation turns and tool traces into XERJ agent-memory indices. Retire Redis for session cache. Time-decay retrieval now runs natively; glue code is deleted.</div>
-
- <div class="q">05</div>
- <div class="t">CONSOLIDATE<br><span class="accent">QUARTER 4</span></div>
- <div>All RAG workloads on XERJ. Vector DB contract ends. Single retrieval platform for every agent team. One vendor, one SLA, one audit surface.</div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>REVERSIBLE</span><span class="dash">·</span><span>ES WIRE PROTOCOL MEANS NO LOCK-IN AT ANY PHASE</span></div>
- </div>
- <div class="foot-row">
- <span>XERJ · AI SEARCH &amp; RAG · USE CASE BRIEF</span>
- <span class="num">09 / 10</span>
- </div>
-</section>
-
-<!-- P10 · CONTACT -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>10 · GET STARTED</span>
- </div>
- <div class="grow flex col">
- <div class="sp-10"></div>
- <div class="kicker"><span>10</span><span class="dash">·</span><span>NEXT STEPS</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">RUN HYBRID.<br><span class="accent">ON YOUR CORPUS.</span></h2>
- <div class="sp-6"></div>
- <p class="body">
- A two-week pilot on a real RAG corpus. Private binary, embed
- scripts, seeded datasets for the RAG_BENCH report. You bring
- the corpus and the chat application's current p95.
- </p>
- <div class="sp-10"></div>
- <div style="padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);">
- <div class="kicker"><span>AI PLATFORM CONTACT</span></div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-display); font-weight: 900; font-size: 42pt; line-height:1; letter-spacing: 0.01em;">
- HELLO<span class="accent">@</span>XERJ.AI
- </div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-data); font-size: 9pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--mute);">
- XERJ.AI · XERJ.COM · XERJ.DEV
- </div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row">
- <div class="k">WHAT YOU GET</div>
- <div class="v">Private binary · RAG_BENCH reproduction scripts · seeded 10 M-embedding corpus · LangChain / LlamaIndex retriever examples · query-shape dashboard JSON.</div>
- </div>
- <div class="kv-row">
- <div class="k">WHAT YOU BRING</div>
- <div class="v">One RAG corpus (docs / tickets / KB) with its embedding model and a baseline recall / p95 number from the current retrieval stack.</div>
- </div>
- <div class="kv-row">
- <div class="k">COMPANION BRIEFS</div>
- <div class="v"><span class="mono">xerj-exec-brief.pdf</span> (CAIO / CDO) · <span class="mono">xerj-tech-brief.pdf</span> (architect) · <span class="mono">xerj-industry-finserv.pdf</span> for regulated RAG</div>
- </div>
- <div class="grow"></div>
- <div class="kicker">
- <span>XERJ.AI · AI SEARCH &amp; RAG · USE CASE BRIEF</span>
- <span class="dash">·</span>
- <span>V1 · 2026-04</span>
- </div>
- </div>
- <div class="foot-row">
- <span>XERJ · AI SEARCH &amp; RAG · USE CASE BRIEF</span>
- <span class="num">10 / 10</span>
- </div>
-</section>
-
-</body>
-</html>
diff --git a/brief/kit/src/usecase-security.html b/brief/kit/src/usecase-security.html
deleted file mode 100644
index f1adbcee1..000000000
--- a/brief/kit/src/usecase-security.html
+++ /dev/null
@@ -1,571 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ — Security Analytics at Scale — Use Case Brief</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<link rel="stylesheet" href="../common.css">
-</head>
-<body>
-
-<!-- P1 · COVER -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>USE CASE · SECURITY ANALYTICS · V1 · 2026-04</span>
- </div>
- <div class="grow flex col between">
- <div class="sp-10"></div>
- <div>
- <div class="kicker" style="margin-bottom:20px;">
- <span>USE CASE 01</span>
- <span class="dash">·</span>
- <span>FOR CISO · SECOPS · SOC LEADS</span>
- </div>
- <div class="cover-hero">
- SIEM AT<br>
- <span class="accent">AI SPEED.</span><br>
- ON YOUR<br>
- DATA.
- </div>
- <div class="sp-8"></div>
- <p class="lead" style="max-width:6in;">
- Enterprise security teams already have the telemetry. What
- they don't have is a platform where SIEM queries, threat
- models, and AI-augmented triage share one retrieval layer.
- XERJ collapses the SIEM store, the vector index, and the
- agent memory into one self-hosted data plane — Elasticsearch
- wire-protocol compatible, deterministic at the tail.
- </p>
- </div>
- <div class="kicker">
- <span>74× FASTER SIEM QUERIES</span>
- <span class="dash">·</span>
- <span>MTTD IN MILLISECONDS</span>
- <span class="dash">·</span>
- <span>ONE DATA PLANE</span>
- </div>
- </div>
- <div class="foot-row">
- <span>XERJ · SECURITY ANALYTICS · USE CASE BRIEF</span>
- <span class="num">01 / 10</span>
- </div>
-</section>
-
-<!-- P2 · AI TRANSFORMATION PROBLEM -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>02 · THE AI-TRANSFORMATION PROBLEM</span>
- </div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>WHY THIS MATTERS NOW</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">THE SOC IS<br>THE FIRST AI<br><span class="accent">WORKLOAD.</span></h2>
- <div class="sp-4"></div>
- <p class="body">
- Every enterprise AI roadmap names the SOC — alert triage,
- enrichment, report generation, detection authoring — as a
- year-one use case. It is where agents earn the budget. It is
- also where most SOCs stall: the legacy SIEM cannot be queried
- at agent cadence, and adding a vector store next to it
- doubles the bill without closing the loop.
- </p>
- <div class="sp-6"></div>
- <div class="kv-row">
- <div class="k">QUERY LATENCY</div>
- <div class="v">Agents iterate through evidence. A 30 ms p95 on <span class="mono">top_source_ips</span> is fine for a human; it is intolerable for an agent that needs 10 lookups per turn. SIEM vendors charge for the data and for the latency.</div>
- </div>
- <div class="kv-row">
- <div class="k">FRAGMENTED STORES</div>
- <div class="v">Threat intel in one store, logs in another, embeddings in a third, agent memory in a fourth. An incident investigation crosses three or four stores in one Python notebook. Each hop is a failure mode.</div>
- </div>
- <div class="kv-row">
- <div class="k">COST OF CORRELATION</div>
- <div class="v">Detection engineers are blocked on data model reconciliation rather than on writing detections. Every new data source takes weeks to land; every new detection requires a schema reconciliation meeting.</div>
- </div>
- <div class="kv-row">
- <div class="k">AUDIT SURFACE</div>
- <div class="v">Three stores means three RBAC models, three audit trails, three backup stories. The CISO's job is to explain risk; the data layer makes that job adversarial.</div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>THE SOC NEEDS ONE DATA PLANE</span><span class="dash">·</span><span>NOT THREE SUBSYSTEMS</span></div>
- </div>
- <div class="foot-row">
- <span>XERJ · SECURITY ANALYTICS · USE CASE BRIEF</span>
- <span class="num">02 / 10</span>
- </div>
-</section>
-
-<!-- P3 · XERJ THESIS -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>03 · XERJ POSITIONING</span>
- </div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>UNIFIED AI DATA STACK</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SIEM.<br>VECTORS.<br><span class="accent">ONE ENGINE.</span></h2>
- <div class="sp-4"></div>
- <p class="body">
- XERJ is a self-hosted data platform that runs all four AI-era
- retrieval primitives in one Rust process: BM25 full-text,
- HNSW vector, columnar log store, and session-scoped agent
- memory. Drop-in for existing Elasticsearch 8.13 clients —
- your Beats, Logstash, Filebeat, Wazuh integration keep working.
- </p>
- <div class="sp-6"></div>
- <div class="quad-grid">
- <div class="cell">
- <span class="k">RETRIEVAL</span>
- <span class="v">74×</span>
- <span class="t">SIEM TOP-SOURCE-IPS<br><span class="accent">VS ES 8.13</span></span>
- <span class="b">0.4 ms p95 on 1 M events · pre-computed term paths · deterministic at the tail.</span>
- </div>
- <div class="cell">
- <span class="k">FOOTPRINT</span>
- <span class="v">21×</span>
- <span class="t">LESS IDLE<br><span class="accent">MEMORY</span></span>
- <span class="b">400 MB vs 8.5 GB for a 4-node ES cluster. One binary, no JVM heap reservation, jemalloc returns pages to the OS.</span>
- </div>
- <div class="cell">
- <span class="k">CONSOLIDATION</span>
- <span class="v">4 → 1</span>
- <span class="t">STORES INTO<br><span class="accent">ONE PROCESS</span></span>
- <span class="b">SIEM + vector + log + agent memory on one segment cache, one WAL, one RBAC, one audit log.</span>
- </div>
- <div class="cell">
- <span class="k">SOVEREIGNTY</span>
- <span class="v">100 %</span>
- <span class="t">SELF-HOSTED<br><span class="accent">BY DEFAULT</span></span>
- <span class="b">Your cloud, your VPC, your metal. Air-gapped supported. No telemetry egress when <span class="mono">XERJ_AIRGAP=1</span>.</span>
- </div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>DROP-IN ES 8.13 WIRE PROTOCOL</span><span class="dash">·</span><span>ZERO CLIENT REWRITE</span></div>
- </div>
- <div class="foot-row">
- <span>XERJ · SECURITY ANALYTICS · USE CASE BRIEF</span>
- <span class="num">03 / 10</span>
- </div>
-</section>
-
-<!-- P4 · REFERENCE ARCHITECTURE -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>04 · REFERENCE ARCHITECTURE</span>
- </div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>REFERENCE ARCHITECTURE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SOC BLUEPRINT.<br><span class="accent">ONE PLATFORM.</span></h2>
- <div class="sp-4"></div>
- <p class="body">
- A typical three-node XERJ SOC deployment. Named upstreams,
- named consumers, documented retention. Every component except
- XERJ is something the team already runs.
- </p>
- <div class="sp-4"></div>
- <div class="arch-pre"><span class="accent">INGEST</span>
- Endpoints · firewall · IdP · cloud-trail · network · app logs
- │
- ▼ <span class="mute">TLS · ES _bulk · OTLP (beta) · syslog (roadmap)</span>
- Filebeat · Vector · Fluentd · Wazuh · Otel Collector
- │
- ▼
-<span class="accent">XERJ DATA PLANE</span> · 3-node HA cluster
- ┌─────────────────────────────────────────────────────────────┐
- │ WAL (LZ4 · CRC32C) → memtable → segment (mmap-shared cache) │
- │ │
- │ FTS index │ VECTOR index │ COLUMNS │ AGENT MEMORY │
- │ BM25 │ HNSW + SQ8 │ log data │ session scoped│
- └─────────────────────────────────────────────────────────────┘
- │
- ▼ <span class="mute">ES 8.13 wire · explain-plan · /metrics</span>
-<span class="accent">CONSUMERS</span>
- Kibana dashboards · SOC analysts <span class="mute">keyword queries</span>
- Detection-as-code engine <span class="mute">scheduled aggregations</span>
- Triage agent · enrichment LLM · case-summary LLM <span class="mute">hybrid retrieval</span>
- SIEM-connected SOAR · ticketing <span class="mute">webhook out</span>
-
-<span class="accent">RETENTION</span>
- Hot (SSD) 30 d · interactive queries · full fidelity
- Warm (HDD) 90 d · aggregated queries · segment-level tiering
- Cold (S3) 1 y · snapshot + restore · incremental, encrypted</div>
- <div class="grow"></div>
- <div class="kicker"><span>SIZING</span><span class="dash">·</span><span>3 NODES · ~50 M EVENTS/NODE/DAY · ~2.5 TB/NODE · 10 GBPS NET</span></div>
- </div>
- <div class="foot-row">
- <span>XERJ · SECURITY ANALYTICS · USE CASE BRIEF</span>
- <span class="num">04 / 10</span>
- </div>
-</section>
-
-<!-- P5 · TECHNICAL BENEFITS -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>05 · TECHNICAL BENEFITS</span>
- </div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>TECHNICAL BENEFITS</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">WHY THIS<br>SCALES IN<br><span class="accent">THE SOC.</span></h2>
- <div class="sp-4"></div>
- <p class="body">
- Five engineering choices that matter for a security workload.
- Each produces a measurable property of the SOC data plane —
- not a marketing bullet.
- </p>
- <div class="sp-6"></div>
- <div class="kv-row">
- <div class="k">PRE-COMPUTED TERMS</div>
- <div class="v">Top-source-IPs, auth-failure histograms, port distributions — aggregations read a pre-built histogram at query time instead of scanning postings. This is where the <span class="accent">74×</span> comes from. <span class="pill road">Q2</span></div>
- </div>
- <div class="kv-row">
- <div class="k">DETERMINISTIC TAIL</div>
- <div class="v">No JVM garbage collector, no JIT deopt. p99.9 tracks p50 plus cache-miss and disk. Alert triage queries have predictable budgets.</div>
- </div>
- <div class="kv-row">
- <div class="k">HYBRID NATIVE</div>
- <div class="v">One query combines a keyword filter (source-ip, user-agent), a time-range, an aggregation, and a semantic clause against similar-incident embeddings. Reciprocal rank fusion merges in-process.</div>
- </div>
- <div class="kv-row">
- <div class="k">EXPLAIN-PLAN</div>
- <div class="v"><span class="mono">POST /v1/indices/siem/explain-plan</span> returns the plan tree with cost + rows per node. Detection engineers debug query plans without a profiler. Audit teams see the plan the SOC sees.</div>
- </div>
- <div class="kv-row">
- <div class="k">LOCK-FREE READERS</div>
- <div class="v">ArcSwap segment view · DashMap version map. Flush never blocks analyst queries; analysts never block ingest. A 24 h surge writes through without stalling the dashboard.</div>
- </div>
- <div class="kv-row">
- <div class="k">ENCRYPTED SEGMENTS</div>
- <div class="v">AES-256-GCM on segment and WAL files. Customer KMS (BYOK <span class="pill road">Q2</span>). Air-gapped install verified by signed release manifest.</div>
- </div>
- <div class="grow"></div>
- </div>
- <div class="foot-row">
- <span>XERJ · SECURITY ANALYTICS · USE CASE BRIEF</span>
- <span class="num">05 / 10</span>
- </div>
-</section>
-
-<!-- P6 · KEY OUTCOMES -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>06 · MEASURED OUTCOMES</span>
- </div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>06</span><span class="dash">·</span><span>MEASURED OUTCOMES</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SIEM QUERY<br>BATTERY.<br><span class="accent">VS ES 8.13.</span></h2>
- <div class="sp-4"></div>
- <p class="body">
- Eight canonical SIEM queries. 1 M events. p95 latency. XERJ
- on one node · Elasticsearch on four. Source:
- <span class="mono">SIEM_BATTLE_2026-04-14_184900_UTC.md</span>.
- </p>
- <div class="sp-6"></div>
- <div class="versus">
- <div class="h">QUERY</div>
- <div class="h a">XERJ</div>
- <div class="h">ES 8.13 (4-NODE)</div>
-
- <div class="dim">Top source IPs · triage</div>
- <div><span class="accent">0.4 ms</span></div>
- <div>29.8 ms <span class="mute">— 74.5×</span></div>
-
- <div class="dim">Auth failures / hour</div>
- <div><span class="accent">0.3 ms</span></div>
- <div>18.2 ms <span class="mute">— 60.7×</span></div>
-
- <div class="dim">Lateral movement</div>
- <div><span class="accent">1.2 ms</span></div>
- <div>45.1 ms <span class="mute">— 37.6×</span></div>
-
- <div class="dim">DNS tunneling detection</div>
- <div><span class="accent">0.8 ms</span></div>
- <div>32.7 ms <span class="mute">— 40.9×</span></div>
-
- <div class="dim">Process-tree anomaly</div>
- <div><span class="accent">2.1 ms</span></div>
- <div>89.3 ms <span class="mute">— 42.5×</span></div>
-
- <div class="dim">Brute-force detection</div>
- <div><span class="accent">0.5 ms</span></div>
- <div>41.0 ms <span class="mute">— 82.0×</span></div>
-
- <div class="dim">Geo-impossible login</div>
- <div><span class="accent">1.8 ms</span></div>
- <div>67.2 ms <span class="mute">— 37.3×</span></div>
-
- <div class="dim">Data-exfil &gt; 10 MB</div>
- <div><span class="accent">0.6 ms</span></div>
- <div>22.4 ms <span class="mute">— 37.3×</span></div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row">
- <div class="k">MTTD IMPACT</div>
- <div class="v">Analysts iterate in-thought at sub-millisecond latency. Enrichment agents complete a 10-lookup chain in under 15 ms. The p99.9 is deterministic because there is no GC.</div>
- </div>
- <div class="kv-row">
- <div class="k">INFRA TCO</div>
- <div class="v">1 node replaces 4. Idle memory 400 MB vs 8.5 GB. Disk 85 MB vs 240 MB per 1 M SIEM events. Board-reportable TCO reduction on infrastructure line items.</div>
- </div>
- <div class="grow"></div>
- </div>
- <div class="foot-row">
- <span>XERJ · SECURITY ANALYTICS · USE CASE BRIEF</span>
- <span class="num">06 / 10</span>
- </div>
-</section>
-
-<!-- P7 · INTEGRATION ECOSYSTEM -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>07 · INTEGRATION ECOSYSTEM</span>
- </div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>07</span><span class="dash">·</span><span>INTEGRATES WITH WHAT YOU RUN</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">YOUR SOC STACK.<br><span class="accent">UNCHANGED.</span></h2>
- <div class="sp-4"></div>
- <p class="body">
- XERJ speaks the Elasticsearch 8.13 wire protocol. Every SOC
- tool that already ships to ES (or is compatible with it) works
- out of the box.
- </p>
- <div class="sp-6"></div>
- <div class="matrix m3">
- <div class="h">CATEGORY</div>
- <div class="h">TOOLS</div>
- <div class="h">STATUS</div>
-
- <div class="k">LOG SHIPPERS</div>
- <div>Filebeat · Winlogbeat · Auditbeat · Vector · Fluentd · Fluent Bit · Logstash</div>
- <div class="status ga">GA</div>
-
- <div class="k">SIEM ENGINES</div>
- <div>Wazuh · Elastic Security · Sigma rules via SIEM converters · custom detection-as-code pipelines</div>
- <div class="status ga">GA</div>
-
- <div class="k">SOAR / TICKETING</div>
- <div>Splunk Phantom · IBM SOAR · ServiceNow · Jira · PagerDuty · via webhook or ES-query polling</div>
- <div class="status ga">GA</div>
-
- <div class="k">THREAT INTEL</div>
- <div>MISP · OpenCTI · commercial TI feeds · load via _bulk or scheduled enrichment job</div>
- <div class="status ga">GA</div>
-
- <div class="k">AGENTS / LLMS</div>
- <div>LangChain ES retriever · LlamaIndex ES backend · Anthropic · OpenAI via custom embedder</div>
- <div class="status ga">GA</div>
-
- <div class="k">DASHBOARDS</div>
- <div>Kibana (community-validated) · Grafana (ES datasource) · custom via ES query API</div>
- <div class="status ga">GA</div>
-
- <div class="k">IDENTITY</div>
- <div>OIDC · SAML 2.0 · AWS IAM / Azure AD / Okta · SCIM for tenant provisioning</div>
- <div class="status road">ROAD Q2</div>
-
- <div class="k">OTLP</div>
- <div>OpenTelemetry Collector · direct OTLP/HTTP ingest for unified obs + security</div>
- <div class="status beta">BETA</div>
-
- <div class="k">KAFKA SOURCE</div>
- <div>Pull-based ingest · exactly-once via consumer-group offsets · high-throughput pipelines</div>
- <div class="status road">ROAD Q3</div>
- </div>
- <div class="grow"></div>
- </div>
- <div class="foot-row">
- <span>XERJ · SECURITY ANALYTICS · USE CASE BRIEF</span>
- <span class="num">07 / 10</span>
- </div>
-</section>
-
-<!-- P8 · SECURITY POSTURE -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>08 · SECURITY POSTURE</span>
- </div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>08</span><span class="dash">·</span><span>SECURITY POSTURE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ZERO-TRUST.<br><span class="accent">AUDIT-GRADE.</span></h2>
- <div class="sp-4"></div>
- <p class="body">
- A SIEM data plane that the CISO can actually defend. Mutual
- TLS between services, per-request authorization, structured
- audit of every privileged operation.
- </p>
- <div class="sp-6"></div>
- <h4>CONTROLS</h4>
- <div class="sp-2"></div>
- <div class="matrix m3">
- <div class="h">CONTROL</div>
- <div class="h">IMPLEMENTATION</div>
- <div class="h">STATUS</div>
-
- <div class="k">TLS IN TRANSIT</div>
- <div>TLS 1.3 everywhere · modern AEAD ciphers · zero-downtime cert rotation</div>
- <div class="status ga">GA</div>
-
- <div class="k">ENCRYPTION AT REST</div>
- <div>AES-256-GCM on segments and WAL · keys in external KMS (AWS KMS · GCP KMS · Vault)</div>
- <div class="status beta">BETA</div>
-
- <div class="k">BYOK</div>
- <div>Customer-managed keys · no XERJ-side plaintext · rotation documented</div>
- <div class="status road">ROAD Q2</div>
-
- <div class="k">RBAC</div>
- <div>Cluster · index · field-level. Built-in + custom roles. OIDC-group mapping</div>
- <div class="status road">ROAD Q2</div>
-
- <div class="k">AUDIT TRAIL</div>
- <div>Structured log of query · schema change · role assignment · snapshot. Replayable.</div>
- <div class="status beta">BETA</div>
-
- <div class="k">AIR-GAPPED</div>
- <div>Offline bundle + signed release manifest · <span class="mono">XERJ_AIRGAP=1</span> disables all telemetry egress</div>
- <div class="status ga">GA</div>
-
- <div class="k">MULTI-TENANCY</div>
- <div>Per-tenant index isolation · per-tenant quotas · physical isolation via separate clusters</div>
- <div class="status ga">GA</div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row">
- <div class="k">REGULATORY</div>
- <div class="v">Self-hosted = customer chooses region · data never leaves perimeter · SOC 2 Type I in progress (target Q3 2026) · ISO 27001 target Q4 2026 · HIPAA BAA on Enterprise tier.</div>
- </div>
- <div class="grow"></div>
- </div>
- <div class="foot-row">
- <span>XERJ · SECURITY ANALYTICS · USE CASE BRIEF</span>
- <span class="num">08 / 10</span>
- </div>
-</section>
-
-<!-- P9 · IMPLEMENTATION PATH -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>09 · IMPLEMENTATION PATH</span>
- </div>
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>09</span><span class="dash">·</span><span>FROM POC TO PRODUCTION</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FIVE PHASES.<br><span class="accent">ONE YEAR.</span></h2>
- <div class="sp-4"></div>
- <p class="body">
- A reversible, measured rollout. No big-bang migration. The
- shadow-deploy pattern keeps the existing SIEM primary until
- XERJ has a dated comparison report on your actual data.
- </p>
- <div class="sp-6"></div>
- <div class="road-rail">
- <div class="q">01</div>
- <div class="t">PILOT<br><span class="accent">WEEKS 1–2</span></div>
- <div>Deploy single node · reproduce the SIEM_BATTLE report on a seeded 1 M-event corpus · smoke-test with one log source · first analyst runs Kibana unchanged.</div>
-
- <div class="q">02</div>
- <div class="t">SHADOW<br><span class="accent">WEEKS 3–6</span></div>
- <div>3-node HA cluster · dual-write from the ingest pipeline · XERJ reads in parallel with the existing SIEM · compare latency, recall, detection coverage on production traffic. No user impact.</div>
-
- <div class="q">03</div>
- <div class="t">CUT OVER ONE WORKLOAD<br><span class="accent">QUARTER 2</span></div>
- <div>Pick the hot workload (typically auth-log SIEM or network-flow analytics) · route analysts to XERJ · decommission the shadowed subset of the legacy SIEM. First line removed from the monthly bill.</div>
-
- <div class="q">04</div>
- <div class="t">ADD AI / RAG<br><span class="accent">QUARTER 3</span></div>
- <div>Enable the vector index · embed threat-intel corpus + past-incident notes · deploy a triage agent over XERJ's hybrid retrieval · MTTD drops as agents handle tier-1 correlation.</div>
-
- <div class="q">05</div>
- <div class="t">CONSOLIDATE<br><span class="accent">QUARTER 4</span></div>
- <div>Migrate remaining SIEM workloads · retire the legacy SIEM · collapse vector-store contract. One platform, one contract, one on-call, one audit surface.</div>
- </div>
- <div class="grow"></div>
- <div class="kicker"><span>REVERSIBLE</span><span class="dash">·</span><span>ES WIRE PROTOCOL MEANS NO LOCK-IN AT ANY PHASE</span></div>
- </div>
- <div class="foot-row">
- <span>XERJ · SECURITY ANALYTICS · USE CASE BRIEF</span>
- <span class="num">09 / 10</span>
- </div>
-</section>
-
-<!-- P10 · CONTACT -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>10 · GET STARTED</span>
- </div>
- <div class="grow flex col">
- <div class="sp-10"></div>
- <div class="kicker"><span>10</span><span class="dash">·</span><span>NEXT STEPS</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">RUN THE BATTLE.<br><span class="accent">ON YOUR LOGS.</span></h2>
- <div class="sp-6"></div>
- <p class="body">
- A two-week shadow pilot on real SIEM traffic. We bring the
- binary and the reproduction scripts for every number in this
- brief. You bring one log source and your current p95
- dashboard.
- </p>
- <div class="sp-10"></div>
- <div style="padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);">
- <div class="kicker"><span>SOC / CISO CONTACT</span></div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-display); font-weight: 900; font-size: 42pt; line-height:1; letter-spacing: 0.01em;">
- HELLO<span class="accent">@</span>XERJ.AI
- </div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-data); font-size: 9pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--mute);">
- XERJ.AI · XERJ.COM · XERJ.DEV
- </div>
- </div>
- <div class="sp-6"></div>
- <div class="kv-row">
- <div class="k">WHAT YOU GET</div>
- <div class="v">Private binary · SIEM_BATTLE reproduction scripts · seeded 1 M-event corpus · Kibana dashboard JSON · detection-as-code starter kit.</div>
- </div>
- <div class="kv-row">
- <div class="k">WHAT YOU BRING</div>
- <div class="v">One log source (syslog / Windows event / cloud-trail) and a current SIEM query with its latency baseline.</div>
- </div>
- <div class="kv-row">
- <div class="k">COMPANION BRIEFS</div>
- <div class="v"><span class="mono">xerj-exec-brief.pdf</span> (C-suite) · <span class="mono">xerj-tech-brief.pdf</span> (architect) · <span class="mono">xerj-industry-finserv.pdf</span> for regulated verticals</div>
- </div>
- <div class="grow"></div>
- <div class="kicker">
- <span>XERJ.AI · SECURITY ANALYTICS · USE CASE BRIEF</span>
- <span class="dash">·</span>
- <span>V1 · 2026-04</span>
- </div>
- </div>
- <div class="foot-row">
- <span>XERJ · SECURITY ANALYTICS · USE CASE BRIEF</span>
- <span class="num">10 / 10</span>
- </div>
-</section>
-
-</body>
-</html>
diff --git a/brief/kit/xerj-industry-finserv.pdf b/brief/kit/xerj-industry-finserv.pdf
deleted file mode 100644
index 88f5cabe0..000000000
Binary files a/brief/kit/xerj-industry-finserv.pdf and /dev/null differ
diff --git a/brief/kit/xerj-industry-healthcare.pdf b/brief/kit/xerj-industry-healthcare.pdf
deleted file mode 100644
index eca442858..000000000
Binary files a/brief/kit/xerj-industry-healthcare.pdf and /dev/null differ
diff --git a/brief/kit/xerj-industry-public-sector.pdf b/brief/kit/xerj-industry-public-sector.pdf
deleted file mode 100644
index bdfba2dfe..000000000
Binary files a/brief/kit/xerj-industry-public-sector.pdf and /dev/null differ
diff --git a/brief/kit/xerj-industry-retail.pdf b/brief/kit/xerj-industry-retail.pdf
deleted file mode 100644
index 159457c55..000000000
Binary files a/brief/kit/xerj-industry-retail.pdf and /dev/null differ
diff --git a/brief/kit/xerj-usecase-es-replacement.pdf b/brief/kit/xerj-usecase-es-replacement.pdf
deleted file mode 100644
index 7a0460bee..000000000
Binary files a/brief/kit/xerj-usecase-es-replacement.pdf and /dev/null differ
diff --git a/brief/kit/xerj-usecase-observability.pdf b/brief/kit/xerj-usecase-observability.pdf
deleted file mode 100644
index e5b2acc70..000000000
Binary files a/brief/kit/xerj-usecase-observability.pdf and /dev/null differ
diff --git a/brief/kit/xerj-usecase-ops-intel.pdf b/brief/kit/xerj-usecase-ops-intel.pdf
deleted file mode 100644
index d380119cf..000000000
Binary files a/brief/kit/xerj-usecase-ops-intel.pdf and /dev/null differ
diff --git a/brief/kit/xerj-usecase-rag.pdf b/brief/kit/xerj-usecase-rag.pdf
deleted file mode 100644
index 8cdc87059..000000000
Binary files a/brief/kit/xerj-usecase-rag.pdf and /dev/null differ
diff --git a/brief/kit/xerj-usecase-security.pdf b/brief/kit/xerj-usecase-security.pdf
deleted file mode 100644
index a7edf9bd6..000000000
Binary files a/brief/kit/xerj-usecase-security.pdf and /dev/null differ
diff --git a/brief/probe-p11.js b/brief/probe-p11.js
deleted file mode 100644
index a44e76033..000000000
--- a/brief/probe-p11.js
+++ /dev/null
@@ -1,28 +0,0 @@
-const puppeteer = require('puppeteer');
-const path = require('path');
-(async () => {
- const b = await puppeteer.launch({ headless: true, args: ['--no-sandbox'] });
- const p = await b.newPage();
- await p.emulateMediaType('print');
- await p.setViewport({ width: 816, height: 1056 });
- await p.goto('file://' + path.resolve('/home/claude/ai/xerj.ai/brief/_tech-brief.rendered.html'), { waitUntil: 'networkidle0' });
- await p.evaluateHandle('document.fonts.ready');
- const out = await p.evaluate(() => {
- const page = document.querySelectorAll('.page')[10]; // zero-indexed page 11
- const inner = page.querySelector('.grow.flex.col');
- const kids = [...inner.children].map(c => {
- const r = c.getBoundingClientRect();
- return {
- tag: c.tagName + (c.className ? '.' + c.className.split(' ').slice(0,2).join('.') : ''),
- top: Math.round(r.top),
- bottom: Math.round(r.bottom),
- h: Math.round(r.height),
- };
- });
- const pageRect = page.getBoundingClientRect();
- return { pageTop: pageRect.top, pageBottom: pageRect.bottom, kids };
- });
- console.log('page top/bottom:', out.pageTop, out.pageBottom);
- out.kids.forEach((c,i)=>console.log(` ${i}: ${c.tag.padEnd(30)} top=${c.top} bot=${c.bottom} h=${c.h}`));
- await b.close();
-})();
diff --git a/brief/probe-tech.js b/brief/probe-tech.js
deleted file mode 100644
index 41299d783..000000000
--- a/brief/probe-tech.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/* probe — check rendered heights of every page and identify overflow */
-const puppeteer = require('puppeteer');
-const path = require('path');
-(async () => {
- const inPath = path.resolve(__dirname, '_tech-brief.rendered.html');
- const b = await puppeteer.launch({ headless: true, args: ['--no-sandbox'] });
- const p = await b.newPage();
- await p.emulateMediaType('print');
- await p.setViewport({ width: 816, height: 1056 });
- await p.goto('file://' + inPath, { waitUntil: 'networkidle0' });
- await p.evaluateHandle('document.fonts.ready');
- const out = await p.evaluate(() => {
- const pages = [...document.querySelectorAll('.page')];
- return pages.map((pg, i) => {
- const over = pg.scrollHeight > pg.clientHeight;
- const inner = pg.querySelector('.grow.flex.col');
- const innerOver = inner && inner.scrollHeight > inner.clientHeight;
- return {
- i: i+1,
- h: pg.clientHeight,
- sH: pg.scrollHeight,
- over,
- innerH: inner ? inner.clientHeight : 0,
- innerSH: inner ? inner.scrollHeight : 0,
- innerOver,
- };
- });
- });
- for (const pg of out) {
- const tag = pg.over || pg.innerOver ? ' OVER' : '';
- console.log(`page ${String(pg.i).padStart(2)}: h=${pg.h} scrollH=${pg.sH} inner h=${pg.innerH} scrollH=${pg.innerSH}${tag}`);
- }
- await b.close();
-})();
diff --git a/brief/probe-tech2.js b/brief/probe-tech2.js
deleted file mode 100644
index 41299d783..000000000
--- a/brief/probe-tech2.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/* probe — check rendered heights of every page and identify overflow */
-const puppeteer = require('puppeteer');
-const path = require('path');
-(async () => {
- const inPath = path.resolve(__dirname, '_tech-brief.rendered.html');
- const b = await puppeteer.launch({ headless: true, args: ['--no-sandbox'] });
- const p = await b.newPage();
- await p.emulateMediaType('print');
- await p.setViewport({ width: 816, height: 1056 });
- await p.goto('file://' + inPath, { waitUntil: 'networkidle0' });
- await p.evaluateHandle('document.fonts.ready');
- const out = await p.evaluate(() => {
- const pages = [...document.querySelectorAll('.page')];
- return pages.map((pg, i) => {
- const over = pg.scrollHeight > pg.clientHeight;
- const inner = pg.querySelector('.grow.flex.col');
- const innerOver = inner && inner.scrollHeight > inner.clientHeight;
- return {
- i: i+1,
- h: pg.clientHeight,
- sH: pg.scrollHeight,
- over,
- innerH: inner ? inner.clientHeight : 0,
- innerSH: inner ? inner.scrollHeight : 0,
- innerOver,
- };
- });
- });
- for (const pg of out) {
- const tag = pg.over || pg.innerOver ? ' OVER' : '';
- console.log(`page ${String(pg.i).padStart(2)}: h=${pg.h} scrollH=${pg.sH} inner h=${pg.innerH} scrollH=${pg.innerSH}${tag}`);
- }
- await b.close();
-})();
diff --git a/brief/probe.js b/brief/probe.js
deleted file mode 100644
index 9b2a6bcc2..000000000
--- a/brief/probe.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/* probe layout — report computed heights of each .page's children */
-const puppeteer = require('puppeteer');
-const path = require('path');
-
-(async () => {
- const inPath = path.resolve(__dirname, '_exec-brief.rendered.html');
- const b = await puppeteer.launch({ headless: true, args: ['--no-sandbox'] });
- const p = await b.newPage();
- await p.emulateMediaType('print');
- await p.setViewport({ width: 816, height: 1056 }); // letter at 96dpi
- await p.goto('file://' + inPath, { waitUntil: 'networkidle0' });
- await p.evaluateHandle('document.fonts.ready');
-
- const out = await p.evaluate(() => {
- const pages = [...document.querySelectorAll('.page')];
- return pages.map((pg, i) => {
- const r = pg.getBoundingClientRect();
- const children = [...pg.children].map(c => {
- const cr = c.getBoundingClientRect();
- return {
- tag: c.tagName + (c.className ? '.' + c.className.split(' ').slice(0,2).join('.') : ''),
- h: Math.round(cr.height),
- scrollH: c.scrollHeight,
- };
- });
- return { i, h: Math.round(r.height), scrollH: pg.scrollHeight, children };
- });
- });
- console.log(JSON.stringify(out, null, 2));
- await b.close();
-})();
diff --git a/brief/svg/arch_ai_plane.html b/brief/svg/arch_ai_plane.html
deleted file mode 100644
index b40198a88..000000000
--- a/brief/svg/arch_ai_plane.html
+++ /dev/null
@@ -1,136 +0,0 @@
-
-<svg class="arch-svg" viewBox="0 0 1400 620" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%; height:auto;">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <!-- frame -->
- <rect x="0.5" y="0.5" width="1399" height="619" class="bx" opacity="0.18"/>
-
- <!-- column headers -->
- <text x="40" y="42" class="lbl-x">INGEST · INDEX-TIME</text>
- <text x="700" y="42" class="lbl-x">RETRIEVAL · QUERY-TIME</text>
- <line x1="40" y1="56" x2="1360" y2="56" class="ln" opacity="0.30"/>
-
- <!-- ============== INGEST PATH (top half) ============== -->
-
- <!-- documents -->
- <rect x="40" y="80" width="200" height="64" class="bx"/>
- <text x="60" y="112" class="lbl">DOCUMENTS</text>
- <text x="60" y="132" class="lbl-s">policies · tickets · code · pdf</text>
-
- <line x1="240" y1="112" x2="290" y2="112" class="ln"/>
- <polyline points="282,102 292,112 282,122" class="ln"/>
-
- <!-- chunker -->
- <rect x="290" y="80" width="220" height="64" class="bx"/>
- <text x="310" y="112" class="lbl">TEXT CHUNKER</text>
- <text x="310" y="132" class="lbl-s">sentence-aware · overlap</text>
-
- <line x1="510" y1="112" x2="560" y2="112" class="ln"/>
- <polyline points="552,102 562,112 552,122" class="ln"/>
-
- <!-- embedder -->
- <rect x="560" y="80" width="240" height="64" class="bx"/>
- <text x="580" y="112" class="lbl">EMBEDDING PROXY</text>
- <text x="580" y="132" class="lbl-s">openai-compatible · retry</text>
-
- <line x1="800" y1="112" x2="850" y2="112" class="ln"/>
- <polyline points="842,102 852,112 842,122" class="ln"/>
-
- <!-- vector index -->
- <rect x="850" y="80" width="220" height="64" class="bx-a"/>
- <text x="870" y="112" class="lbl-a">VECTOR · HNSW</text>
- <text x="870" y="132" class="lbl-s">M=16 · quantized</text>
-
- <line x1="1070" y1="112" x2="1120" y2="112" class="ln"/>
- <polyline points="1112,102 1122,112 1112,122" class="ln"/>
-
- <!-- ft index parallel -->
- <rect x="1120" y="80" width="220" height="64" class="bx"/>
- <text x="1140" y="112" class="lbl">FTS · BM25</text>
- <text x="1140" y="132" class="lbl-s">postings · analyzers</text>
-
- <!-- external embedder side note -->
- <line x1="680" y1="160" x2="680" y2="200" class="ln-d"/>
- <rect x="560" y="200" width="240" height="48" class="bx" opacity="0.7" stroke-dasharray="3 4"/>
- <text x="580" y="222" class="lbl-s">EXTERNAL MODEL</text>
- <text x="580" y="240" class="lbl-s">openai · voyage · in-house</text>
-
- <!-- ============== DIVIDER ============== -->
- <line x1="40" y1="300" x2="1360" y2="300" class="ln" opacity="0.30"/>
-
- <!-- ============== RETRIEVAL PATH (bottom half) ============== -->
-
- <!-- agent / model -->
- <rect x="40" y="340" width="220" height="64" class="bx"/>
- <text x="60" y="372" class="lbl">AGENT · APP</text>
- <text x="60" y="392" class="lbl-s">user turn · tool call</text>
-
- <line x1="260" y1="372" x2="310" y2="372" class="ln-a"/>
- <polyline points="302,362 312,372 302,382" class="ln-a"/>
-
- <!-- query -->
- <rect x="310" y="340" width="240" height="64" class="bx-a"/>
- <text x="330" y="372" class="lbl-a">HYBRID QUERY</text>
- <text x="330" y="392" class="lbl-s">keyword + vector + filter</text>
-
- <!-- planner / fusion -->
- <line x1="550" y1="372" x2="600" y2="372" class="ln-a"/>
- <polyline points="592,362 602,372 592,382" class="ln-a"/>
-
- <rect x="600" y="340" width="280" height="64" class="bx"/>
- <text x="620" y="372" class="lbl">PLANNER · RRF FUSION</text>
- <text x="620" y="392" class="lbl-s">single pass · in-process</text>
-
- <!-- fanout -->
- <line x1="740" y1="404" x2="740" y2="440" class="ln"/>
-
- <!-- 3 retrieval calls -->
- <line x1="200" y1="440" x2="1280" y2="440" class="ln"/>
- <line x1="200" y1="440" x2="200" y2="470" class="ln"/>
- <line x1="500" y1="440" x2="500" y2="470" class="ln"/>
- <line x1="800" y1="440" x2="800" y2="470" class="ln"/>
- <line x1="1100" y1="440" x2="1100" y2="470" class="ln"/>
- <polyline points="190,462 200,472 210,462" class="ln"/>
- <polyline points="490,462 500,472 510,462" class="ln"/>
- <polyline points="790,462 800,472 810,462" class="ln"/>
- <polyline points="1090,462 1100,472 1110,462" class="ln"/>
-
- <rect x="80" y="475" width="240" height="58" class="bx"/>
- <text x="100" y="502" class="lbl">FTS</text>
- <text x="100" y="522" class="lbl-s">keyword recall</text>
-
- <rect x="380" y="475" width="240" height="58" class="bx"/>
- <text x="400" y="502" class="lbl">VECTOR</text>
- <text x="400" y="522" class="lbl-s">semantic neighbours</text>
-
- <rect x="680" y="475" width="240" height="58" class="bx"/>
- <text x="700" y="502" class="lbl">COLUMNAR</text>
- <text x="700" y="522" class="lbl-s">structured filters</text>
-
- <rect x="980" y="475" width="240" height="58" class="bx"/>
- <text x="1000" y="502" class="lbl">AGENT MEMORY</text>
- <text x="1000" y="522" class="lbl-s">recency-blended</text>
-
- <!-- merge bracket -->
- <line x1="200" y1="555" x2="1100" y2="555" class="ln-a"/>
- <line x1="200" y1="533" x2="200" y2="555" class="ln"/>
- <line x1="500" y1="533" x2="500" y2="555" class="ln"/>
- <line x1="800" y1="533" x2="800" y2="555" class="ln"/>
- <line x1="1100" y1="533" x2="1100" y2="555" class="ln"/>
- <line x1="650" y1="555" x2="650" y2="582" class="ln-a"/>
- <polyline points="640,574 650,584 660,574" class="ln-a"/>
-
- <text x="500" y="606" class="lbl-a">FUSED RANKING · ONE RESPONSE</text>
-</svg>
diff --git a/brief/svg/arch_audit_chain.html b/brief/svg/arch_audit_chain.html
deleted file mode 100644
index 98c1ff206..000000000
--- a/brief/svg/arch_audit_chain.html
+++ /dev/null
@@ -1,99 +0,0 @@
-
-<svg class="arch-svg" viewBox="0 0 1400 380" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%; height:auto;">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-m { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.04em; fill: currentColor; opacity: 0.55; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <rect x="0.5" y="0.5" width="1399" height="379" class="bx" opacity="0.18"/>
-
- <text x="40" y="42" class="lbl-x">PRIVILEGED OPERATION · WRITES ONE JOURNAL ENTRY</text>
- <line x1="40" y1="56" x2="1360" y2="56" class="ln" opacity="0.30"/>
-
- <!-- 5 entries chained -->
- <!-- Entry geometry -->
- <g>
- <!-- Entry 1 -->
- <rect x="40" y="80" width="240" height="170" class="bx"/>
- <text x="58" y="110" class="lbl-a">ENTRY · SEQ 1</text>
- <text x="58" y="135" class="lbl-s">op · search</text>
- <text x="58" y="153" class="lbl-s">subject · admin@</text>
- <text x="58" y="171" class="lbl-s">resource · idx-orders</text>
- <text x="58" y="189" class="lbl-s">outcome · ok</text>
- <text x="58" y="215" class="lbl-x">PREV-HASH</text>
- <text x="58" y="232" class="lbl-m">0000…0000</text>
- </g>
-
- <!-- chain link 1→2 -->
- <line x1="280" y1="165" x2="320" y2="165" class="ln-a"/>
- <polyline points="312,155 322,165 312,175" class="ln-a"/>
-
- <g>
- <rect x="320" y="80" width="240" height="170" class="bx"/>
- <text x="338" y="110" class="lbl-a">ENTRY · SEQ 2</text>
- <text x="338" y="135" class="lbl-s">op · index</text>
- <text x="338" y="153" class="lbl-s">subject · ingest-svc</text>
- <text x="338" y="171" class="lbl-s">resource · idx-logs</text>
- <text x="338" y="189" class="lbl-s">outcome · ok</text>
- <text x="338" y="215" class="lbl-x">PREV-HASH</text>
- <text x="338" y="232" class="lbl-m">d4f3…ae21</text>
- </g>
-
- <line x1="560" y1="165" x2="600" y2="165" class="ln-a"/>
- <polyline points="592,155 602,165 592,175" class="ln-a"/>
-
- <g>
- <rect x="600" y="80" width="240" height="170" class="bx"/>
- <text x="618" y="110" class="lbl-a">ENTRY · SEQ 3</text>
- <text x="618" y="135" class="lbl-s">op · admin.role.put</text>
- <text x="618" y="153" class="lbl-s">subject · admin@</text>
- <text x="618" y="171" class="lbl-s">resource · role/auditor</text>
- <text x="618" y="189" class="lbl-s">outcome · ok</text>
- <text x="618" y="215" class="lbl-x">PREV-HASH</text>
- <text x="618" y="232" class="lbl-m">9b1c…77fe</text>
- </g>
-
- <line x1="840" y1="165" x2="880" y2="165" class="ln-a"/>
- <polyline points="872,155 882,165 872,175" class="ln-a"/>
-
- <g>
- <rect x="880" y="80" width="240" height="170" class="bx"/>
- <text x="898" y="110" class="lbl-a">ENTRY · SEQ 4</text>
- <text x="898" y="135" class="lbl-s">op · delete</text>
- <text x="898" y="153" class="lbl-s">subject · ops@</text>
- <text x="898" y="171" class="lbl-s">resource · idx-orders</text>
- <text x="898" y="189" class="lbl-s">outcome · denied</text>
- <text x="898" y="215" class="lbl-x">PREV-HASH</text>
- <text x="898" y="232" class="lbl-m">52a7…04c1</text>
- </g>
-
- <line x1="1120" y1="165" x2="1160" y2="165" class="ln-a"/>
- <polyline points="1152,155 1162,165 1152,175" class="ln-a"/>
-
- <g>
- <rect x="1160" y="80" width="200" height="170" class="bx-a"/>
- <text x="1178" y="110" class="lbl-a">CHAIN HEAD</text>
- <text x="1178" y="135" class="lbl-s">verifier walks</text>
- <text x="1178" y="153" class="lbl-s">top-to-bottom</text>
- <text x="1178" y="171" class="lbl-s">stops on first</text>
- <text x="1178" y="189" class="lbl-s">mismatch</text>
- <text x="1178" y="215" class="lbl-x">EXPORT · ATTEST</text>
- <text x="1178" y="232" class="lbl-m">/_audit/_verify</text>
- </g>
-
- <!-- bottom bracket showing tamper detection -->
- <line x1="40" y1="290" x2="1360" y2="290" class="ln" opacity="0.30"/>
- <text x="40" y="314" class="lbl-x">TAMPER MODEL</text>
- <text x="40" y="340" class="lbl-s">EDITING ANY ENTRY · INVALIDATES THAT HASH · BREAKS EVERY SUBSEQUENT LINK · VERIFIER REPORTS THE FIRST BAD INDEX</text>
- <text x="40" y="362" class="lbl-x">SHA-256 LINK · APPEND-ONLY · WORM SEMANTICS · AUDIT-READ PRIVILEGE GATED</text>
-</svg>
diff --git a/brief/svg/arch_cluster.html b/brief/svg/arch_cluster.html
deleted file mode 100644
index 4f2052bca..000000000
--- a/brief/svg/arch_cluster.html
+++ /dev/null
@@ -1,135 +0,0 @@
-
-<svg class="arch-svg" viewBox="0 0 1400 580" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%; height:auto;">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-m { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.04em; fill: currentColor; opacity: 0.55; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <rect x="0.5" y="0.5" width="1399" height="579" class="bx" opacity="0.18"/>
-
- <!-- Header -->
- <text x="40" y="42" class="lbl-x">CLIENTS</text>
- <text x="700" y="42" class="lbl-x">XERJ NODES · IDENTICAL BINARIES</text>
- <line x1="40" y1="56" x2="1360" y2="56" class="ln" opacity="0.30"/>
-
- <!-- clients -->
- <rect x="40" y="80" width="240" height="80" class="bx"/>
- <text x="60" y="112" class="lbl">CLIENTS</text>
- <text x="60" y="132" class="lbl-s">ES SDKs · agents · UI</text>
- <text x="60" y="150" class="lbl-m">load-balanced over nodes</text>
-
- <!-- LB / data path -->
- <line x1="280" y1="120" x2="380" y2="120" class="ln-a"/>
- <polyline points="372,110 382,120 372,130" class="ln-a"/>
-
- <!-- 3 nodes arranged in triangle/raster -->
- <g>
- <!-- Node 1 (Leader) -->
- <rect x="380" y="80" width="280" height="180" class="bx-a"/>
- <text x="400" y="110" class="lbl-a">NODE A · LEADER</text>
- <text x="400" y="130" class="lbl-s">data plane · port :9200</text>
-
- <!-- inner sub-blocks -->
- <rect x="400" y="148" width="240" height="32" class="bx" opacity="0.85"/>
- <text x="412" y="170" class="lbl-s">RAFT · LEADER</text>
-
- <rect x="400" y="188" width="240" height="28" class="bx" opacity="0.85"/>
- <text x="412" y="207" class="lbl-s">METADATA STORE</text>
-
- <rect x="400" y="222" width="240" height="28" class="bx" opacity="0.85"/>
- <text x="412" y="241" class="lbl-s">DATA · INDICES · SHARDS</text>
- </g>
-
- <g>
- <!-- Node 2 (Follower) -->
- <rect x="700" y="80" width="280" height="180" class="bx"/>
- <text x="720" y="110" class="lbl">NODE B · FOLLOWER</text>
- <text x="720" y="130" class="lbl-s">data plane · port :9200</text>
-
- <rect x="720" y="148" width="240" height="32" class="bx" opacity="0.85"/>
- <text x="732" y="170" class="lbl-s">RAFT · FOLLOWER</text>
-
- <rect x="720" y="188" width="240" height="28" class="bx" opacity="0.85"/>
- <text x="732" y="207" class="lbl-s">METADATA STORE</text>
-
- <rect x="720" y="222" width="240" height="28" class="bx" opacity="0.85"/>
- <text x="732" y="241" class="lbl-s">DATA · INDICES · SHARDS</text>
- </g>
-
- <g>
- <!-- Node 3 (Follower) -->
- <rect x="1020" y="80" width="280" height="180" class="bx"/>
- <text x="1040" y="110" class="lbl">NODE C · FOLLOWER</text>
- <text x="1040" y="130" class="lbl-s">data plane · port :9200</text>
-
- <rect x="1040" y="148" width="240" height="32" class="bx" opacity="0.85"/>
- <text x="1052" y="170" class="lbl-s">RAFT · FOLLOWER</text>
-
- <rect x="1040" y="188" width="240" height="28" class="bx" opacity="0.85"/>
- <text x="1052" y="207" class="lbl-s">METADATA STORE</text>
-
- <rect x="1040" y="222" width="240" height="28" class="bx" opacity="0.85"/>
- <text x="1052" y="241" class="lbl-s">DATA · INDICES · SHARDS</text>
- </g>
-
- <!-- Raft links between nodes (yellow) -->
- <line x1="660" y1="164" x2="700" y2="164" class="ln-a"/>
- <polyline points="692,154 702,164 692,174" class="ln-a"/>
- <line x1="980" y1="164" x2="1020" y2="164" class="ln-a"/>
- <polyline points="1012,154 1022,164 1012,174" class="ln-a"/>
- <!-- and back-edges -->
- <line x1="660" y1="180" x2="1020" y2="180" class="ln-a" stroke-dasharray="2 4" opacity="0.5"/>
-
- <!-- gossip dashed underneath -->
- <line x1="540" y1="270" x2="1160" y2="270" class="ln-d"/>
- <text x="700" y="290" class="lbl-x">HEARTBEAT · GOSSIP · MEMBERSHIP</text>
-
- <!-- lower half: data replication -->
- <line x1="40" y1="340" x2="1360" y2="340" class="ln" opacity="0.30"/>
- <text x="40" y="368" class="lbl-x">DATA REPLICATION · PER-INDEX · NOT RAFT</text>
-
- <rect x="40" y="380" width="280" height="100" class="bx"/>
- <text x="60" y="412" class="lbl">CLIENT WRITE</text>
- <text x="60" y="432" class="lbl-s">_bulk · NDJSON · OTLP</text>
- <text x="60" y="450" class="lbl-m">routed to primary shard</text>
- <text x="60" y="468" class="lbl-m">based on metadata</text>
-
- <line x1="320" y1="425" x2="380" y2="425" class="ln"/>
- <polyline points="372,415 382,425 372,435" class="ln"/>
-
- <rect x="380" y="380" width="280" height="100" class="bx-a"/>
- <text x="400" y="412" class="lbl-a">PRIMARY SHARD</text>
- <text x="400" y="432" class="lbl-s">on owning node</text>
- <text x="400" y="450" class="lbl-m">WAL fsync</text>
- <text x="400" y="468" class="lbl-m">2xx after durable</text>
-
- <line x1="660" y1="425" x2="720" y2="425" class="ln"/>
- <polyline points="712,415 722,425 712,435" class="ln"/>
-
- <rect x="720" y="380" width="280" height="100" class="bx"/>
- <text x="740" y="412" class="lbl">REPLICA SHARDS</text>
- <text x="740" y="432" class="lbl-s">N copies · sync</text>
- <text x="740" y="450" class="lbl-m">quorum acknowledgement</text>
- <text x="740" y="468" class="lbl-m">read-path continuity</text>
-
- <line x1="1000" y1="425" x2="1060" y2="425" class="ln"/>
- <polyline points="1052,415 1062,425 1052,435" class="ln"/>
-
- <rect x="1060" y="380" width="280" height="100" class="bx"/>
- <text x="1080" y="412" class="lbl">FAILURE · FAILOVER</text>
- <text x="1080" y="432" class="lbl-s">replica promotes</text>
- <text x="1080" y="450" class="lbl-m">in-flight reads finish</text>
- <text x="1080" y="468" class="lbl-m">new writes hit new primary</text>
-
- <text x="40" y="555" class="lbl-x">METADATA · RAFT · CONSENSUS · DATA · PER-INDEX REPLICATION · NO CO-PROCESS</text>
-</svg>
diff --git a/brief/svg/arch_layers.html b/brief/svg/arch_layers.html
deleted file mode 100644
index 13e9a8ef8..000000000
--- a/brief/svg/arch_layers.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-<svg class="arch-svg" viewBox="0 0 1400 600" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%; height:auto;">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-h { font-family: 'Big Shoulders Display','IBM Plex Sans',sans-serif; font-size: 22px; font-weight: 900; letter-spacing: 0.08em; fill: currentColor; text-transform: uppercase; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <!-- frame -->
- <rect x="0.5" y="0.5" width="1399" height="599" class="bx" opacity="0.18"/>
-
- <!-- Left rail labels -->
- <text x="40" y="50" class="lbl-x">LAYER</text>
- <text x="40" y="70" class="lbl-x">RESPONSIBILITY</text>
-
- <!-- Right rail labels -->
- <text x="1180" y="50" class="lbl-x">DOWNSTREAM CONTRACT</text>
-
- <!-- Vertical guide lines -->
- <line x1="280" y1="90" x2="280" y2="560" class="ln" opacity="0.20"/>
- <line x1="1140" y1="90" x2="1140" y2="560" class="ln" opacity="0.20"/>
-
- <!-- ============ Stack of layers ============ -->
-
- <!-- L1: WIRE -->
- <text x="40" y="125" class="lbl">L1 · WIRE</text>
- <text x="40" y="145" class="lbl-s">protocol surface</text>
-
- <rect x="290" y="100" width="840" height="60" class="bx-a"/>
- <text x="310" y="132" class="lbl-a">HTTP · ES 8.13 · NATIVE REST · gRPC</text>
- <text x="310" y="152" class="lbl-s">routes · auth · rate-limit · TLS · request validation · response codec</text>
-
- <text x="1180" y="132" class="lbl">PARSED REQUEST</text>
- <text x="1180" y="152" class="lbl-s">typed query DSL</text>
-
- <line x1="710" y1="160" x2="710" y2="180" class="ln-a"/>
- <polyline points="700,172 710,182 720,172" class="ln-a"/>
-
- <!-- L2: QUERY -->
- <text x="40" y="215" class="lbl">L2 · QUERY</text>
- <text x="40" y="235" class="lbl-s">plan &amp; execute</text>
-
- <rect x="290" y="190" width="840" height="60" class="bx"/>
- <text x="310" y="222" class="lbl">PARSE · PLAN · REWRITE · EXECUTE · FUSE</text>
- <text x="310" y="242" class="lbl-s">cost model · per-pass concurrency · reciprocal-rank fusion · explain capture</text>
-
- <text x="1180" y="222" class="lbl">FANOUT TO STORES</text>
- <text x="1180" y="242" class="lbl-s">per-modality calls</text>
-
- <line x1="710" y1="250" x2="710" y2="270" class="ln"/>
- <polyline points="700,262 710,272 720,262" class="ln"/>
-
- <!-- L3: ENGINE -->
- <text x="40" y="305" class="lbl">L3 · ENGINE</text>
- <text x="40" y="325" class="lbl-s">indexes &amp; sessions</text>
-
- <rect x="290" y="280" width="840" height="60" class="bx"/>
- <text x="310" y="312" class="lbl">INDEX · MEMTABLE · BULK · TURBO INGEST · AUDIT · RBAC</text>
- <text x="310" y="332" class="lbl-s">per-index lifecycle · admit / flush / merge · privileged-action journal</text>
-
- <text x="1180" y="312" class="lbl">DOC OPERATIONS</text>
- <text x="1180" y="332" class="lbl-s">read · write · evolve</text>
-
- <line x1="710" y1="340" x2="710" y2="360" class="ln"/>
- <polyline points="700,352 710,362 720,352" class="ln"/>
-
- <!-- L4: RETRIEVAL -->
- <text x="40" y="395" class="lbl">L4 · RETRIEVAL</text>
- <text x="40" y="415" class="lbl-s">modality engines</text>
-
- <rect x="290" y="370" width="200" height="60" class="bx"/>
- <text x="310" y="402" class="lbl">FTS · BM25</text>
- <text x="310" y="422" class="lbl-s">postings · analyzers</text>
-
- <rect x="500" y="370" width="200" height="60" class="bx"/>
- <text x="520" y="402" class="lbl">VECTOR · HNSW</text>
- <text x="520" y="422" class="lbl-s">graph · quantizer</text>
-
- <rect x="710" y="370" width="200" height="60" class="bx"/>
- <text x="730" y="402" class="lbl">COLUMNAR LOGS</text>
- <text x="730" y="422" class="lbl-s">columns · doc-values</text>
-
- <rect x="920" y="370" width="210" height="60" class="bx"/>
- <text x="940" y="402" class="lbl">AI · CHUNK · MEMORY</text>
- <text x="940" y="422" class="lbl-s">embed · dedup · recall</text>
-
- <text x="1180" y="402" class="lbl">SEGMENT READS</text>
- <text x="1180" y="422" class="lbl-s">mmap · doc-values</text>
-
- <line x1="710" y1="430" x2="710" y2="450" class="ln"/>
- <polyline points="700,442 710,452 720,442" class="ln"/>
-
- <!-- L5: STORAGE -->
- <text x="40" y="485" class="lbl">L5 · STORAGE</text>
- <text x="40" y="505" class="lbl-s">durable substrate</text>
-
- <rect x="290" y="460" width="840" height="60" class="bx-a"/>
- <text x="310" y="492" class="lbl-a">WAL · SHARDED MEMTABLE · SEGMENTS · MERGE · CACHE</text>
- <text x="310" y="512" class="lbl-s">fsync per batch · 16-shard hash routing · sealed segments · background compaction</text>
-
- <text x="1180" y="492" class="lbl">FILESYSTEM</text>
- <text x="1180" y="512" class="lbl-s">single data dir</text>
-
- <!-- caption -->
- <text x="40" y="565" class="lbl-x">FIVE LAYERS · ONE PROCESS · NO CROSS-LAYER SHORTCUTS · NO HIDDEN COUPLING</text>
-</svg>
diff --git a/brief/svg/arch_overview.html b/brief/svg/arch_overview.html
deleted file mode 100644
index 784285a37..000000000
--- a/brief/svg/arch_overview.html
+++ /dev/null
@@ -1,151 +0,0 @@
-
-<svg class="arch-svg" viewBox="0 0 1400 720" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%; height:auto;">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-h { font-family: 'Big Shoulders Display','IBM Plex Sans',sans-serif; font-size: 18px; font-weight: 900; letter-spacing: 0.10em; fill: currentColor; text-transform: uppercase; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <!-- frame -->
- <rect x="0.5" y="0.5" width="1399" height="719" class="bx" opacity="0.18"/>
-
- <!-- ROW HEADER -->
- <text x="40" y="42" class="lbl-h">DATA PLANE</text>
- <text x="1100" y="42" class="lbl-h">CONTROL PLANE</text>
- <line x1="40" y1="58" x2="1360" y2="58" class="ln" opacity="0.35"/>
-
- <!-- ===== DATA PLANE — left/main column (40..1060) ===== -->
-
- <!-- Layer label: CLIENTS -->
- <text x="40" y="92" class="lbl-x">CLIENTS · APPLICATIONS · AGENTS</text>
- <rect x="40" y="100" width="1020" height="70" class="bx"/>
- <text x="80" y="142" class="lbl">ELASTICSEARCH SDKs</text>
- <text x="350" y="142" class="lbl">LANGCHAIN · LLAMAINDEX</text>
- <text x="700" y="142" class="lbl">DASHBOARDS · KIBANA</text>
- <text x="930" y="142" class="lbl">AGENTS</text>
-
- <!-- arrow down to API -->
- <line x1="550" y1="170" x2="550" y2="200" class="ln-a"/>
- <polyline points="540,192 550,202 560,192" class="ln-a"/>
-
- <!-- Layer: API SURFACE -->
- <text x="40" y="222" class="lbl-x">API SURFACE</text>
- <rect x="40" y="230" width="320" height="70" class="bx-a"/>
- <text x="60" y="262" class="lbl-a">ES WIRE · :9200</text>
- <text x="60" y="284" class="lbl-s">38 query types · bulk · scroll · kNN · hybrid</text>
-
- <rect x="380" y="230" width="320" height="70" class="bx"/>
- <text x="400" y="262" class="lbl">NATIVE REST · :8080</text>
- <text x="400" y="284" class="lbl-s">explain-plan · OTLP · syslog · pipelines</text>
-
- <rect x="720" y="230" width="340" height="70" class="bx"/>
- <text x="740" y="262" class="lbl">gRPC · :8081 / EMBEDDED UI</text>
- <text x="740" y="284" class="lbl-s">reserved · Xerj Console SPA at /_xerj-console/</text>
-
- <!-- arrow down to engine -->
- <line x1="550" y1="300" x2="550" y2="332" class="ln"/>
- <polyline points="540,324 550,334 560,324" class="ln"/>
-
- <!-- Layer: QUERY ENGINE -->
- <text x="40" y="354" class="lbl-x">QUERY ENGINE</text>
- <rect x="40" y="362" width="1020" height="70" class="bx"/>
- <text x="80" y="394" class="lbl">PARSER</text>
- <text x="280" y="394" class="lbl">PLANNER</text>
- <text x="500" y="394" class="lbl">EXECUTOR</text>
- <text x="730" y="394" class="lbl">HYBRID FUSION</text>
- <text x="940" y="394" class="lbl">EXPLAIN</text>
- <text x="80" y="416" class="lbl-s">ES JSON DSL · AST · cost model · rewriter · reciprocal-rank-fusion · per-query plan + counts</text>
-
- <!-- arrows down to stores -->
- <line x1="180" y1="432" x2="180" y2="468" class="ln"/>
- <polyline points="170,460 180,470 190,460" class="ln"/>
- <line x1="430" y1="432" x2="430" y2="468" class="ln"/>
- <polyline points="420,460 430,470 440,460" class="ln"/>
- <line x1="680" y1="432" x2="680" y2="468" class="ln"/>
- <polyline points="670,460 680,470 690,460" class="ln"/>
- <line x1="930" y1="432" x2="930" y2="468" class="ln"/>
- <polyline points="920,460 930,470 940,460" class="ln"/>
-
- <!-- Layer: STORES (4 boxes) -->
- <text x="40" y="490" class="lbl-x">UNIFIED STORES</text>
- <rect x="40" y="498" width="240" height="80" class="bx"/>
- <text x="60" y="528" class="lbl">FULL-TEXT</text>
- <text x="60" y="550" class="lbl-s">BM25 · 38 ES query types</text>
- <text x="60" y="566" class="lbl-s">10 analyzers · postings</text>
-
- <rect x="290" y="498" width="240" height="80" class="bx"/>
- <text x="310" y="528" class="lbl">VECTOR</text>
- <text x="310" y="550" class="lbl-s">HNSW · M=16 · ef tunable</text>
- <text x="310" y="566" class="lbl-s">SQ8 · nibble · float32 re-rank</text>
-
- <rect x="540" y="498" width="240" height="80" class="bx"/>
- <text x="560" y="528" class="lbl">COLUMNAR LOGS</text>
- <text x="560" y="550" class="lbl-s">delta-of-delta timestamps</text>
- <text x="560" y="566" class="lbl-s">dictionary + ZSTD</text>
-
- <rect x="790" y="498" width="270" height="80" class="bx"/>
- <text x="810" y="528" class="lbl">AGENT MEMORY</text>
- <text x="810" y="550" class="lbl-s">semantic dedup</text>
- <text x="810" y="566" class="lbl-s">recency-blended recall</text>
-
- <!-- Bracket joining stores -->
- <line x1="40" y1="585" x2="1060" y2="585" class="ln" opacity="0.35"/>
- <line x1="550" y1="585" x2="550" y2="612" class="ln"/>
- <polyline points="540,604 550,614 560,604" class="ln"/>
-
- <!-- Layer: STORAGE SUBSTRATE -->
- <text x="40" y="634" class="lbl-x">STORAGE SUBSTRATE</text>
- <rect x="40" y="642" width="1020" height="60" class="bx"/>
- <text x="80" y="676" class="lbl">SHARDED MEMTABLE · 16 SHARDS</text>
- <text x="500" y="676" class="lbl">SEGMENTS · MMAP · MERGE</text>
- <text x="860" y="676" class="lbl">WAL · FSYNC</text>
-
- <!-- ===== CONTROL PLANE — right column (1090..1360) ===== -->
- <line x1="1080" y1="80" x2="1080" y2="700" class="ln" opacity="0.30"/>
-
- <text x="1100" y="92" class="lbl-x">IDENTITY · STATE · OPS</text>
-
- <rect x="1100" y="100" width="260" height="56" class="bx"/>
- <text x="1118" y="124" class="lbl">AUTH · RBAC</text>
- <text x="1118" y="146" class="lbl-s">api keys · 7 privileges · roles</text>
-
- <rect x="1100" y="170" width="260" height="56" class="bx"/>
- <text x="1118" y="194" class="lbl">AUDIT LOG</text>
- <text x="1118" y="216" class="lbl-s">SHA-256 hash chain · WORM</text>
-
- <rect x="1100" y="240" width="260" height="56" class="bx"/>
- <text x="1118" y="264" class="lbl">SCHEMA REGISTRY</text>
- <text x="1118" y="286" class="lbl-s">field types · evolution</text>
-
- <rect x="1100" y="310" width="260" height="56" class="bx"/>
- <text x="1118" y="334" class="lbl">CLUSTER · RAFT</text>
- <text x="1118" y="356" class="lbl-s">embedded · no etcd / zk</text>
-
- <rect x="1100" y="380" width="260" height="56" class="bx"/>
- <text x="1118" y="404" class="lbl">METRICS · /HEALTHZ</text>
- <text x="1118" y="426" class="lbl-s">prometheus · k8s probes</text>
-
- <rect x="1100" y="450" width="260" height="56" class="bx"/>
- <text x="1118" y="474" class="lbl">SLOW-QUERY · ADMIN</text>
- <text x="1118" y="496" class="lbl-s">ring buffer · runtime tunable</text>
-
- <rect x="1100" y="520" width="260" height="56" class="bx"/>
- <text x="1118" y="544" class="lbl">TLS · ENCRYPTION</text>
- <text x="1118" y="566" class="lbl-s">rustls · BYOK · KMS</text>
-
- <!-- Cross-cutting dashed bracket -->
- <line x1="1100" y1="600" x2="1360" y2="600" class="ln-d"/>
- <text x="1100" y="624" class="lbl-x">CROSS-CUTTING · OBSERVES EVERY LAYER</text>
-
- <!-- footer caption -->
- <text x="40" y="710" class="lbl-x">EVERY LAYER · ONE BINARY · ONE CONFIG · ONE METRICS REGISTRY</text>
-</svg>
diff --git a/brief/svg/arch_query_lifecycle.html b/brief/svg/arch_query_lifecycle.html
deleted file mode 100644
index 95b915876..000000000
--- a/brief/svg/arch_query_lifecycle.html
+++ /dev/null
@@ -1,121 +0,0 @@
-
-<svg class="arch-svg" viewBox="0 0 1400 620" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%; height:auto;">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <!-- frame -->
- <rect x="0.5" y="0.5" width="1399" height="619" class="bx" opacity="0.18"/>
-
- <!-- column rails: ingress · planner · fanout · merge · egress -->
- <text x="60" y="42" class="lbl-x">INGRESS</text>
- <text x="320" y="42" class="lbl-x">PARSE · PLAN</text>
- <text x="640" y="42" class="lbl-x">FAN OUT · EXECUTE</text>
- <text x="990" y="42" class="lbl-x">FUSE · ASSEMBLE</text>
- <text x="1230" y="42" class="lbl-x">EGRESS</text>
-
- <line x1="40" y1="56" x2="1360" y2="56" class="ln" opacity="0.30"/>
-
- <!-- INGRESS column -->
- <rect x="40" y="80" width="240" height="60" class="bx-a"/>
- <text x="60" y="112" class="lbl-a">CLIENT REQUEST</text>
- <text x="60" y="132" class="lbl-s">ES JSON DSL · :9200</text>
-
- <line x1="280" y1="110" x2="320" y2="110" class="ln-a"/>
- <polyline points="312,100 322,110 312,120" class="ln-a"/>
-
- <!-- PARSE -->
- <rect x="320" y="80" width="280" height="60" class="bx"/>
- <text x="340" y="112" class="lbl">PARSE</text>
- <text x="340" y="132" class="lbl-s">JSON → typed AST</text>
-
- <line x1="460" y1="140" x2="460" y2="180" class="ln"/>
- <polyline points="450,172 460,182 470,172" class="ln"/>
-
- <!-- PLAN -->
- <rect x="320" y="180" width="280" height="60" class="bx"/>
- <text x="340" y="212" class="lbl">PLAN · COST · REWRITE</text>
- <text x="340" y="232" class="lbl-s">cost model · per-pass concurrency</text>
-
- <line x1="600" y1="210" x2="640" y2="210" class="ln-a"/>
- <polyline points="632,200 642,210 632,220" class="ln-a"/>
-
- <!-- FANOUT central node -->
- <rect x="640" y="180" width="280" height="60" class="bx-a"/>
- <text x="660" y="212" class="lbl-a">EXECUTOR · FANOUT</text>
- <text x="660" y="232" class="lbl-s">parallel passes</text>
-
- <!-- 4 parallel passes -->
- <line x1="780" y1="240" x2="780" y2="280" class="ln-a"/>
-
- <line x1="200" y1="280" x2="1280" y2="280" class="ln"/>
- <line x1="200" y1="280" x2="200" y2="320" class="ln"/>
- <line x1="540" y1="280" x2="540" y2="320" class="ln"/>
- <line x1="880" y1="280" x2="880" y2="320" class="ln"/>
- <line x1="1220" y1="280" x2="1220" y2="320" class="ln"/>
- <polyline points="190,312 200,322 210,312" class="ln"/>
- <polyline points="530,312 540,322 550,312" class="ln"/>
- <polyline points="870,312 880,322 890,312" class="ln"/>
- <polyline points="1210,312 1220,322 1230,312" class="ln"/>
-
- <rect x="80" y="325" width="240" height="56" class="bx"/>
- <text x="100" y="350" class="lbl">FTS · BM25</text>
- <text x="100" y="370" class="lbl-s">postings · scoring</text>
-
- <rect x="420" y="325" width="240" height="56" class="bx"/>
- <text x="440" y="350" class="lbl">VECTOR · HNSW</text>
- <text x="440" y="370" class="lbl-s">graph traversal</text>
-
- <rect x="760" y="325" width="240" height="56" class="bx"/>
- <text x="780" y="350" class="lbl">FILTERS</text>
- <text x="780" y="370" class="lbl-s">range · term · exists</text>
-
- <rect x="1100" y="325" width="240" height="56" class="bx"/>
- <text x="1120" y="350" class="lbl">AGGREGATIONS</text>
- <text x="1120" y="370" class="lbl-s">terms · histo · percentiles</text>
-
- <!-- merge bracket -->
- <line x1="200" y1="381" x2="200" y2="410" class="ln"/>
- <line x1="540" y1="381" x2="540" y2="410" class="ln"/>
- <line x1="880" y1="381" x2="880" y2="410" class="ln"/>
- <line x1="1220" y1="381" x2="1220" y2="410" class="ln"/>
- <line x1="200" y1="410" x2="1220" y2="410" class="ln-a"/>
- <line x1="710" y1="410" x2="710" y2="445" class="ln-a"/>
- <polyline points="700,437 710,447 720,437" class="ln-a"/>
-
- <!-- FUSE -->
- <rect x="540" y="445" width="340" height="60" class="bx-a"/>
- <text x="560" y="477" class="lbl-a">RECIPROCAL RANK FUSION</text>
- <text x="560" y="497" class="lbl-s">single pass · in-process · no orchestrator</text>
-
- <line x1="710" y1="505" x2="710" y2="545" class="ln-a"/>
- <polyline points="700,537 710,547 720,537" class="ln-a"/>
-
- <!-- ASSEMBLE -->
- <rect x="320" y="545" width="780" height="60" class="bx"/>
- <text x="340" y="577" class="lbl">SOURCE FILTER · HIGHLIGHT · AGGS · EXPLAIN</text>
- <text x="340" y="597" class="lbl-s">final response shape · explain-plan side-channel populated</text>
-
- <!-- EGRESS arrow -->
- <line x1="1100" y1="575" x2="1140" y2="575" class="ln-a"/>
- <polyline points="1132,565 1142,575 1132,585" class="ln-a"/>
-
- <rect x="1140" y="545" width="220" height="60" class="bx-a"/>
- <text x="1160" y="577" class="lbl-a">CLIENT RESPONSE</text>
- <text x="1160" y="597" class="lbl-s">JSON · ES wire shape</text>
-
- <!-- explain dashed link -->
- <line x1="600" y1="210" x2="320" y2="80" class="ln-d"/>
- <text x="40" y="74" class="lbl-x">EXPLAIN-PLAN · COST + ROW COUNTS · QUERYABLE</text>
-
-</svg>
diff --git a/brief/svg/arch_storage.html b/brief/svg/arch_storage.html
deleted file mode 100644
index 9191b80bf..000000000
--- a/brief/svg/arch_storage.html
+++ /dev/null
@@ -1,137 +0,0 @@
-
-<svg class="arch-svg" viewBox="0 0 1400 580" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%; height:auto;">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-m { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.04em; fill: currentColor; opacity: 0.55; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <rect x="0.5" y="0.5" width="1399" height="579" class="bx" opacity="0.18"/>
-
- <!-- column headers -->
- <text x="40" y="42" class="lbl-x">ADMIT</text>
- <text x="320" y="42" class="lbl-x">ROUTE · SHARD</text>
- <text x="780" y="42" class="lbl-x">DURABLE LOG</text>
- <text x="1100" y="42" class="lbl-x">FLUSH · SEAL</text>
- <line x1="40" y1="56" x2="1360" y2="56" class="ln" opacity="0.30"/>
-
- <!-- inbound batch -->
- <rect x="40" y="80" width="220" height="64" class="bx"/>
- <text x="60" y="112" class="lbl">INGEST BATCH</text>
- <text x="60" y="132" class="lbl-s">_bulk · NDJSON · OTLP</text>
-
- <line x1="260" y1="112" x2="310" y2="112" class="ln-a"/>
- <polyline points="302,102 312,112 302,122" class="ln-a"/>
-
- <!-- shard router -->
- <rect x="310" y="80" width="220" height="64" class="bx-a"/>
- <text x="330" y="112" class="lbl-a">HASH ROUTE</text>
- <text x="330" y="132" class="lbl-m">xxh3_64(doc_id) &amp; 15</text>
-
- <!-- 16 sharded memtable cells -->
- <text x="600" y="74" class="lbl">SHARDED MEMTABLE · 16 SHARDS</text>
-
- <g stroke="currentColor" stroke-width="1" fill="none" stroke-linecap="square">
- <!-- 4×4 grid of shards -->
- <rect x="600" y="80" width="40" height="40"/>
- <rect x="650" y="80" width="40" height="40"/>
- <rect x="700" y="80" width="40" height="40"/>
- <rect x="750" y="80" width="40" height="40"/>
- <rect x="600" y="130" width="40" height="40"/>
- <rect x="650" y="130" width="40" height="40"/>
- <rect x="700" y="130" width="40" height="40"/>
- <rect x="750" y="130" width="40" height="40"/>
- </g>
- <!-- second row of 4×2 -->
- <g stroke="currentColor" stroke-width="1" fill="none" stroke-linecap="square">
- <rect x="600" y="180" width="40" height="40"/>
- <rect x="650" y="180" width="40" height="40"/>
- <rect x="700" y="180" width="40" height="40"/>
- <rect x="750" y="180" width="40" height="40"/>
- <rect x="600" y="230" width="40" height="40"/>
- <rect x="650" y="230" width="40" height="40"/>
- <rect x="700" y="230" width="40" height="40"/>
- <rect x="750" y="230" width="40" height="40"/>
- </g>
-
- <!-- highlight one shard yellow -->
- <rect x="700" y="130" width="40" height="40" class="bx-a"/>
-
- <!-- arrow from router to shard grid -->
- <line x1="530" y1="112" x2="600" y2="100" class="ln"/>
- <line x1="530" y1="112" x2="600" y2="150" class="ln"/>
- <line x1="530" y1="112" x2="600" y2="200" class="ln"/>
- <line x1="530" y1="112" x2="600" y2="250" class="ln"/>
-
- <!-- WAL writer -->
- <line x1="790" y1="170" x2="900" y2="170" class="ln-a"/>
- <polyline points="892,160 902,170 892,180" class="ln-a"/>
-
- <rect x="900" y="100" width="240" height="120" class="bx-a"/>
- <text x="920" y="130" class="lbl-a">WAL · SINGLE WRITER</text>
- <text x="920" y="156" class="lbl-s">monotonic seq_no</text>
- <text x="920" y="174" class="lbl-s">batched fsync</text>
- <text x="920" y="192" class="lbl-s">CRC32C per batch</text>
- <text x="920" y="212" class="lbl-m">2xx ← after fsync return</text>
-
- <!-- ===== bottom half: flush -> segment ===== -->
- <line x1="40" y1="310" x2="1360" y2="310" class="ln" opacity="0.30"/>
- <text x="40" y="338" class="lbl-x">PERIODIC FLUSH · ORDER BY SEQ_NO</text>
-
- <line x1="700" y1="270" x2="700" y2="372" class="ln"/>
- <polyline points="690,364 700,374 710,364" class="ln"/>
-
- <rect x="40" y="380" width="200" height="80" class="bx"/>
- <text x="60" y="412" class="lbl">DRAIN ALL SHARDS</text>
- <text x="60" y="432" class="lbl-s">single sorted stream</text>
- <text x="60" y="450" class="lbl-m">order: seq_no asc</text>
-
- <line x1="240" y1="420" x2="290" y2="420" class="ln"/>
- <polyline points="282,410 292,420 282,430" class="ln"/>
-
- <rect x="290" y="380" width="200" height="80" class="bx"/>
- <text x="310" y="412" class="lbl">BUILD SEGMENT</text>
- <text x="310" y="432" class="lbl-s">postings · doc-values</text>
- <text x="310" y="450" class="lbl-s">columnar logs · vectors</text>
-
- <line x1="490" y1="420" x2="540" y2="420" class="ln"/>
- <polyline points="532,410 542,420 532,430" class="ln"/>
-
- <rect x="540" y="380" width="200" height="80" class="bx"/>
- <text x="560" y="412" class="lbl">COMPRESS · SEAL</text>
- <text x="560" y="432" class="lbl-s">LZ4 / ZSTD codecs</text>
- <text x="560" y="450" class="lbl-s">dictionary · low-card</text>
-
- <line x1="740" y1="420" x2="790" y2="420" class="ln"/>
- <polyline points="782,410 792,420 782,430" class="ln"/>
-
- <rect x="790" y="380" width="200" height="80" class="bx-a"/>
- <text x="810" y="412" class="lbl-a">SEALED SEGMENT</text>
- <text x="810" y="432" class="lbl-s">immutable · mmap</text>
- <text x="810" y="450" class="lbl-s">indexed · queryable</text>
-
- <!-- merge background -->
- <line x1="890" y1="460" x2="890" y2="500" class="ln-d"/>
- <rect x="790" y="500" width="200" height="56" class="bx" stroke-dasharray="3 4" opacity="0.85"/>
- <text x="810" y="525" class="lbl-s">BACKGROUND MERGE</text>
- <text x="810" y="544" class="lbl-s">amortized · per-policy</text>
-
- <!-- recovery branch -->
- <line x1="990" y1="420" x2="1040" y2="420" class="ln"/>
- <polyline points="1032,410 1042,420 1032,430" class="ln"/>
- <rect x="1040" y="380" width="220" height="80" class="bx"/>
- <text x="1060" y="412" class="lbl">RESTART · OPEN</text>
- <text x="1060" y="432" class="lbl-s">replay WAL · re-attach</text>
- <text x="1060" y="450" class="lbl-s">orphan segments</text>
-
- <text x="40" y="558" class="lbl-x">DURABILITY · 2XX AFTER FSYNC · 100 % RESTART RECOVERY ON 5 M-DOC TEST</text>
-</svg>
diff --git a/brief/svg/arch_vector.html b/brief/svg/arch_vector.html
deleted file mode 100644
index f6312da5a..000000000
--- a/brief/svg/arch_vector.html
+++ /dev/null
@@ -1,165 +0,0 @@
-
-<svg class="arch-svg" viewBox="0 0 1400 580" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%; height:auto;">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-m { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.04em; fill: currentColor; opacity: 0.55; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- .pt { stroke: currentColor; stroke-width: 1; fill: none; opacity: 0.7; }
- .pt-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <rect x="0.5" y="0.5" width="1399" height="579" class="bx" opacity="0.18"/>
-
- <!-- HEADER columns -->
- <text x="40" y="42" class="lbl-x">QUERY VECTOR</text>
- <text x="380" y="42" class="lbl-x">HNSW GRAPH · LAYERED</text>
- <text x="980" y="42" class="lbl-x">QUANTIZE · RE-RANK · RETURN</text>
- <line x1="40" y1="56" x2="1360" y2="56" class="ln" opacity="0.30"/>
-
- <!-- query box -->
- <rect x="40" y="80" width="240" height="74" class="bx-a"/>
- <text x="60" y="112" class="lbl-a">QUERY VECTOR</text>
- <text x="60" y="132" class="lbl-s">N-dim float32 · max 4096</text>
- <text x="60" y="148" class="lbl-m">distance ∈ {cos, l2, dot}</text>
-
- <line x1="280" y1="116" x2="370" y2="116" class="ln-a"/>
- <polyline points="362,106 372,116 362,126" class="ln-a"/>
-
- <!-- HNSW illustration: 3 stacked layers with nodes connected -->
- <!-- Layer 2 (top, sparsest) -->
- <text x="380" y="80" class="lbl-x">LAYER 2 · SPARSE</text>
- <line x1="380" y1="92" x2="940" y2="92" class="ln" opacity="0.20"/>
- <g class="ln" opacity="0.7">
- <line x1="430" y1="115" x2="640" y2="115"/>
- <line x1="640" y1="115" x2="850" y2="115"/>
- <line x1="430" y1="115" x2="540" y2="135"/>
- <line x1="850" y1="115" x2="740" y2="135"/>
- </g>
- <circle cx="430" cy="115" r="3" fill="currentColor"/>
- <circle cx="640" cy="115" r="3" fill="currentColor"/>
- <circle cx="850" cy="115" r="3" fill="currentColor"/>
-
- <!-- Layer 1 -->
- <text x="380" y="170" class="lbl-x">LAYER 1 · MEDIUM</text>
- <line x1="380" y1="180" x2="940" y2="180" class="ln" opacity="0.20"/>
- <g class="ln" opacity="0.65">
- <line x1="430" y1="205" x2="540" y2="205"/>
- <line x1="540" y1="205" x2="640" y2="205"/>
- <line x1="640" y1="205" x2="740" y2="205"/>
- <line x1="740" y1="205" x2="850" y2="205"/>
- <line x1="430" y1="205" x2="500" y2="235"/>
- <line x1="540" y1="205" x2="600" y2="235"/>
- <line x1="640" y1="205" x2="700" y2="235"/>
- <line x1="740" y1="205" x2="800" y2="235"/>
- </g>
- <circle cx="430" cy="205" r="3" fill="currentColor"/>
- <circle cx="540" cy="205" r="3" fill="currentColor"/>
- <circle cx="640" cy="205" r="3" fill="currentColor"/>
- <circle cx="740" cy="205" r="3" fill="currentColor"/>
- <circle cx="850" cy="205" r="3" fill="currentColor"/>
-
- <!-- Layer 0 (bottom, densest) -->
- <text x="380" y="250" class="lbl-x">LAYER 0 · ALL VECTORS</text>
- <line x1="380" y1="260" x2="940" y2="260" class="ln" opacity="0.20"/>
- <g class="ln" opacity="0.55">
- <line x1="420" y1="295" x2="500" y2="285"/>
- <line x1="500" y1="285" x2="580" y2="305"/>
- <line x1="580" y1="305" x2="640" y2="290"/>
- <line x1="640" y1="290" x2="720" y2="300"/>
- <line x1="720" y1="300" x2="800" y2="285"/>
- <line x1="800" y1="285" x2="870" y2="305"/>
- <line x1="500" y1="285" x2="560" y2="320"/>
- <line x1="640" y1="290" x2="690" y2="325"/>
- <line x1="800" y1="285" x2="860" y2="320"/>
- <line x1="420" y1="295" x2="470" y2="330"/>
- </g>
- <g fill="currentColor" opacity="0.85">
- <circle cx="420" cy="295" r="2.5"/>
- <circle cx="470" cy="330" r="2.5"/>
- <circle cx="500" cy="285" r="2.5"/>
- <circle cx="560" cy="320" r="2.5"/>
- <circle cx="580" cy="305" r="2.5"/>
- <circle cx="640" cy="290" r="2.5"/>
- <circle cx="690" cy="325" r="2.5"/>
- <circle cx="720" cy="300" r="2.5"/>
- <circle cx="800" cy="285" r="2.5"/>
- <circle cx="860" cy="320" r="2.5"/>
- <circle cx="870" cy="305" r="2.5"/>
- </g>
-
- <!-- Highlighted top-K candidate ring -->
- <g class="pt-a" stroke-width="1" fill="none" opacity="1">
- <circle cx="640" cy="290" r="6"/>
- <circle cx="690" cy="325" r="6"/>
- <circle cx="720" cy="300" r="6"/>
- <circle cx="580" cy="305" r="6"/>
- </g>
-
- <!-- traversal path (entry on layer 2 → down) -->
- <g class="ln-a">
- <line x1="640" y1="115" x2="640" y2="205"/>
- <line x1="640" y1="205" x2="640" y2="290"/>
- </g>
- <text x="650" y="160" class="lbl-a">DESCENT</text>
-
- <!-- HNSW caption -->
- <text x="380" y="365" class="lbl-x">M = 16 BIDIRECTIONAL CONNECTIONS · EF_CONSTRUCTION = 200 · EF_SEARCH RUNTIME-TUNABLE</text>
-
- <!-- Right column: candidate set + quantization -->
- <line x1="940" y1="80" x2="940" y2="360" class="ln" opacity="0.30"/>
- <line x1="940" y1="290" x2="980" y2="290" class="ln-a"/>
- <polyline points="972,280 982,290 972,300" class="ln-a"/>
-
- <rect x="980" y="260" width="280" height="64" class="bx-a"/>
- <text x="1000" y="290" class="lbl-a">TOP-K CANDIDATES</text>
- <text x="1000" y="310" class="lbl-s">quantized distances</text>
-
- <line x1="1120" y1="324" x2="1120" y2="360" class="ln"/>
- <polyline points="1110,352 1120,362 1130,352" class="ln"/>
-
- <rect x="980" y="360" width="280" height="62" class="bx" stroke-dasharray="3 4"/>
- <text x="1000" y="388" class="lbl">FLOAT32 RE-RANK</text>
- <text x="1000" y="408" class="lbl-s">optional · final precision</text>
-
- <line x1="1120" y1="422" x2="1120" y2="458" class="ln"/>
- <polyline points="1110,450 1120,460 1130,450" class="ln"/>
-
- <rect x="980" y="458" width="280" height="58" class="bx"/>
- <text x="1000" y="484" class="lbl">RANKED RESULT</text>
- <text x="1000" y="504" class="lbl-s">final top-K · for fusion</text>
-
- <!-- Quantization legend on the LEFT (under HNSW) -->
- <text x="40" y="400" class="lbl-x">QUANTIZATION</text>
- <line x1="40" y1="412" x2="900" y2="412" class="ln" opacity="0.30"/>
-
- <rect x="40" y="425" width="200" height="80" class="bx"/>
- <text x="60" y="455" class="lbl">FLOAT 32</text>
- <text x="60" y="475" class="lbl-s">baseline</text>
- <text x="60" y="494" class="lbl-m">1× · full precision</text>
-
- <rect x="260" y="425" width="200" height="80" class="bx-a"/>
- <text x="280" y="455" class="lbl-a">SCALAR · U8</text>
- <text x="280" y="475" class="lbl-s">8-bit per dim</text>
- <text x="280" y="494" class="lbl-m">4× · recommended</text>
-
- <rect x="480" y="425" width="200" height="80" class="bx"/>
- <text x="500" y="455" class="lbl">NIBBLE</text>
- <text x="500" y="475" class="lbl-s">4-bit per dim</text>
- <text x="500" y="494" class="lbl-m">8× · max compression</text>
-
- <rect x="700" y="425" width="200" height="80" class="bx" stroke-dasharray="3 4"/>
- <text x="720" y="455" class="lbl">RE-RANK PASS</text>
- <text x="720" y="475" class="lbl-s">on top-K · float32</text>
- <text x="720" y="494" class="lbl-m">accuracy restoration</text>
-
- <text x="40" y="558" class="lbl-x">QUERY-TIME PARAMETER · TRADE RECALL FOR LATENCY · NO INDEX REBUILD</text>
-</svg>
diff --git a/brief/svg/attention.html b/brief/svg/attention.html
deleted file mode 100644
index c652bb548..000000000
--- a/brief/svg/attention.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
- <div class="viz-block">
- <div class="kicker"><span>RAG ANSWER · TOP-3 TOKENS BY ATTENTION WEIGHT</span></div>
-
- <div class="attention" style="font-family:var(--font-data); font-size:var(--fs-16); line-height:1.9; max-width:92ch;"><span style="color:var(--z-accent); opacity:1.00;">Retrieval</span> <span style="opacity:0.56;">augments</span> <span style="opacity:0.51;">generation</span> <span style="color:var(--z-accent); opacity:1.00;">by</span> <span style="opacity:0.54;">pulling</span> <span style="opacity:0.31;">the</span> <span style="opacity:0.27;">most</span> <span style="opacity:0.31;">relevant</span> <span style="color:var(--z-accent); opacity:1.00;">passages</span> <span style="opacity:0.22;">from</span> <span style="opacity:0.62;">a</span> <span style="color:var(--z-accent); opacity:1.00;">vector</span> <span style="opacity:0.42;">index</span> <span style="opacity:0.19;">at</span> <span style="opacity:0.71;">query</span> <span style="opacity:0.37;">time</span> <span style="opacity:0.13;">so</span> <span style="color:var(--z-accent); opacity:1.00;">the</span> <span style="opacity:0.32;">model</span> <span style="opacity:0.16;">answers</span> <span style="opacity:0.36;">from</span> <span style="opacity:0.20;">facts</span> <span style="opacity:0.15;">rather</span> <span style="opacity:0.37;">than</span> <span style="color:var(--z-accent); opacity:1.00;">from</span> <span style="opacity:0.59;">memorised</span> <span style="opacity:0.16;">patterns.</span></div>
- <div class="series-legend" style="margin-top:var(--sp-3);">
- <span class="mono" style="color:var(--z-mute);">peak attention on <span class="accent">Retrieval · by · passages</span></span>
- </div>
- </div>
-</section>
diff --git a/brief/svg/cmp_capability.html b/brief/svg/cmp_capability.html
deleted file mode 100644
index bf725e047..000000000
--- a/brief/svg/cmp_capability.html
+++ /dev/null
@@ -1,125 +0,0 @@
-
-<svg class="arch-svg" viewBox="0 0 1400 720" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%; height:auto;">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-h { font-family: 'Big Shoulders Display','IBM Plex Sans',sans-serif; font-size: 16px; font-weight: 900; letter-spacing: 0.10em; fill: currentColor; text-transform: uppercase; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- .dot { fill: currentColor; }
- .dot-a { fill: #ffc400; }
- .dot-o { stroke: currentColor; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <rect x="0.5" y="0.5" width="1399" height="719" class="bx" opacity="0.18"/>
-
- <!-- HEADER ROW: column titles -->
- <text x="60" y="42" class="lbl-x">CAPABILITY</text>
- <text x="500" y="42" class="lbl-h">ELK / ES + VECTOR DB</text>
- <text x="900" y="42" class="lbl-h">XERJ</text>
- <text x="1180" y="42" class="lbl-x">NOTE</text>
- <line x1="40" y1="58" x2="1360" y2="58" class="ln" opacity="0.5"/>
-
- <!-- helper grid: 11 rows, evenly spaced -->
- <!-- row 1 -->
- <text x="60" y="98" class="lbl">FULL-TEXT · BM25</text>
- <text x="500" y="98" class="lbl-a">FULL</text>
- <text x="900" y="98" class="lbl-a">FULL</text>
- <text x="1180" y="98" class="lbl-s">38 ES query types · 10 analyzers</text>
- <line x1="40" y1="114" x2="1360" y2="114" class="ln" opacity="0.18"/>
-
- <!-- row 2 -->
- <text x="60" y="146" class="lbl">DENSE-VECTOR · HNSW</text>
- <text x="500" y="146" class="lbl-a">FULL</text>
- <text x="500" y="162" class="lbl-s">native in 8.x · BBQ in 9.x</text>
- <text x="900" y="146" class="lbl-a">FULL</text>
- <text x="900" y="162" class="lbl-s">SQ8 · nibble · re-rank · per-index metric</text>
- <text x="1180" y="146" class="lbl-s">filter is a planner input</text>
- <line x1="40" y1="174" x2="1360" y2="174" class="ln" opacity="0.18"/>
-
- <!-- row 3 -->
- <text x="60" y="206" class="lbl">HYBRID · RRF FUSION</text>
- <text x="500" y="206" class="lbl-a">PARTIAL</text>
- <text x="500" y="222" class="lbl-s">requires _rank or app-side merge</text>
- <text x="900" y="206" class="lbl-a">FULL</text>
- <text x="900" y="222" class="lbl-s">in-engine, single pass, k=60 default</text>
- <text x="1180" y="206" class="lbl-s">no Python orchestrator</text>
- <line x1="40" y1="234" x2="1360" y2="234" class="ln" opacity="0.18"/>
-
- <!-- row 4 -->
- <text x="60" y="266" class="lbl">DATE HISTOGRAMS · AGGS</text>
- <text x="500" y="266" class="lbl">FULL</text>
- <text x="500" y="282" class="lbl-s">heap-bound · bucket explosions</text>
- <text x="900" y="266" class="lbl-a">FULL</text>
- <text x="900" y="282" class="lbl-s">columnar · delta-of-delta timestamps</text>
- <text x="1180" y="266" class="lbl-s">trail of bits: ES 16.55× slower</text>
- <line x1="40" y1="294" x2="1360" y2="294" class="ln" opacity="0.18"/>
-
- <!-- row 5 -->
- <text x="60" y="326" class="lbl">AGENT MEMORY · SEMANTIC DEDUP</text>
- <text x="500" y="326" class="lbl-s" style="opacity:0.85;">NOT NATIVE</text>
- <text x="500" y="342" class="lbl-s">redis + postgres + app code</text>
- <text x="900" y="326" class="lbl-a">FULL</text>
- <text x="900" y="342" class="lbl-s">append-only · recency-blended scoring</text>
- <text x="1180" y="326" class="lbl-s">one permission · one audit</text>
- <line x1="40" y1="354" x2="1360" y2="354" class="ln" opacity="0.18"/>
-
- <!-- row 6 -->
- <text x="60" y="386" class="lbl">EXPLAIN PLAN · COST · ROWS</text>
- <text x="500" y="386" class="lbl-s" style="opacity:0.85;">PARTIAL</text>
- <text x="500" y="402" class="lbl-s">does not compose across hybrid passes</text>
- <text x="900" y="386" class="lbl-a">FULL</text>
- <text x="900" y="402" class="lbl-s">every query returns cost + counts</text>
- <text x="1180" y="386" class="lbl-s">composes through fusion pass</text>
- <line x1="40" y1="414" x2="1360" y2="414" class="ln" opacity="0.18"/>
-
- <!-- row 7 -->
- <text x="60" y="446" class="lbl">RUNTIME · MEMORY MODEL</text>
- <text x="500" y="446" class="lbl-s" style="opacity:0.85;">JVM HEAP</text>
- <text x="500" y="462" class="lbl-s">31 GB ceiling · GC pauses · circuit breakers</text>
- <text x="900" y="446" class="lbl-a">RUST · MMAP</text>
- <text x="900" y="462" class="lbl-s">no heap · no GC · OS page cache</text>
- <text x="1180" y="446" class="lbl-s">cold start: 4 ms vs 6.05 s ES</text>
- <line x1="40" y1="474" x2="1360" y2="474" class="ln" opacity="0.18"/>
-
- <!-- row 8 -->
- <text x="60" y="506" class="lbl">CONSENSUS · CO-PROCESS</text>
- <text x="500" y="506" class="lbl-s" style="opacity:0.85;">EMBEDDED</text>
- <text x="500" y="522" class="lbl-s">master nodes · cluster state can bloat</text>
- <text x="900" y="506" class="lbl-a">EMBEDDED RAFT</text>
- <text x="900" y="522" class="lbl-s">metadata only · data plane stays out</text>
- <text x="1180" y="506" class="lbl-s">no etcd / zk · either way</text>
- <line x1="40" y1="534" x2="1360" y2="534" class="ln" opacity="0.18"/>
-
- <!-- row 9 -->
- <text x="60" y="566" class="lbl">AUDIT · TAMPER-EVIDENT</text>
- <text x="500" y="566" class="lbl-s" style="opacity:0.85;">PAID TIER</text>
- <text x="500" y="582" class="lbl-s">audit logging in higher subscriptions</text>
- <text x="900" y="566" class="lbl-a">CORE</text>
- <text x="900" y="582" class="lbl-s">SHA-256 hash chain · WORM · verify endpoint</text>
- <text x="1180" y="566" class="lbl-s">core feature · in the binary</text>
- <line x1="40" y1="594" x2="1360" y2="594" class="ln" opacity="0.18"/>
-
- <!-- row 10 -->
- <text x="60" y="626" class="lbl">FOOTPRINT · INSTALL</text>
- <text x="500" y="626" class="lbl-s" style="opacity:0.85;">~600 MB IMAGE</text>
- <text x="500" y="642" class="lbl-s">JRE + plugins + tooling</text>
- <text x="900" y="626" class="lbl-a">19.6 MB STATIC</text>
- <text x="900" y="642" class="lbl-s">single binary · air-gap · multi-arch image</text>
- <text x="1180" y="626" class="lbl-s">one config · one metrics endpoint</text>
- <line x1="40" y1="654" x2="1360" y2="654" class="ln" opacity="0.18"/>
-
- <!-- row 11 -->
- <text x="60" y="686" class="lbl">WIRE COMPATIBILITY</text>
- <text x="500" y="686" class="lbl-a">CANONICAL</text>
- <text x="900" y="686" class="lbl-a">ES 8.13 DROP-IN</text>
- <text x="900" y="702" class="lbl-s">1 305 / 1 329 conformance cases</text>
- <text x="1180" y="686" class="lbl-s">existing SDKs · Kibana connect</text>
-</svg>
diff --git a/brief/svg/cmp_jvm.html b/brief/svg/cmp_jvm.html
deleted file mode 100644
index 9c9c30d7a..000000000
--- a/brief/svg/cmp_jvm.html
+++ /dev/null
@@ -1,116 +0,0 @@
-
-<svg class="arch-svg" viewBox="0 0 1400 700" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%; height:auto;">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-h { font-family: 'Big Shoulders Display','IBM Plex Sans',sans-serif; font-size: 18px; font-weight: 900; letter-spacing: 0.10em; fill: currentColor; text-transform: uppercase; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <rect x="0.5" y="0.5" width="1399" height="699" class="bx" opacity="0.18"/>
-
- <!-- ===== TOP: ELASTICSEARCH HEAP ZONES ===== -->
- <text x="40" y="42" class="lbl-h">ELASTICSEARCH · JVM HEAP REGIME</text>
- <line x1="40" y1="58" x2="1360" y2="58" class="ln" opacity="0.35"/>
-
- <!-- horizontal bar diagram of heap pressure -->
- <text x="40" y="92" class="lbl-x">HEAP PRESSURE → GC THRASH → CIRCUIT BREAKER → OOM</text>
-
- <!-- bar background -->
- <rect x="40" y="110" width="1280" height="46" class="bx"/>
-
- <!-- zones -->
- <line x1="680" y1="110" x2="680" y2="156" class="ln"/>
- <line x1="900" y1="110" x2="900" y2="156" class="ln"/>
- <line x1="1120" y1="110" x2="1120" y2="156" class="ln-a"/>
- <line x1="1240" y1="110" x2="1240" y2="156" class="ln-a"/>
-
- <text x="60" y="138" class="lbl-s">SAWTOOTH · HEALTHY</text>
- <text x="700" y="138" class="lbl-s">RISING · SUSTAINED</text>
- <text x="920" y="138" class="lbl-s">FLATLINE · GC THRASH</text>
- <text x="1140" y="138" class="lbl-a">BREAKER 95%</text>
- <text x="1255" y="138" class="lbl-a">OOM</text>
-
- <!-- percent ticks under bar -->
- <text x="40" y="178" class="lbl-x">0 %</text>
- <text x="668" y="178" class="lbl-x">50 %</text>
- <text x="888" y="178" class="lbl-x">75 %</text>
- <text x="1108" y="178" class="lbl-x">85 %</text>
- <text x="1228" y="178" class="lbl-x">95 %</text>
- <text x="1308" y="178" class="lbl-x">100 %</text>
-
- <!-- annotation -->
- <text x="40" y="210" class="lbl-x">ABOVE 31 GB · COMPRESSED OOPS LOST · USABLE HEAP HALVES</text>
-
- <!-- THREE FAILURE MODES -->
- <rect x="40" y="232" width="420" height="120" class="bx"/>
- <text x="60" y="262" class="lbl-a">STOP-THE-WORLD</text>
- <text x="60" y="282" class="lbl-s">a major collection freezes the node</text>
- <text x="60" y="298" class="lbl-s">tail latency multiplies under agent loops</text>
- <text x="60" y="318" class="lbl-s">one node's pause becomes everyone's stall</text>
- <text x="60" y="338" class="lbl-s">no GC tuning makes it deterministic</text>
-
- <rect x="490" y="232" width="420" height="120" class="bx"/>
- <text x="510" y="262" class="lbl-a">SHARD COST</text>
- <text x="510" y="282" class="lbl-s">each shard takes a fixed slice of heap</text>
- <text x="510" y="298" class="lbl-s">tens of thousands of small shards starve queries</text>
- <text x="510" y="318" class="lbl-s">restart triggers a recovery storm</text>
- <text x="510" y="338" class="lbl-s">field explosion bloats cluster state</text>
-
- <rect x="940" y="232" width="380" height="120" class="bx"/>
- <text x="960" y="262" class="lbl-a">VECTOR APPETITE</text>
- <text x="960" y="282" class="lbl-s">HNSW wants the graph in RAM</text>
- <text x="960" y="298" class="lbl-s">disk spill = order-of-magnitude latency</text>
- <text x="960" y="318" class="lbl-s">filtered-kNN can fall back to brute force</text>
- <text x="960" y="338" class="lbl-s">int8 / nibble narrow it — until you re-rank</text>
-
- <!-- ===== BOTTOM: XERJ RUNTIME ===== -->
- <text x="40" y="406" class="lbl-h">XERJ · DETERMINISTIC RUSTIME</text>
- <text x="780" y="406" class="lbl-h">SAME WORKLOAD · DIFFERENT REGIME</text>
- <line x1="40" y1="422" x2="1360" y2="422" class="ln-a" opacity="0.5"/>
-
- <!-- properties matrix -->
- <text x="40" y="456" class="lbl-x">RUNTIME PROPERTIES</text>
-
- <rect x="40" y="468" width="310" height="120" class="bx-a"/>
- <text x="60" y="498" class="lbl-a">NO GC PAUSES</text>
- <text x="60" y="518" class="lbl-s">no JVM, no managed heap</text>
- <text x="60" y="534" class="lbl-s">tail set by code paths, not memory</text>
- <text x="60" y="554" class="lbl-s">cold start: 4 ms vs ES 6.05 s</text>
- <text x="60" y="574" class="lbl-s">p99.9 means what it says</text>
-
- <rect x="370" y="468" width="310" height="120" class="bx-a"/>
- <text x="390" y="498" class="lbl-a">MMAP SEGMENTS</text>
- <text x="390" y="518" class="lbl-s">OS page cache, not heap</text>
- <text x="390" y="534" class="lbl-s">no 31 GB compressed-oops cliff</text>
- <text x="390" y="554" class="lbl-s">RSS scales with corpus, not nodes</text>
- <text x="390" y="574" class="lbl-s">RSS · 1 K-vector index: 727 MB vs 2 857 MB</text>
-
- <rect x="700" y="468" width="310" height="120" class="bx-a"/>
- <text x="720" y="498" class="lbl-a">SHARDED MEMTABLE</text>
- <text x="720" y="518" class="lbl-s">16 in-memory shards</text>
- <text x="720" y="534" class="lbl-s">ingest scales with cores, not heap size</text>
- <text x="720" y="554" class="lbl-s">no recovery storm — WAL replay is bounded</text>
- <text x="720" y="574" class="lbl-s">5 M-doc restart preserves every batch</text>
-
- <rect x="1030" y="468" width="290" height="120" class="bx-a"/>
- <text x="1050" y="498" class="lbl-a">VECTOR APPETITE</text>
- <text x="1050" y="518" class="lbl-s">HNSW M=16 · ef tunable at runtime</text>
- <text x="1050" y="534" class="lbl-s">SQ8 · nibble · float32 re-rank</text>
- <text x="1050" y="554" class="lbl-s">filter goes through the planner, not around it</text>
- <text x="1050" y="574" class="lbl-s">one parameter trades recall for latency</text>
-
- <text x="40" y="624" class="lbl-x">NO HEAP · NO GC · NO 31 GB CEILING</text>
- <text x="40" y="650" class="lbl-x">NO JVM TUNING · NO STOP-THE-WORLD · NO RECOVERY STORM</text>
-
- <!-- footer caption -->
- <text x="40" y="690" class="lbl-x">SAME TWO-HOST WORKLOAD · MEASURED AT V1.0.0-RC.1</text>
-</svg>
diff --git a/brief/svg/cmp_query.html b/brief/svg/cmp_query.html
deleted file mode 100644
index a53e4054c..000000000
--- a/brief/svg/cmp_query.html
+++ /dev/null
@@ -1,145 +0,0 @@
-
-<svg class="arch-svg" viewBox="0 0 1400 700" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%; height:auto;">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-h { font-family: 'Big Shoulders Display','IBM Plex Sans',sans-serif; font-size: 18px; font-weight: 900; letter-spacing: 0.10em; fill: currentColor; text-transform: uppercase; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <rect x="0.5" y="0.5" width="1399" height="699" class="bx" opacity="0.18"/>
-
- <!-- ===== HEADER ===== -->
- <text x="40" y="42" class="lbl-h">ELASTICSEARCH HYBRID PATH</text>
- <text x="780" y="42" class="lbl-h">XERJ HYBRID PATH</text>
- <line x1="40" y1="58" x2="700" y2="58" class="ln" opacity="0.35"/>
- <line x1="780" y1="58" x2="1360" y2="58" class="ln-a" opacity="0.5"/>
-
- <line x1="740" y1="40" x2="740" y2="660" class="ln-d"/>
-
- <!-- ============= LEFT: ES PATH ============= -->
- <text x="40" y="92" class="lbl-x">ONE TURN · MULTI-PASS · EXTERNAL FUSION</text>
-
- <!-- App / orchestrator -->
- <rect x="40" y="106" width="660" height="46" class="bx"/>
- <text x="60" y="134" class="lbl">APP · ORCHESTRATOR (PYTHON)</text>
-
- <line x1="370" y1="152" x2="370" y2="180" class="ln"/>
- <polyline points="360,172 370,182 380,172" class="ln"/>
-
- <!-- Build big query -->
- <rect x="40" y="190" width="660" height="46" class="bx"/>
- <text x="60" y="218" class="lbl">BUILD KNN + BOOL + FILTER QUERY</text>
-
- <line x1="120" y1="236" x2="120" y2="270" class="ln"/>
- <polyline points="110,262 120,272 130,262" class="ln"/>
- <line x1="280" y1="236" x2="280" y2="270" class="ln"/>
- <polyline points="270,262 280,272 290,262" class="ln"/>
- <line x1="440" y1="236" x2="440" y2="270" class="ln"/>
- <polyline points="430,262 440,272 450,262" class="ln"/>
- <line x1="600" y1="236" x2="600" y2="270" class="ln"/>
- <polyline points="590,262 600,272 610,262" class="ln"/>
-
- <!-- Three passes plus filter -->
- <rect x="40" y="280" width="150" height="78" class="bx"/>
- <text x="58" y="308" class="lbl">KNN PASS</text>
- <text x="58" y="328" class="lbl-s">post-filter only</text>
- <text x="58" y="346" class="lbl-s">graph re-traversal</text>
-
- <rect x="200" y="280" width="160" height="78" class="bx"/>
- <text x="218" y="308" class="lbl">BM25 PASS</text>
- <text x="218" y="328" class="lbl-s">should · must</text>
- <text x="218" y="346" class="lbl-s">scores doubled risk</text>
-
- <rect x="370" y="280" width="160" height="78" class="bx"/>
- <text x="388" y="308" class="lbl">FILTER</text>
- <text x="388" y="328" class="lbl-s">selective ⇒ slower kNN</text>
- <text x="388" y="346" class="lbl-s">brute-force fallback</text>
-
- <rect x="540" y="280" width="160" height="78" class="bx"/>
- <text x="558" y="308" class="lbl">AGGS</text>
- <text x="558" y="328" class="lbl-s">date histogram</text>
- <text x="558" y="346" class="lbl-s">heap-hungry buckets</text>
-
- <line x1="370" y1="358" x2="370" y2="384" class="ln"/>
- <polyline points="360,376 370,386 380,376" class="ln"/>
-
- <!-- Out-of-engine fusion -->
- <rect x="40" y="394" width="660" height="46" class="bx"/>
- <text x="60" y="422" class="lbl">RRF / RANK FUSION · IN APP CODE OR _RANK API</text>
-
- <line x1="370" y1="440" x2="370" y2="468" class="ln"/>
- <polyline points="360,460 370,470 380,460" class="ln"/>
-
- <rect x="40" y="478" width="660" height="46" class="bx"/>
- <text x="60" y="506" class="lbl">PARSE · MERGE · RETURN → AGENT</text>
-
- <!-- footnotes -->
- <text x="40" y="556" class="lbl-x">"WRESTLING WITH ONE OF THE HAIRIEST QUERIES OUT THERE — THE KNN QUERY"</text>
- <text x="40" y="576" class="lbl-x">— DOUG TURNBULL · INDEPENDENT SEARCH CONSULTANT · FEB 2025</text>
-
- <text x="40" y="612" class="lbl-x">SCORES MUST BE NORMALISED IN APP · EXPLAIN-PLANS DO NOT COMPOSE · TAIL × 4</text>
- <text x="40" y="632" class="lbl-x">FILTER SET SIZE CHANGES PLAN · PRE-FILTER vs POST-FILTER IS YOUR PROBLEM</text>
-
- <!-- ============= RIGHT: XERJ PATH ============= -->
- <text x="780" y="92" class="lbl-x">ONE TURN · ONE PASS · IN-PROCESS FUSION</text>
-
- <rect x="780" y="106" width="580" height="46" class="bx-a"/>
- <text x="800" y="134" class="lbl">CLIENT · ANY ES SDK · NO ORCHESTRATOR</text>
-
- <line x1="1070" y1="152" x2="1070" y2="180" class="ln-a"/>
- <polyline points="1060,172 1070,182 1080,172" class="ln-a"/>
-
- <rect x="780" y="190" width="580" height="46" class="bx-a"/>
- <text x="800" y="218" class="lbl">PARSE · PLAN · COST · REWRITE</text>
-
- <line x1="900" y1="236" x2="900" y2="270" class="ln-a"/>
- <polyline points="890,262 900,272 910,262" class="ln-a"/>
- <line x1="1070" y1="236" x2="1070" y2="270" class="ln-a"/>
- <polyline points="1060,262 1070,272 1080,262" class="ln-a"/>
- <line x1="1240" y1="236" x2="1240" y2="270" class="ln-a"/>
- <polyline points="1230,262 1240,272 1250,262" class="ln-a"/>
-
- <rect x="800" y="280" width="160" height="78" class="bx"/>
- <text x="820" y="308" class="lbl">FTS · BM25</text>
- <text x="820" y="328" class="lbl-s">postings · analyzers</text>
- <text x="820" y="346" class="lbl-s">parallel pass</text>
-
- <rect x="980" y="280" width="160" height="78" class="bx-a"/>
- <text x="1000" y="308" class="lbl">VECTOR · HNSW</text>
- <text x="1000" y="328" class="lbl-s">filter integrated</text>
- <text x="1000" y="346" class="lbl-s">parallel pass</text>
-
- <rect x="1160" y="280" width="200" height="78" class="bx"/>
- <text x="1180" y="308" class="lbl">FILTER · AGGS</text>
- <text x="1180" y="328" class="lbl-s">columnar · doc-values</text>
- <text x="1180" y="346" class="lbl-s">parallel pass</text>
-
- <line x1="1070" y1="358" x2="1070" y2="384" class="ln-a"/>
- <polyline points="1060,376 1070,386 1080,376" class="ln-a"/>
-
- <rect x="780" y="394" width="580" height="46" class="bx-a"/>
- <text x="800" y="422" class="lbl">RECIPROCAL RANK FUSION · IN-ENGINE · ONE PASS</text>
-
- <line x1="1070" y1="440" x2="1070" y2="468" class="ln-a"/>
- <polyline points="1060,460 1070,470 1080,460" class="ln-a"/>
-
- <rect x="780" y="478" width="580" height="46" class="bx-a"/>
- <text x="800" y="506" class="lbl">EXPLAIN PLAN + RESPONSE → AGENT</text>
-
- <text x="780" y="556" class="lbl-a">EVERY QUERY RETURNS COST + ROW COUNTS</text>
- <text x="780" y="576" class="lbl-x">PLANNER OWNS THE FILTER · EXPLAIN COMPOSES · ONE TAIL TO TUNE</text>
- <text x="780" y="612" class="lbl-x">NO PYTHON IN THE LOOP · NO CROSS-STORE HTTP</text>
- <text x="780" y="632" class="lbl-x">SAME REQUEST SHAPE AS THE ES CLIENT YOU ALREADY HAVE</text>
-
- <!-- footer -->
- <text x="40" y="690" class="lbl-x">SAME REQUEST FROM THE AGENT'S POINT OF VIEW · DIFFERENT NUMBER OF HOPS, EXPLAINS, AND BILLS</text>
-</svg>
diff --git a/brief/svg/cmp_stack.html b/brief/svg/cmp_stack.html
deleted file mode 100644
index aad0a2d5c..000000000
--- a/brief/svg/cmp_stack.html
+++ /dev/null
@@ -1,154 +0,0 @@
-
-<svg class="arch-svg" viewBox="0 0 1400 720" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" style="width:100%; height:auto;">
- <defs>
- <style>
- .lbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; fill: currentColor; }
- .lbl-s { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; fill: currentColor; opacity: 0.62; }
- .lbl-x { font-family: 'IBM Plex Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; fill: currentColor; opacity: 0.48; text-transform: uppercase; }
- .lbl-a { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.10em; fill: #ffc400; }
- .lbl-h { font-family: 'Big Shoulders Display','IBM Plex Sans',sans-serif; font-size: 18px; font-weight: 900; letter-spacing: 0.10em; fill: currentColor; text-transform: uppercase; }
- .ln { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-a { stroke: #ffc400; stroke-width: 1; fill: none; stroke-linecap: square; }
- .ln-d { stroke: currentColor; stroke-width: 1; fill: none; stroke-linecap: square; stroke-dasharray: 3 4; opacity: 0.5; }
- .bx { stroke: currentColor; stroke-width: 1; fill: none; }
- .bx-a { stroke: #ffc400; stroke-width: 1; fill: none; }
- </style>
- </defs>
-
- <rect x="0.5" y="0.5" width="1399" height="719" class="bx" opacity="0.18"/>
-
- <!-- HEADERS -->
- <text x="40" y="42" class="lbl-h">TODAY · MULTI-VENDOR STACK</text>
- <text x="780" y="42" class="lbl-h">XERJ · UNIFIED DATA PLANE</text>
- <line x1="40" y1="58" x2="700" y2="58" class="ln" opacity="0.35"/>
- <line x1="780" y1="58" x2="1360" y2="58" class="ln-a" opacity="0.5"/>
-
- <!-- DIVIDER -->
- <line x1="740" y1="40" x2="740" y2="700" class="ln-d"/>
-
- <!-- ============================ LEFT: FRANKENSTACK ============================ -->
-
- <!-- AGENT / APP -->
- <text x="40" y="92" class="lbl-x">AGENT · APPLICATION</text>
- <rect x="40" y="100" width="660" height="46" class="bx"/>
- <text x="60" y="128" class="lbl">PYTHON ORCHESTRATOR · LANGCHAIN</text>
-
- <!-- 4 fan-out arrows -->
- <line x1="120" y1="146" x2="120" y2="186" class="ln"/>
- <polyline points="110,178 120,188 130,178" class="ln"/>
- <line x1="290" y1="146" x2="290" y2="186" class="ln"/>
- <polyline points="280,178 290,188 300,178" class="ln"/>
- <line x1="470" y1="146" x2="470" y2="186" class="ln"/>
- <polyline points="460,178 470,188 480,178" class="ln"/>
- <line x1="630" y1="146" x2="630" y2="186" class="ln"/>
- <polyline points="620,178 630,188 640,178" class="ln"/>
-
- <!-- 4 stores -->
- <text x="40" y="208" class="lbl-x">FOUR STORES · FOUR VENDORS · FOUR BILLS</text>
-
- <rect x="40" y="216" width="160" height="120" class="bx"/>
- <text x="58" y="244" class="lbl">FULL-TEXT</text>
- <text x="58" y="266" class="lbl-s">elasticsearch</text>
- <text x="58" y="284" class="lbl-s">JVM · 64–256 GB</text>
- <text x="58" y="302" class="lbl-s">shards · zen / raft</text>
- <text x="58" y="320" class="lbl-s">api-keys · audit</text>
-
- <rect x="210" y="216" width="160" height="120" class="bx"/>
- <text x="228" y="244" class="lbl">VECTORS</text>
- <text x="228" y="266" class="lbl-s">pinecone / weaviate</text>
- <text x="228" y="284" class="lbl-s">managed only</text>
- <text x="228" y="302" class="lbl-s">separate tenancy</text>
- <text x="228" y="320" class="lbl-s">separate audit</text>
-
- <rect x="380" y="216" width="160" height="120" class="bx"/>
- <text x="398" y="244" class="lbl">LOGS</text>
- <text x="398" y="266" class="lbl-s">ELK · loki · OS</text>
- <text x="398" y="284" class="lbl-s">JVM · disks · GBs</text>
- <text x="398" y="302" class="lbl-s">own pipeline</text>
- <text x="398" y="320" class="lbl-s">own dashboards</text>
-
- <rect x="550" y="216" width="150" height="120" class="bx"/>
- <text x="568" y="244" class="lbl">MEMORY</text>
- <text x="568" y="266" class="lbl-s">redis · postgres</text>
- <text x="568" y="284" class="lbl-s">manual TTL</text>
- <text x="568" y="302" class="lbl-s">no semantic</text>
- <text x="568" y="320" class="lbl-s">dedup</text>
-
- <!-- CONSEQUENCE BLOCK -->
- <text x="40" y="372" class="lbl-x">CONSEQUENCE — WHAT THE ARCHITECT INHERITS</text>
- <rect x="40" y="380" width="660" height="170" class="bx"/>
-
- <text x="60" y="410" class="lbl-a">FRAGMENTATION TAX</text>
- <text x="60" y="428" class="lbl-s">4 wire protocols · 4 client libs · 4 quota systems</text>
-
- <text x="60" y="456" class="lbl-a">JOIN-IN-PYTHON</text>
- <text x="60" y="474" class="lbl-s">RRF runs in app code · cross-store HTTP · no plan, no cost</text>
-
- <text x="60" y="502" class="lbl-a">TAIL × 4</text>
- <text x="60" y="520" class="lbl-s">one slow store stalls every agent turn · p99.9 multiplies</text>
-
- <text x="60" y="540" class="lbl-s" style="opacity:0.85;">ONE QUERY → FOUR HOPS · FOUR FAILURE DOMAINS · FOUR ON-CALL ROTATIONS</text>
-
- <!-- footnote -->
- <text x="40" y="600" class="lbl-x">JVM HEAP · GC PAUSES · SHARD STORMS · CIRCUIT BREAKERS · FIELD-EXPLOSION · PRICING JUMPS</text>
- <text x="40" y="624" class="lbl-x">EVERY LAYER OWNED BY A DIFFERENT VENDOR</text>
-
- <!-- ============================ RIGHT: XERJ ============================ -->
-
- <!-- AGENT / APP -->
- <text x="780" y="92" class="lbl-x">AGENT · APPLICATION</text>
- <rect x="780" y="100" width="580" height="46" class="bx"/>
- <text x="800" y="128" class="lbl">ANY CLIENT · ES SDK · LANGCHAIN · AGENT</text>
-
- <!-- single arrow -->
- <line x1="1070" y1="146" x2="1070" y2="186" class="ln-a"/>
- <polyline points="1060,178 1070,188 1080,178" class="ln-a"/>
-
- <!-- ONE BINARY -->
- <text x="780" y="208" class="lbl-x">ONE BINARY · ONE ENGINE · ONE BILL</text>
- <rect x="780" y="216" width="580" height="334" class="bx-a"/>
-
- <text x="800" y="248" class="lbl-a">XERJ</text>
- <text x="800" y="270" class="lbl-s">RUST · NO JVM · NO GC · STATIC LINK · 19.6 MB</text>
-
- <!-- 4 inner stores, side by side -->
- <rect x="800" y="290" width="125" height="78" class="bx"/>
- <text x="816" y="316" class="lbl">FULL-TEXT</text>
- <text x="816" y="334" class="lbl-s">BM25 · 38 ES queries</text>
- <text x="816" y="350" class="lbl-s">10 analyzers</text>
-
- <rect x="935" y="290" width="125" height="78" class="bx-a"/>
- <text x="951" y="316" class="lbl">VECTOR</text>
- <text x="951" y="334" class="lbl-s">HNSW · M=16</text>
- <text x="951" y="350" class="lbl-s">SQ8 · nibble · re-rank</text>
-
- <rect x="1070" y="290" width="125" height="78" class="bx"/>
- <text x="1086" y="316" class="lbl">LOGS</text>
- <text x="1086" y="334" class="lbl-s">columnar · ZSTD</text>
- <text x="1086" y="350" class="lbl-s">delta-of-delta ts</text>
-
- <rect x="1205" y="290" width="135" height="78" class="bx-a"/>
- <text x="1221" y="316" class="lbl">MEMORY</text>
- <text x="1221" y="334" class="lbl-s">semantic dedup</text>
- <text x="1221" y="350" class="lbl-s">recency-blended</text>
-
- <!-- shared substrate -->
- <text x="800" y="394" class="lbl-x">ONE SEGMENT CACHE · ONE WAL · ONE PERMISSION MODEL · ONE EXPLAIN PLAN</text>
- <line x1="800" y1="402" x2="1340" y2="402" class="ln" opacity="0.35"/>
-
- <!-- single hop arrow back to client -->
- <line x1="1070" y1="408" x2="1070" y2="438" class="ln-a"/>
- <polyline points="1060,430 1070,440 1080,430" class="ln-a"/>
-
- <text x="800" y="464" class="lbl-a">PROPERTY</text>
- <rect x="800" y="476" width="540" height="62" class="bx"/>
- <text x="820" y="502" class="lbl">ONE QUERY → ONE HOP → ONE PLAN → ONE BILL</text>
- <text x="820" y="522" class="lbl-s">data-plane sees no consensus · metadata only over Raft · drop-in ES wire</text>
-
- <!-- footnote -->
- <text x="780" y="600" class="lbl-x">DETERMINISTIC RUNTIME · STATIC BINARY · AIR-GAP · ES-COMPATIBLE</text>
- <text x="780" y="624" class="lbl-x">ONE ON-CALL · ONE DASHBOARD · ONE UPGRADE</text>
-
- <!-- footer caption -->
- <text x="40" y="700" class="lbl-x">FOUR VENDORS COLLAPSE INTO ONE BINARY · NO RE-ARCHITECTURE FROM THE CLIENT'S POINT OF VIEW</text>
-</svg>
diff --git a/brief/svg/graph.html b/brief/svg/graph.html
deleted file mode 100644
index 38b78d7da..000000000
--- a/brief/svg/graph.html
+++ /dev/null
@@ -1,37 +0,0 @@
- <div class="kicker"><span>SERVICE → INDEX · FLOWS · 1H AVERAGE</span></div>
-
- <svg class="chart" viewBox="0 0 1200 420" preserveAspectRatio="none" style="width:100%; height:420px; overflow:visible;">
- <path d="M 220,58.0 C 508.8,58.0 691.2,286.0 980,286.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.78"/><path d="M 220,58.0 C 508.8,58.0 691.2,362.0 980,362.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.33"/><path d="M 220,134.0 C 508.8,134.0 691.2,286.0 980,286.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.17"/><path d="M 220,134.0 C 508.8,134.0 691.2,210.0 980,210.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.10"/><path d="M 220,210.0 C 508.8,210.0 691.2,58.0 980,58.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.48"/><path d="M 220,210.0 C 508.8,210.0 691.2,134.0 980,134.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.63"/><path d="M 220,210.0 C 508.8,210.0 691.2,210.0 980,210.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.22"/><path d="M 220,210.0 C 508.8,210.0 691.2,286.0 980,286.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.28"/><path d="M 220,286.0 C 508.8,286.0 691.2,58.0 980,58.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.52"/><path d="M 220,286.0 C 508.8,286.0 691.2,134.0 980,134.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.70"/><path d="M 220,362.0 C 508.8,362.0 691.2,134.0 980,134.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.85"/>
-
- <text x="208.0" y="58.0" fill="currentColor" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">api-gateway</text>
-
- <text x="208.0" y="134.0" fill="currentColor" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">auth</text>
-
- <text x="208.0" y="210.0" fill="currentColor" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">app</text>
-
- <text x="208.0" y="286.0" fill="currentColor" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">search</text>
-
- <text x="208.0" y="362.0" fill="currentColor" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">embed-svc</text>
-
-
- <text x="992.0" y="58.0" fill="currentColor" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">fts-index</text>
-
- <text x="992.0" y="134.0" fill="currentColor" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">vector-index</text>
-
- <text x="992.0" y="210.0" fill="currentColor" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">agent-memory</text>
-
- <text x="992.0" y="286.0" fill="currentColor" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">logs</text>
-
- <text x="992.0" y="362.0" fill="currentColor" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">metrics</text>
-
- <text x="208.0" y="12.0" fill="currentColor" opacity="0.6" font-family="var(--font-prose)" font-size="11" font-weight="600" letter-spacing="2" text-transform="uppercase" text-anchor="end">SOURCE</text>
- <text x="992.0" y="12.0" fill="currentColor" opacity="0.6" font-family="var(--font-prose)" font-size="11" font-weight="600" letter-spacing="2" text-transform="uppercase">TARGET</text>
- </svg>
- <div class="series-legend">
- <span class="mono" style="color:var(--z-mute);">11 flows · <span style="color:var(--z-ink);">5</span>→<span style="color:var(--z-ink);">5</span> · rps</span>
- </div>
- </div>
-</section>
-
-<!-- SHOWCASE · PARALLEL COORDS -------------------------------->
-<section class="scene-section">
diff --git a/brief/svg/heatmap.html b/brief/svg/heatmap.html
deleted file mode 100644
index eb1388959..000000000
--- a/brief/svg/heatmap.html
+++ /dev/null
@@ -1,4 +0,0 @@
- <div class="viz-block" style="margin-top: var(--sp-10);">
- <div class="kicker"><span>SPEND · WEEKDAY × 2H</span></div>
- <div class="heatmap"><div class="heatmap-row heatmap-head"><span class="row-label"> </span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">00</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">02</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">04</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">06</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">08</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">10</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">12</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">14</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">16</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">18</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">20</span><span style="display:inline-block; width:5ch; text-align:right; color:var(--z-mute);">22</span></div><div class="heatmap-row"><span class="row-label">MON</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.21;">$13</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.37;">$43</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.59;">$89</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.82;">$135</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.99;">$169</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.98;">$167</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.85;">$141</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.62;">$95</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.42;">$54</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.23;">$16</span></div><div class="heatmap-row"><span class="row-label">TUE</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.19;">$9</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.43;">$56</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.62;">$95</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.89;">$148</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.98;">$165</span><span style="display:inline-block; width:5ch; text-align:right; opacity:1.00;">$170</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.85;">$141</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.69;">$108</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.37;">$44</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span></div><div class="heatmap-row"><span class="row-label">WED</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.42;">$54</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.61;">$91</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.89;">$148</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.98;">$166</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.95;">$160</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.82;">$135</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.66;">$102</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.44;">$59</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.21;">$11</span></div><div class="heatmap-row"><span class="row-label">THU</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.20;">$9</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.38;">$47</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.67;">$104</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.84;">$139</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.98;">$167</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.98;">$165</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.80;">$131</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.67;">$104</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.44;">$59</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.22;">$14</span></div><div class="heatmap-row"><span class="row-label">FRI</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.17;">$4</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.39;">$48</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.66;">$101</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.81;">$132</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.96;">$162</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.92;">$153</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.89;">$148</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.65;">$99</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.43;">$56</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.19;">$7</span></div><div class="heatmap-row"><span class="row-label">SAT</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.18;">$6</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.25;">$19</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.34;">$38</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.44;">$58</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.57;">$85</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.55;">$81</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.48;">$65</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.38;">$46</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.25;">$21</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.17;">$4</span></div><div class="heatmap-row"><span class="row-label">SUN</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.16;">$2</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.18;">$6</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.24;">$18</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.35;">$40</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.46;">$61</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.52;">$74</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.51;">$71</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.47;">$64</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.41;">$52</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.24;">$18</span><span style="display:inline-block; width:5ch; text-align:right; opacity:0.17;">$3</span></div></div>
- </div>
diff --git a/brief/svg/hero_queries.html b/brief/svg/hero_queries.html
deleted file mode 100644
index 3d7143076..000000000
--- a/brief/svg/hero_queries.html
+++ /dev/null
@@ -1,19 +0,0 @@
- <div class="kicker"><span>830,000 QUERIES · 48 HOURS · UMAP 2D</span></div>
-
- <svg class="chart" viewBox="0 0 1200 380" preserveAspectRatio="none" style="width:100%; height:380px;">
- <polyline points="93.8,252.0 103.0,263.6 118.2,268.2 167.5,273.3 241.5,265.6 258.3,262.1 263.7,260.2 277.4,250.9 275.7,245.6 250.3,230.8 233.9,225.9 199.6,222.3 110.3,229.6 99.0,233.5 94.4,241.1 93.8,252.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.55"/><polyline points="809.5,290.8 838.4,302.7 901.5,309.2 955.2,308.0 971.3,305.2 1014.9,288.1 1018.5,285.6 1011.6,268.2 997.2,261.8 950.3,250.7 886.5,249.2 846.6,255.9 822.7,263.0 810.4,281.6 809.5,290.8" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.48"/><polyline points="396.6,119.7 409.2,141.2 456.1,151.6 524.3,156.5 564.0,154.8 609.1,146.1 634.0,135.6 640.7,124.8 626.6,106.1 613.8,101.3 576.9,95.6 528.3,90.1 459.2,96.7 410.2,106.3 396.6,119.7" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.41"/><polyline points="1002.2,68.6 1026.9,77.8 1045.9,78.0 1106.9,77.9 1160.0,69.6 1141.6,47.7 1105.1,40.0 1045.9,42.1 1017.2,48.5 1002.2,68.6" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.34"/><polyline points="40.0,54.0 57.7,76.1 93.6,77.6 124.7,76.9 144.7,74.3 160.4,63.0 157.1,52.2 147.6,48.8 114.1,46.0 89.1,44.0 52.2,50.2 40.0,54.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.27"/><polyline points="618.7,316.0 623.4,325.0 635.8,331.5 667.0,338.7 672.7,339.9 728.6,340.0 781.7,323.6 777.2,312.6 773.0,309.6 756.1,300.9 729.3,299.2 710.8,298.1 667.7,299.9 633.1,308.1 618.7,316.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.20"/>
- <text x="120.5" y="249.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="115.4" y="246.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="233.9" y="225.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="197.7" y="256.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="195.7" y="234.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="184.8" y="260.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="156.7" y="247.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="178.0" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="204.5" y="255.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="159.3" y="245.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="177.4" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="178.2" y="249.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="242.5" y="260.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="137.8" y="266.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="235.9" y="243.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="136.2" y="252.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="134.8" y="249.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="127.3" y="243.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="250.8" y="246.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="249.5" y="247.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="196.2" y="239.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="167.5" y="273.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="170.4" y="231.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="218.7" y="255.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="235.0" y="243.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="137.9" y="247.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="108.7" y="244.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="232.3" y="234.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="104.5" y="262.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="205.0" y="259.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="271.0" y="247.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="228.4" y="242.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="114.5" y="246.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="124.9" y="253.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="220.5" y="262.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="277.4" y="250.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="259.6" y="252.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="258.5" y="254.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="186.2" y="246.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="184.9" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="95.5" y="246.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="148.6" y="267.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="142.7" y="228.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="94.4" y="241.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="167.7" y="253.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="201.9" y="239.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="180.6" y="249.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="196.7" y="243.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="154.7" y="255.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="118.2" y="268.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="115.7" y="236.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="181.3" y="248.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="146.8" y="270.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="179.8" y="232.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="218.5" y="255.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="120.5" y="232.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="160.4" y="254.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="130.6" y="245.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="198.4" y="248.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="175.4" y="249.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="133.1" y="265.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="127.7" y="241.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="201.0" y="257.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="167.3" y="250.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="199.1" y="249.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="151.5" y="265.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="132.3" y="254.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="121.1" y="266.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="181.4" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="190.2" y="247.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="181.4" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="231.8" y="245.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="250.1" y="241.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="181.3" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="114.0" y="235.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="170.4" y="243.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="178.5" y="266.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="240.1" y="243.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="110.6" y="260.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="145.6" y="253.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="147.0" y="254.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="165.3" y="251.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="227.4" y="233.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="178.4" y="255.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="263.7" y="260.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="128.2" y="241.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="146.9" y="232.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="268.4" y="251.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="169.6" y="257.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="223.6" y="255.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="201.4" y="251.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="199.8" y="241.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="230.9" y="249.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="183.5" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="147.1" y="261.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="206.0" y="248.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="202.9" y="249.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="209.9" y="251.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="143.2" y="249.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="187.3" y="240.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="239.4" y="254.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="161.2" y="235.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="152.5" y="239.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="206.5" y="234.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="233.9" y="258.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="96.8" y="254.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="109.7" y="260.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="123.2" y="242.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="125.9" y="243.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="148.5" y="262.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="167.1" y="245.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="251.3" y="247.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="157.7" y="242.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="193.7" y="247.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="165.0" y="254.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="225.0" y="244.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="177.3" y="251.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="176.0" y="253.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="170.4" y="231.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="162.9" y="240.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="147.1" y="256.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="184.8" y="250.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="192.1" y="239.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="244.7" y="263.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="225.3" y="252.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="211.3" y="232.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="125.0" y="261.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="218.6" y="252.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="170.1" y="245.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="227.5" y="257.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="183.0" y="247.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="187.3" y="250.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="131.2" y="251.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="103.0" y="263.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="115.9" y="251.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="93.8" y="252.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="187.9" y="249.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="195.5" y="223.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="128.6" y="235.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="139.2" y="251.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="164.9" y="239.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="148.8" y="233.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="241.5" y="265.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="185.7" y="232.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="130.6" y="247.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="174.0" y="263.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="99.0" y="233.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="188.9" y="236.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="196.1" y="247.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="192.8" y="247.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="141.5" y="230.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="137.6" y="250.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="110.3" y="229.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="174.9" y="260.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="138.6" y="231.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="166.6" y="232.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="180.5" y="245.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="202.2" y="256.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="250.3" y="230.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="252.7" y="242.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="175.7" y="249.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="118.4" y="264.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="212.1" y="226.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="199.6" y="222.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="142.3" y="244.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="220.0" y="246.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="217.1" y="244.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="142.3" y="247.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="275.7" y="245.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="183.7" y="254.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="194.7" y="244.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="152.3" y="268.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="264.4" y="251.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="199.8" y="252.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="167.9" y="261.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="190.6" y="253.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="264.3" y="248.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="258.3" y="262.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="183.4" y="244.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="275.1" y="246.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="879.1" y="296.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="972.9" y="268.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="878.9" y="302.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1007.7" y="276.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="921.5" y="263.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="906.8" y="277.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="897.4" y="251.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="975.3" y="280.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="913.8" y="278.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="914.4" y="280.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="946.7" y="284.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1014.9" y="288.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="914.7" y="283.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="892.5" y="272.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="977.9" y="271.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="847.8" y="284.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="876.5" y="294.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1004.2" y="268.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="884.8" y="297.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="833.8" y="266.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="920.5" y="266.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="997.2" y="261.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="920.9" y="272.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="859.1" y="291.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="868.0" y="284.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="880.0" y="273.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="839.3" y="269.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="974.0" y="270.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="869.7" y="295.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="982.1" y="297.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="825.6" y="277.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="944.0" y="268.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="887.0" y="289.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="950.3" y="250.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="955.7" y="285.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1003.3" y="292.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="958.6" y="270.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="933.0" y="285.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="823.0" y="278.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="867.5" y="260.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="846.6" y="255.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1011.6" y="268.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="909.8" y="293.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="904.1" y="271.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="892.3" y="273.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="913.7" y="278.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="908.3" y="284.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="912.6" y="278.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="915.7" y="282.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="906.3" y="296.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="876.7" y="276.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="871.3" y="293.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="885.2" y="256.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="970.7" y="295.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="885.5" y="292.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="867.5" y="265.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="946.2" y="280.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="873.6" y="272.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="892.8" y="259.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="899.8" y="274.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="858.0" y="298.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="809.5" y="290.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="982.7" y="299.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="865.4" y="288.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="839.2" y="262.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="912.7" y="277.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="911.1" y="279.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="968.9" y="262.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="925.9" y="272.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="932.9" y="268.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="965.9" y="282.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="892.8" y="305.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="923.9" y="287.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="931.3" y="289.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="912.5" y="277.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="898.4" y="302.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="955.4" y="289.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="911.7" y="260.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="892.4" y="285.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="982.8" y="294.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="863.7" y="293.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="810.4" y="281.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="822.7" y="263.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="916.9" y="281.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="970.3" y="295.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="926.7" y="285.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="982.1" y="261.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="863.1" y="268.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="943.5" y="288.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="872.5" y="267.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="943.9" y="276.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1018.5" y="285.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="858.3" y="286.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="916.0" y="276.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="935.9" y="285.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="886.5" y="249.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="898.1" y="285.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="904.9" y="273.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="928.4" y="251.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="984.9" y="280.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="848.6" y="264.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="942.2" y="263.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="848.1" y="274.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="879.4" y="267.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="858.3" y="277.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="899.7" y="285.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="875.9" y="302.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="901.5" y="282.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="903.3" y="274.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="920.6" y="281.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="829.3" y="283.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="912.2" y="278.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="904.9" y="279.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="926.7" y="293.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="919.1" y="260.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="857.8" y="285.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="971.3" y="305.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="912.9" y="279.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="953.4" y="301.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="903.8" y="279.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="909.1" y="272.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="930.9" y="292.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="934.6" y="272.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="854.0" y="295.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="901.5" y="309.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="816.3" y="278.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="980.1" y="290.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="937.7" y="288.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="915.0" y="277.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="842.8" y="280.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="893.9" y="249.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="992.6" y="283.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="939.8" y="280.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="915.0" y="281.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="894.8" y="264.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="838.4" y="302.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="918.4" y="302.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="955.2" y="308.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="944.7" y="304.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="830.7" y="296.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="469.3" y="110.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="564.0" y="120.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="547.8" y="99.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="540.4" y="100.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="536.7" y="97.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="518.2" y="123.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="533.5" y="118.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="634.0" y="135.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="495.9" y="114.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="594.5" y="139.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="525.4" y="112.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="554.4" y="106.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="590.4" y="138.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="553.1" y="151.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="488.4" y="147.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="520.0" y="114.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="494.5" y="119.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="538.3" y="125.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="422.8" y="134.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="459.2" y="96.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="604.5" y="132.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="529.1" y="117.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="406.8" y="125.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="433.8" y="106.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="523.7" y="123.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="482.5" y="132.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="573.4" y="107.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="536.8" y="128.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="522.8" y="123.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="529.6" y="115.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="624.4" y="135.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="468.9" y="113.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="487.1" y="108.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="523.4" y="114.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="496.4" y="139.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="396.6" y="119.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="511.2" y="124.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="570.0" y="134.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="510.4" y="127.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="561.4" y="108.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="559.8" y="125.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="521.9" y="116.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="468.3" y="122.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="483.6" y="108.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="510.6" y="123.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="425.0" y="123.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="521.0" y="123.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="513.3" y="116.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="412.4" y="110.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="576.4" y="139.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="449.5" y="112.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="541.4" y="92.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="546.9" y="100.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="548.5" y="139.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="486.1" y="131.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="479.0" y="140.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="517.6" y="106.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="525.8" y="110.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="502.4" y="122.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="476.3" y="123.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="522.2" y="111.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="505.9" y="116.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="520.0" y="125.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="424.1" y="111.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="488.6" y="137.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="579.6" y="113.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="535.5" y="119.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="532.1" y="130.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="471.3" y="129.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="527.6" y="143.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="414.7" y="122.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="483.5" y="133.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="525.4" y="99.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="625.5" y="138.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="531.3" y="151.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="504.1" y="128.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="525.2" y="119.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="595.9" y="137.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="450.0" y="121.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="499.9" y="103.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="546.9" y="131.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="410.2" y="106.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="584.9" y="141.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="585.5" y="122.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="544.8" y="127.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="524.4" y="122.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="487.2" y="119.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="574.5" y="149.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="513.4" y="125.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="558.0" y="128.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="486.5" y="131.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="418.9" y="120.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="506.6" y="153.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="509.8" y="118.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="568.9" y="113.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="540.5" y="97.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="447.0" y="130.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="591.2" y="133.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="516.5" y="133.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="522.7" y="122.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="616.0" y="120.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="524.1" y="123.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="551.2" y="119.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="462.0" y="122.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="595.7" y="109.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="578.1" y="127.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="472.1" y="121.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="626.6" y="106.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="509.5" y="125.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="524.3" y="121.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="542.5" y="122.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="506.7" y="148.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="499.2" y="118.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="439.9" y="109.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="534.5" y="119.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="406.7" y="112.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="512.0" y="122.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="617.3" y="103.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="409.2" y="141.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="467.2" y="120.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="507.9" y="122.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="543.6" y="146.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="568.5" y="94.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="590.3" y="131.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="487.3" y="119.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="510.5" y="130.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="552.2" y="102.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="562.1" y="129.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="539.9" y="126.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="556.9" y="130.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="478.4" y="115.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="476.9" y="110.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="614.4" y="128.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="513.7" y="123.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="525.9" y="121.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="539.2" y="140.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="614.0" y="118.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="517.1" y="149.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="437.9" y="119.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="505.6" y="154.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="566.0" y="99.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="460.3" y="116.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="616.3" y="129.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="496.8" y="126.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="500.0" y="122.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="609.1" y="146.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="409.1" y="137.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="516.0" y="117.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="506.8" y="143.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="535.2" y="120.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="501.0" y="125.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="640.7" y="124.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="481.5" y="126.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="463.1" y="120.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="518.8" y="114.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="515.2" y="120.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="536.1" y="124.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="510.0" y="123.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="576.9" y="95.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="457.8" y="115.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="456.1" y="151.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="440.8" y="109.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="465.5" y="128.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="554.8" y="120.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="605.2" y="102.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="536.4" y="150.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="485.3" y="124.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="494.2" y="105.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="518.9" y="130.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="629.8" y="135.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="560.6" y="120.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="567.3" y="137.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="519.5" y="122.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="564.0" y="154.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="520.6" y="130.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="505.5" y="113.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="527.5" y="114.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="531.1" y="123.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="508.0" y="120.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="528.5" y="117.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="528.3" y="90.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="516.6" y="112.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="515.2" y="131.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="571.0" y="135.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="513.5" y="128.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="568.9" y="135.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="576.3" y="101.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="513.6" y="125.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="528.6" y="122.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="606.8" y="124.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="453.4" y="104.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="538.2" y="114.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="596.9" y="104.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="502.2" y="114.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="499.8" y="139.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="509.5" y="120.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="464.2" y="138.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="497.2" y="148.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="559.2" y="122.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="432.1" y="120.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="611.7" y="107.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="441.5" y="140.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="462.6" y="134.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="541.3" y="126.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="611.3" y="122.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="613.8" y="101.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="560.2" y="137.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="632.4" y="123.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="535.0" y="129.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="625.4" y="109.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="502.2" y="121.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="493.7" y="135.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="506.9" y="118.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="617.7" y="139.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="627.9" y="117.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="496.7" y="115.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="524.3" y="156.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="402.3" y="124.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="566.7" y="97.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="609.8" y="127.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1087.8" y="42.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1114.4" y="69.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1058.4" y="64.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1139.8" y="50.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1084.0" y="61.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1076.7" y="75.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1024.5" y="63.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1117.2" y="49.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1046.9" y="50.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1085.8" y="59.4" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1114.5" y="56.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1099.9" y="55.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1085.2" y="64.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1080.0" y="62.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1141.6" y="47.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1145.3" y="56.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1082.9" y="55.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1080.4" y="48.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1002.2" y="68.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1053.7" y="75.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1042.6" y="51.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1075.2" y="61.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1026.9" y="77.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1083.5" y="60.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1141.0" y="70.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1082.1" y="60.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1028.1" y="66.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1015.4" y="60.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1145.4" y="53.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1071.0" y="60.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1160.0" y="69.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1056.4" y="76.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1057.4" y="68.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1105.0" y="60.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1089.2" y="66.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1055.4" y="76.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1074.4" y="64.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1114.8" y="68.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1106.9" y="77.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1084.6" y="41.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1079.1" y="61.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1100.1" y="47.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1099.9" y="65.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1056.2" y="64.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1077.4" y="62.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1073.7" y="49.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1090.3" y="59.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1107.4" y="43.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1089.4" y="58.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1081.0" y="71.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1079.5" y="60.4" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1036.7" y="70.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1079.5" y="64.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1030.1" y="73.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1126.2" y="47.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1115.3" y="58.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1048.0" y="51.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1079.3" y="60.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1047.1" y="60.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1075.1" y="72.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1132.2" y="62.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1093.9" y="73.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1129.1" y="68.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1125.1" y="44.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1084.1" y="62.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1017.2" y="48.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1038.8" y="56.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1059.3" y="59.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1052.8" y="62.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1100.3" y="65.4" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1075.6" y="42.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1066.2" y="62.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1075.4" y="69.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1057.7" y="74.4" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1112.7" y="66.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1089.4" y="53.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1055.1" y="45.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1093.5" y="72.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1097.0" y="65.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1128.1" y="57.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1117.8" y="68.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1045.9" y="78.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1048.0" y="74.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1049.8" y="59.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1073.1" y="41.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1106.4" y="55.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1080.9" y="62.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1082.6" y="77.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1046.8" y="55.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1106.8" y="55.4" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1045.9" y="42.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1103.7" y="61.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1083.0" y="62.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1129.5" y="72.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1080.6" y="61.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1096.1" y="62.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1094.9" y="60.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1105.1" y="40.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1094.4" y="66.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1082.9" y="61.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="149.0" y="62.4" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="144.7" y="74.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="52.2" y="50.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="142.1" y="65.4" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="119.3" y="47.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="132.6" y="57.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="76.7" y="63.5" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="79.4" y="63.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="86.9" y="59.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="93.6" y="77.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="73.9" y="73.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="53.6" y="63.5" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="60.3" y="65.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="109.1" y="59.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="112.9" y="57.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="104.5" y="57.5" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="146.4" y="50.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="59.6" y="53.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="85.7" y="70.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="132.8" y="75.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="146.9" y="49.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="153.2" y="67.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="108.7" y="52.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="79.9" y="53.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="79.1" y="70.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="89.0" y="48.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="73.1" y="55.9" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="99.7" y="60.7" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="108.2" y="53.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="147.6" y="48.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="89.1" y="57.4" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="94.0" y="62.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="91.9" y="64.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="109.2" y="58.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="88.9" y="74.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="121.8" y="62.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="75.0" y="54.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="135.3" y="49.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="98.0" y="59.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="111.4" y="57.5" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="85.9" y="51.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="93.7" y="65.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="100.7" y="55.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="89.1" y="44.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="88.4" y="59.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="103.1" y="58.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="97.6" y="67.4" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="109.6" y="61.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="42.5" y="55.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="78.6" y="72.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="40.0" y="54.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="141.6" y="59.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="59.7" y="70.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="160.4" y="63.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="110.1" y="64.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="120.7" y="62.4" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="94.1" y="57.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="157.1" y="52.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="87.7" y="61.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="85.2" y="69.7" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="114.1" y="46.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="86.9" y="63.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="124.7" y="76.9" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="58.0" y="60.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="87.0" y="60.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="114.8" y="54.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="133.2" y="55.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="95.6" y="61.7" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="88.0" y="67.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="143.3" y="48.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="107.9" y="58.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="110.0" y="57.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="97.4" y="62.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="57.7" y="76.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="135.3" y="64.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="106.5" y="49.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="100.2" y="50.9" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="114.3" y="61.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="54.0" y="53.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="100.3" y="61.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="693.3" y="320.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="746.3" y="309.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="739.1" y="310.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="761.2" y="317.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="662.3" y="315.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="781.7" y="323.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="704.0" y="331.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="729.3" y="299.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="712.5" y="327.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="682.4" y="330.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="692.5" y="312.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="618.7" y="316.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="742.3" y="319.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="641.7" y="322.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="709.6" y="318.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="713.8" y="317.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="733.4" y="326.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="727.4" y="323.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="710.8" y="300.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="738.7" y="317.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="684.4" y="300.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="700.0" y="318.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="674.7" y="326.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="700.9" y="315.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="718.9" y="329.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="672.7" y="339.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="659.8" y="302.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="764.7" y="317.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="773.0" y="309.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="697.9" y="314.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="705.7" y="331.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="667.7" y="299.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="747.3" y="324.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="709.8" y="330.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="667.2" y="328.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="720.9" y="308.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="699.2" y="316.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="667.0" y="338.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="721.0" y="318.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="702.9" y="321.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="764.8" y="326.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="686.5" y="314.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="733.4" y="319.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="704.8" y="318.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="694.2" y="314.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="699.2" y="318.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="736.8" y="326.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="673.4" y="318.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="674.1" y="328.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="743.3" y="329.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="675.0" y="326.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="696.9" y="317.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="641.8" y="316.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="623.4" y="325.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="727.0" y="329.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="752.9" y="327.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="705.0" y="319.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="700.0" y="303.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="644.9" y="321.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="631.4" y="314.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="686.6" y="317.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="686.9" y="316.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="705.5" y="318.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="663.5" y="330.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="672.0" y="337.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="677.9" y="317.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="703.1" y="316.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="682.4" y="319.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="771.8" y="313.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="677.9" y="323.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="689.2" y="317.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="743.8" y="309.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="711.3" y="315.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="710.8" y="317.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="703.6" y="314.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="701.4" y="319.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="722.4" y="325.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="707.0" y="319.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="748.5" y="316.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="633.1" y="308.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="710.8" y="298.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="716.7" y="321.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="740.9" y="315.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="756.1" y="300.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="723.7" y="315.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="664.9" y="325.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="728.6" y="340.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="683.0" y="306.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="777.2" y="312.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="760.0" y="316.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="715.3" y="331.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="746.2" y="322.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="733.1" y="301.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="697.4" y="318.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="719.5" y="311.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="712.0" y="309.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="647.5" y="317.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="709.1" y="311.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="717.5" y="312.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="726.8" y="326.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="701.4" y="336.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="732.3" y="325.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="690.3" y="321.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="685.9" y="320.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="727.7" y="300.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="670.3" y="307.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="635.8" y="331.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="701.6" y="318.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="768.4" y="326.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="638.8" y="326.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
- <text x="120.5" y="235.2" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">RAG RETRIEVAL</text><text x="879.1" y="282.7" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">CODE ASSIST</text><text x="469.3" y="96.0" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">DOC Q&amp;A</text><text x="1087.8" y="28.7" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">EXTRACT JSON</text><text x="149.0" y="48.4" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">CLASSIFY</text><text x="693.3" y="306.7" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">AGENT TOOL</text>
-
- </svg>
- <div class="series-legend">
- <span class="mono" style="color:var(--z-mute);">UMAP · <span style="color:var(--z-ink);">830</span> embeddings · <span style="color:var(--z-ink);">6</span> clusters</span>
- </div>
- </div>
-</section>
-
-<!-- SHOWCASE · SERVICE GRAPH ---------------------------------->
-<section class="scene-section">
- <div class="kicker"><span>04</span><span class="dash">·</span><span>SERVICE GRAPH</span></div>
- <h2 class="scene">SEE EVERY<br><span class="accent">HOP.</span></h2>
-
diff --git a/brief/svg/query_shape.html b/brief/svg/query_shape.html
deleted file mode 100644
index ce6d08eef..000000000
--- a/brief/svg/query_shape.html
+++ /dev/null
@@ -1,39 +0,0 @@
- <div class="viz-block">
- <div class="kicker"><span>LATENCY · TOKENS · COST · CACHE · RECALL · DOCS</span></div>
-
- <svg class="chart" viewBox="0 0 1200 280" preserveAspectRatio="none" style="width:100%; height:280px;">
- <line x1="60.0" y1="36" x2="60.0" y2="244" stroke="currentColor" stroke-width="1" stroke-opacity="0.2"/><line x1="276.0" y1="36" x2="276.0" y2="244" stroke="currentColor" stroke-width="1" stroke-opacity="0.2"/><line x1="492.0" y1="36" x2="492.0" y2="244" stroke="currentColor" stroke-width="1" stroke-opacity="0.2"/><line x1="708.0" y1="36" x2="708.0" y2="244" stroke="currentColor" stroke-width="1" stroke-opacity="0.2"/><line x1="924.0" y1="36" x2="924.0" y2="244" stroke="currentColor" stroke-width="1" stroke-opacity="0.2"/><line x1="1140.0" y1="36" x2="1140.0" y2="244" stroke="currentColor" stroke-width="1" stroke-opacity="0.2"/>
- <polyline points="60.0,145.9 276.0,129.9 492.0,130.2 708.0,171.2 924.0,43.3 1140.0,157.8" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/><polyline points="60.0,51.1 276.0,67.3 492.0,82.8 708.0,51.5 924.0,113.3 1140.0,139.5" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/><polyline points="60.0,191.8 276.0,84.0 492.0,82.5 708.0,157.2 924.0,50.5 1140.0,175.8" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/><polyline points="60.0,115.4 276.0,167.6 492.0,98.0 708.0,57.2 924.0,47.9 1140.0,111.8" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/><polyline points="60.0,100.7 276.0,110.1 492.0,194.7 708.0,101.2 924.0,62.2 1140.0,60.7" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/><polyline points="60.0,209.4 276.0,179.2 492.0,101.4 708.0,100.6 924.0,86.8 1140.0,100.9" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/><polyline points="60.0,84.7 276.0,225.0 492.0,164.9 708.0,48.1 924.0,93.2 1140.0,210.4" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/><polyline points="60.0,208.8 276.0,104.1 492.0,59.5 708.0,119.4 924.0,90.0 1140.0,123.7" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/><polyline points="60.0,221.0 276.0,108.3 492.0,100.6 708.0,67.6 924.0,38.3 1140.0,63.6" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/><polyline points="60.0,103.9 276.0,212.8 492.0,127.1 708.0,76.5 924.0,84.8 1140.0,211.4" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/><polyline points="60.0,76.5 276.0,166.9 492.0,141.9 708.0,162.1 924.0,60.9 1140.0,215.4" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/><polyline points="60.0,213.7 276.0,105.5 492.0,120.0 708.0,140.5 924.0,117.9 1140.0,81.3" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.16"/>
- <polyline points="60.0,100.7 276.0,110.1 492.0,194.7 708.0,101.2 924.0,62.2 1140.0,60.7" fill="none" stroke="var(--z-accent)" stroke-width="1" stroke-opacity="1"/>
-
- <text x="60.0" y="22" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">LATENCY_MS</text>
- <text x="60.0" y="264" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">0.00</text>
- <text x="60.0" y="276" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">2.5K</text>
-
- <text x="276.0" y="22" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">TOKENS</text>
- <text x="276.0" y="264" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">0.00</text>
- <text x="276.0" y="276" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">12K</text>
-
- <text x="492.0" y="22" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">COST_USD</text>
- <text x="492.0" y="264" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">0.00</text>
- <text x="492.0" y="276" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">6.0</text>
-
- <text x="708.0" y="22" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">CACHE_HIT</text>
- <text x="708.0" y="264" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">0.00</text>
- <text x="708.0" y="276" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">100</text>
-
- <text x="924.0" y="22" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">RECALL_AT_10</text>
- <text x="924.0" y="264" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">0.00</text>
- <text x="924.0" y="276" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">100</text>
-
- <text x="1140.0" y="22" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">DOCS</text>
- <text x="1140.0" y="264" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">0.00</text>
- <text x="1140.0" y="276" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">50.0</text>
-
- </svg>
- <div class="series-legend">
- <span class="mono" style="color:var(--z-mute);"><span style="color:var(--z-ink);">12</span> rows · <span style="color:var(--z-ink);">6</span> dimensions · <span style="color:var(--z-accent);">1 highlighted</span></span>
- </div>
- </div>
-</section>
-
diff --git a/brief/svg/ribbon.html b/brief/svg/ribbon.html
deleted file mode 100644
index bb280f03e..000000000
--- a/brief/svg/ribbon.html
+++ /dev/null
@@ -1,12 +0,0 @@
- <div class="kicker"><span>LATENCY · PER MODEL · AXONOMETRIC RIBBON</span></div>
-
- <svg class="chart" viewBox="0 0 1200 320" preserveAspectRatio="none" style="width:100%; height:320px;">
- <polyline points="174.0,132.5 191.2,124.5 208.4,107.1 225.7,107.6 242.9,100.0 260.1,95.5 277.3,94.4 294.5,87.9 311.8,97.7 329.0,103.5 346.2,94.7 363.4,116.2 380.6,119.5 397.9,124.4 415.1,133.7 432.3,139.6 449.5,154.6 466.7,156.6 484.0,159.9 501.2,160.0 518.4,149.7 535.6,158.2 552.8,154.6 570.1,134.8 587.3,137.4 604.5,134.6 621.7,121.8 638.9,121.4 656.2,101.1 673.4,105.4 690.6,94.7 707.8,95.5 725.1,87.1 742.3,84.0 759.5,90.5 776.7,105.6 793.9,119.7 811.2,108.8 828.4,125.5 845.6,125.1 862.8,130.8 880.0,148.3 897.3,160.7 914.5,151.4 931.7,147.5 948.9,161.9 966.1,154.3 983.4,145.7 1000.6,128.2 1017.8,133.8 1035.0,116.6 1052.2,109.2 1069.5,104.2 1086.7,115.4 1103.9,109.6 1121.1,103.1 1138.3,92.3 1155.6,87.9 1172.8,87.5 1190.0,85.3" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="1.00"/><text x="168.0" y="192.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">OPUS 4.6</text><text x="1196.0" y="85.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">1.72K</text><polyline points="158.0,193.3 175.2,191.2 192.4,183.3 209.7,179.0 226.9,179.8 244.1,181.6 261.3,179.1 278.5,172.5 295.8,177.1 313.0,185.0 330.2,179.3 347.4,188.6 364.6,198.1 381.9,195.0 399.1,210.8 416.3,211.9 433.5,221.1 450.7,222.8 468.0,215.6 485.2,214.8 502.4,210.4 519.6,209.6 536.8,213.0 554.1,205.2 571.3,209.5 588.5,202.5 605.7,199.7 622.9,196.4 640.2,188.4 657.4,182.7 674.6,178.3 691.8,174.9 709.1,173.8 726.3,175.2 743.5,187.0 760.7,183.1 777.9,189.7 795.2,195.7 812.4,200.3 829.6,205.3 846.8,210.4 864.0,215.7 881.3,219.0 898.5,223.3 915.7,218.3 932.9,221.4 950.1,215.4 967.4,212.2 984.6,206.7 1001.8,205.5 1019.0,205.4 1036.2,202.4 1053.5,195.4 1070.7,178.6 1087.9,188.9 1105.1,173.8 1122.3,179.5 1139.6,178.3 1156.8,185.8 1174.0,176.8" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.86"/><text x="152.0" y="176.0" fill="currentColor" opacity="0.86" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">SONNET 4.6</text><text x="1180.0" y="176.8" fill="currentColor" opacity="0.86" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">969.91</text><polyline points="142.0,259.3 159.2,253.8 176.4,252.3 193.7,245.9 210.9,245.3 228.1,248.1 245.3,240.0 262.5,242.1 279.8,243.7 297.0,244.0 314.2,248.2 331.4,248.5 348.6,253.7 365.9,259.5 383.1,263.2 400.3,265.6 417.5,268.0 434.7,267.8 452.0,265.3 469.2,265.5 486.4,266.0 503.6,261.3 520.8,267.7 538.1,262.2 555.3,260.1 572.5,257.8 589.7,250.2 606.9,250.0 624.2,250.5 641.4,242.2 658.6,240.8 675.8,246.1 693.1,244.0 710.3,241.8 727.5,242.6 744.7,246.7 761.9,250.2 779.2,250.8 796.4,258.0 813.6,259.2 830.8,259.6 848.0,263.5 865.3,264.0 882.5,266.2 899.7,266.6 916.9,262.6 934.1,261.4 951.4,261.6 968.6,263.3 985.8,258.0 1003.0,254.8 1020.2,250.3 1037.5,251.7 1054.7,245.0 1071.9,247.9 1089.1,241.6 1106.3,244.9 1123.6,245.5 1140.8,244.5 1158.0,243.2" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.72"/><text x="136.0" y="160.0" fill="currentColor" opacity="0.72" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">HAIKU 4.5</text><text x="1164.0" y="243.2" fill="currentColor" opacity="0.72" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">395.65</text><polyline points="126.0,139.7 143.2,128.3 160.4,125.2 177.7,129.8 194.9,122.9 212.1,107.4 229.3,114.9 246.5,119.2 263.8,114.6 281.0,115.6 298.2,121.1 315.4,127.4 332.6,143.9 349.9,138.3 367.1,143.9 384.3,156.6 401.5,163.0 418.7,174.3 436.0,168.5 453.2,161.8 470.4,164.8 487.6,166.8 504.8,162.2 522.1,153.6 539.3,145.4 556.5,142.4 573.7,144.5 590.9,135.8 608.2,131.5 625.4,126.5 642.6,118.6 659.8,108.6 677.1,108.6 694.3,113.3 711.5,127.8 728.7,133.5 745.9,134.9 763.2,133.4 780.4,148.2 797.6,143.9 814.8,154.4 832.0,154.3 849.3,158.6 866.5,171.2 883.7,176.6 900.9,165.9 918.1,170.6 935.4,162.1 952.6,160.6 969.8,154.8 987.0,139.6 1004.2,136.5 1021.5,130.6 1038.7,122.9 1055.9,127.2 1073.1,111.3 1090.3,111.3 1107.6,106.9 1124.8,123.5 1142.0,127.8" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.58"/><text x="120.0" y="144.0" fill="currentColor" opacity="0.58" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">GPT-5</text><text x="1148.0" y="127.8" fill="currentColor" opacity="0.58" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">1.09K</text><polyline points="110.0,117.9 127.2,102.3 144.4,96.6 161.7,89.9 178.9,66.9 196.1,72.6 213.3,65.0 230.5,76.9 247.8,72.4 265.0,91.1 282.2,81.2 299.4,87.2 316.6,105.2 333.9,117.7 351.1,112.7 368.3,126.8 385.5,141.6 402.7,147.6 420.0,134.6 437.2,143.2 454.4,131.7 471.6,130.1 488.8,131.7 506.1,114.3 523.3,124.3 540.5,116.5 557.7,98.6 574.9,87.7 592.2,91.3 609.4,72.6 626.6,80.8 643.8,81.3 661.1,69.4 678.3,73.0 695.5,78.4 712.7,92.4 729.9,83.3 747.2,100.7 764.4,104.2 781.6,128.6 798.8,115.4 816.0,130.7 833.3,142.5 850.5,151.0 867.7,145.7 884.9,135.7 902.1,131.4 919.4,138.0 936.6,117.4 953.8,118.9 971.0,116.8 988.2,97.6 1005.5,92.5 1022.7,92.6 1039.9,71.4 1057.1,84.8 1074.3,81.4 1091.6,61.6 1108.8,81.6 1126.0,79.7" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.44"/><text x="104.0" y="128.0" fill="currentColor" opacity="0.44" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">GEMINI 3</text><text x="1132.0" y="79.7" fill="currentColor" opacity="0.44" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">1.31K</text>
- </svg>
- <div class="series-legend">
- <span class="mono" style="color:var(--z-mute);">axonometric · 5 series · min <span style="color:var(--z-ink);">223.03</span> · max <span style="color:var(--z-ink);">1.73K</span></span>
- </div>
- <p class="viz-caption">Five models, 60 seconds. Depth encodes model generation — OPUS at the front, HAIKU at the back. Every stroke is a 1 px line.</p>
- </div>
-</section>
-
diff --git a/brief/svg/token_budget.html b/brief/svg/token_budget.html
deleted file mode 100644
index a7dd55bfa..000000000
--- a/brief/svg/token_budget.html
+++ /dev/null
@@ -1,30 +0,0 @@
- <div class="viz-block">
- <div class="kicker"><span>TOKEN BUDGET · 24 HOURS · T = 1,000 TOKENS</span></div>
-
- <div class="flowband-wrap">
- <svg class="chart flowband-svg" viewBox="0 0 1200 16" preserveAspectRatio="none" style="width:100%; height:16px; overflow:visible; display:block;">
- <line x1="0.0" y1="2" x2="0.0" y2="14" stroke="currentColor" stroke-width="1" stroke-opacity="0.4"/><line x1="0.0" y1="8" x2="66.0" y2="8" stroke="currentColor" stroke-width="2" stroke-opacity="1.00"/><line x1="66.0" y1="2" x2="66.0" y2="14" stroke="currentColor" stroke-width="1" stroke-opacity="0.4"/><line x1="66.0" y1="8" x2="1039.8" y2="8" stroke="currentColor" stroke-width="2" stroke-opacity="0.84"/><line x1="1039.8" y1="2" x2="1039.8" y2="14" stroke="currentColor" stroke-width="1" stroke-opacity="0.4"/><line x1="1039.8" y1="8" x2="1058.6" y2="8" stroke="currentColor" stroke-width="2" stroke-opacity="0.68"/><line x1="1058.6" y1="2" x2="1058.6" y2="14" stroke="currentColor" stroke-width="1" stroke-opacity="0.4"/><line x1="1058.6" y1="8" x2="1200.0" y2="8" stroke="currentColor" stroke-width="2" stroke-opacity="0.52"/><line x1="1200.0" y1="2" x2="1200.0" y2="14" stroke="currentColor" stroke-width="1" stroke-opacity="0.4"/>
- </svg>
- <div class="flowband-labels" style="display:flex; width:100%; margin-top:8px;">
- <div class="fb-seg" style="flex:84000 0 0; min-width:0; opacity:1.00;">
- <div class="fb-label">SYS PROMPT</div>
- <div class="fb-value">84K T · 5.5%</div>
- </div>
- <div class="fb-seg" style="flex:1240000 0 0; min-width:0; opacity:0.84;">
- <div class="fb-label">CONTEXT</div>
- <div class="fb-value">1.24M T · 81.2%</div>
- </div>
- <div class="fb-seg" style="flex:24000 0 0; min-width:0; opacity:0.68;">
- <div class="fb-label">QUESTION</div>
- <div class="fb-value">24K T · 1.6%</div>
- </div>
- <div class="fb-seg" style="flex:180000 0 0; min-width:0; opacity:0.52;">
- <div class="fb-label">COMPLETION</div>
- <div class="fb-value">180K T · 11.8%</div>
- </div></div>
- </div>
- </div>
-</section>
-
-<!-- SHOWCASE · TOP + DIST + HEATMAP --------------------------->
-<section class="scene-section">
diff --git a/brief/svg/umap.html b/brief/svg/umap.html
deleted file mode 100644
index cf6a24396..000000000
--- a/brief/svg/umap.html
+++ /dev/null
@@ -1,14 +0,0 @@
- <div class="kicker"><span>830,000 QUERIES · 48 HOURS · UMAP 2D</span></div>
-
- <svg class="chart" viewBox="0 0 1200 380" preserveAspectRatio="none" style="width:100%; height:380px;">
- <polyline points="93.8,252.0 103.0,263.6 118.2,268.2 167.5,273.3 241.5,265.6 258.3,262.1 263.7,260.2 277.4,250.9 275.7,245.6 250.3,230.8 233.9,225.9 199.6,222.3 110.3,229.6 99.0,233.5 94.4,241.1 93.8,252.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.55"/><polyline points="809.5,290.8 838.4,302.7 901.5,309.2 955.2,308.0 971.3,305.2 1014.9,288.1 1018.5,285.6 1011.6,268.2 997.2,261.8 950.3,250.7 886.5,249.2 846.6,255.9 822.7,263.0 810.4,281.6 809.5,290.8" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.48"/><polyline points="396.6,119.7 409.2,141.2 456.1,151.6 524.3,156.5 564.0,154.8 609.1,146.1 634.0,135.6 640.7,124.8 626.6,106.1 613.8,101.3 576.9,95.6 528.3,90.1 459.2,96.7 410.2,106.3 396.6,119.7" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.41"/><polyline points="1002.2,68.6 1026.9,77.8 1045.9,78.0 1106.9,77.9 1160.0,69.6 1141.6,47.7 1105.1,40.0 1045.9,42.1 1017.2,48.5 1002.2,68.6" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.34"/><polyline points="40.0,54.0 57.7,76.1 93.6,77.6 124.7,76.9 144.7,74.3 160.4,63.0 157.1,52.2 147.6,48.8 114.1,46.0 89.1,44.0 52.2,50.2 40.0,54.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.27"/><polyline points="618.7,316.0 623.4,325.0 635.8,331.5 667.0,338.7 672.7,339.9 728.6,340.0 781.7,323.6 777.2,312.6 773.0,309.6 756.1,300.9 729.3,299.2 710.8,298.1 667.7,299.9 633.1,308.1 618.7,316.0" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.20"/>
- <text x="120.5" y="249.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="115.4" y="246.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="233.9" y="225.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="197.7" y="256.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="195.7" y="234.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="184.8" y="260.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="156.7" y="247.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="178.0" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="204.5" y="255.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="159.3" y="245.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="177.4" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="178.2" y="249.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="242.5" y="260.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="137.8" y="266.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="235.9" y="243.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="136.2" y="252.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="134.8" y="249.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="127.3" y="243.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="250.8" y="246.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="249.5" y="247.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="196.2" y="239.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="167.5" y="273.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="170.4" y="231.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="218.7" y="255.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="235.0" y="243.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="137.9" y="247.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="108.7" y="244.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="232.3" y="234.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="104.5" y="262.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="205.0" y="259.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="271.0" y="247.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="228.4" y="242.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="114.5" y="246.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="124.9" y="253.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="220.5" y="262.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="277.4" y="250.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="259.6" y="252.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="258.5" y="254.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="186.2" y="246.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="184.9" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="95.5" y="246.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="148.6" y="267.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="142.7" y="228.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="94.4" y="241.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="167.7" y="253.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="201.9" y="239.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="180.6" y="249.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="196.7" y="243.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="154.7" y="255.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="118.2" y="268.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="115.7" y="236.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="181.3" y="248.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="146.8" y="270.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="179.8" y="232.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="218.5" y="255.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="120.5" y="232.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="160.4" y="254.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="130.6" y="245.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="198.4" y="248.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="175.4" y="249.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="133.1" y="265.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="127.7" y="241.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="201.0" y="257.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="167.3" y="250.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="199.1" y="249.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="151.5" y="265.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="132.3" y="254.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="121.1" y="266.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="181.4" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="190.2" y="247.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="181.4" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="231.8" y="245.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="250.1" y="241.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="181.3" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="114.0" y="235.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="170.4" y="243.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="178.5" y="266.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="240.1" y="243.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="110.6" y="260.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="145.6" y="253.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="147.0" y="254.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="165.3" y="251.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="227.4" y="233.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="178.4" y="255.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="263.7" y="260.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="128.2" y="241.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="146.9" y="232.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="268.4" y="251.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="169.6" y="257.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="223.6" y="255.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="201.4" y="251.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="199.8" y="241.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="230.9" y="249.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="183.5" y="248.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="147.1" y="261.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="206.0" y="248.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="202.9" y="249.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="209.9" y="251.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="143.2" y="249.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="187.3" y="240.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="239.4" y="254.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="161.2" y="235.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="152.5" y="239.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="206.5" y="234.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="233.9" y="258.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="96.8" y="254.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="109.7" y="260.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="123.2" y="242.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="125.9" y="243.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="148.5" y="262.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="167.1" y="245.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="251.3" y="247.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="157.7" y="242.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="193.7" y="247.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="165.0" y="254.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="225.0" y="244.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="177.3" y="251.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="176.0" y="253.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="170.4" y="231.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="162.9" y="240.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="147.1" y="256.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="184.8" y="250.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="192.1" y="239.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="244.7" y="263.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="225.3" y="252.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="211.3" y="232.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="125.0" y="261.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="218.6" y="252.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="170.1" y="245.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="227.5" y="257.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="183.0" y="247.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="187.3" y="250.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="131.2" y="251.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="103.0" y="263.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="115.9" y="251.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="93.8" y="252.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="187.9" y="249.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="195.5" y="223.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="128.6" y="235.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="139.2" y="251.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="164.9" y="239.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="148.8" y="233.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="241.5" y="265.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="185.7" y="232.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="130.6" y="247.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="174.0" y="263.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="99.0" y="233.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="188.9" y="236.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="196.1" y="247.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="192.8" y="247.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="141.5" y="230.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="137.6" y="250.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="110.3" y="229.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="174.9" y="260.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="138.6" y="231.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="166.6" y="232.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="180.5" y="245.2" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="202.2" y="256.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="250.3" y="230.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="252.7" y="242.7" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="175.7" y="249.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="118.4" y="264.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="212.1" y="226.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="199.6" y="222.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="142.3" y="244.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="220.0" y="246.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="217.1" y="244.9" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="142.3" y="247.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="275.7" y="245.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="183.7" y="254.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="194.7" y="244.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="152.3" y="268.3" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="264.4" y="251.8" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="199.8" y="252.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="167.9" y="261.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="190.6" y="253.4" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="264.3" y="248.0" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="258.3" y="262.1" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="183.4" y="244.6" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="275.1" y="246.5" fill="currentColor" opacity="1.00" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="879.1" y="296.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="972.9" y="268.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="878.9" y="302.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1007.7" y="276.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="921.5" y="263.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="906.8" y="277.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="897.4" y="251.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="975.3" y="280.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="913.8" y="278.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="914.4" y="280.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="946.7" y="284.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1014.9" y="288.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="914.7" y="283.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="892.5" y="272.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="977.9" y="271.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="847.8" y="284.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="876.5" y="294.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1004.2" y="268.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="884.8" y="297.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="833.8" y="266.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="920.5" y="266.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="997.2" y="261.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="920.9" y="272.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="859.1" y="291.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="868.0" y="284.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="880.0" y="273.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="839.3" y="269.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="974.0" y="270.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="869.7" y="295.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="982.1" y="297.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="825.6" y="277.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="944.0" y="268.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="887.0" y="289.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="950.3" y="250.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="955.7" y="285.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1003.3" y="292.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="958.6" y="270.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="933.0" y="285.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="823.0" y="278.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="867.5" y="260.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="846.6" y="255.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1011.6" y="268.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="909.8" y="293.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="904.1" y="271.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="892.3" y="273.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="913.7" y="278.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="908.3" y="284.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="912.6" y="278.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="915.7" y="282.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="906.3" y="296.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="876.7" y="276.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="871.3" y="293.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="885.2" y="256.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="970.7" y="295.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="885.5" y="292.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="867.5" y="265.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="946.2" y="280.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="873.6" y="272.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="892.8" y="259.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="899.8" y="274.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="858.0" y="298.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="809.5" y="290.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="982.7" y="299.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="865.4" y="288.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="839.2" y="262.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="912.7" y="277.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="911.1" y="279.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="968.9" y="262.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="925.9" y="272.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="932.9" y="268.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="965.9" y="282.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="892.8" y="305.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="923.9" y="287.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="931.3" y="289.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="912.5" y="277.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="898.4" y="302.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="955.4" y="289.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="911.7" y="260.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="892.4" y="285.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="982.8" y="294.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="863.7" y="293.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="810.4" y="281.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="822.7" y="263.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="916.9" y="281.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="970.3" y="295.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="926.7" y="285.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="982.1" y="261.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="863.1" y="268.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="943.5" y="288.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="872.5" y="267.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="943.9" y="276.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1018.5" y="285.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="858.3" y="286.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="916.0" y="276.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="935.9" y="285.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="886.5" y="249.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="898.1" y="285.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="904.9" y="273.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="928.4" y="251.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="984.9" y="280.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="848.6" y="264.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="942.2" y="263.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="848.1" y="274.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="879.4" y="267.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="858.3" y="277.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="899.7" y="285.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="875.9" y="302.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="901.5" y="282.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="903.3" y="274.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="920.6" y="281.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="829.3" y="283.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="912.2" y="278.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="904.9" y="279.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="926.7" y="293.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="919.1" y="260.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="857.8" y="285.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="971.3" y="305.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="912.9" y="279.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="953.4" y="301.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="903.8" y="279.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="909.1" y="272.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="930.9" y="292.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="934.6" y="272.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="854.0" y="295.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="901.5" y="309.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="816.3" y="278.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="980.1" y="290.9" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="937.7" y="288.3" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="915.0" y="277.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="842.8" y="280.2" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="893.9" y="249.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="992.6" y="283.8" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="939.8" y="280.4" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="915.0" y="281.5" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="894.8" y="264.1" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="838.4" y="302.7" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="918.4" y="302.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="955.2" y="308.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="944.7" y="304.6" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="830.7" y="296.0" fill="currentColor" opacity="0.91" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="469.3" y="110.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="564.0" y="120.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="547.8" y="99.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="540.4" y="100.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="536.7" y="97.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="518.2" y="123.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="533.5" y="118.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="634.0" y="135.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="495.9" y="114.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="594.5" y="139.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="525.4" y="112.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="554.4" y="106.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="590.4" y="138.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="553.1" y="151.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="488.4" y="147.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="520.0" y="114.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="494.5" y="119.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="538.3" y="125.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="422.8" y="134.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="459.2" y="96.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="604.5" y="132.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="529.1" y="117.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="406.8" y="125.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="433.8" y="106.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="523.7" y="123.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="482.5" y="132.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="573.4" y="107.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="536.8" y="128.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="522.8" y="123.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="529.6" y="115.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="624.4" y="135.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="468.9" y="113.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="487.1" y="108.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="523.4" y="114.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="496.4" y="139.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="396.6" y="119.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="511.2" y="124.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="570.0" y="134.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="510.4" y="127.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="561.4" y="108.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="559.8" y="125.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="521.9" y="116.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="468.3" y="122.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="483.6" y="108.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="510.6" y="123.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="425.0" y="123.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="521.0" y="123.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="513.3" y="116.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="412.4" y="110.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="576.4" y="139.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="449.5" y="112.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="541.4" y="92.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="546.9" y="100.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="548.5" y="139.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="486.1" y="131.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="479.0" y="140.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="517.6" y="106.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="525.8" y="110.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="502.4" y="122.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="476.3" y="123.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="522.2" y="111.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="505.9" y="116.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="520.0" y="125.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="424.1" y="111.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="488.6" y="137.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="579.6" y="113.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="535.5" y="119.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="532.1" y="130.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="471.3" y="129.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="527.6" y="143.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="414.7" y="122.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="483.5" y="133.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="525.4" y="99.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="625.5" y="138.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="531.3" y="151.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="504.1" y="128.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="525.2" y="119.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="595.9" y="137.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="450.0" y="121.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="499.9" y="103.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="546.9" y="131.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="410.2" y="106.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="584.9" y="141.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="585.5" y="122.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="544.8" y="127.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="524.4" y="122.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="487.2" y="119.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="574.5" y="149.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="513.4" y="125.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="558.0" y="128.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="486.5" y="131.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="418.9" y="120.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="506.6" y="153.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="509.8" y="118.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="568.9" y="113.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="540.5" y="97.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="447.0" y="130.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="591.2" y="133.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="516.5" y="133.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="522.7" y="122.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="616.0" y="120.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="524.1" y="123.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="551.2" y="119.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="462.0" y="122.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="595.7" y="109.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="578.1" y="127.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="472.1" y="121.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="626.6" y="106.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="509.5" y="125.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="524.3" y="121.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="542.5" y="122.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="506.7" y="148.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="499.2" y="118.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="439.9" y="109.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="534.5" y="119.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="406.7" y="112.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="512.0" y="122.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="617.3" y="103.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="409.2" y="141.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="467.2" y="120.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="507.9" y="122.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="543.6" y="146.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="568.5" y="94.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="590.3" y="131.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="487.3" y="119.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="510.5" y="130.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="552.2" y="102.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="562.1" y="129.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="539.9" y="126.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="556.9" y="130.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="478.4" y="115.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="476.9" y="110.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="614.4" y="128.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="513.7" y="123.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="525.9" y="121.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="539.2" y="140.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="614.0" y="118.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="517.1" y="149.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="437.9" y="119.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="505.6" y="154.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="566.0" y="99.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="460.3" y="116.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="616.3" y="129.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="496.8" y="126.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="500.0" y="122.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="609.1" y="146.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="409.1" y="137.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="516.0" y="117.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="506.8" y="143.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="535.2" y="120.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="501.0" y="125.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="640.7" y="124.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="481.5" y="126.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="463.1" y="120.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="518.8" y="114.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="515.2" y="120.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="536.1" y="124.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="510.0" y="123.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="576.9" y="95.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="457.8" y="115.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="456.1" y="151.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="440.8" y="109.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="465.5" y="128.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="554.8" y="120.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="605.2" y="102.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="536.4" y="150.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="485.3" y="124.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="494.2" y="105.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="518.9" y="130.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="629.8" y="135.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="560.6" y="120.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="567.3" y="137.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="519.5" y="122.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="564.0" y="154.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="520.6" y="130.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="505.5" y="113.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="527.5" y="114.8" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="531.1" y="123.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="508.0" y="120.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="528.5" y="117.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="528.3" y="90.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="516.6" y="112.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="515.2" y="131.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="571.0" y="135.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="513.5" y="128.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="568.9" y="135.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="576.3" y="101.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="513.6" y="125.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="528.6" y="122.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="606.8" y="124.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="453.4" y="104.9" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="538.2" y="114.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="596.9" y="104.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="502.2" y="114.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="499.8" y="139.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="509.5" y="120.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="464.2" y="138.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="497.2" y="148.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="559.2" y="122.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="432.1" y="120.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="611.7" y="107.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="441.5" y="140.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="462.6" y="134.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="541.3" y="126.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="611.3" y="122.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="613.8" y="101.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="560.2" y="137.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="632.4" y="123.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="535.0" y="129.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="625.4" y="109.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="502.2" y="121.0" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="493.7" y="135.6" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="506.9" y="118.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="617.7" y="139.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="627.9" y="117.2" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="496.7" y="115.3" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="524.3" y="156.5" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="402.3" y="124.1" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="566.7" y="97.7" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="609.8" y="127.4" fill="currentColor" opacity="0.82" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1087.8" y="42.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1114.4" y="69.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1058.4" y="64.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1139.8" y="50.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1084.0" y="61.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1076.7" y="75.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1024.5" y="63.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1117.2" y="49.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1046.9" y="50.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1085.8" y="59.4" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1114.5" y="56.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1099.9" y="55.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1085.2" y="64.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1080.0" y="62.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1141.6" y="47.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1145.3" y="56.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1082.9" y="55.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1080.4" y="48.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1002.2" y="68.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1053.7" y="75.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1042.6" y="51.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1075.2" y="61.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1026.9" y="77.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1083.5" y="60.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1141.0" y="70.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1082.1" y="60.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1028.1" y="66.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1015.4" y="60.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1145.4" y="53.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1071.0" y="60.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1160.0" y="69.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1056.4" y="76.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1057.4" y="68.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1105.0" y="60.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1089.2" y="66.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1055.4" y="76.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1074.4" y="64.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1114.8" y="68.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1106.9" y="77.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1084.6" y="41.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1079.1" y="61.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1100.1" y="47.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1099.9" y="65.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1056.2" y="64.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1077.4" y="62.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1073.7" y="49.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1090.3" y="59.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1107.4" y="43.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1089.4" y="58.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1081.0" y="71.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1079.5" y="60.4" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1036.7" y="70.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1079.5" y="64.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1030.1" y="73.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1126.2" y="47.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1115.3" y="58.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1048.0" y="51.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1079.3" y="60.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1047.1" y="60.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1075.1" y="72.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1132.2" y="62.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1093.9" y="73.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1129.1" y="68.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1125.1" y="44.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1084.1" y="62.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1017.2" y="48.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1038.8" y="56.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1059.3" y="59.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1052.8" y="62.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1100.3" y="65.4" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1075.6" y="42.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1066.2" y="62.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1075.4" y="69.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1057.7" y="74.4" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1112.7" y="66.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1089.4" y="53.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1055.1" y="45.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1093.5" y="72.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1097.0" y="65.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1128.1" y="57.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1117.8" y="68.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1045.9" y="78.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1048.0" y="74.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1049.8" y="59.3" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1073.1" y="41.6" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1106.4" y="55.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1080.9" y="62.7" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1082.6" y="77.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1046.8" y="55.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1106.8" y="55.4" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1045.9" y="42.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1103.7" y="61.8" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1083.0" y="62.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1129.5" y="72.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1080.6" y="61.9" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1096.1" y="62.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1094.9" y="60.1" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1105.1" y="40.0" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1094.4" y="66.2" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="1082.9" y="61.5" fill="currentColor" opacity="0.73" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="149.0" y="62.4" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="144.7" y="74.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="52.2" y="50.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="142.1" y="65.4" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="119.3" y="47.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="132.6" y="57.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="76.7" y="63.5" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="79.4" y="63.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="86.9" y="59.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="93.6" y="77.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="73.9" y="73.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="53.6" y="63.5" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="60.3" y="65.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="109.1" y="59.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="112.9" y="57.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="104.5" y="57.5" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="146.4" y="50.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="59.6" y="53.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="85.7" y="70.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="132.8" y="75.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="146.9" y="49.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="153.2" y="67.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="108.7" y="52.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="79.9" y="53.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="79.1" y="70.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="89.0" y="48.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="73.1" y="55.9" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="99.7" y="60.7" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="108.2" y="53.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="147.6" y="48.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="89.1" y="57.4" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="94.0" y="62.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="91.9" y="64.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="109.2" y="58.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="88.9" y="74.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="121.8" y="62.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="75.0" y="54.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="135.3" y="49.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="98.0" y="59.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="111.4" y="57.5" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="85.9" y="51.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="93.7" y="65.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="100.7" y="55.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="89.1" y="44.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="88.4" y="59.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="103.1" y="58.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="97.6" y="67.4" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="109.6" y="61.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="42.5" y="55.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="78.6" y="72.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="40.0" y="54.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="141.6" y="59.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="59.7" y="70.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="160.4" y="63.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="110.1" y="64.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="120.7" y="62.4" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="94.1" y="57.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="157.1" y="52.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="87.7" y="61.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="85.2" y="69.7" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="114.1" y="46.0" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="86.9" y="63.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="124.7" y="76.9" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="58.0" y="60.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="87.0" y="60.3" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="114.8" y="54.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="133.2" y="55.6" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="95.6" y="61.7" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="88.0" y="67.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="143.3" y="48.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="107.9" y="58.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="110.0" y="57.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="97.4" y="62.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="57.7" y="76.1" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="135.3" y="64.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="106.5" y="49.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="100.2" y="50.9" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="114.3" y="61.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="54.0" y="53.2" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="100.3" y="61.8" fill="currentColor" opacity="0.64" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="693.3" y="320.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="746.3" y="309.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="739.1" y="310.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="761.2" y="317.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="662.3" y="315.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="781.7" y="323.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="704.0" y="331.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="729.3" y="299.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="712.5" y="327.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="682.4" y="330.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="692.5" y="312.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="618.7" y="316.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="742.3" y="319.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="641.7" y="322.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="709.6" y="318.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="713.8" y="317.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="733.4" y="326.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="727.4" y="323.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="710.8" y="300.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="738.7" y="317.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="684.4" y="300.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="700.0" y="318.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="674.7" y="326.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="700.9" y="315.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="718.9" y="329.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="672.7" y="339.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="659.8" y="302.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="764.7" y="317.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="773.0" y="309.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="697.9" y="314.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="705.7" y="331.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="667.7" y="299.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="747.3" y="324.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="709.8" y="330.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="667.2" y="328.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="720.9" y="308.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="699.2" y="316.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="667.0" y="338.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="721.0" y="318.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="702.9" y="321.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="764.8" y="326.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="686.5" y="314.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="733.4" y="319.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="704.8" y="318.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="694.2" y="314.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="699.2" y="318.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="736.8" y="326.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="673.4" y="318.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="674.1" y="328.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="743.3" y="329.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="675.0" y="326.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="696.9" y="317.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="641.8" y="316.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="623.4" y="325.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="727.0" y="329.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="752.9" y="327.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="705.0" y="319.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="700.0" y="303.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="644.9" y="321.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="631.4" y="314.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="686.6" y="317.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="686.9" y="316.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="705.5" y="318.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="663.5" y="330.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="672.0" y="337.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="677.9" y="317.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="703.1" y="316.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="682.4" y="319.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="771.8" y="313.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="677.9" y="323.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="689.2" y="317.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="743.8" y="309.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="711.3" y="315.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="710.8" y="317.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="703.6" y="314.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="701.4" y="319.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="722.4" y="325.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="707.0" y="319.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="748.5" y="316.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="633.1" y="308.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="710.8" y="298.1" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="716.7" y="321.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="740.9" y="315.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="756.1" y="300.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="723.7" y="315.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="664.9" y="325.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="728.6" y="340.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="683.0" y="306.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="777.2" y="312.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="760.0" y="316.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="715.3" y="331.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="746.2" y="322.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="733.1" y="301.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="697.4" y="318.9" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="719.5" y="311.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="712.0" y="309.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="647.5" y="317.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="709.1" y="311.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="717.5" y="312.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="726.8" y="326.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="701.4" y="336.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="732.3" y="325.2" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="690.3" y="321.7" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="685.9" y="320.8" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="727.7" y="300.3" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="670.3" y="307.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="635.8" y="331.5" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="701.6" y="318.4" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="768.4" y="326.6" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text><text x="638.8" y="326.0" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>
- <text x="120.5" y="235.2" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">RAG RETRIEVAL</text><text x="879.1" y="282.7" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">CODE ASSIST</text><text x="469.3" y="96.0" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">DOC Q&amp;A</text><text x="1087.8" y="28.7" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">EXTRACT JSON</text><text x="149.0" y="48.4" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">CLASSIFY</text><text x="693.3" y="306.7" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">AGENT TOOL</text>
-
- </svg>
- <div class="series-legend">
- <span class="mono" style="color:var(--z-mute);">UMAP · <span style="color:var(--z-ink);">830</span> embeddings · <span style="color:var(--z-ink);">6</span> clusters</span>
- </div>
- </div>
-</section>
-
diff --git a/brief/tech-brief.html b/brief/tech-brief.html
deleted file mode 100644
index 8bb128cbb..000000000
--- a/brief/tech-brief.html
+++ /dev/null
@@ -1,1854 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="UTF-8">
-<title>XERJ — Technical Product Brief — V1 — 2026-04</title>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
-<style>
- :root {
- --bg: #0b0b0d;
- --ink: #f4f2ec;
- --mute: #8a8680;
- --faint: #2b2a28;
- --line: #3a3836;
- --accent: #ffc400;
-
- --z-bg: var(--bg); --z-ink: var(--ink); --z-mute: var(--mute);
- --z-line: var(--line); --z-accent: var(--accent); --z-faint: var(--faint);
-
- --font-display: 'Big Shoulders Display', 'Inter', system-ui, sans-serif;
- --font-prose: 'Inter', system-ui, sans-serif;
- --font-data: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
- --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
-
- --track-ui: 0.14em;
- --track-label: 0.08em;
- }
-
- @page { size: Letter; margin: 0; }
- * { box-sizing: border-box; margin: 0; padding: 0; }
-
- html, body {
- background: var(--bg);
- color: var(--ink);
- font-family: var(--font-prose);
- font-size: 10.5pt;
- line-height: 1.45;
- -webkit-font-smoothing: antialiased;
- text-rendering: optimizeLegibility;
- }
-
- .page {
- width: 8.5in;
- height: 11in;
- padding: 0.55in 0.6in;
- position: relative;
- page-break-after: always;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- }
- .page:last-child { page-break-after: auto; }
-
- .kicker {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- display: flex;
- gap: 0.5em;
- align-items: center;
- flex-wrap: wrap;
- }
- .kicker .dash { color: var(--faint); }
- .kicker .accent { color: var(--accent); }
-
- .accent { color: var(--accent); }
- .mute { color: var(--mute); }
- .mono { font-family: var(--font-mono); }
-
- h1, h2, h3, h4 {
- font-family: var(--font-display);
- font-weight: 900;
- text-transform: uppercase;
- letter-spacing: 0.02em;
- line-height: 0.92;
- }
-
- .hero { font-size: 64pt; line-height: 0.92; }
- .scene { font-size: 38pt; }
- h3 { font-size: 18pt; }
- h4 { font-size: 11pt; letter-spacing: var(--track-ui); color: var(--accent); }
-
- p.lead { font-size: 12pt; line-height: 1.5; max-width: 6.5in; }
- p.body { font-size: 9.5pt; line-height: 1.55; max-width: 6.5in; }
- p.body.wide { max-width: 100%; }
-
- em { font-style: italic; }
- code, .code { font-family: var(--font-mono); font-size: 9pt; color: var(--ink); }
-
- .sp-1 { height: 4px; }
- .sp-2 { height: 8px; } .sp-3 { height: 12px; } .sp-4 { height: 16px; }
- .sp-6 { height: 24px; } .sp-8 { height: 32px; } .sp-10 { height: 48px; }
-
- .flex { display: flex; } .col { flex-direction: column; }
- .grow { flex: 1 1 auto; min-height: 0; }
- .between { justify-content: space-between; }
-
- /* page frame */
- .head-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-bottom: 10px;
- border-bottom: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .head-row .brand { color: var(--ink); }
- .head-row .brand .accent { color: var(--accent); }
-
- .foot-row {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- padding-top: 10px;
- border-top: 1px solid var(--line);
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 500;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .foot-row .num { color: var(--ink); }
-
- /* key-value row */
- .kv-row {
- display: grid;
- grid-template-columns: 1.3in 1fr;
- gap: 0.25in;
- padding: 7px 0;
- border-bottom: 1px solid var(--line);
- align-items: baseline;
- }
- .kv-row .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .kv-row .v { font-size: 9.5pt; line-height: 1.5; }
- .kv-row .v .mono { font-size: 9pt; color: var(--ink); }
-
- /* 4-up value quadrant */
- .quad-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- grid-template-rows: 1fr 1fr;
- border-top: 1px solid var(--line);
- border-left: 1px solid var(--line);
- }
- .quad-grid > .cell {
- padding: 16px;
- border-right: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 6px;
- min-height: 1.7in;
- }
- .quad-grid .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .quad-grid .t {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 18pt;
- color: var(--ink);
- line-height: 1;
- text-transform: uppercase;
- letter-spacing: 0.01em;
- }
- .quad-grid .t .accent { color: var(--accent); }
- .quad-grid .b {
- font-size: 9.5pt;
- line-height: 1.45;
- color: var(--ink);
- margin-top: auto;
- }
-
- /* 3-column topology cards */
- .topo-grid {
- display: grid;
- grid-template-columns: 1fr 1fr 1fr;
- gap: 16px;
- }
- .topo-grid > .cell {
- padding: 14px 16px;
- border-top: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 6px;
- }
- .topo-grid .k {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .topo-grid .t {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 16pt;
- line-height: 1;
- text-transform: uppercase;
- letter-spacing: 0.01em;
- }
- .topo-grid .t .accent { color: var(--accent); }
- .topo-grid .b { font-size: 9pt; line-height: 1.45; }
- .topo-grid .facts {
- font-family: var(--font-mono);
- font-size: 8.5pt;
- color: var(--mute);
- line-height: 1.5;
- margin-top: 6px;
- }
-
- /* feature / capability matrix */
- .matrix {
- display: grid;
- grid-template-columns: 1.6in 1fr 0.7in;
- gap: 0;
- }
- .matrix > div {
- padding: 5px 10px;
- border-bottom: 1px solid var(--line);
- font-size: 9pt;
- line-height: 1.42;
- }
- .matrix .h {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- border-bottom: 1px solid var(--ink);
- }
- .matrix .k {
- font-family: var(--font-mono);
- font-size: 9pt;
- color: var(--accent);
- }
- .matrix .status {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- text-align: right;
- }
- .matrix .status.ga { color: var(--accent); }
- .matrix .status.beta { color: var(--ink); }
- .matrix .status.road { color: var(--mute); }
-
- /* status pill (inline) */
- .pill {
- display: inline-block;
- font-family: var(--font-data);
- font-size: 7.5pt;
- font-weight: 700;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- padding: 1px 6px;
- border: 1px solid;
- margin-left: 4px;
- vertical-align: 1px;
- }
- .pill.ga { color: var(--accent); border-color: var(--accent); }
- .pill.beta { color: var(--ink); border-color: var(--ink); }
- .pill.road { color: var(--mute); border-color: var(--line); }
-
- /* versus table */
- .versus {
- display: grid;
- grid-template-columns: 1.25in 1fr 1fr;
- gap: 0.2in;
- }
- .versus > .h {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- padding: 6px 0;
- border-bottom: 1px solid var(--ink);
- }
- .versus > .h.a { color: var(--accent); }
- .versus > div {
- padding: 4px 0;
- border-bottom: 1px solid var(--line);
- font-size: 8.75pt;
- line-height: 1.35;
- }
- .versus > div.dim {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- color: var(--mute);
- }
- .versus .accent { color: var(--accent); }
-
- /* performance / scale table */
- .perf {
- display: grid;
- grid-template-columns: 1.3in repeat(4, 1fr);
- width: 100%;
- }
- .perf > div {
- padding: 7px 10px;
- border-bottom: 1px solid var(--line);
- font-size: 9pt;
- }
- .perf .h {
- font-family: var(--font-data);
- font-size: 8pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- border-bottom: 1px solid var(--ink);
- }
- .perf .n { font-family: var(--font-mono); text-align: right; color: var(--ink); }
-
- /* ASCII topology pre */
- .arch-pre {
- font-family: var(--font-mono);
- font-size: 8.5pt;
- line-height: 1.45;
- color: var(--ink);
- white-space: pre;
- padding: 12px 0;
- border-top: 1px solid var(--line);
- border-bottom: 1px solid var(--line);
- overflow: hidden;
- }
- .arch-pre .accent { color: var(--accent); }
- .arch-pre .mute { color: var(--mute); }
- .arch-pre .ink { color: var(--ink); }
-
- /* two-column integration catalog */
- .int-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 16px;
- }
- .int-grid > .group {
- padding-top: 10px;
- border-top: 1px solid var(--line);
- }
- .int-grid .group h4 { margin-bottom: 6px; }
- .int-grid .group .list {
- font-family: var(--font-mono);
- font-size: 8.5pt;
- line-height: 1.7;
- color: var(--ink);
- }
- .int-grid .group .list .mute { color: var(--mute); }
-
- /* roadmap rail */
- .road-rail {
- display: grid;
- grid-template-columns: 0.85in 1.1in 1fr;
- column-gap: 0.2in;
- }
- .road-rail > div {
- padding: 9px 0;
- border-top: 1px solid var(--line);
- font-size: 9.5pt;
- line-height: 1.45;
- }
- .road-rail .q {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 20pt;
- color: var(--accent);
- line-height: 1;
- }
- .road-rail .t {
- font-family: var(--font-data);
- font-size: 9pt;
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- color: var(--ink);
- }
-
- /* chart viz wrapper */
- .viz {
- width: 100%;
- margin-top: 10px;
- max-height: 2.7in;
- overflow: hidden;
- padding-right: 60px;
- }
- .viz svg.chart {
- display: block;
- width: 100%;
- height: 2.5in;
- max-height: 2.5in;
- color: var(--accent);
- overflow: visible;
- }
- .viz .kicker { margin-bottom: 6px; }
- .viz .viz-block { margin-top: 0 !important; width: 100%; }
- .viz .viz-block .kicker { margin-bottom: 6px; }
- .viz-caption {
- margin-top: 10px;
- font-family: var(--font-prose);
- font-size: 9pt;
- color: var(--mute);
- max-width: 6.5in;
- }
-
- /* packaging tiers */
- .tiers {
- display: grid;
- grid-template-columns: 1fr 1fr 1fr;
- gap: 16px;
- }
- .tiers > .tier {
- padding: 16px;
- border-top: 1px solid var(--line);
- display: flex;
- flex-direction: column;
- gap: 8px;
- }
- .tiers .tier.ent { border-top-color: var(--accent); }
- .tiers .k {
- font-family: var(--font-data);
- font-size: 8.5pt;
- font-weight: 600;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- color: var(--mute);
- }
- .tiers .t {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 20pt;
- line-height: 1;
- color: var(--ink);
- letter-spacing: 0.01em;
- text-transform: uppercase;
- }
- .tiers .tier.ent .t { color: var(--accent); }
- .tiers ul {
- list-style: none;
- margin: 0; padding: 0;
- font-size: 8.75pt;
- line-height: 1.55;
- }
- .tiers ul li { padding: 2px 0; }
- .tiers ul li::before {
- content: '· ';
- color: var(--mute);
- margin-right: 2px;
- }
-
- /* cover hero */
- .cover-hero {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: 72pt;
- line-height: 0.9;
- letter-spacing: 0.01em;
- }
-</style>
-</head>
-<body>
-
-<!-- =========================================================== -->
-<!-- P1 · COVER -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>TECHNICAL PRODUCT BRIEF · V1 · 2026-04</span>
- </div>
-
- <div class="grow flex col between">
- <div class="sp-10"></div>
-
- <div>
- <div class="kicker" style="margin-bottom:20px;">
- <span>FOR ENTERPRISE ARCHITECTS</span>
- <span class="dash">·</span>
- <span>PLATFORM LEADS</span>
- <span class="dash">·</span>
- <span>PRINCIPAL ENGINEERS</span>
- </div>
-
- <div class="cover-hero">
- THE UNIFIED<br>
- DATA PLANE<br>
- FOR THE<br>
- <span class="accent">AGENT ERA.</span>
- </div>
-
- <div class="sp-8"></div>
-
- <p class="lead" style="max-width:6in;">
- XERJ is a self-hosted data platform that consolidates
- full-text search, vector retrieval, columnar logs, and
- agent memory into a single Elasticsearch-compatible
- service. Drop-in for existing ES clients; purpose-built for
- enterprises standing up retrieval-augmented applications at
- scale.
- </p>
- </div>
-
- <div class="flex between" style="gap:24px;">
- <div class="kicker">
- <span>ES 8.13 COMPATIBLE</span>
- <span class="dash">·</span>
- <span>SELF-HOSTED</span>
- <span class="dash">·</span>
- <span>DATA-SOVEREIGN</span>
- <span class="dash">·</span>
- <span>ZERO-TRUST READY</span>
- </div>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">01 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P2 · EXECUTIVE SUMMARY · VALUE THESIS -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>02 · EXECUTIVE SUMMARY</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>02</span><span class="dash">·</span><span>EXECUTIVE SUMMARY</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ONE PLATFORM.<br><span class="accent">EVERY RETRIEVAL WORKLOAD.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Enterprise AI programs stall when every team assembles a
- different retrieval stack: ES for logs, Pinecone for vectors,
- Redis for session memory, a stitching orchestrator for every
- hybrid query. XERJ collapses that stack into one platform
- under one API. Migration is a configuration change — the
- application keeps its Elasticsearch clients.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="quad-grid">
- <div class="cell">
- <span class="k">UNIFIED DATA PLANE</span>
- <span class="t">FOUR WORKLOADS.<br><span class="accent">ONE ENGINE.</span></span>
- <span class="b">Full-text (BM25), dense-vector (HNSW), columnar logs, and agent memory in a single process, single segment cache, single WAL. No cross-store orchestrator.</span>
- </div>
- <div class="cell">
- <span class="k">DROP-IN ES COMPATIBILITY</span>
- <span class="t">ZERO REWRITE.<br><span class="accent">PORT :9200.</span></span>
- <span class="b">ES 8.13 wire protocol · 38 query types · bulk + scroll + search APIs. Existing clients, dashboards, and ingest pipelines work unchanged.</span>
- </div>
- <div class="cell">
- <span class="k">ENTERPRISE OPERATIONS</span>
- <span class="t">SOVEREIGN.<br><span class="accent">AUDIT-READY.</span></span>
- <span class="b">Self-hosted on your cloud or metal. Per-query explain-plan with cost + row counts. Prometheus metrics first-class. RBAC roadmap <span class="pill road">Q2</span>.</span>
- </div>
- <div class="cell">
- <span class="k">MODERN RUNTIME</span>
- <span class="t">RUST.<br><span class="accent">NO JVM.</span></span>
- <span class="b">13 MB static binary · 50 ms cold start · 400 MB idle · no GC pauses. Deterministic tail latency — SLOs mean something in the 99.9 percentile.</span>
- </div>
- </div>
-
- <div class="grow"></div>
-
- <h4 style="color:var(--mute);">PRIMARY USE CASES</h4>
- <div class="sp-2"></div>
- <div class="kicker" style="color:var(--ink); text-transform:none; letter-spacing:0.04em; font-size:9pt;">
- <span>SIEM MODERNIZATION</span>
- <span class="dash">·</span>
- <span>RAG AT ENTERPRISE SCALE</span>
- <span class="dash">·</span>
- <span>UNIFIED OBSERVABILITY</span>
- <span class="dash">·</span>
- <span>AGENT MEMORY PLATFORM</span>
- <span class="dash">·</span>
- <span>ELASTICSEARCH REPLACEMENT</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">02 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P3 · SOLUTION ARCHITECTURE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>03 · SOLUTION ARCHITECTURE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>03</span><span class="dash">·</span><span>SOLUTION ARCHITECTURE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">CONTROL PLANE.<br><span class="accent">DATA PLANE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- XERJ separates control-plane (cluster state, schema, RBAC,
- audit) from data-plane (ingest, storage, query). The data
- plane scales horizontally; the control plane stays small and
- highly available. Both are observable through a single
- Prometheus endpoint.
- </p>
-
- <div class="sp-4"></div>
-
- <div class="arch-pre"><span class="mute">┌──────────────────────── CLIENTS · APPLICATIONS · AGENTS ───────────────────────┐</span>
- Elasticsearch SDKs · LangChain / LlamaIndex · dashboards · custom
-<span class="mute">└────────────────────────────────┬───────────────────────────────────────────────┘</span>
- │ HTTPS · TLS 1.3 · mutual auth <span class="mute">(roadmap)</span>
-<span class="mute">┌────────────────────────────────▼── CONTROL PLANE ──────────────────────────────┐</span>
- Auth · RBAC · audit log · schema registry · cluster coordination · health
-<span class="mute">└────────────────────────────────┬───────────────────────────────────────────────┘</span>
- │
-<span class="mute">┌────────────────────────────────▼── DATA PLANE ─────────────────────────────────┐</span>
- API surface <span class="accent">:9200 ES-compat</span> · <span class="accent">:8080 native</span> · <span class="mute">:8081 gRPC (roadmap)</span>
- Query engine planner · executor · hybrid merge · explain-plan
- Search tier <span class="ink">BM25 (xerj-fts)</span> │ <span class="ink">HNSW (xerj-vector)</span>
- Storage tier segments (mmap-cached) · WAL (LZ4) · snapshot/restore
- Ingest tier ES Bulk · JSON / NDJSON · OTLP <span class="mute">(beta)</span> · syslog <span class="mute">(roadmap)</span>
-<span class="mute">└────────────────────────────────────────────────────────────────────────────────┘</span>
-
-<span class="accent">CROSS-CUTTING CONCERNS</span>
- Security TLS · RBAC <span class="mute">(roadmap)</span> · BYOK <span class="mute">(roadmap)</span> · tenant isolation
- Observability Prometheus · OTLP out <span class="mute">(roadmap)</span> · structured JSON logs
- Reliability WAL + checkpoint · segment snapshots · replication <span class="mute">(cluster)</span>
- Governance per-query explain-plan · per-index retention · audit trail</div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>KEY PROPERTY</span>
- <span class="dash">·</span>
- <span>DATA PLANE AND CONTROL PLANE SCALE INDEPENDENTLY · NO SHARED HOT PATH</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">03 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P4 · DEPLOYMENT TOPOLOGIES -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>04 · DEPLOYMENT TOPOLOGIES</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>04</span><span class="dash">·</span><span>DEPLOYMENT TOPOLOGIES</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FOUR PATTERNS.<br><span class="accent">FOUR ENVIRONMENTS.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Choose the topology that fits the workload's SLO, retention
- horizon, and regulatory scope. All four patterns use the same
- binary and the same configuration surface — the difference is
- how many nodes and where they live.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="topo-grid">
- <div class="cell">
- <span class="k">SINGLE-NODE</span>
- <span class="t">POC ·<br><span class="accent">DEV</span></span>
- <span class="b">One binary, one host. Full feature set. Ideal for pilots, CI pipelines, edge sites, and air-gapped labs.</span>
- <span class="facts">1 node<br>RTO: N/A (single point)<br>RPO: WAL fsync<br>Capacity: up to ~250 M docs</span>
- </div>
- <div class="cell">
- <span class="k">HA CLUSTER</span>
- <span class="t">STANDARD ·<br><span class="accent">PROD</span></span>
- <span class="b">Three nodes, one region, synchronous replication. Typical enterprise production footprint.</span>
- <span class="facts">3 nodes · 1 region<br>RTO: &lt; 30 s<br>RPO: 0 (sync)<br>Capacity: 1–5 B docs</span>
- </div>
- <div class="cell">
- <span class="k">MULTI-REGION <span class="pill road">ROAD&nbsp;Q3</span></span>
- <span class="t">GLOBAL ·<br><span class="accent">RESILIENT</span></span>
- <span class="b">Active-active across regions. Async cross-region replication. Failover via control-plane DNS swap.</span>
- <span class="facts">3 + 3 nodes · 2 regions<br>RTO: &lt; 2 min<br>RPO: async (sub-sec)<br>Capacity: &gt; 10 B docs</span>
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <div class="topo-grid">
- <div class="cell">
- <span class="k">AIR-GAPPED</span>
- <span class="t">ON-PREM ·<br><span class="accent">REGULATED</span></span>
- <span class="b">No internet. Offline artifact bundle · license file · offline update channel. Deployable to a sealed rack or SCIF.</span>
- <span class="facts">1–N nodes<br>No telemetry egress<br>Offline signed updates<br>Target: GOV · HEALTH · FIN</span>
- </div>
- <div class="cell">
- <span class="k">BYOC KUBERNETES</span>
- <span class="t">CLOUD ·<br><span class="accent">NATIVE</span></span>
- <span class="b">Helm chart + CRDs. StatefulSet per data-plane role. PVCs for segments; PV for WAL. Tested on EKS, GKE, AKS.</span>
- <span class="facts">Helm · Terraform <span class="pill road">ROAD Q2</span><br>StorageClass: fast-SSD<br>HPA on CPU + ingest rate<br>Pod-level audit</span>
- </div>
- <div class="cell">
- <span class="k">MANAGED SAAS <span class="pill road">ROAD&nbsp;'27</span></span>
- <span class="t">HOSTED ·<br><span class="accent">TURNKEY</span></span>
- <span class="b">Multi-tenant control plane, single-tenant data plane. Predictable pricing per GB ingested + query volume.</span>
- <span class="facts">Dedicated data plane<br>Shared control plane<br>Region-of-choice<br>BYOK supported</span>
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">04 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P5 · UNIFIED DATA PLATFORM -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>05 · UNIFIED DATA PLATFORM</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>05</span><span class="dash">·</span><span>UNIFIED DATA PLATFORM</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FOUR STORES.<br><span class="accent">ONE ENGINE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Every store type shares a single segment cache, a single WAL,
- a single permission model, and a single query language. The
- distinctions below are logical — not separate deployments, not
- separate bills, not separate on-call rotations.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="matrix">
- <div class="h">STORE TYPE</div>
- <div class="h">CAPABILITIES</div>
- <div class="h">STATUS</div>
-
- <div class="k">FULL-TEXT</div>
- <div>BM25 scoring · 38 ES query types · 5+ analyzers · per-field overrides · position-aware postings for phrase queries</div>
- <div class="status ga">GA</div>
-
- <div class="k">VECTOR</div>
- <div>HNSW k-NN · cosine / L2 / inner-product · SQ8 (4×) &amp; nibble (8×) quantization · optional float32 re-rank · 4,096 dims</div>
- <div class="status ga">GA</div>
-
- <div class="k">COLUMNAR LOGS</div>
- <div>Columnar doc-values · delta-of-delta timestamps · dictionary + ZSTD keywords · time-partitioned memtables · terms / date-histogram aggs</div>
- <div class="status ga">GA</div>
-
- <div class="k">AGENT MEMORY</div>
- <div>Session-scoped indices · time-decay scoring · token-budget-aware retrieval · native hybrid with vector + keyword signals</div>
- <div class="status beta">BETA</div>
-
- <div class="k">METRICS</div>
- <div>Prometheus remote_write ingest · downsampling · retention tiers · range queries over columnar store</div>
- <div class="status road">ROAD Q3</div>
-
- <div class="k">TRACES</div>
- <div>OTLP ingest · span joins · service-graph materialization · trace-to-log pivot via shared schema</div>
- <div class="status road">ROAD Q4</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>WHY UNIFIED</h4>
- <div class="sp-2"></div>
- <div class="kv-row">
- <div class="k">DATA GRAVITY</div>
- <div class="v">Logs, embeddings, and metrics describe the same events. Keeping them in one place means queries join at the storage layer, not through a Python orchestrator.</div>
- </div>
- <div class="kv-row">
- <div class="k">OPERATIONAL SURFACE</div>
- <div class="v">One binary to deploy. One config to tune. One audit trail. One backup story. One on-call rotation.</div>
- </div>
- <div class="kv-row">
- <div class="k">COST</div>
- <div class="v">Four vendors collapse to one. Storage is shared across store types — a log index and a vector index live in the same segment file when schemas allow.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">05 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P6 · DATA INGESTION -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>06 · DATA INGESTION &amp; PROCESSING</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>06</span><span class="dash">·</span><span>DATA INGESTION</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">MANY SOURCES.<br><span class="accent">ONE PIPELINE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Every ingest path terminates at the same WAL and the same
- memtable. Durability is guaranteed at <span class="mono">fsync</span>
- return; visibility follows on flush. Back-pressure propagates
- to the producer so clients never silently drop.
- </p>
-
- <div class="sp-6"></div>
-
- <h4>SUPPORTED PROTOCOLS &amp; FORMATS</h4>
- <div class="sp-2"></div>
-
- <div class="matrix">
- <div class="h">PROTOCOL / FORMAT</div>
- <div class="h">USE CASE</div>
- <div class="h">STATUS</div>
-
- <div class="k">ES _BULK API</div>
- <div>Drop-in for existing Beats, Logstash, Filebeat pipelines. Newline-delimited action + doc pairs.</div>
- <div class="status ga">GA</div>
-
- <div class="k">JSON / NDJSON</div>
- <div>Direct HTTP ingest for app logs, custom producers, agent traces. One object per line.</div>
- <div class="status ga">GA</div>
-
- <div class="k">OTLP / HTTP</div>
- <div>OpenTelemetry logs + traces. Standard collectors (Otel Collector, Vector) without a translator.</div>
- <div class="status beta">BETA</div>
-
- <div class="k">SYSLOG (RFC 5424)</div>
- <div>Legacy infrastructure ingest. UDP + TCP listeners, per-source parsing rules.</div>
- <div class="status road">ROAD Q2</div>
-
- <div class="k">PROMETHEUS REMOTE_WRITE</div>
- <div>Metrics ingest compatible with existing scrapers. Maps series to columnar store.</div>
- <div class="status road">ROAD Q3</div>
-
- <div class="k">KAFKA SOURCE</div>
- <div>Pull-based ingest from Kafka topics. Exactly-once via consumer-group offset commits.</div>
- <div class="status road">ROAD Q3</div>
-
- <div class="k">S3 / GCS / BLOB</div>
- <div>Batch import from object storage. Daily log archives, parquet snapshots, embedding dumps.</div>
- <div class="status road">ROAD Q4</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>RELIABILITY GUARANTEES</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">DURABILITY</div>
- <div class="v">Every accepted document is persisted to WAL with <span class="mono">fsync</span> + CRC32C before ACK. Crash recovery replays from the last checkpoint, idempotent per <span class="mono">seq_no</span>.</div>
- </div>
- <div class="kv-row">
- <div class="k">BACK-PRESSURE</div>
- <div class="v">Ingest returns 429 / <span class="mono">Retry-After</span> when the WAL queue exceeds the watermark. Producers slow down; no silent drops.</div>
- </div>
- <div class="kv-row">
- <div class="k">SCHEMA HANDLING</div>
- <div class="v">Segment-scoped schema. Field additions take effect on the next memtable flush — no global reindex, no service restart.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">06 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P7 · SEARCH & RETRIEVAL -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>07 · SEARCH &amp; RETRIEVAL</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>07</span><span class="dash">·</span><span>SEARCH &amp; RETRIEVAL</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">KEYWORD.<br>VECTOR.<br><span class="accent">ONE QUERY.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Hybrid retrieval is the default, not a feature. A single query
- can express a keyword filter, a semantic clause, an aggregation,
- and a time-window constraint — the planner composes and
- executes them in one pass.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="matrix">
- <div class="h">CAPABILITY</div>
- <div class="h">DETAIL</div>
- <div class="h">STATUS</div>
-
- <div class="k">FULL-TEXT</div>
- <div>BM25 · k1 / b tunable · 38 ES query types (term · match · bool · phrase · fuzzy · wildcard · prefix · multi_match · …)</div>
- <div class="status ga">GA</div>
-
- <div class="k">VECTOR SEARCH</div>
- <div>HNSW k-NN · per-index quantization choice · runtime-tunable <span class="mono">ef_search</span> trading recall for latency</div>
- <div class="status ga">GA</div>
-
- <div class="k">HYBRID MERGE</div>
- <div>Reciprocal Rank Fusion (RRF) — ranks from keyword + vector combined without magnitude calibration. In-process, single pass.</div>
- <div class="status ga">GA</div>
-
- <div class="k">UNIFIED PLANNER</div>
- <div>Shared cost model across FTS, vector, and aggregations. Joint top-K cut-off across signals.</div>
- <div class="status road">ROAD Q3</div>
-
- <div class="k">AGGREGATIONS</div>
- <div>terms · date_histogram · histogram · percentiles · composite · stats · avg / sum / min / max. ES-compatible shapes.</div>
- <div class="status ga">GA</div>
-
- <div class="k">EXPLAIN PLAN</div>
- <div>Every query plan is queryable via <span class="mono">POST /v1/indices/{i}/explain-plan</span>. Per-node cost + row counts. First-class endpoint.</div>
- <div class="status ga">GA</div>
-
- <div class="k">SCROLL / PIT</div>
- <div>Point-in-time snapshots + scroll cursors for large result sets. ES-compat semantics.</div>
- <div class="status ga">GA</div>
-
- <div class="k">SQL OVER HTTP</div>
- <div>ANSI-SQL frontend over the same storage. BI tools connect via standard JDBC / ODBC.</div>
- <div class="status road">ROAD Q4</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>GOVERNANCE &amp; COST CONTROL</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">PER-QUERY COST</div>
- <div class="v">The explain-plan returns CPU, I/O, and row-scan estimates before execution — and realized counts after. Quotas and circuit-breakers enforced at the API.</div>
- </div>
- <div class="kv-row">
- <div class="k">CIRCUIT-BREAKERS</div>
- <div class="v">Per-request heap · per-request time · per-tenant concurrency · per-index doc-scan ceiling. Triggers return a structured error with the budget that was exceeded.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">07 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P8 · INTEGRATION ECOSYSTEM -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>08 · INTEGRATION ECOSYSTEM</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>08</span><span class="dash">·</span><span>INTEGRATION ECOSYSTEM</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">YOUR STACK.<br><span class="accent">UNCHANGED.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- XERJ's integration strategy is to implement standard
- protocols rather than ship bespoke adapters. Anything that
- speaks Elasticsearch 8.13 or OpenTelemetry works out of the
- box.
- </p>
-
- <div class="sp-6"></div>
-
- <div class="int-grid">
- <div class="group">
- <h4>CLIENT LIBRARIES</h4>
- <div class="list">
- elasticsearch-py · elasticsearch-js · elasticsearch-java <span class="mute">· via ES wire</span><br>
- Go, .NET, Rust — any OSS client targeting ES 8.x
- </div>
- </div>
- <div class="group">
- <h4>INGEST COLLECTORS</h4>
- <div class="list">
- Beats · Filebeat · Logstash · Vector <span class="mute">· ES output</span><br>
- OpenTelemetry Collector <span class="mute">· OTLP (beta)</span>
- </div>
- </div>
- <div class="group">
- <h4>DASHBOARDS &amp; BI</h4>
- <div class="list">
- Kibana <span class="mute">· ES backend, community-validated</span><br>
- Grafana <span class="mute">· ES datasource · Prometheus scrape</span><br>
- Tableau · Power BI <span class="mute">· SQL frontend (roadmap Q4)</span>
- </div>
- </div>
- <div class="group">
- <h4>AI &amp; RAG FRAMEWORKS</h4>
- <div class="list">
- LangChain · LlamaIndex <span class="mute">· ES retriever</span><br>
- Haystack · DSPy <span class="mute">· ES backend</span><br>
- Custom embedders via pluggable provider interface
- </div>
- </div>
- <div class="group">
- <h4>IDENTITY &amp; ACCESS</h4>
- <div class="list">
- OIDC / SAML 2.0 <span class="mute">· roadmap Q2</span><br>
- SCIM provisioning <span class="mute">· roadmap Q3</span><br>
- AWS IAM / Azure AD / Okta <span class="mute">· roadmap Q2</span>
- </div>
- </div>
- <div class="group">
- <h4>OBSERVABILITY</h4>
- <div class="list">
- Prometheus <span class="mute">· /metrics first-class</span><br>
- OTLP export <span class="mute">· roadmap Q3</span><br>
- Structured JSON logs <span class="mute">· stdout by default</span>
- </div>
- </div>
- <div class="group">
- <h4>DEPLOYMENT &amp; AUTOMATION</h4>
- <div class="list">
- Helm chart · Kubernetes Operator <span class="mute">· roadmap Q2</span><br>
- Terraform module <span class="mute">· roadmap Q2</span><br>
- Ansible playbooks <span class="mute">· community</span>
- </div>
- </div>
- <div class="group">
- <h4>BACKUP &amp; DR</h4>
- <div class="list">
- S3 / GCS / Azure Blob <span class="mute">· snapshot target</span><br>
- Restic / Kopia <span class="mute">· community, file-level</span><br>
- Cross-region replication <span class="mute">· roadmap Q3</span>
- </div>
- </div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">08 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P9 · SECURITY · COMPLIANCE · GOVERNANCE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>09 · SECURITY · COMPLIANCE · GOVERNANCE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>09</span><span class="dash">·</span><span>SECURITY &amp; COMPLIANCE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">ZERO-TRUST READY.<br><span class="accent">AUDIT-GRADE.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- The security model assumes a hostile network. Mutual TLS
- between services, per-request authorization, and a structured
- audit log of every privileged operation. Compliance
- certifications are on the roadmap; the engineering controls
- that those certifications require are either shipped or in
- flight.
- </p>
-
- <div class="sp-6"></div>
-
- <h4>CONTROLS</h4>
- <div class="sp-2"></div>
-
- <div class="matrix">
- <div class="h">CONTROL</div>
- <div class="h">IMPLEMENTATION</div>
- <div class="h">STATUS</div>
-
- <div class="k">TLS IN TRANSIT</div>
- <div>TLS 1.3 on all listeners. Cipher suites restricted to modern AEAD. Certificate rotation without restart.</div>
- <div class="status ga">GA</div>
-
- <div class="k">ENCRYPTION AT REST</div>
- <div>AES-256-GCM on segment and WAL files. Keys in an external KMS (AWS KMS, GCP KMS, HashiCorp Vault).</div>
- <div class="status beta">BETA</div>
-
- <div class="k">BYOK</div>
- <div>Customer-managed keys via KMS. No XERJ-side plaintext access. Rotation documented.</div>
- <div class="status road">ROAD Q2</div>
-
- <div class="k">RBAC</div>
- <div>Role-based access at cluster, index, and field level. Built-in roles + custom roles. Integrated with OIDC groups.</div>
- <div class="status road">ROAD Q2</div>
-
- <div class="k">AUDIT TRAIL</div>
- <div>Structured log of every privileged operation: query, schema change, role assignment, snapshot. Replayable, exportable.</div>
- <div class="status beta">BETA</div>
-
- <div class="k">MULTI-TENANCY</div>
- <div>Tenant-isolated indices, metrics, and quota. Per-tenant RBAC. Physical isolation via separate clusters.</div>
- <div class="status ga">GA</div>
-
- <div class="k">AIR-GAPPED UPDATES</div>
- <div>Offline bundle + signed release manifest. Verified on install. No telemetry egress when <span class="mono">XERJ_AIRGAP=1</span>.</div>
- <div class="status ga">GA</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>CERTIFICATIONS &amp; ATTESTATIONS</h4>
- <div class="sp-2"></div>
-
- <div class="matrix">
- <div class="h">STANDARD</div>
- <div class="h">SCOPE</div>
- <div class="h">STATUS</div>
-
- <div class="k">SOC 2 TYPE I</div>
- <div>Platform controls · access management · change management · incident response</div>
- <div class="status road">ROAD Q3 2026</div>
-
- <div class="k">SOC 2 TYPE II</div>
- <div>12-month operating effectiveness. Follows Type I.</div>
- <div class="status road">ROAD Q2 2027</div>
-
- <div class="k">ISO 27001</div>
- <div>ISMS scope covers XERJ platform engineering + SaaS operations</div>
- <div class="status road">ROAD Q4 2026</div>
-
- <div class="k">HIPAA / HITECH</div>
- <div>BAA available on Enterprise tier. Self-hosted deployments inherit customer controls.</div>
- <div class="status road">ROAD 2027</div>
-
- <div class="k">GDPR / DATA RESIDENCY</div>
- <div>Self-hosted = customer chooses region. SaaS: region-pinned data plane.</div>
- <div class="status ga">GA (self-hosted)</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">09 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P10 · SCALABILITY &amp; PERFORMANCE -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>10 · SCALABILITY &amp; PERFORMANCE</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>10</span><span class="dash">·</span><span>SCALABILITY &amp; PERFORMANCE</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">MEASURED.<br>REPRODUCIBLE.<br><span class="accent">SCALE-OUT.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Every number below comes from a dated, checked-in battle
- report under <span class="mono">engine/releases/v0.1.0/reports/</span>
- with a reproduction script. Scale rows above 1 node are
- projections pending the <span class="pill road">Q3</span>
- sharded-ingest GA.
- </p>
-
- <div class="sp-6"></div>
-
- <h4>PERFORMANCE PROFILE · PER NODE</h4>
- <div class="sp-2"></div>
-
- <div class="perf">
- <div class="h">METRIC</div>
- <div class="h n">VALUE</div>
- <div class="h n">AT SCALE</div>
- <div class="h n">VS ES 8.13</div>
- <div class="h n">SOURCE</div>
-
- <div>Cold start</div>
- <div class="n">50 ms</div>
- <div class="n">same</div>
- <div class="n accent">300×</div>
- <div class="n">SIEM_BATTLE</div>
-
- <div>Idle RSS</div>
- <div class="n">400 MB</div>
- <div class="n">+~200 MB / idx</div>
- <div class="n accent">21×</div>
- <div class="n">SIEM_BATTLE</div>
-
- <div>Binary size</div>
- <div class="n">13 MB</div>
- <div class="n">static</div>
- <div class="n accent">56×</div>
- <div class="n">release</div>
-
- <div>SIEM top-source-IPs</div>
- <div class="n">0.4 ms p95</div>
- <div class="n">1 M events</div>
- <div class="n accent">74×</div>
- <div class="n">SIEM_BATTLE</div>
-
- <div>NGINX terms agg</div>
- <div class="n">0.4 ms p95</div>
- <div class="n">5 distinct</div>
- <div class="n accent">89×</div>
- <div class="n">CLUSTER_BATTLE</div>
-
- <div>Hybrid query p95</div>
- <div class="n">38 ms</div>
- <div class="n">1 B vectors</div>
- <div class="n accent">n/a</div>
- <div class="n">hybrid_bench</div>
-
- <div>Disk · 1 M SIEM events</div>
- <div class="n">85 MB</div>
- <div class="n">post-ingest</div>
- <div class="n accent">2.8×</div>
- <div class="n">SIEM_BATTLE</div>
-
- <div>Vector memory · 10 M × 1536</div>
- <div class="n">18 GB</div>
- <div class="n">SQ8</div>
- <div class="n accent">5.1×</div>
- <div class="n">RAG_BENCH</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>CAPACITY-PLANNING HEURISTIC</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">SIEM WORKLOAD</div>
- <div class="v">~50 M events / node / day sustained · hot retention 30 d · 1 node covers ~1.5 B events / 85 GB disk.</div>
- </div>
- <div class="kv-row">
- <div class="k">RAG WORKLOAD</div>
- <div class="v">~55 M × 768-dim embeddings / node at SQ8 · query p95 &lt; 40 ms · rebuild HNSW at 10 % churn.</div>
- </div>
- <div class="kv-row">
- <div class="k">OBSERVABILITY</div>
- <div class="v">~80 K events / sec sustained ingest single-client · diurnal pattern · write-stalls rare under documented sizing.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">10 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P11 · HIGH AVAILABILITY &amp; DR -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>11 · HIGH AVAILABILITY &amp; DISASTER RECOVERY</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>11</span><span class="dash">·</span><span>HA &amp; DR</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">SURVIVE THE<br><span class="accent">UNEXPECTED.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- HA and DR are separate concerns. HA keeps the platform
- available when nodes or zones fail; DR restores operation
- when a region or dataset is lost. XERJ addresses them with
- different mechanisms — replication for HA, snapshots for DR.
- </p>
-
- <div class="sp-6"></div>
-
- <h4>AVAILABILITY MODEL</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">REPLICATION</div>
- <div class="v">Primary + N replicas per index · sync for the HA cluster topology · async for cross-region <span class="pill road">ROAD Q3</span>. Quorum writes.</div>
- </div>
- <div class="kv-row">
- <div class="k">FAILURE DETECTION</div>
- <div class="v">Gossip-based health · bounded-latency failover · automatic replica promotion · control-plane notification.</div>
- </div>
- <div class="kv-row">
- <div class="k">READ-PATH CONTINUITY</div>
- <div class="v">Lock-free reader view — a failover swaps the pointer · in-flight queries complete on the stale view · new queries hit the new primary.</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>DISASTER RECOVERY</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">SNAPSHOTS</div>
- <div class="v">Segment-level snapshots to S3 / GCS / Azure Blob. Incremental (only new segments). Encrypted with customer KMS keys (BYOK <span class="pill road">Q2</span>).</div>
- </div>
- <div class="kv-row">
- <div class="k">RESTORE</div>
- <div class="v">Point-in-time restore at segment granularity. Replay WAL from snapshot to exact <span class="mono">seq_no</span>. Warm standby mounts snapshots for near-zero RTO.</div>
- </div>
- <div class="kv-row">
- <div class="k">CROSS-REGION DR</div>
- <div class="v">Async replication of primary segments to a standby region. DNS-based failover. <span class="pill road">ROAD Q3 2026</span>.</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>RTO / RPO TARGETS BY TOPOLOGY</h4>
- <div class="sp-2"></div>
-
- <div class="perf" style="grid-template-columns: 1.6in repeat(3, 1fr);">
- <div class="h">TOPOLOGY</div>
- <div class="h n">RTO</div>
- <div class="h n">RPO</div>
- <div class="h n">AVAILABILITY</div>
-
- <div>Single-node</div>
- <div class="n">minutes</div>
- <div class="n">fsync</div>
- <div class="n">best effort</div>
-
- <div>HA cluster · 3-node</div>
- <div class="n">&lt; 30 s</div>
- <div class="n">0 (sync)</div>
- <div class="n">99.95 %</div>
-
- <div>Multi-region active-active</div>
- <div class="n">&lt; 2 min</div>
- <div class="n">sub-second</div>
- <div class="n">99.99 %</div>
-
- <div>Air-gapped · 3-node</div>
- <div class="n">&lt; 30 s</div>
- <div class="n">0 (sync)</div>
- <div class="n">99.95 %</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">11 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P12 · REFERENCE ARCHITECTURES -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>12 · REFERENCE ARCHITECTURES</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>12</span><span class="dash">·</span><span>REFERENCE ARCHITECTURES</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">FOUR BLUEPRINTS.<br><span class="accent">ONE PLATFORM.</span></h2>
-
- <div class="sp-4"></div>
- <p class="body">
- Each blueprint is a validated topology with named upstreams,
- named consumers, retention policy, and sizing guidance. Every
- blueprint uses the same XERJ binary — what changes is the
- ingest surface, retention, and connected tools.
- </p>
-
- <div class="sp-4"></div>
-
- <div class="arch-pre"><span class="accent">01 · SIEM MODERNIZATION</span> <span class="mute">CISO · SOC</span>
- Firewall · endpoint · auth logs ──▶ Vector/Filebeat ──▶ XERJ (ES _bulk)
- ────▶ Kibana dashboards · alerting via explain-plan triggers
- retention 30 d hot · 90 d warm · 1 y cold
- sizing: 3-node · ~50 M events/node/day · disk ~2.5 TB/node
-
-<span class="accent">02 · RAG AT ENTERPRISE SCALE</span> <span class="mute">CDO · CAIO</span>
- Documents ──▶ embedder (Voyage · OpenAI) ──▶ XERJ hybrid index
- ────▶ LangChain / LlamaIndex retriever ──▶ application
- quantization SQ8 default · float32 re-rank for top-K
- sizing: ~55 M × 768-dim embeddings/node · hybrid p95 &lt; 40 ms
-
-<span class="accent">03 · UNIFIED OBSERVABILITY</span> <span class="mute">SRE · PLATFORM</span>
- App + infra ──▶ Otel Collector ──▶ XERJ (OTLP beta)
- ────▶ Grafana via Prometheus remote_read · alerting
- retention: metrics 30 d raw · logs 14 d hot · traces 7 d
- sizing: 3-node · ~80 K events/sec sustained · 6 → 1 stack
-
-<span class="accent">04 · AGENT MEMORY PLATFORM</span> <span class="mute">AI PLATFORM</span>
- Agent runtime ──▶ XERJ session indices (time-decay scoring)
- ────▶ native hybrid retrieval · token-budget-aware
- retention: 90 d · tenant-isolated per team
- sizing: session-scoped indices · linear with active-agent count</div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>EACH BLUEPRINT</span>
- <span class="dash">·</span>
- <span>NAMED UPSTREAMS · DOCUMENTED RETENTION · SIZING TABLE</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">12 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P13 · COMPARISON WITH LEGACY STACKS -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>13 · COMPARISON · LEGACY STACKS</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>13</span><span class="dash">·</span><span>COMPARISON</span></div>
- <div class="sp-3"></div>
- <h2 class="scene" style="font-size:34pt;">WHERE THE<br><span class="accent">CONSOLIDATION</span> COMES FROM.</h2>
-
- <div class="sp-3"></div>
- <p class="body">
- Three stacks an architect typically inherits. The XERJ column
- lists what one deployment of XERJ replaces — not what it
- adds on top.
- </p>
-
- <div class="sp-4"></div>
-
- <h4>XERJ vs ES + PINECONE + REDIS (RAG STACK)</h4>
- <div class="sp-2"></div>
- <div class="versus">
- <div class="h">AXIS</div>
- <div class="h a">XERJ</div>
- <div class="h">LEGACY RAG STACK</div>
-
- <div class="dim">Systems</div>
- <div>1 binary</div>
- <div>3 systems + orchestrator</div>
-
- <div class="dim">Hybrid retrieval</div>
- <div>Native RRF, one query</div>
- <div>Python orchestrator merges two HTTP calls</div>
-
- <div class="dim">Vector memory · 10 M × 1.5 K dim</div>
- <div><span class="accent">18 GB</span> (SQ8)</div>
- <div>92 GB (float32)</div>
-
- <div class="dim">Vendor contracts</div>
- <div>One</div>
- <div>Three + framework</div>
- </div>
-
- <div class="sp-4"></div>
-
- <h4>XERJ vs ELASTIC STACK (ES + KIBANA + LOGSTASH)</h4>
- <div class="sp-2"></div>
- <div class="versus">
- <div class="h">AXIS</div>
- <div class="h a">XERJ</div>
- <div class="h">ELASTIC STACK 8.13</div>
-
- <div class="dim">Ingest binaries</div>
- <div>1 (built-in _bulk)</div>
- <div>2 (ES + Logstash)</div>
-
- <div class="dim">Idle cluster memory</div>
- <div><span class="accent">400 MB</span> · 1 node</div>
- <div>8.5 GB · 4-node</div>
-
- <div class="dim">Cold start</div>
- <div><span class="accent">50 ms</span></div>
- <div>~15 s JVM warm-up</div>
-
- <div class="dim">Client compatibility</div>
- <div>ES 8.13 wire-protocol</div>
- <div>ES 8.13 native</div>
- </div>
-
- <div class="sp-4"></div>
-
- <h4>XERJ vs SPLUNK + PROM + TEMPO (OBSERVABILITY)</h4>
- <div class="sp-2"></div>
- <div class="versus">
- <div class="h">AXIS</div>
- <div class="h a">XERJ</div>
- <div class="h">SPLUNK + PROM + TEMPO</div>
-
- <div class="dim">Binaries</div>
- <div>1</div>
- <div>6</div>
-
- <div class="dim">Query languages</div>
- <div>1 (ES DSL + SQL roadmap)</div>
- <div>3 (SPL + PromQL + TraceQL)</div>
-
- <div class="dim">Monthly bill lines</div>
- <div>1</div>
- <div>5</div>
-
- <div class="dim">Retention policies</div>
- <div>1 unified</div>
- <div>3 separate</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">13 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P14 · OPERATIONS · SIZING · OBSERVABILITY -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>14 · OPERATIONS &amp; SIZING</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>14</span><span class="dash">·</span><span>OPERATIONS</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">DAY TWO.<br><span class="accent">BOARD-READABLE.</span></h2>
-
- <div class="sp-4"></div>
-
- <h4>NODE REQUIREMENTS</h4>
- <div class="sp-2"></div>
-
- <div class="perf" style="grid-template-columns: 1.3in repeat(3, 1fr) 1fr;">
- <div class="h">PROFILE</div>
- <div class="h n">CPU</div>
- <div class="h n">MEMORY</div>
- <div class="h n">DISK</div>
- <div class="h n">NETWORK</div>
-
- <div>Small · pilot</div>
- <div class="n">4 vCPU</div>
- <div class="n">16 GB</div>
- <div class="n">500 GB NVMe</div>
- <div class="n">1 Gbps</div>
-
- <div>Medium · prod</div>
- <div class="n">8 vCPU</div>
- <div class="n">64 GB</div>
- <div class="n">2 TB NVMe</div>
- <div class="n">10 Gbps</div>
-
- <div>Large · scale-out</div>
- <div class="n">16 vCPU</div>
- <div class="n">128 GB</div>
- <div class="n">8 TB NVMe</div>
- <div class="n">25 Gbps</div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>OBSERVABILITY OUT OF THE BOX</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">METRICS</div>
- <div class="v">Prometheus on <span class="mono">/metrics</span>. 13 counters / histograms / gauges across ingest, query, flush, cache. Per-instance registry — no global-singleton label collisions.</div>
- </div>
- <div class="kv-row">
- <div class="k">HEALTH / READINESS</div>
- <div class="v"><span class="mono">GET /healthz</span> for liveness. <span class="mono">GET /readyz</span> holds until WAL replay completes — rolling restart fleet-safe by default.</div>
- </div>
- <div class="kv-row">
- <div class="k">LOGS</div>
- <div class="v">Structured JSON to stdout. One event per line. Correlation ID on every request. Tail with <span class="mono">jq</span>, ship with any log-forwarding agent.</div>
- </div>
- <div class="kv-row">
- <div class="k">UPGRADES</div>
- <div class="v">Rolling restart supported. Segment and WAL formats are forward-compatible across minor versions. One-minor-version window for rollback.</div>
- </div>
- <div class="kv-row">
- <div class="k">CONFIG</div>
- <div class="v">Single TOML file · <span class="mono">XERJ_CONFIG</span> env · hot-reload via SIGHUP on non-structural changes. Config schema validated on load.</div>
- </div>
- <div class="kv-row">
- <div class="k">BACKUP · RESTORE</div>
- <div class="v">Snapshots to object storage. Incremental, encrypted, restorable at segment granularity. <span class="mono">xerj snapshot create|list|restore</span>.</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">14 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P15 · LICENSING · SUPPORT · ROADMAP -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>15 · LICENSING · SUPPORT · ROADMAP</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-6"></div>
- <div class="kicker"><span>15</span><span class="dash">·</span><span>LICENSING &amp; SUPPORT</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">THREE TIERS.<br><span class="accent">ONE ENGINE.</span></h2>
-
- <div class="sp-4"></div>
-
- <div class="tiers">
- <div class="tier">
- <span class="k">TIER 01</span>
- <span class="t">COMMUNITY</span>
- <ul>
- <li>Full feature set · single-node</li>
- <li>Community support · GitHub · forum</li>
- <li>No SLA</li>
- <li>Ideal for POCs, dev, OSS projects</li>
- </ul>
- </div>
- <div class="tier">
- <span class="k">TIER 02</span>
- <span class="t">PROFESSIONAL</span>
- <ul>
- <li>HA cluster · 3 nodes</li>
- <li>Business-hours support · 24 h response</li>
- <li>99.95 % availability SLA</li>
- <li>Quarterly health review</li>
- <li>Certified releases only</li>
- </ul>
- </div>
- <div class="tier ent">
- <span class="k">TIER 03</span>
- <span class="t">ENTERPRISE</span>
- <ul>
- <li>Multi-region · air-gapped · BYOK</li>
- <li>24×7 support · 1 h response</li>
- <li>99.99 % availability SLA</li>
- <li>Dedicated CSM + solutions architect</li>
- <li>Private roadmap input · early-access builds</li>
- <li>HIPAA BAA · custom compliance</li>
- </ul>
- </div>
- </div>
-
- <div class="sp-8"></div>
-
- <h4>ROADMAP · 12 MONTHS</h4>
- <div class="sp-2"></div>
-
- <div class="road-rail">
- <div class="q">Q2</div>
- <div class="t">2026<br><span class="accent">FOUNDATION</span></div>
- <div>OIDC + SAML · RBAC · Helm chart · Terraform module · syslog ingest · BYOK encryption-at-rest</div>
-
- <div class="q">Q3</div>
- <div class="t">2026<br><span class="accent">SCALE</span></div>
- <div>Sharded ingest · cross-region async replication · Prometheus remote_write ingest · Kafka source · SOC 2 Type I</div>
-
- <div class="q">Q4</div>
- <div class="t">2026<br><span class="accent">SURFACE</span></div>
- <div>SQL over HTTP · S3/GCS batch import · OTLP trace support · ISO 27001 · ML-ranking hooks</div>
-
- <div class="q">'27</div>
- <div class="t">2027<br><span class="accent">MANAGED</span></div>
- <div>Hosted SaaS offering · region-pinned · BYOK standard · HIPAA BAA · FedRAMP Moderate pursuit</div>
- </div>
-
- <div class="grow"></div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">15 / 16</span>
- </div>
-</section>
-
-<!-- =========================================================== -->
-<!-- P16 · GET STARTED · CONTACT -->
-<!-- =========================================================== -->
-<section class="page">
- <div class="head-row">
- <span class="brand">XERJ<span class="accent">.AI</span></span>
- <span>16 · GET STARTED</span>
- </div>
-
- <div class="grow flex col">
- <div class="sp-10"></div>
- <div class="kicker"><span>16</span><span class="dash">·</span><span>GET STARTED</span></div>
- <div class="sp-3"></div>
- <h2 class="scene">PROVE IT<br><span class="accent">ON YOUR DATA.</span></h2>
-
- <div class="sp-6"></div>
-
- <p class="body">
- The fastest path is a two-week pilot on a real workload. We
- send the binary and the reproduction scripts for every number
- in this brief. You send one SIEM / RAG / observability
- workload. We meet again in two weeks with your numbers, not
- ours.
- </p>
-
- <div class="sp-8"></div>
-
- <div style="padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);">
- <div class="kicker"><span>CONTACT</span></div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-display); font-weight: 900; font-size: 42pt; line-height:1; letter-spacing: 0.01em;">
- HELLO<span class="accent">@</span>XERJ.AI
- </div>
- <div class="sp-3"></div>
- <div style="font-family: var(--font-data); font-size: 9pt; letter-spacing: var(--track-ui); text-transform: uppercase; color: var(--mute);">
- XERJ.AI · XERJ.COM · XERJ.DEV
- </div>
- </div>
-
- <div class="sp-6"></div>
-
- <h4>PILOT PROCESS</h4>
- <div class="sp-2"></div>
-
- <div class="kv-row">
- <div class="k">WEEK 0</div>
- <div class="v">Scoping call · pick workload · sign mutual NDA if needed (not required to receive binary).</div>
- </div>
- <div class="kv-row">
- <div class="k">WEEK 1</div>
- <div class="v">Deploy binary in your environment · reproduce our battle reports on sample data · smoke-test ES client compatibility.</div>
- </div>
- <div class="kv-row">
- <div class="k">WEEK 2</div>
- <div class="v">Shadow-deploy against your workload · compare latency, cost, memory. Results meeting: your numbers, your hardware, your decision.</div>
- </div>
-
- <div class="grow"></div>
-
- <div class="kicker">
- <span>XERJ.AI</span>
- <span class="dash">·</span>
- <span>TECHNICAL PRODUCT BRIEF · V1</span>
- <span class="dash">·</span>
- <span>ENGINE V0.1 · 2026-04</span>
- </div>
- </div>
-
- <div class="foot-row">
- <span>XERJ · TECHNICAL PRODUCT BRIEF</span>
- <span class="num">16 / 16</span>
- </div>
-</section>
-
-</body>
-</html>
diff --git a/brief/xerj-architecture-brief.pdf b/brief/xerj-architecture-brief.pdf
deleted file mode 100644
index 9aa6fce03..000000000
Binary files a/brief/xerj-architecture-brief.pdf and /dev/null differ
diff --git a/brief/xerj-brandbook.pdf b/brief/xerj-brandbook.pdf
deleted file mode 100644
index 76bc226fa..000000000
Binary files a/brief/xerj-brandbook.pdf and /dev/null differ
diff --git a/brief/xerj-compare-brief.pdf b/brief/xerj-compare-brief.pdf
deleted file mode 100644
index f900b2fd8..000000000
Binary files a/brief/xerj-compare-brief.pdf and /dev/null differ
diff --git a/brief/xerj-exec-brief.pdf b/brief/xerj-exec-brief.pdf
deleted file mode 100644
index d70abda24..000000000
Binary files a/brief/xerj-exec-brief.pdf and /dev/null differ
diff --git a/brief/xerj-product-brief.pdf b/brief/xerj-product-brief.pdf
deleted file mode 100644
index 47087ec12..000000000
Binary files a/brief/xerj-product-brief.pdf and /dev/null differ
diff --git a/brief/xerj-tech-brief.pdf b/brief/xerj-tech-brief.pdf
deleted file mode 100644
index 14a6354c5..000000000
Binary files a/brief/xerj-tech-brief.pdf and /dev/null differ
diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md
new file mode 100644
index 000000000..bf92bf53b
--- /dev/null
+++ b/docs/ARCHITECTURE.md
@@ -0,0 +1,142 @@
+# XERJ Architecture
+
+This document orients contributors to how XERJ is put together: the crate layout,
+the path a search request takes, and the path an indexed document takes. It is a
+map, not a specification — the source is authoritative, and
+[`engine/CLAUDE.md`](../engine/CLAUDE.md) is the canonical quick reference for
+build/run/test commands and the supported ES surface.
+
+XERJ is an Elasticsearch-wire-compatible search, vector, and log-analytics engine
+written in Rust and published under Apache-2.0. It speaks the Elasticsearch 8.x
+HTTP protocol, so existing ES clients, dashboards, and ingest tooling can talk to
+it unchanged.
+
+## Bird's-eye view
+
+```
+ ┌───────────────────────────────────────────────┐
+ ES client │ HTTP :9200 (ES-compatible + native REST) │
+ ────────► │ xerj-server → xerj-api (Axum) │
+ └───────────────────────────────────────────────┘
+ │
+ ┌─────────────────────┼─────────────────────┐
+ ▼ ▼ ▼
+ xerj-query xerj-engine xerj-console-api
+ (parse ES JSON → (Engine / Index: ties (bundled dashboards
+ QueryNode tree) storage + fts + vector) under /_xerj-console)
+ │
+ ┌────────────┬──────────┼───────────┬────────────┐
+ ▼ ▼ ▼ ▼ ▼
+ xerj-storage xerj-fts xerj-vector xerj-logs xerj-compress
+ (WAL, (BM25, (HNSW (columnar (LZ4 / Zstd
+ memtable, analyzers, k-NN) logs + block codecs)
+ segments) postings) retention)
+```
+
+Supporting crates cut across the stack: `xerj-common` (shared `Config`, `Schema`,
+`FieldType`, `XerjError`), `xerj-ai` (chunking, embedding proxy, memory store),
+`xerj-cluster` (embedded Raft for cluster metadata), and `xerj-wasm` (transform
+pipeline plugins).
+
+## Crate responsibilities
+
+| Crate | Responsibility |
+|---|---|
+| `xerj-server` | Binary entry point: CLI parsing, config loading, starts the API. |
+| `xerj-api` | Axum HTTP layer — ES-compatible handlers (`es_compat.rs`) and the native API (`native.rs`). |
+| `xerj-engine` | Integration crate: the `Engine` and `Index` structs that tie storage, FTS, vector, and aggregations together. |
+| `xerj-query` | Query DSL: AST (`ast.rs`), ES JSON parser (`parser.rs`), planner, rewriter, executor. |
+| `xerj-storage` | WAL, sharded memtable, segments, version map, index store. |
+| `xerj-fts` | Full-text search: BM25 scoring, analyzer registry, postings lists. |
+| `xerj-vector` | Dense-vector HNSW index for k-NN / semantic search. |
+| `xerj-logs` | Columnar log ingestion and retention. |
+| `xerj-ai` | Text chunking, embedding proxy, memory store. |
+| `xerj-compress` | Block compression codecs (LZ4, Zstd). |
+| `xerj-common` | Shared types: `Config`, `Schema`, `FieldType`, `XerjError`. |
+| `xerj-cluster` | Embedded Raft consensus for cluster metadata (no external dependencies). |
+| `xerj-console-api` | Bundled console backend (dashboards, auth, prefs) mounted at `/_xerj-console/api/v1/*`. |
+| `xerj-wasm` | Pluggable transform pipeline with an optional WASM backend. |
+| `tests/es-compat-yaml` | `es-yaml-runner`: executes ES REST-spec YAML suites against a live server. |
+
+## The search path
+
+A search request flows front-to-back through four crates:
+
+```
+HTTP POST /{index}/_search
+ → xerj-api Axum handler in es_compat.rs
+ → xerj-query parse_request(): raw ES JSON → SearchRequest (QueryNode tree)
+ → xerj-engine Engine::get_index() looks up the named index
+ → xerj-engine Index::search()
+ ├─ memtable scan in-memory BM25 via FtsMemtable
+ ├─ segment scan on-disk FTS via FtsIndexReader + BM25
+ ├─ doc_matches_query() term-level / geo predicate evaluation
+ ├─ run_aggs() aggregation pipeline (columnar fast path for size:0)
+ └─ apply_source_filter(), apply_highlight()
+ → SearchResult → JSON response
+```
+
+A query is matched against **both** the in-memory memtable and the on-disk segments,
+and the results are merged so that freshly written documents are immediately
+searchable. For `size > 0` requests, hit materialization is bounded to the top
+`from + size` candidates. k-NN and hybrid queries fan the vector portion out to the
+HNSW index in `xerj-vector` and combine scores in the same executor.
+
+## The ingest path
+
+Writes go through a write-ahead log into a sharded memtable, then flush to immutable
+segments that are later merged:
+
+```
+PUT /{index}/_doc/{id} or POST /_bulk
+ → xerj-api → xerj-engine → xerj-storage (IndexStore)
+ ├─ WAL append single Mutex<WalWriter>; monotonic seq_no, one fsync per batch
+ ├─ 16-shard memtable shard = xxh3_64(doc_id) & 15 (memtable_shards: Vec<Mutex<Vec<MemEntry>>>)
+ ├─ flush take_memtable_for_flush() drains all shards,
+ │ sorts by WAL seq_no to preserve global order,
+ │ writes an immutable segment (LZ4/Zstd blocks)
+ └─ merge background segment merge compacts small segments;
+ _forcemerge is synchronous + quiescent (ES-like)
+```
+
+The WAL writer is a single mutex so that sequence numbers are globally monotonic;
+lock hold time is kept short (one batched write and fsync). The storage memtable is
+sharded 16 ways to spread write contention. The engine-side FTS memtable is
+currently `Arc<RwLock<FtsMemtable>>`; a `ShardedFtsMemtable` scaffold exists in
+`memtable.rs` for a future refactor.
+
+### Recovery
+
+On restart the engine rebuilds state from disk with no external coordinator:
+
+```
+Engine::new() scans data_dir/
+ → for each index dir: Index::open()
+ ├─ IndexStore::open() replays the WAL into the storage memtable
+ ├─ WalReader::replay() rebuilds the FTS memtable from WAL entries
+ └─ doc_count = segments + memtable
+```
+
+## Wire compatibility and conformance
+
+Elasticsearch compatibility is verified by the `es-yaml-runner` harness against the
+ES 8.13 REST-API-spec YAML suites (search, aggregations, vectors, bulk, indices,
+scroll, cluster). XERJ currently passes 1,326 of 1,329 cases. The YAML tests are the
+source of truth: if XERJ returns a different response than a test expects, XERJ is
+considered wrong. See `engine/CLAUDE.md` for how to run the suites and the full list
+of supported query types and aggregations.
+
+Performance is tracked with a reproducible 91-cell head-to-head matrix against
+Elasticsearch 8.13, published at <https://xerj.org/benchmarks>. The scorecard is
+deliberately honest about both wins and losses.
+
+## Where to read more
+
+- [`engine/CLAUDE.md`](../engine/CLAUDE.md) — build/run/test commands, crate table,
+ and the authoritative Architecture Overview (sharded ingest, WAL, search flow).
+- `engine/releases/v0.1.0/reports/` — dated engineering reports, including
+ `BENCHMARK_VS_ES_2026-06-30_phase2.md` (benchmark methodology and results) and the
+ `ES_YAML_PROGRESS_*` conformance progress reports.
+- Source entry points worth reading first: `engine/crates/xerj-api/src/es_compat.rs`
+ (REST surface), `engine/crates/xerj-query/src/parser.rs` (ES JSON → AST), and
+ `engine/crates/xerj-engine/src/index.rs` (`Index::search` and `flush`).
diff --git a/landing/resources/xerj-sales-kit.zip b/landing/resources/xerj-sales-kit.zip
deleted file mode 100644
index 1513c393c..000000000
Binary files a/landing/resources/xerj-sales-kit.zip and /dev/null differ
diff --git a/xerj-ux/assets/base.css b/xerj-ux/assets/base.css
deleted file mode 100644
index ffcb74958..000000000
--- a/xerj-ux/assets/base.css
+++ /dev/null
@@ -1,1542 +0,0 @@
-/* ============================================================
- XERJ.ai — Base styles
- Only typographic roles and layout. Zero decoration.
- ============================================================ */
-
-*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
-
-html, body {
- background: var(--z-paper);
- color: var(--z-ink);
- min-height: 100vh;
-}
-
-body {
- font-family: var(--font-prose);
- font-size: var(--fs-13);
- font-weight: 400;
- line-height: 1.45;
- font-feature-settings: 'kern', 'ss01', 'cv11';
- -webkit-font-smoothing: antialiased;
- text-rendering: optimizeLegibility;
- padding: var(--page-y) var(--page-x);
- max-width: 1680px;
- margin: 0 auto;
-}
-
-::selection { background: var(--z-accent); color: var(--z-paper); }
-
-a {
- color: inherit;
- text-decoration: none;
- text-underline-offset: 4px;
- text-decoration-thickness: 1px;
-}
-a:hover { text-decoration: underline; }
-
-button {
- background: none;
- border: none;
- padding: 0;
- font: inherit;
- color: inherit;
- cursor: pointer;
- letter-spacing: inherit;
- text-transform: inherit;
-}
-
-/* ---- Typographic roles ----------------------------------- */
-
-.h-scene {
- font-family: var(--font-display);
- font-weight: 900;
- font-size: var(--fs-96);
- line-height: 0.88;
- letter-spacing: var(--track-tight);
- text-transform: uppercase;
-}
-@media (max-width: 1200px) { .h-scene { font-size: 72px; } }
-
-.h-section {
- font-family: var(--font-display);
- font-weight: 800;
- font-size: var(--fs-32);
- line-height: 1;
- letter-spacing: 0.02em;
- text-transform: uppercase;
-}
-
-.key {
- font-family: var(--font-prose);
- font-weight: 600;
- font-size: var(--fs-11);
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- color: var(--z-mute);
-}
-
-.hint {
- font-family: var(--font-data);
- font-size: var(--fs-11);
- color: var(--z-mute);
- letter-spacing: 0.04em;
-}
-
-.mono {
- font-family: var(--font-data);
- font-variant-numeric: tabular-nums;
-}
-
-.num-big {
- font-family: var(--font-display);
- font-weight: 800;
- font-size: var(--fs-56);
- line-height: 0.92;
- letter-spacing: var(--track-tight);
- font-variant-numeric: tabular-nums;
-}
-
-.num-md {
- font-family: var(--font-data);
- font-weight: 700;
- font-size: var(--fs-32);
- line-height: 1;
- font-variant-numeric: tabular-nums;
-}
-
-.num-unit {
- font-family: var(--font-prose);
- font-weight: 500;
- font-size: 0.28em;
- color: var(--z-mute);
- letter-spacing: 0.14em;
- text-transform: uppercase;
- margin-left: 0.4em;
- vertical-align: 0.6em;
-}
-
-.accent { color: var(--z-accent); }
-.faint { color: var(--z-mute); }
-.dim { color: var(--z-mute); }
-
-/* ---- Layout grid ----------------------------------------- */
-
-.canvas {
- display: grid;
- grid-template-columns: repeat(12, 1fr);
- column-gap: var(--gap-x);
- row-gap: var(--gap-y);
- align-items: start;
- position: relative;
-}
-/* Edit mode: uniform cells so drag/drop feels like a real grid. */
-.canvas.edit {
- align-items: stretch;
- grid-auto-rows: minmax(140px, auto);
-}
-
-.panel { min-width: 0; }
-.panel > .key { margin-bottom: 12px; }
-.panel > .h-section { margin-bottom: 16px; }
-
-.stack { display: flex; flex-direction: column; gap: var(--sp-1); }
-.stack-2 { display: flex; flex-direction: column; gap: var(--sp-2); }
-.stack-3 { display: flex; flex-direction: column; gap: var(--sp-3); }
-.row-flex { display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap; }
-
-/* ---- Charts ---------------------------------------------- */
-
-.chart {
- display: block;
- color: var(--z-ink);
- shape-rendering: geometricPrecision;
- overflow: visible;
-}
-.chart line, .chart polyline {
- vector-effect: non-scaling-stroke;
- stroke-linecap: butt;
- stroke-linejoin: round;
-}
-/* Horizontal 1px bars need pixel snapping; diagonals need AA. */
-.chart line { shape-rendering: crispEdges; }
-.chart polyline { shape-rendering: geometricPrecision; }
-
-/* ---- Top-N row ------------------------------------------- */
-
-.row {
- display: grid;
- grid-template-columns: 1fr 88px 1fr 56px;
- gap: var(--sp-2);
- align-items: baseline;
- padding: 5px 0;
- font-family: var(--font-data);
- font-size: var(--fs-13);
- font-variant-numeric: tabular-nums;
- line-height: 1.3;
-}
-.row__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
-.row__val { text-align: right; font-weight: 700; }
-.row__pct { text-align: right; color: var(--z-mute); font-size: var(--fs-11); }
-.row__bar { min-width: 0; display: flex; align-items: center; }
-.row__bar svg { width: 100%; }
-.row.clickable { cursor: pointer; }
-.row.clickable:hover .row__label { color: var(--z-accent); }
-
-/* ---- Distribution ---------------------------------------- */
-
-.dist-bar { width: 100%; height: 10px; margin-bottom: var(--sp-2); }
-.dist-legend {
- display: flex;
- gap: var(--sp-4);
- flex-wrap: wrap;
-}
-.dist-legend > * { min-width: 140px; }
-
-/* ---- Flowband -------------------------------------------- */
-
-/* Horizontal allocation band. Labels sit in an HTML flex layer
- where each item's grow factor equals the raw value, so label
- widths match segment widths exactly. min-width:0 + overflow
- hidden ensures tiny slices don't push big ones out of line. */
-.flowband-wrap { margin: var(--sp-2) 0 var(--sp-4); color: var(--z-ink); }
-.flowband-svg { color: var(--z-ink); }
-.flowband-labels { gap: var(--sp-2); }
-.flowband-labels .fb-seg {
- overflow: hidden;
- padding-right: var(--sp-2);
-}
-.flowband-labels .fb-label {
- font-family: var(--font-prose);
- font-size: var(--fs-11);
- font-weight: 600;
- letter-spacing: 0.08em;
- text-transform: uppercase;
- color: var(--z-ink);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-.flowband-labels .fb-value {
- font-family: var(--font-data);
- font-variant-numeric: tabular-nums;
- font-size: 10px;
- color: var(--z-mute);
- margin-top: 2px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-
-/* ---- Heatmap --------------------------------------------- */
-
-/* Heatmap uses monospace so the inline `width: Xch` cell spans
- actually align — `ch` == character width only for monospace.
- Proportional fonts make $-prefixed cells overflow the slot. */
-.heatmap {
- font-family: var(--font-mono);
- font-size: var(--fs-13);
- line-height: 1.55;
- letter-spacing: 0;
- font-variant-numeric: tabular-nums;
-}
-.heatmap-row { display: block; white-space: nowrap; }
-.heatmap-row .row-label {
- display: inline-block;
- width: 5ch;
- color: var(--z-mute);
- margin-right: 1.5ch;
- font-size: var(--fs-13);
- letter-spacing: 0;
- text-transform: uppercase;
- font-family: var(--font-mono);
-}
-
-/* ---- Series (full-width line) ---------------------------- */
-
-.series { width: 100%; }
-.series-legend {
- display: flex;
- justify-content: space-between;
- margin-top: var(--sp-1);
- font-family: var(--font-data);
- font-size: var(--fs-11);
- color: var(--z-mute);
- letter-spacing: 0.06em;
-}
-.series-legend .mid { flex: 1; text-align: center; }
-
-/* ---- Multiples ------------------------------------------- */
-
-.multiples {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
- gap: var(--sp-3) var(--sp-4);
-}
-.mult {
- display: flex;
- flex-direction: column;
- gap: 4px;
- font-family: var(--font-data);
- font-size: var(--fs-11);
- min-width: 0;
-}
-.mult-head {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- color: var(--z-mute);
- letter-spacing: 0.06em;
- text-transform: uppercase;
-}
-.mult-head .name {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- margin-right: var(--sp-1);
-}
-.mult-head .val { color: var(--z-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
-
-/* ---- Chrome: nav + scene + time ------------------------- */
-
-.nav {
- display: flex;
- align-items: baseline;
- gap: var(--sp-4);
- margin-bottom: var(--sp-8);
- font-family: var(--font-prose);
- font-size: var(--fs-11);
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
-}
-.nav .brand {
- color: var(--z-ink);
- font-family: var(--font-display);
- font-weight: 900;
- font-size: var(--fs-13);
- letter-spacing: 0.24em;
- margin-right: var(--sp-3);
-}
-.nav a { color: var(--z-mute); }
-.nav a:hover { color: var(--z-ink); }
-.nav a.active { color: var(--z-ink); }
-.nav .spacer { flex: 1; }
-.nav .status { color: var(--z-mute); font-family: var(--font-data); font-weight: 500; letter-spacing: 0.1em; margin-left: var(--sp-3); }
-
-/* Secondary nav row — dashboards list, visible only when
- * activeSection === 'dashboards'. Slightly smaller than primary,
- * mono font to distinguish from product-level sections. */
-.nav-sub {
- display: flex;
- align-items: baseline;
- gap: var(--sp-3);
- margin-top: -22px; /* pull up closer to the primary row */
- margin-bottom: var(--sp-8);
- /* No left padding — align with the brand/primary nav column. */
- font-family: var(--font-data);
- font-size: var(--fs-11);
- font-weight: 500;
- letter-spacing: 0.08em;
- text-transform: uppercase;
- flex-wrap: wrap;
-}
-.nav-sub a {
- color: var(--z-mute);
- padding: 2px 0;
-}
-.nav-sub a:hover { color: var(--z-ink); }
-.nav-sub a.active { color: var(--z-accent); }
-
-/* Grouped sub-nav — folders / dropdowns. A group is either "open"
- (its dashboards render inline next to the label) or collapsed
- (just the label, click to switch groups). Typography-only — no
- boxes or borders. */
-.nav-sub .group {
- display: inline-flex;
- align-items: baseline;
- gap: var(--sp-2);
- margin-right: var(--sp-4);
-}
-.nav-sub .group-label {
- background: none;
- border: 0;
- padding: 2px 0;
- font: inherit;
- text-transform: uppercase;
- letter-spacing: 0.12em;
- color: var(--z-mute);
- cursor: pointer;
-}
-.nav-sub .group-label:hover { color: var(--z-ink); }
-.nav-sub .group.open .group-label {
- color: var(--z-ink);
- font-weight: 700;
-}
-.nav-sub .group.open .group-label::after {
- content: ' :';
- color: var(--z-mute);
- margin-left: 2px;
- font-weight: 400;
-}
-.nav-sub .group .members {
- display: inline-flex;
- align-items: baseline;
- gap: var(--sp-3);
-}
-
-/* Theme toggle — text only, matches .time button styling */
-.theme {
- display: inline-flex;
- align-items: baseline;
- gap: 8px;
- font-family: var(--font-data);
- font-size: var(--fs-11);
- font-weight: 500;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
-}
-.theme .dash { color: var(--z-faint); }
-.theme button { color: var(--z-mute); }
-.theme button:hover { color: var(--z-ink); }
-.theme button.active { color: var(--z-accent); }
-
-.scene {
- margin-bottom: var(--sp-6);
-}
-.scene .kicker {
- margin-bottom: var(--sp-2);
- display: flex;
- gap: var(--sp-2);
- align-items: baseline;
-}
-.scene .kicker .dash { color: var(--z-faint); }
-
-.time, .refresh {
- display: flex;
- align-items: baseline;
- gap: var(--sp-3);
- font-family: var(--font-data);
- font-size: var(--fs-11);
- font-weight: 500;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
-}
-.time .key, .refresh .key { margin: 0 var(--sp-2) 0 0; color: var(--z-mute); }
-.time button, .refresh button { color: var(--z-mute); background: none; border: 0; font: inherit; cursor: pointer; }
-.time button:hover, .refresh button:hover { color: var(--z-ink); }
-.time button.active, .refresh button.active { color: var(--z-accent); }
-
-/* Absolute time range inputs, only shown when RANGE = CUSTOM. */
-.time .custom-range {
- display: inline-flex;
- align-items: baseline;
- gap: var(--sp-2);
- margin-left: var(--sp-3);
-}
-.time .custom-range input[type="datetime-local"] {
- background: none;
- border: 0;
- border-bottom: 1px solid var(--z-line);
- color: var(--z-ink);
- font: inherit;
- font-family: var(--font-mono);
- font-size: var(--fs-11);
- padding: 2px 0;
- color-scheme: dark;
- outline: none;
-}
-.time .custom-range input[type="datetime-local"]:focus { border-bottom-color: var(--z-accent); }
-.time .custom-range .dash { color: var(--z-mute); }
-
-/* Row wrapping the time + refresh controls at the top of a dashboard. */
-.dash-ctrls {
- display: flex;
- align-items: baseline;
- gap: var(--sp-8);
- margin-bottom: var(--sp-6);
- flex-wrap: wrap;
-}
-
-/* -----------------------------------------------------------
- * Filter bar — global dashboard filters. Two rows:
- * .kql — a frameless text input for KQL-lite expressions
- * .pills — the current filter pills + CLEAR ALL
- * Corpus evidence: top Kibana pain is filters scoped to
- * visualizations, not the dashboard. OR filter support is
- * GH#3693, the 41-score multi-select (OR) ask.
- * ----------------------------------------------------------- */
-.filter-bar {
- display: block;
- margin-bottom: var(--sp-6);
- font-family: var(--font-data);
- font-size: var(--fs-11);
- font-weight: 500;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
-}
-.filter-bar .key { color: var(--z-mute); margin-right: var(--sp-2); }
-.filter-bar .hint { font-weight: 400; }
-
-.filter-bar .kql {
- display: flex;
- align-items: baseline;
- gap: var(--sp-2);
- margin-bottom: var(--sp-3);
-}
-.filter-bar .kql input {
- flex: 1;
- background: none;
- border: 0;
- border-bottom: 1px solid var(--z-line);
- font-family: var(--font-mono);
- font-size: var(--fs-13);
- color: var(--z-ink);
- padding: 4px 0;
- text-transform: none;
- letter-spacing: 0;
- outline: none;
- min-width: 0;
-}
-.filter-bar .kql input:focus { border-bottom-color: var(--z-accent); }
-.filter-bar .kql input::placeholder { color: var(--z-mute); opacity: 0.6; }
-
-.filter-bar .pills {
- display: flex;
- align-items: baseline;
- gap: var(--sp-3);
- flex-wrap: wrap;
-}
-.filter-bar .pill {
- display: inline-flex;
- align-items: baseline;
- gap: 2px;
- color: var(--z-accent);
-}
-.filter-bar .pill .field { opacity: 0.72; }
-.filter-bar .pill .eq { opacity: 0.5; margin: 0 2px; }
-.filter-bar .pill .or { opacity: 0.45; margin: 0 4px; font-size: 10px; }
-.filter-bar .pill .chip {
- display: inline-flex;
- align-items: baseline;
- gap: 2px;
- padding: 0;
- color: inherit;
- background: none;
- border: 0;
- font: inherit;
- cursor: pointer;
-}
-.filter-bar .pill .chip .value { font-weight: 600; }
-.filter-bar .pill .chip .x { margin-left: 4px; opacity: 0.55; }
-.filter-bar .pill .chip:hover .x { opacity: 1; color: var(--z-ink); }
-.filter-bar .clear {
- color: var(--z-mute);
- background: none;
- border: 0;
- font: inherit;
- cursor: pointer;
- padding: 0;
- margin-left: auto;
-}
-.filter-bar .clear:hover { color: var(--z-ink); }
-
-/* Small arrow hint on a panel eyebrow that signals a drilldown target. */
-.drill-hint {
- margin-left: var(--sp-3);
- color: var(--z-accent);
- font-size: var(--fs-11);
-}
-
-/* Typography-first empty state used when a panel's data is blank. */
-.panel-empty {
- padding: var(--sp-6) 0;
- font-size: var(--fs-11);
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
-}
-
-/* Retry button on dashboard-level error. */
-.text-btn {
- background: none;
- border: 0;
- font: inherit;
- color: var(--z-accent);
- cursor: pointer;
- text-transform: uppercase;
- letter-spacing: var(--track-ui);
- font-size: var(--fs-13);
-}
-.text-btn:hover { color: var(--z-ink); }
-
-/* Saved views row — pinnable named snapshots per dashboard. */
-.saved-views {
- display: flex;
- align-items: baseline;
- gap: var(--sp-3);
- margin-bottom: var(--sp-6);
- font-family: var(--font-data);
- font-size: var(--fs-11);
- font-weight: 500;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- flex-wrap: wrap;
-}
-.saved-views .key { color: var(--z-mute); margin-right: var(--sp-2); }
-.saved-views .hint { font-weight: 400; }
-.saved-views .view { color: var(--z-accent); background: none; border: 0; font: inherit; cursor: pointer; }
-.saved-views .view:hover { color: var(--z-ink); }
-.saved-views .sep { color: var(--z-mute); opacity: 0.4; }
-.saved-views .x { background: none; border: 0; font: inherit; color: var(--z-mute); cursor: pointer; opacity: 0.5; }
-.saved-views .x:hover { color: var(--z-accent); opacity: 1; }
-.saved-views .save { margin-left: auto; color: var(--z-mute); background: none; border: 0; font: inherit; cursor: pointer; }
-.saved-views .save:hover { color: var(--z-accent); }
-
-/* Cluster selector. */
-.cluster-ctrl {
- display: flex;
- align-items: baseline;
- gap: var(--sp-3);
- font-family: var(--font-data);
- font-size: var(--fs-11);
- font-weight: 500;
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
-}
-.cluster-ctrl .key { color: var(--z-mute); margin-right: var(--sp-2); }
-.cluster-ctrl button { color: var(--z-mute); background: none; border: 0; font: inherit; cursor: pointer; }
-.cluster-ctrl button:hover { color: var(--z-ink); }
-.cluster-ctrl button.active { color: var(--z-accent); }
-
-.footer {
- margin-top: var(--sp-12);
- display: flex;
- justify-content: space-between;
- font-family: var(--font-data);
- font-size: var(--fs-11);
- color: var(--z-mute);
- letter-spacing: 0.08em;
- text-transform: uppercase;
-}
-
-/* ---- Delta arrows ---------------------------------------- */
-
-.delta {
- font-family: var(--font-data);
- font-size: var(--fs-13);
- font-weight: 700;
- font-variant-numeric: tabular-nums;
- letter-spacing: 0;
-}
-.delta.good { color: var(--z-accent); }
-.delta.bad { color: var(--z-ink); }
-.delta.meh { color: var(--z-mute); }
-
-/* ---- Text utility ---------------------------------------- */
-
-.u-right { text-align: right; }
-.u-mute { color: var(--z-mute); }
-
-/* ---- Recent / event list --------------------------------- */
-
-.events {
- display: flex;
- flex-direction: column;
- gap: 2px;
- font-family: var(--font-data);
- font-size: var(--fs-13);
- font-variant-numeric: tabular-nums;
-}
-.events .ev {
- display: grid;
- grid-template-columns: 14ch 8ch 1fr;
- gap: var(--sp-2);
- padding: 3px 0;
- white-space: nowrap;
-}
-.events .ev .when { color: var(--z-mute); font-size: var(--fs-11); }
-.events .ev .sev { font-weight: 700; }
-.events .ev .sev.err { color: var(--z-accent); }
-.events .ev .msg { overflow: hidden; text-overflow: ellipsis; }
-
-/* ---- Stacked rows ---------------------------------------- */
-
-.stacked { display: flex; flex-direction: column; }
-.stk-row {
- display: grid;
- grid-template-columns: 14ch 1fr 10ch;
- gap: var(--sp-2);
- align-items: baseline;
- padding: 5px 0;
- font-family: var(--font-data);
- font-size: var(--fs-13);
-}
-.stk-bar { width: 100%; }
-
-/* ---- Data table ------------------------------------------ */
-
-.tbl {
- display: flex;
- flex-direction: column;
- font-family: var(--font-data);
- font-size: var(--fs-13);
- font-variant-numeric: tabular-nums;
-}
-.tbl-row {
- display: grid;
- grid-template-columns: repeat(var(--tbl-cols, 3), minmax(0, 1fr));
- gap: var(--sp-2);
- padding: 6px 0;
-}
-.tbl-row.tbl-head {
- color: var(--z-mute);
- font-family: var(--font-prose);
- font-size: var(--fs-11);
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- margin-bottom: 6px;
-}
-
-/* ---- SearchBox / Hits / Facets / QueryDSL / Plan --------- */
-
-.sbox {
- display: flex;
- flex-direction: column;
- gap: var(--sp-3);
-}
-.sbox-row {
- display: flex;
- align-items: baseline;
- gap: 6px;
- flex-wrap: wrap;
- font-family: var(--font-data);
- font-size: var(--fs-11);
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
-}
-.sbox-row .spacer { flex: 1; }
-.sbox-row .sep { color: var(--z-faint); }
-.sbox-row button { color: var(--z-mute); padding: 0 2px; }
-.sbox-row button:hover { color: var(--z-ink); }
-.sbox-row button.active { color: var(--z-accent); }
-.sbox-input {
- font-family: var(--font-data);
- font-size: var(--fs-32);
- letter-spacing: 0;
- text-transform: none;
- gap: var(--sp-2);
- padding-top: var(--sp-2);
-}
-.sbox-input .prompt { font-weight: 700; }
-.sbox-input input {
- flex: 1;
- background: none;
- border: none;
- outline: none;
- color: var(--z-ink);
- font: inherit;
- padding: 0;
- caret-color: var(--z-accent);
- font-variant-numeric: tabular-nums;
-}
-.sbox-input input::placeholder { color: var(--z-faint); }
-
-/* Hits list */
-.hits-meta {
- display: flex;
- align-items: baseline;
- margin-bottom: var(--sp-3);
- gap: var(--sp-2);
-}
-.hits-meta .hits-action {
- font-family: var(--font-prose);
- font-size: var(--fs-11);
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- color: var(--z-mute);
- margin-left: var(--sp-2);
-}
-.hits-meta .hits-action:hover { color: var(--z-accent); }
-.hits-list { display: flex; flex-direction: column; gap: var(--sp-2); }
-.hit {
- display: flex;
- flex-direction: column;
- gap: 2px;
- padding: 4px 0;
- font-family: var(--font-data);
- font-size: var(--fs-13);
-}
-.hit-head {
- display: grid;
- grid-template-columns: 14ch 16ch 8ch 14ch 1fr;
- gap: var(--sp-2);
- font-size: var(--fs-11);
- font-variant-numeric: tabular-nums;
-}
-.hit-head.no-time { grid-template-columns: 14ch 16ch 8ch 1fr; }
-.hit-headrow {
- margin-bottom: 6px;
- padding-bottom: 4px;
- font-family: var(--font-prose);
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- color: var(--z-mute);
-}
-.hit-headrow .col-sort {
- text-align: left;
- color: var(--z-mute);
- font: inherit;
- letter-spacing: inherit;
- text-transform: inherit;
-}
-.hit-headrow .col-sort:hover { color: var(--z-ink); }
-.hit-headrow .col-sort.active { color: var(--z-accent); }
-.hit-cell-clickable {
- text-align: left;
- font: inherit;
- color: var(--z-mute);
- padding: 0;
- cursor: pointer;
-}
-.hit-cell-clickable:hover { color: var(--z-accent); }
-.hit-body {
- color: var(--z-ink);
- font-size: var(--fs-13);
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-/* Filter pills inside SearchBox */
-.sbox-pills {
- flex-wrap: wrap;
- gap: 6px;
- text-transform: none;
- letter-spacing: 0;
- font-size: var(--fs-13);
-}
-.sbox-pills .key {
- text-transform: uppercase;
- letter-spacing: var(--track-label);
- font-size: var(--fs-11);
-}
-.pill {
- font-family: var(--font-data);
- font-size: var(--fs-13);
- color: var(--z-mute);
- padding: 0 4px;
- display: inline-flex;
- align-items: baseline;
- gap: 4px;
-}
-.pill .pill-field { color: var(--z-mute); }
-.pill .pill-eq { color: var(--z-faint); }
-.pill .pill-val { color: var(--z-ink); font-weight: 700; }
-.pill .pill-x { color: var(--z-mute); margin-left: 4px; font-size: var(--fs-11); }
-.pill:hover { color: var(--z-accent); }
-.pill:hover .pill-x { color: var(--z-accent); }
-.pill-clear {
- font-family: var(--font-prose);
- font-size: var(--fs-11);
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- color: var(--z-mute);
- padding: 0 4px;
- margin-left: var(--sp-2);
-}
-.pill-clear:hover { color: var(--z-accent); }
-
-/* Facet filter rows */
-.facet { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--sp-4); }
-.facet-row {
- display: grid;
- grid-template-columns: 1fr 70px 180px;
- gap: var(--sp-2);
- align-items: baseline;
- padding: 4px 0;
- font-family: var(--font-data);
- font-size: var(--fs-13);
- color: var(--z-mute);
- text-align: left;
- font-variant-numeric: tabular-nums;
- text-transform: none;
- letter-spacing: 0;
-}
-.facet-row:hover { color: var(--z-ink); }
-.facet-row.active { color: var(--z-accent); }
-.facet-count { text-align: right; }
-.facet-bar { width: 100%; }
-.facet-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
-
-/* Query DSL block */
-.qdsl {
- font-family: var(--font-data);
- font-size: var(--fs-13);
- line-height: 1.55;
- color: var(--z-mute);
- white-space: pre-wrap;
- word-break: break-word;
- margin: 0;
-}
-.qdsl .tok-key { color: var(--z-mute); }
-.qdsl .tok-str { color: var(--z-ink); }
-.qdsl .tok-num { color: var(--z-accent); font-weight: 700; }
-.qdsl .tok-kw { color: var(--z-accent); }
-
-/* Query plan tree */
-.plan-row {
- font-family: var(--font-data);
- font-size: var(--fs-13);
- line-height: 1.55;
- white-space: nowrap;
- font-variant-numeric: tabular-nums;
- padding: 1px 0;
-}
-.plan-op { font-weight: 700; letter-spacing: 0.04em; }
-
-/* Citations — link panels back to real user feedback artifacts */
-.cites { display: flex; flex-direction: column; }
-.cite {
- display: grid;
- grid-template-columns: 8ch 6ch 1fr 2ch;
- gap: var(--sp-2);
- align-items: baseline;
- padding: 5px 0;
- font-family: var(--font-data);
- font-size: var(--fs-13);
- color: var(--z-mute);
- text-decoration: none;
- border: none;
-}
-.cite:hover { color: var(--z-ink); text-decoration: none; }
-.cite-src { font-size: var(--fs-11); letter-spacing: 0.08em; }
-.cite-score { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
-.cite-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
-.cite-arrow { text-align: right; }
-
-/* MetricTile dense grid */
-.mtiles {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
- gap: var(--sp-3) var(--sp-4);
-}
-.mtile { display: flex; flex-direction: column; gap: 4px; }
-.mtile-head { display: flex; justify-content: space-between; align-items: baseline; }
-.mtile-val { font-size: var(--fs-20); font-weight: 700; color: var(--z-ink); font-variant-numeric: tabular-nums; }
-
-/* Caption under scene header */
-.caption {
- font-family: var(--font-prose);
- font-size: var(--fs-13);
- color: var(--z-mute);
- max-width: 92ch;
- margin-bottom: var(--sp-6);
-}
-
-/* Inline-editable scene title (h1.editable in edit mode) */
-.h-scene.editable {
- outline: none;
- cursor: text;
- caret-color: var(--z-accent);
-}
-.h-scene.editable:hover {
- text-shadow: 0 1px 0 var(--z-accent);
-}
-.h-scene.editable:focus {
- color: var(--z-accent);
-}
-
-/* -------- MANAGE view ---------------------------------- */
-
-/* Dashboard list table */
-.mg-table {
- display: flex;
- flex-direction: column;
- font-family: var(--font-data);
- font-size: var(--fs-13);
- font-variant-numeric: tabular-nums;
-}
-.mg-row {
- display: grid;
- grid-template-columns: 3ch 1fr 10ch 16ch minmax(380px, auto);
- gap: var(--sp-2);
- align-items: baseline;
- padding: 6px 0;
-}
-.mg-row.mg-head {
- color: var(--z-mute);
- font-family: var(--font-prose);
- font-size: var(--fs-11);
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- padding-bottom: 8px;
-}
-.mg-row[draggable="true"] { cursor: grab; }
-.mg-row[draggable="true"]:hover { color: var(--z-ink); }
-.mg-row.mg-row-hidden .mg-name { color: var(--z-mute); text-decoration: line-through; text-decoration-thickness: 1px; }
-.mg-row .mg-order { color: var(--z-mute); }
-.mg-row .mg-name { color: var(--z-ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
-.mg-row .mg-kind { font-size: var(--fs-11); }
-.mg-row .mg-src { font-size: var(--fs-11); color: var(--z-mute); }
-.mg-row .mg-actions {
- display: flex;
- gap: 6px;
- justify-content: flex-end;
-}
-
-/* Generic small text button used across the MANAGE view */
-.mg-btn {
- font-family: var(--font-prose);
- font-size: var(--fs-11);
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- color: var(--z-mute);
- padding: 2px 6px;
-}
-.mg-btn:hover { color: var(--z-ink); }
-.mg-btn.mg-btn-danger { color: var(--z-mute); }
-.mg-btn.mg-btn-danger:hover { color: var(--z-accent); }
-.mg-btn.mg-btn-disabled { color: var(--z-faint); cursor: default; }
-.mg-btn.mg-btn-disabled:hover { color: var(--z-faint); }
-
-/* + NEW DASHBOARD row */
-.mg-new-row {
- display: flex;
- align-items: baseline;
- gap: 6px;
- flex-wrap: wrap;
- font-family: var(--font-prose);
- font-size: var(--fs-11);
- letter-spacing: var(--track-label);
- text-transform: uppercase;
- padding-top: var(--sp-3);
-}
-.mg-new-row .sep { color: var(--z-faint); margin: 0 4px; }
-.mg-new-row .mg-new-templates { display: inline-flex; gap: 6px; flex-wrap: wrap; }
-
-/* Clusters (cards as text rows, no frames) */
-.mg-clusters {
- display: flex;
- flex-direction: column;
- font-family: var(--font-data);
- font-size: var(--fs-13);
- font-variant-numeric: tabular-nums;
-}
-.mg-cluster {
- display: grid;
- grid-template-columns: 3ch 14ch minmax(26ch, 1fr) 10ch 14ch 10ch;
- gap: var(--sp-2);
- padding: 6px 0;
- align-items: baseline;
- font: inherit;
- text-align: left;
- color: var(--z-mute);
-}
-.mg-cluster:hover { color: var(--z-ink); }
-.mg-cluster.mg-cluster-active { color: var(--z-ink); }
-.mg-cluster.mg-cluster-active .mg-cluster-name { color: var(--z-accent); }
-
-/* Indices + fields sub-tables */
-.mg-idx-table, .mg-fld-table {
- display: flex;
- flex-direction: column;
- font-family: var(--font-data);
- font-size: var(--fs-13);
- font-variant-numeric: tabular-nums;
-}
-.mg-idx-row, .mg-fld-row {
- display: grid;
- gap: var(--sp-2);
- padding: 4px 0;
-}
-.mg-idx-row { grid-template-columns: minmax(20ch, 1fr) 8ch 10ch 8ch 10ch; }
-.mg-idx-head, .mg-fld-head {
- color: var(--z-mute);
- font-family: var(--font-prose);
- font-size: var(--fs-11);
- font-weight: 600;
- letter-spacing: var(--track-label);
- text-transform: uppercase;
-}
-.mg-fld-row { grid-template-columns: minmax(18ch, 1fr) 8ch 12ch 14ch 6ch; }
-.mg-idx-btn {
- text-align: left;
- font: inherit;
- color: var(--z-mute);
- padding: 0;
-}
-.mg-idx-btn:hover { color: var(--z-ink); }
-.mg-idx-btn.active { color: var(--z-accent); }
-
-/* Settings rows */
-.mg-settings { display: flex; flex-direction: column; gap: var(--sp-2); font-family: var(--font-data); font-size: var(--fs-13); }
-.mg-setting {
- display: grid;
- grid-template-columns: 22ch minmax(20ch, 1fr) 1fr;
- gap: var(--sp-3);
- align-items: baseline;
-}
-.mg-setting .key { margin: 0; }
-
-/* ---- Edit mode ------------------------------------------- */
-/*
- * Edit-mode affordances (dashed outlines, drop guides, handles)
- * are the ONE place in the UX system where we allow decorative
- * 1px lines that are not data. They are transient: visible only
- * while editing, gone the moment you exit edit mode.
- *
- * The "police strip" frame is a fixed-position overlay that lives
- * INSIDE the page's existing 56px y / 64px x margins, so entering
- * edit mode does NOT shift content. Pixel-perfect parity between
- * view and edit mode: the only thing that changes is the frame.
- */
-
-.edit-ctrl {
- display: inline-flex;
- align-items: baseline;
- gap: 8px;
- margin-right: var(--sp-3);
- font-family: var(--font-data);
- font-size: var(--fs-11);
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
-}
-.edit-ctrl .dash { color: var(--z-faint); }
-.edit-ctrl button { color: var(--z-mute); }
-.edit-ctrl button:hover { color: var(--z-ink); }
-.edit-ctrl button.active { color: var(--z-accent); }
-
-/* The 1px dashed accent frame around the viewport edge. */
-.edit-frame {
- position: fixed;
- /* Start below the nav + sub-nav so EDIT clearly belongs to the
- dashboard content, not the main menu. 150px covers the primary
- nav row (56..75) + sub-nav (117..137) + a small gap. */
- top: 150px;
- right: 14px;
- bottom: 14px;
- left: 14px;
- border: 1px dashed var(--z-accent);
- pointer-events: none;
- z-index: 50;
-}
-
-/* Top strip — EDIT MODE label + drag/resize/remove tips. Lives in the
- page's top padding, never overlaps content. */
-.edit-strip-top {
- position: fixed;
- /* Sit just inside the top edge of the .edit-frame (top: 150px). */
- top: 158px;
- left: 28px;
- right: 28px;
- display: flex;
- gap: var(--sp-3);
- align-items: baseline;
- font-family: var(--font-data);
- font-size: var(--fs-11);
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- pointer-events: none;
- z-index: 51;
- padding: 0 8px;
- background: var(--z-paper);
-}
-.edit-strip-top .marker {
- color: var(--z-accent);
- font-weight: 700;
- letter-spacing: 0.18em;
-}
-.edit-strip-top .tips {
- color: var(--z-mute);
- flex: 1;
-}
-.edit-strip-top .tips .key-bind {
- color: var(--z-ink);
-}
-.edit-strip-top .meta {
- color: var(--z-mute);
-}
-
-/* Bottom strip — numbered column header, aligned to the canvas grid so
- you can read which column a panel sits in. */
-.edit-strip-bottom {
- position: fixed;
- bottom: 22px;
- left: var(--page-x);
- right: var(--page-x);
- max-width: calc(1680px - var(--page-x) * 2);
- margin: 0 auto;
- display: grid;
- grid-template-columns: repeat(12, 1fr);
- column-gap: var(--gap-x);
- font-family: var(--font-data);
- font-size: var(--fs-11);
- letter-spacing: 0.08em;
- color: var(--z-mute);
- text-transform: uppercase;
- pointer-events: none;
- z-index: 51;
- padding: 4px 8px;
- background: var(--z-paper);
-}
-.edit-strip-bottom span {
- border-left: 1px solid var(--z-faint);
- padding-left: 6px;
-}
-.edit-strip-bottom span:last-child {
- border-right: 1px solid var(--z-faint);
- padding-right: 6px;
-}
-
-.panel.edit {
- outline: 1px dashed var(--z-mute);
- outline-offset: 10px;
- position: relative;
- z-index: 1;
- transition: outline-color 120ms;
-}
-.panel.edit:hover { outline-color: var(--z-ink); }
-.panel.edit.dragging { opacity: 0.35; }
-.panel.edit.drop-before { outline-color: var(--z-accent); }
-.panel.edit.drop-after { outline-color: var(--z-accent); }
-
-/* (legacy inline grid header removed; now lives in .edit-strip-bottom) */
-
-/* Full-canvas 12-column overlay inside the grid */
-.edit-grid {
- position: absolute;
- inset: 0;
- pointer-events: none;
- display: grid;
- grid-template-columns: repeat(12, 1fr);
- column-gap: var(--gap-x);
- z-index: 0;
-}
-.edit-grid span {
- border-left: 1px dashed var(--z-faint);
-}
-.edit-grid span:last-child {
- border-right: 1px dashed var(--z-faint);
-}
-
-.panel-edit {
- position: absolute;
- top: -30px;
- left: 0;
- right: 0;
- display: flex;
- gap: var(--sp-3);
- align-items: baseline;
- font-family: var(--font-data);
- font-size: var(--fs-11);
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- z-index: 3;
- pointer-events: none;
-}
-.panel-edit > * { pointer-events: auto; }
-.panel-edit .colsLabel {
- color: var(--z-accent);
- font-weight: 700;
- letter-spacing: 0.1em;
-}
-.panel-edit .colsLabel .slash { color: var(--z-mute); margin: 0 2px; font-weight: 400; }
-.panel-edit .colsLabel .max { color: var(--z-mute); font-weight: 400; }
-.panel-edit .meter {
- display: inline-block;
- width: 96px;
- height: 6px;
-}
-.panel-edit .meter line { vector-effect: non-scaling-stroke; }
-.panel-edit .sizes { display: inline-flex; gap: 4px; }
-.panel-edit .sizes .sep { color: var(--z-faint); }
-.panel-edit .sizes button { color: var(--z-mute); padding: 0 2px; }
-.panel-edit .sizes button:hover { color: var(--z-ink); }
-.panel-edit .sizes button.active { color: var(--z-accent); font-weight: 700; }
-.panel-edit .remove {
- margin-left: auto;
- color: var(--z-mute);
- font-family: var(--font-data);
- font-size: var(--fs-13);
-}
-.panel-edit .remove:hover { color: var(--z-accent); }
-
-/* The +ADD picker at the bottom of the canvas */
-.add-picker {
- margin-top: var(--sp-8);
- display: flex;
- align-items: baseline;
- gap: var(--sp-3);
- flex-wrap: wrap;
- font-family: var(--font-data);
- font-size: var(--fs-11);
- letter-spacing: var(--track-ui);
- text-transform: uppercase;
- padding-top: var(--sp-3);
- border-top: 1px dashed var(--z-faint);
-}
-.add-picker .types { display: inline-flex; gap: 6px; flex-wrap: wrap; }
-.add-picker .types .sep { color: var(--z-faint); }
-.add-picker .types button {
- color: var(--z-mute);
- padding: 2px 0;
-}
-.add-picker .types button:hover { color: var(--z-accent); }
-
-/* ============================================================
- Mobile / tablet responsive rules
- Desktop-first product: the dashboards were designed for wide
- screens. On narrow screens we collapse the 12-col canvas to
- a single column, tighten gutters, and give every wide data
- block its own horizontal scroll so the page never side-scrolls.
- ============================================================ */
-
-@media (max-width: 1100px) {
- :root { --page-x: 40px; --gap-x: 28px; }
- .h-scene { font-size: 64px; }
-}
-
-@media (max-width: 900px) {
- :root {
- --page-x: 20px;
- --page-y: 32px;
- --gap-x: 16px;
- --gap-y: 32px;
- }
- html, body { overflow-x: hidden; }
-
- .h-scene { font-size: 48px; line-height: 0.92; }
- .h-section { font-size: var(--fs-20); }
- .num-big { font-size: var(--fs-32); }
- .num-md { font-size: var(--fs-20); }
-
- /* Nav wraps to multiple rows. Status hides on tightest width. */
- .nav {
- flex-wrap: wrap;
- row-gap: 8px;
- column-gap: var(--sp-2);
- font-size: 10px;
- letter-spacing: 0.08em;
- }
- .nav .brand { flex: 1 0 100%; font-size: var(--fs-13); margin-right: 0; }
- .nav .spacer { display: none; }
- .nav .status { margin-left: auto; }
- .nav-sub { margin-top: 0; }
-
- /* Time / refresh / filter rows wrap. */
- .dash-ctrls { gap: var(--sp-3) var(--sp-4); }
- .time, .refresh, .theme { font-size: 10px; }
-
- /* Canvas collapses from 12 columns to 1. We also need to
- override any inline `grid-column: span N` that the dashboard
- renderer writes per-panel. */
- .canvas {
- grid-template-columns: 1fr;
- column-gap: 0;
- row-gap: var(--sp-6);
- }
- .canvas > * { grid-column: 1 / -1 !important; }
- .canvas.edit { grid-auto-rows: auto; }
-
- .panel { min-width: 0; max-width: 100%; }
-
- /* Wide data blocks: scroll inside their panel. */
- .heatmap,
- .multiples,
- .chart,
- .panel svg {
- max-width: 100%;
- }
- .heatmap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
- .multiples { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
-
- /* Top-N row: shorten the bar column so labels + values fit. */
- .row {
- grid-template-columns: 1fr 64px 56px 40px;
- font-size: var(--fs-11);
- gap: 6px;
- }
-
- /* Add picker wraps neatly. */
- .add-picker { font-size: 10px; }
-}
-
-@media (max-width: 480px) {
- :root { --page-x: 14px; }
- .h-scene { font-size: 36px; }
- .nav .status { display: none; }
- .row { grid-template-columns: 1fr 56px 40px; }
- .row .row__bar { display: none; }
-}
-
-/* ============================================================
- Mobile preview — iPhone device frame with single-column layout.
- Toggled by the MOBILE button in the nav chrome. The `.mobile-preview`
- class on `<html>` activates everything below.
- ============================================================ */
-
-.mobile-ctrl button {
- font: inherit;
- letter-spacing: inherit;
- text-transform: inherit;
- color: var(--z-mute);
- background: none;
- border: none;
- cursor: pointer;
- padding: 2px 0;
-}
-.mobile-ctrl button:hover { color: var(--z-ink); }
-.mobile-ctrl button.active { color: var(--z-accent); }
-
-/* iPhone 15 Pro frame — realistic proportions and details.
- 393×852 CSS px mapped to a centered fixed-width container.
- The frame is purely decorative (border-radius + shadows). */
-
-.iphone-frame {
- display: none;
-}
-
-html.mobile-preview .iphone-frame {
- display: block;
- position: relative;
- width: 393px;
- margin: var(--sp-6) auto var(--sp-8);
- background: #1a1a1a;
- border-radius: 48px;
- padding: 14px;
- box-shadow:
- 0 0 0 2px #333,
- 0 0 0 4px #111,
- 0 20px 60px rgba(0,0,0,0.5);
-}
-
-/* Notch / Dynamic Island */
-.iphone-notch {
- width: 120px;
- height: 28px;
- background: #1a1a1a;
- border-radius: 14px;
- margin: 0 auto 0;
- position: relative;
- z-index: 10;
-}
-
-/* Screen area */
-.iphone-screen {
- background: var(--z-paper);
- border-radius: 36px;
- overflow-y: auto;
- overflow-x: hidden;
- height: 760px;
- padding: 8px 16px 16px;
- -webkit-overflow-scrolling: touch;
- scrollbar-width: none;
-}
-.iphone-screen::-webkit-scrollbar { display: none; }
-
-/* Home bar indicator */
-.iphone-home-bar {
- width: 140px;
- height: 5px;
- background: var(--z-mute);
- border-radius: 3px;
- margin: 10px auto 0;
- opacity: 0.5;
-}
-
-/* Inside the phone frame — force single-column, scale down type */
-html.mobile-preview .iphone-screen .h-scene {
- font-size: 36px;
- line-height: 0.92;
-}
-html.mobile-preview .iphone-screen .h-section {
- font-size: var(--fs-16);
-}
-html.mobile-preview .iphone-screen .canvas {
- grid-template-columns: 1fr !important;
- column-gap: 0;
- row-gap: var(--sp-4);
-}
-html.mobile-preview .iphone-screen .canvas > * {
- grid-column: 1 / -1 !important;
-}
-html.mobile-preview .iphone-screen .panel {
- min-width: 0;
- max-width: 100%;
-}
-html.mobile-preview .iphone-screen .num-big {
- font-size: var(--fs-32);
-}
-html.mobile-preview .iphone-screen .num-md {
- font-size: var(--fs-20);
-}
-html.mobile-preview .iphone-screen .key {
- font-size: 10px;
-}
-html.mobile-preview .iphone-screen .hint {
- font-size: 10px;
-}
-html.mobile-preview .iphone-screen .heatmap {
- overflow-x: auto;
- font-size: 10px;
-}
-html.mobile-preview .iphone-screen .row {
- grid-template-columns: 1fr 48px 40px;
- font-size: var(--fs-11);
- gap: 4px;
-}
-html.mobile-preview .iphone-screen .row .row__bar { display: none; }
-html.mobile-preview .iphone-screen .multiples {
- grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
-}
-html.mobile-preview .iphone-screen .chart {
- max-width: 100%;
-}
-html.mobile-preview .iphone-screen .series-legend {
- font-size: 9px;
-}
-html.mobile-preview .iphone-screen .scene {
- margin-bottom: var(--sp-3);
-}
-html.mobile-preview .iphone-screen .scene .kicker {
- font-size: 9px;
-}
-html.mobile-preview .iphone-screen .time,
-html.mobile-preview .iphone-screen .refresh,
-html.mobile-preview .iphone-screen .filter-bar {
- font-size: 9px;
-}
-html.mobile-preview .iphone-screen .dash-ctrls {
- gap: var(--sp-2);
- flex-wrap: wrap;
-}
-html.mobile-preview .iphone-screen .dist-legend {
- gap: var(--sp-2) var(--sp-3);
-}
-html.mobile-preview .iphone-screen .dist-legend > * {
- min-width: 80px;
-}
-
-/* Hide nav-sub inside the phone (too wide). Show a compact
- dashboard name instead via the scene header. */
-html.mobile-preview .nav-sub {
- display: none;
-}
-
-/* Status bar simulation inside the screen */
-.iphone-screen::before {
- content: '9:41';
- display: block;
- text-align: center;
- font-family: var(--font-prose);
- font-size: 12px;
- font-weight: 600;
- color: var(--z-ink);
- padding: 4px 0 8px;
- letter-spacing: 0.02em;
-}
diff --git a/xerj-ux/assets/tokens.css b/xerj-ux/assets/tokens.css
deleted file mode 100644
index a314c3aa5..000000000
--- a/xerj-ux/assets/tokens.css
+++ /dev/null
@@ -1,67 +0,0 @@
-/* ============================================================
- XERJ.ai — Design tokens
- The complete token list. Do not add new tokens without
- deleting an old one. See UX_BOOK.md §2.
- ============================================================ */
-
-:root {
- /* Color — five values, no more */
- --z-paper: #0D0D0D;
- --z-ink: #E0E0E0;
- --z-mute: #555555;
- --z-faint: #2A2A2A;
- --z-accent: #EEBB00;
-
- /* Type families */
- --font-display: 'Big Shoulders Display', 'Impact', 'Helvetica Neue Condensed', sans-serif;
- --font-data: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
- --font-prose: 'Inter', -apple-system, system-ui, sans-serif;
-
- /* Type scale — seven sizes, no others */
- --fs-11: 11px;
- --fs-13: 13px;
- --fs-16: 16px;
- --fs-20: 20px;
- --fs-32: 32px;
- --fs-56: 56px;
- --fs-96: 96px;
-
- /* Spacing (multiples of 8) */
- --sp-1: 8px;
- --sp-2: 16px;
- --sp-3: 24px;
- --sp-4: 32px;
- --sp-6: 48px;
- --sp-8: 64px;
- --sp-12: 96px;
-
- /* Grid */
- --page-x: 64px;
- --page-y: 56px;
- --gap-y: 56px;
- --gap-x: 40px;
-
- /* Tracking */
- --track-tight: -0.01em;
- --track-label: 0.18em;
- --track-ui: 0.1em;
-}
-
-/* Explicit theme — set via [data-theme] on <html>. Bootstrapped
- synchronously in index.html to avoid FOUC. */
-:root[data-theme='night'] {
- --z-paper: #0D0D0D;
- --z-ink: #E0E0E0;
- --z-mute: #555555;
- --z-faint: #2A2A2A;
-}
-:root[data-theme='day'] {
- --z-paper: #FBFAF6;
- --z-ink: #141414;
- --z-mute: #7A7671;
- --z-faint: #E6E4DC;
- /* Day accent — darker ochre in the same yellow family.
- The night accent (#EEBB00) is 1.7:1 on paper — unreadable.
- #A06800 is 5.7:1, passes AA body text. Same hue family. */
- --z-accent: #A06800;
-}
diff --git a/xerj-ux/docs/api-wiring.md b/xerj-ux/docs/api-wiring.md
deleted file mode 100644
index b102cca15..000000000
--- a/xerj-ux/docs/api-wiring.md
+++ /dev/null
@@ -1,343 +0,0 @@
-# Playground → API wiring plan
-
-Goal: replace the playground's mock data layer with real calls to the
-current Elasticsearch-compatible API, with the minimum amount of new
-backend work.
-
-The playground already renders 13 dashboards from chart primitives in
-`playground/src/ux/charts*.js`. Most panels can be served by a plain
-`POST /{index}/_search` with an aggregation body — the same request
-Kibana would send. Only the AI/vector dashboards need new native
-endpoints; everything else can go live with zero backend changes.
-
----
-
-## 1. API inventory (current state)
-
-### Native API (port `8080`)
-
-| Method | Path | Handler | What it returns |
-|---|---|---|---|
-| POST | `/v1/indices` | `native::create_index` | Create index + schema |
-| GET | `/v1/indices/:name` | `native::get_index` | Index metadata |
-| DELETE | `/v1/indices/:name` | `native::delete_index` | Delete index |
-| POST | `/v1/indices/:name/docs` | `native::ingest_docs` | Single/batch ingest |
-| GET | `/v1/indices/:name/docs/:id` | `native::get_doc` | Doc by id |
-| DELETE | `/v1/indices/:name/docs/:id` | `native::delete_doc` | Tombstone a doc |
-| POST | `/v1/indices/:name/docs/_bulk` | `native::bulk_ingest` | Bulk ingest (NDJSON) |
-| POST | `/v1/indices/:name/turbo-ingest` | `native::turbo_ingest` | High-throughput ingest |
-| GET | `/v1/indices/:name/encodings` | `native::get_index_encodings` | Per-field encoding stats |
-| POST | `/v1/indices/:name/search` | `native::search` | Full-text + aggs (native body) |
-| POST | `/v1/indices/:name/_flush` | `native::flush_index` | Force memtable flush |
-| GET | `/v1/health` | `native::health` | Liveness |
-| GET | `/v1/metrics` | `native::metrics` | Prometheus text |
-| GET | `/v1/dashboard/summary` | `native::dashboard_summary` | Index list + doc/byte counts |
-
-### ES-compat API (port `9200`) — the one we wire against
-
-| Method | Path | Returns |
-|---|---|---|
-| GET | `/` | Cluster info (ES wire) |
-| GET | `/_cluster/health` | Cluster health snapshot (JSON) |
-| GET | `/_cat/indices` | Index list (CSV) |
-| GET | `/_cat/health` | Node health (CSV) |
-| GET/POST | `/:index/_search` | **Query + aggs (ES DSL) — workhorse** |
-| GET/POST | `/:index/_count` | Doc count for a query |
-| GET | `/:index/_stats` | Size, doc count, segment count |
-| GET | `/:index/_mapping` | Field mapping |
-| GET | `/:index/_settings` | Index settings |
-| POST | `/:index/_bulk` | Bulk ops |
-| POST | `/_bulk` | Global bulk |
-
-The vast majority of dashboard panels can be served by
-`POST /:index/_search` with different aggregation bodies.
-
----
-
-## 2. Dashboard inventory
-
-| ID | File | Panels (chart primitives used) | Mock source |
-|---|---|---|---|
-| `ai-overview` | `ai-overview.js` | `Num`, `Spark`, `Series`, `Dist`, `Ribbon3D`, `FlowBand`, `TopN`, `Citations` | `mock.js::buildAiOverview()` |
-| `rag-quality` | `rag-quality.js` | `Num`, `Spark`, `Series`, `Dist`, `Heatmap`, `ChordArcs`, `AttentionMap`, `TopN` | `mock.js::buildRagQuality()` |
-| `vector-index` | `vector-index.js` | `Num`, `Series`, `Multiples`, `EmbedSpace`, `ParallelCoords`, `Ribbon3D`, `Gauge`, `TopN` | `mock.js::buildVectorIndex()` |
-| `agent-memory` | `agent-memory.js` | `Num`, `Series`, `Dist`, `EmbedSpace`, `Table`, `TopN` | `mock.js::buildAgentMemory()` |
-| `anomaly-detect` | `anomaly-detect.js` | `Num`, `Spark`, `Dist`, `AnomalyBand`, `Treemap`, `ParallelCoords`, `AttentionMap`, `TopN` | `mock.js::buildAnomalyDetect()` |
-| `ingest-pipeline` | `ingest-pipeline.js` | `Num`, `Series`, `Multiples`, `FlowBand`, `MetricTile`, `Gauge`, `Table`, `TopN` | `mock.js::buildIngestPipeline()` |
-| `logs-overview` | `logs-overview.js` | `Num`, `Series`, `Dist`, `Heatmap`, `TopN` | `mock.js::buildLogsOverview()` |
-| `system` | `system.js` | `Num`, `Series`, `Multiples`, `TopN` | `mock.js::buildSystem()` |
-| `search-discover` | `search-discover.js` | `SearchBox`, `Series`, `Hits`, `Facet`, `QueryDSL`, `QueryPlanTree` | **Already live** — `buildDsl()` → `/v1/indices/:name/search` |
-| `alerts` | `alerts.js` | `Num`, `Series`, `Dist`, `TopN`, `Events`, `Table`, `FlowBand` | Hardcoded in `render()` |
-| `data` | `data.js` | Metadata tables | `data-sources.js::listIndices`/`listFields` |
-| `users` | `users.js` | Auth metadata | Stubs |
-| `settings` | `settings.js` | Config UI | App state |
-
-Chart primitives take these input shapes (keep these stable — no
-refactor needed, adapters translate API responses into these):
-
-- `Num(value, unit, spark, delta)`
-- `Series(values[], {h, labels, unit})` — `values` is `number[]`
-- `Spark(values[], {w, h})`
-- `Dist({segments, width})` — `segments = [{label, value}]`
-- `Heatmap({rows, cols, matrix})` — `matrix = number[][]`
-- `TopN({items, total, n})` — `items = [{label, value}]`
-- `Multiples({items})` — `items = [{label, values, value}]`
-- `EmbedSpace({clusters, h})` — `clusters = [{label, points, centroid}]`
-- `Ribbon3D({series, h, depth})` — `series = [{label, values}]`
-- `FlowBand({segments, unit})` — `segments = [{label, value}]`
-- `ParallelCoords({dims, rows, highlight, h})`
-- `Gauge({value, min, max})`
-- `ChordArcs({sources, targets, flows})` — `flows = [{from, to, weight}]`
-
----
-
-## 3. Mapping — dashboard panel → ES query
-
-Group by dashboard so each one can be wired in a single sitting.
-
-### `logs-overview` (fully ES-compat — do this first)
-
-**Total events + sparkline**
-```json
-POST /logs/_search
-{ "query": {"match_all": {}},
- "aggs": { "by_time": { "date_histogram":
- {"field": "@timestamp", "fixed_interval": "15m"} } },
- "size": 0 }
-```
-Response: `aggregations.by_time.buckets[*].doc_count` →
-`Num(sum, 'events', values[])` and `Series(values)`.
-
-**By level**
-```json
-POST /logs/_search
-{ "aggs": { "by_level":
- { "terms": {"field": "level", "size": 10} } },
- "size": 0 }
-```
-Response: `aggregations.by_level.buckets[*]` →
-`Dist({segments: buckets.map(b => ({label: b.key, value: b.doc_count}))})`.
-
-**Top services**
-```json
-POST /logs/_search
-{ "aggs": { "top_services":
- { "terms": {"field": "service", "size": 10} } },
- "size": 0 }
-```
-Response: `aggregations.top_services.buckets[*]` → `TopN({items})`.
-
-**Weekday × 2h heatmap**
-```json
-POST /logs/_search
-{ "aggs": { "by_dow":
- { "terms": {"field": "day_of_week", "size": 7},
- "aggs": { "by_hour":
- { "date_histogram":
- {"field":"@timestamp","fixed_interval":"2h"} } } } },
- "size": 0 }
-```
-Response: nested `aggregations.by_dow.buckets[*].by_hour.buckets[*]` →
-pivot into `matrix[day][hour_bucket]` for `Heatmap({rows, cols, matrix})`.
-
-### `system`
-
-**CPU / memory / disk over time**
-```json
-POST /metrics/_search
-{ "query": { "terms":
- {"metric_name": ["system.cpu","system.memory"] } },
- "aggs": { "by_time":
- { "date_histogram": {"field":"@timestamp","fixed_interval":"5m"},
- "aggs": { "v": {"avg": {"field":"value"}} } } },
- "size": 0 }
-```
-Response: `aggregations.by_time.buckets[*].v.value` → `Series(values)`.
-
-**Per-host CPU (small multiples)**
-```json
-POST /metrics/_search
-{ "query": { "term": {"metric_name":"system.cpu"} },
- "aggs": { "by_host":
- { "terms": {"field":"host","size":20},
- "aggs": { "cpu":
- { "date_histogram": {"field":"@timestamp","fixed_interval":"5m"},
- "aggs": { "v": {"avg":{"field":"value"}} } } } } },
- "size": 0 }
-```
-Response → one `Series` per host, bundled into `Multiples({items})`.
-
-### `ai-overview`
-
-**LLM queries over time + total**
-```json
-POST /llm-events/_search
-{ "aggs": { "by_time":
- { "date_histogram":
- {"field":"@timestamp","fixed_interval":"30m"} } },
- "size": 0 }
-```
-
-**By model**
-```json
-POST /llm-events/_search
-{ "aggs": { "by_model":
- { "terms": {"field":"model","size":10} } },
- "size": 0 }
-```
-
-**Total tokens + cost**
-```json
-POST /llm-events/_search
-{ "aggs": {
- "tokens": { "sum": {"field": "tokens_total"} },
- "by_model_tokens": {
- "terms": {"field":"model","size":10},
- "aggs": { "toks": {"sum":{"field":"tokens_total"}} }
- }
- },
- "size": 0 }
-```
-Cost comes from multiplying tokens × a client-side pricing table
-(no endpoint needed; pricing lives in `playground/src/data/pricing.js`).
-
-**Token budget breakdown** (`FlowBand`)
-```json
-POST /llm-events/_search
-{ "aggs": {
- "sys": {"sum":{"field":"tokens_system"}},
- "ctx": {"sum":{"field":"tokens_context"}},
- "q": {"sum":{"field":"tokens_question"}},
- "ans": {"sum":{"field":"tokens_completion"}}
- },
- "size": 0 }
-```
-Response: four scalars → `FlowBand({segments: [{label:'SYS', value:sys}, ...]})`.
-
-### `anomaly-detect`
-
-Anomalies = z-score over a `date_histogram`. Fetch the raw series
-with the same query as `logs-overview::total events`, compute
-mean/stddev **client-side**, mark any bucket > 3σ. No new endpoint.
-
-### `ingest-pipeline`
-
-Most panels map to native `/v1/metrics` (Prometheus text). Instead,
-parse `GET /v1/dashboard/summary` for per-index rates and
-`/_cluster/health` for node count. Throughput sparklines need a
-metrics index — same `metrics` index pattern as `system`.
-
-### `alerts` · `agent-memory` · `data` · `users` · `settings`
-
-- `alerts`: wire `Events({items})` via `POST /alerts/_search` sorted
- by `@timestamp` desc — plain hits list, no aggs.
-- `agent-memory`: one `_search` with a `knn` clause hitting a
- `memory_vec` field. Already works via ES-compat (`knn` is in the
- query DSL).
-- `data`: already uses `data-sources.js` which hits the native
- `/v1/indices` and `/v1/indices/:name` — keep as-is.
-- `users`: app-local; no API needed.
-- `settings`: app-local; no API needed.
-
----
-
-## 4. Gaps
-
-| Panel / dashboard | Why it doesn't fit ES-compat | Severity | Cheapest fix |
-|---|---|---|---|
-| `EmbedSpace` (2D cluster hulls — `vector-index`, `agent-memory`, `rag-quality`) | No ES agg produces 2D projections. | **blocker** for the vector dashboards | New native `POST /v1/indices/:name/_project` that runs UMAP/t-SNE server-side, OR fetch raw vectors and UMAP client-side via a JS lib. For MVP: client-side. |
-| `Gauge` for HNSW recall@10 (`vector-index`) | Recall is engine-internal, not a document field. | blocker | New native `GET /v1/indices/:name/_vector_stats` returning `{recall_at_10, build_latency_p95, vectors_indexed}`. Tiny endpoint. |
-| `Ribbon3D` for latency distribution (`ai-overview`, `anomaly-detect`) | 3D rendering is client-side; data is p50/p95/p99 over time. | nice-to-have | Standard `percentiles` agg gives the numbers; ribbon is a pure chart concern. |
-| `AnomalyBand` confidence band | ES doesn't compute the band. | nice-to-have | Compute ±2σ client-side from the same `date_histogram` the panel already pulls. |
-| `AttentionMap` (`rag-quality`) | Per-token attention weights are LLM-internal. | blocker until such data is indexed | Out of scope — keep mock until an `llm_attention` index exists. |
-| `Treemap` (`anomaly-detect`) | Requires hierarchical bucketing. | nice-to-have | Composite terms agg gives leaf buckets; the hierarchy is client-side derived from `host.service.path` strings. |
-| `ChordArcs` service graph (`rag-quality`, any "service flows") | Graph topology is not an agg. | nice-to-have | Two pivoted terms aggs (`source_service` × `target_service` with `doc_count`) → client-side converts to `{from, to, weight}`. Works today. |
-| `Citations` (user feedback across all dashboards) | Stored in a JS file, not an index. | none | Leave as a local JSON file. |
-| Cluster / node stats (`system`) | `/v1/metrics` is Prometheus text, not JSON. | nice-to-have | Parse the Prom text in the playground — small parser (~30 lines), or add a tiny native `GET /v1/cluster/stats` JSON endpoint. |
-
-Blockers are only in the vector / AI-attention space. The other ~60%
-of dashboards can be wired against the current ES-compat API
-**without touching the engine**.
-
----
-
-## 5. Wiring strategy — the easiest path
-
-1. **One API module.** Create `playground/src/data/api.js` with
- two functions and nothing else:
-
- ```js
- export async function esSearch(index, body) {
- const base = localStorage.getItem('xerj.apiUrl') || 'http://localhost:9200';
- const key = localStorage.getItem('xerj.apiKey') || '';
- const res = await fetch(`${base}/${index}/_search`, {
- method: 'POST',
- headers: {
- 'content-type': 'application/json',
- ...(key ? {'authorization': `ApiKey ${key}`} : {}),
- },
- body: JSON.stringify(body),
- });
- if (!res.ok) throw new Error(`search failed: ${res.status}`);
- return res.json();
- }
- export async function clusterHealth() { /* GET /_cluster/health */ }
- ```
-
-2. **Adapters sit in `playground/src/data/adapters.js`** — one tiny
- function per dashboard panel that takes the raw `_search` response
- and returns the shape the chart primitive expects
- (`{segments}` / `{items}` / `values[]` / `matrix[][]`). These
- replace the mock generator functions one at a time.
-
-3. **Wire dashboards in this order**, biggest-unlock-first:
- 1. **`logs-overview`** — 5 panels, 4 queries, zero gaps. Proves
- the whole stack end-to-end.
- 2. **`system`** — same query shapes (histogram + terms), different
- index. Unlocks the `Multiples` primitive against real data.
- 3. **`ai-overview`** — same again, plus the token-budget FlowBand.
- 4. **`anomaly-detect`** — reuses `logs-overview` queries, adds
- client-side z-score.
- 5. **`search-discover`** — already live; just expose its
- `buildDsl()` body to the other dashboards for consistency.
- 6. **`ingest-pipeline` / `alerts`** — drop-in after the `metrics`
- index is populated.
- 7. **Vector dashboards** (`vector-index`, `agent-memory`,
- `rag-quality`) — wait for the two new native endpoints
- (`_project` + `_vector_stats`). Keep mock until then.
-
-4. **Auth**: single API key in `localStorage` under `xerj.apiKey`,
- set from the Settings dashboard. `api.js` reads it on every call.
- No per-dashboard config.
-
-5. **Index picker**: the top-level index dropdown already exists in
- `chrome.js`. Persist the current choice in `localStorage` under
- `xerj.index` and read it from each dashboard instead of
- hardcoding index names.
-
-6. **Error handling**: on fetch failure, fall back to the existing
- mock generator with a corner badge ("MOCK · NO BACKEND"). One-line
- try/catch wrapper in every adapter. Dashboards keep rendering.
-
-7. **Zero chart primitive changes.** All existing `Series`,
- `Heatmap`, `TopN`, etc. keep their current signatures. Only the
- data layer moves.
-
-8. **Seeding data locally**:
- ```sh
- # From a repo-local script (doesn't need to exist yet)
- curl -X POST http://localhost:9200/logs/_bulk \
- -H 'content-type: application/x-ndjson' \
- --data-binary @fixtures/logs-24h.ndjson
- ```
- Write a tiny fixture generator that emits ~100k NDJSON lines of
- realistic logs, metrics, and LLM events into three indices.
- One night, done.
-
-9. **Milestone check**: after step 3(3), 60% of panels across the
- site are on live data. The remaining 40% are the vector/AI
- panels that need new endpoints — split into a follow-up.
-
-Expected effort: **2–3 days** to ship steps 1–5 (ES-compat
-dashboards). **1 day of backend work** for `_vector_stats` +
-`_project` to unlock the rest.
diff --git a/xerj-ux/index.html b/xerj-ux/index.html
deleted file mode 100644
index 04e547ab2..000000000
--- a/xerj-ux/index.html
+++ /dev/null
@@ -1,83 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-<title>Xerj Console · typography-first observability for Xerj</title>
-<meta name="color-scheme" content="dark light">
-<script>
- // Theme bootstrap — runs before CSS to prevent a flash of wrong theme.
- (function () {
- var t = localStorage.getItem('xerj.theme');
- if (t !== 'day' && t !== 'night') t = 'night';
- document.documentElement.setAttribute('data-theme', t);
- })();
-</script>
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
-<link rel="stylesheet" href="assets/tokens.css">
-<link rel="stylesheet" href="assets/base.css">
-<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ctext y='13' font-family='monospace' font-size='14' font-weight='900' fill='%23EEBB00'%3Ez%3C/text%3E%3C/svg%3E">
-</head>
-<body>
-<div id="app" aria-busy="true"></div>
-<!--
- Auth guard. Hits /_xerj-console/api/v1/me before app.js runs. On 401 we
- redirect to /_xerj-console/login (or /_xerj-console/setup when this is a fresh
- install — the bootstrap banner already pointed the user at /setup,
- but if they bookmarked / it's nicer to land on /setup than /login).
- On 200 we cache the user record on `window.__xerjConsoleMe` so app.js can
- pick it up synchronously without re-fetching, and import app.js.
--->
-<script type="module">
- (async () => {
- try {
- const r = await fetch('/_xerj-console/api/v1/me', {
- credentials: 'same-origin',
- headers: { 'accept': 'application/json' },
- });
- if (r.status === 401) {
- // Decide: setup vs login. We probe /cluster/info — its
- // `started_at_ms` tells us whether the server has been up
- // long enough that someone almost certainly set it up; on a
- // fresh boot we send the user to /setup.
- try {
- const info = await (await fetch('/_xerj-console/api/v1/cluster/info', {
- credentials: 'same-origin',
- })).json();
- // No reliable "is bootstrapped?" probe yet; default to /login
- // since /setup requires a magic-link token in the fragment.
- // Operators on first boot reach /setup via the stderr banner.
- void info;
- } catch {}
- window.location.href = '/_xerj-console/login';
- return;
- }
- if (!r.ok) throw new Error('HTTP ' + r.status);
- const body = await r.json();
- window.__xerjConsoleMe = body && body.data ? body.data.user : null;
-
- // Pull /prefs + /views from the engine and seed localStorage
- // BEFORE app.js boots — app.js reads localStorage at module-load
- // time, so the pull has to complete first or the SPA renders
- // with stale (or empty) state for one frame.
- try {
- const sync = await import('./src/xerj-console-sync.js');
- await sync.pullAll();
- // Start the periodic push tick once app.js has had a beat.
- Promise.resolve().then(() => sync.startPush());
- } catch (e) {
- console.warn('[xerj-console sync]', e);
- }
- } catch (e) {
- // Engine unreachable (offline dev, hot-reload mid-flight) —
- // load the SPA anyway so the user sees an error state instead
- // of a redirect loop.
- console.error('[xerj-console auth guard]', e);
- }
- await import('./src/app.js');
- })();
-</script>
-</body>
-</html>
diff --git a/xerj-ux/login.html b/xerj-ux/login.html
deleted file mode 100644
index 7eefd318c..000000000
--- a/xerj-ux/login.html
+++ /dev/null
@@ -1,139 +0,0 @@
-<!doctype html>
-<html lang="en" data-theme="night">
-<head>
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-<title>Xerj Console · sign in</title>
-<meta name="color-scheme" content="dark light">
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@800;900&family=JetBrains+Mono:wght@400;500&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
-<link rel="stylesheet" href="assets/tokens.css">
-<link rel="stylesheet" href="assets/base.css">
-<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ctext y='13' font-family='monospace' font-size='14' font-weight='900' fill='%23EEBB00'%3Ez%3C/text%3E%3C/svg%3E">
-<style>
- body {
- min-height: 100vh; display: flex; align-items: center; justify-content: center;
- padding: 2rem;
- }
- .auth-card {
- background: var(--bg-surface, #15171a);
- border: 1px solid var(--border, #2a2d33);
- border-radius: 8px; padding: 2rem;
- max-width: 420px; width: 100%;
- color: var(--fg, #e6e8eb);
- }
- .auth-card h1 {
- font-family: 'Big Shoulders Display', sans-serif;
- font-weight: 900; font-size: 2.25rem; letter-spacing: -0.02em;
- margin: 0 0 .25rem; color: #EEBB00;
- }
- .auth-card p.lead { color: var(--fg-mute, #8a8e95); margin: 0 0 1.5rem; }
- label { display: block; font-weight: 500; margin: 1rem 0 .25rem; font-size: 0.875rem; }
- input[type="email"] {
- width: 100%; padding: 0.625rem 0.75rem;
- background: var(--bg, #0c0d10);
- border: 1px solid var(--border, #2a2d33);
- border-radius: 4px; color: var(--fg, #e6e8eb);
- font-family: inherit; font-size: 0.9rem;
- }
- input:focus { outline: 2px solid #EEBB00; outline-offset: 1px; }
- button {
- background: #EEBB00; color: #0c0d10;
- border: none; padding: 0.75rem 1.5rem;
- font-weight: 600; border-radius: 4px;
- cursor: pointer; margin-top: 1.5rem;
- font-family: inherit; font-size: 0.9rem;
- width: 100%;
- }
- button:disabled { opacity: 0.5; cursor: not-allowed; }
- .err {
- background: #3a1a1a; color: #ff8a8a;
- padding: 0.75rem 1rem; border-radius: 4px;
- margin: 1rem 0; font-size: 0.875rem;
- font-family: 'JetBrains Mono', monospace;
- }
- .footnote {
- color: var(--fg-mute, #8a8e95);
- font-size: 0.8rem; margin-top: 1.5rem;
- text-align: center;
- }
- .footnote a { color: #EEBB00; text-decoration: none; }
-</style>
-</head>
-<body>
- <div class="auth-card">
- <h1>XERJ CONSOLE</h1>
- <p class="lead">Sign in with your passkey.</p>
-
- <div id="err" class="err" hidden></div>
-
- <form id="form" autocomplete="on">
- <label for="email">Email</label>
- <input id="email" type="email" placeholder="[email protected]" required autocomplete="email username webauthn">
-
- <button type="submit" id="btn">Sign in</button>
- </form>
-
- <p class="footnote">
- Don't have a passkey yet? <a href="/_xerj-console/setup">Set up</a>.
- </p>
- </div>
-
-<script type="module">
-import { beginLogin, finishLogin, b64uToBuf, bufToB64u } from './src/xerj-console-auth.js';
-
-const $err = document.getElementById('err');
-const $form = document.getElementById('form');
-const $btn = document.getElementById('btn');
-const $email = document.getElementById('email');
-
-function showError(msg) {
- $err.textContent = msg; $err.hidden = false;
-}
-
-$form.addEventListener('submit', async (ev) => {
- ev.preventDefault();
- $err.hidden = true;
- $btn.disabled = true;
- $btn.textContent = 'Authenticating…';
-
- try {
- const email = $email.value.trim();
- if (!email) throw new Error('Email is required.');
-
- const begin = await beginLogin(email);
- const opts = JSON.parse(JSON.stringify(begin.request_options.publicKey));
- opts.challenge = b64uToBuf(opts.challenge);
- if (opts.allowCredentials) {
- for (const c of opts.allowCredentials) c.id = b64uToBuf(c.id);
- }
-
- const cred = await navigator.credentials.get({ publicKey: opts });
- if (!cred) throw new Error('Browser returned no credential.');
-
- const ass = cred.response;
- const credPayload = {
- id: cred.id,
- rawId: bufToB64u(cred.rawId),
- type: cred.type,
- response: {
- clientDataJSON: bufToB64u(ass.clientDataJSON),
- authenticatorData: bufToB64u(ass.authenticatorData),
- signature: bufToB64u(ass.signature),
- userHandle: ass.userHandle ? bufToB64u(ass.userHandle) : null,
- },
- extensions: cred.getClientExtensionResults ? cred.getClientExtensionResults() : {},
- };
-
- await finishLogin(begin.challenge_id, credPayload);
- window.location.href = '/_xerj-console/';
- } catch (e) {
- showError(e.message || String(e));
- $btn.disabled = false;
- $btn.textContent = 'Sign in';
- }
-});
-</script>
-</body>
-</html>
diff --git a/xerj-ux/setup.html b/xerj-ux/setup.html
deleted file mode 100644
index ccbb1a158..000000000
--- a/xerj-ux/setup.html
+++ /dev/null
@@ -1,228 +0,0 @@
-<!doctype html>
-<html lang="en" data-theme="night">
-<head>
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-<title>Xerj Console · setup</title>
-<meta name="color-scheme" content="dark light">
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@800;900&family=JetBrains+Mono:wght@400;500&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
-<link rel="stylesheet" href="assets/tokens.css">
-<link rel="stylesheet" href="assets/base.css">
-<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ctext y='13' font-family='monospace' font-size='14' font-weight='900' fill='%23EEBB00'%3Ez%3C/text%3E%3C/svg%3E">
-<style>
- body {
- min-height: 100vh; display: flex; align-items: center; justify-content: center;
- padding: 2rem;
- }
- .auth-card {
- background: var(--bg-surface, #15171a);
- border: 1px solid var(--border, #2a2d33);
- border-radius: 8px; padding: 2rem;
- max-width: 480px; width: 100%;
- color: var(--fg, #e6e8eb);
- }
- .auth-card h1 {
- font-family: 'Big Shoulders Display', sans-serif;
- font-weight: 900; font-size: 2.25rem; letter-spacing: -0.02em;
- margin: 0 0 .5rem; color: #EEBB00;
- }
- .auth-card p.lead { color: var(--fg-mute, #8a8e95); margin: 0 0 1.5rem; }
- .step { display: none; }
- .step.active { display: block; }
- label { display: block; font-weight: 500; margin: 1rem 0 .25rem; font-size: 0.875rem; }
- input[type="email"], input[type="text"] {
- width: 100%; padding: 0.625rem 0.75rem;
- background: var(--bg, #0c0d10);
- border: 1px solid var(--border, #2a2d33);
- border-radius: 4px; color: var(--fg, #e6e8eb);
- font-family: inherit; font-size: 0.9rem;
- }
- input:focus { outline: 2px solid #EEBB00; outline-offset: 1px; }
- button {
- background: #EEBB00; color: #0c0d10;
- border: none; padding: 0.75rem 1.5rem;
- font-weight: 600; border-radius: 4px;
- cursor: pointer; margin-top: 1.5rem;
- font-family: inherit; font-size: 0.9rem;
- }
- button:disabled { opacity: 0.5; cursor: not-allowed; }
- button.secondary { background: transparent; color: var(--fg-mute); border: 1px solid var(--border); }
- .err {
- background: #3a1a1a; color: #ff8a8a;
- padding: 0.75rem 1rem; border-radius: 4px;
- margin: 1rem 0; font-size: 0.875rem;
- font-family: 'JetBrains Mono', monospace;
- }
- .ok {
- background: #1a3a1f; color: #8aff9c;
- padding: 0.75rem 1rem; border-radius: 4px;
- margin: 1rem 0; font-size: 0.875rem;
- }
- .role {
- display: inline-block;
- background: #EEBB00; color: #0c0d10;
- padding: 0.125rem 0.5rem;
- border-radius: 3px; font-size: 0.75rem;
- font-weight: 700; letter-spacing: 0.05em;
- text-transform: uppercase;
- }
-</style>
-</head>
-<body>
- <div class="auth-card">
- <h1>XERJ CONSOLE</h1>
- <p class="lead">First-launch setup — claim this server by enrolling a passkey.</p>
-
- <div id="err" class="err" hidden></div>
- <div id="ok" class="ok" hidden></div>
-
- <!-- Step 1: collect email + display name (token already in URL fragment) -->
- <div id="step-info" class="step active">
- <p>You're claiming the role <span class="role" id="role-pill">owner</span> on this server.</p>
- <label for="email">Email</label>
- <input id="email" type="email" placeholder="[email protected]" required autocomplete="email">
-
- <label for="display">Display name</label>
- <input id="display" type="text" placeholder="Your name" autocomplete="name">
-
- <label for="pkname">Passkey name (visible to you only)</label>
- <input id="pkname" type="text" value="My main key" autocomplete="off">
-
- <button id="btn-enrol">Enrol passkey</button>
- </div>
-
- <!-- Step 2: in-flight WebAuthn ceremony -->
- <div id="step-touch" class="step">
- <p style="font-size: 1.05rem;">Touch your security key, biometric sensor, or platform passkey now…</p>
- <p class="lead" style="margin-top: 1rem;">If your browser didn't prompt automatically, click <em>Try again</em>.</p>
- <button id="btn-retry" class="secondary">Try again</button>
- </div>
-
- <!-- Step 3: done -->
- <div id="step-done" class="step">
- <p style="font-size: 1.05rem; color: #8aff9c;">✓ Passkey enrolled. Logging you in…</p>
- </div>
- </div>
-
-<script type="module">
-import { redeemMagic, beginEnrol, finishEnrol, b64uToBuf, bufToB64u } from './src/xerj-console-auth.js';
-
-const $err = document.getElementById('err');
-const $ok = document.getElementById('ok');
-const $rolePill = document.getElementById('role-pill');
-const $email = document.getElementById('email');
-const $display = document.getElementById('display');
-const $pkname = document.getElementById('pkname');
-const $btnEnrol = document.getElementById('btn-enrol');
-const $btnRetry = document.getElementById('btn-retry');
-
-function showStep(id) {
- for (const el of document.querySelectorAll('.step')) el.classList.remove('active');
- document.getElementById(id).classList.add('active');
-}
-function showError(msg) {
- $err.textContent = msg; $err.hidden = false;
- $ok.hidden = true;
-}
-function showOk(msg) {
- $ok.textContent = msg; $ok.hidden = false;
- $err.hidden = true;
-}
-
-// Pull token from URL fragment (#token=...). Hide it from history immediately.
-function tokenFromHash() {
- const frag = window.location.hash.replace(/^#/, '');
- const params = new URLSearchParams(frag);
- return params.get('token');
-}
-function clearHash() {
- history.replaceState(null, '', window.location.pathname + window.location.search);
-}
-
-const token = tokenFromHash();
-if (!token) {
- showError('No magic-link token in URL. The link must include #token=…');
- $btnEnrol.disabled = true;
-}
-
-// Eagerly redeem the token on page load — it's single-use; we want
-// to consume it before the user does anything else.
-let enrollmentSession = null;
-(async () => {
- if (!token) return;
- try {
- enrollmentSession = await redeemMagic(token);
- clearHash();
- if (enrollmentSession.role) $rolePill.textContent = enrollmentSession.role;
- if (enrollmentSession.email) $email.value = enrollmentSession.email;
- } catch (e) {
- showError('Could not redeem link: ' + e.message);
- $btnEnrol.disabled = true;
- }
-})();
-
-async function enrol() {
- $err.hidden = true;
- if (!enrollmentSession) {
- showError('Enrollment session missing — reload from the magic link.');
- return;
- }
- const email = $email.value.trim();
- const display = $display.value.trim() || email;
- const pkname = $pkname.value.trim() || 'default';
- if (!email) {
- showError('Email is required.');
- return;
- }
-
- showStep('step-touch');
-
- try {
- const begin = await beginEnrol(enrollmentSession.enrollment_session_id, email, display);
- // Decode WebAuthn binary fields from base64url to ArrayBuffer.
- const opts = JSON.parse(JSON.stringify(begin.creation_options.publicKey));
- opts.challenge = b64uToBuf(opts.challenge);
- opts.user.id = b64uToBuf(opts.user.id);
- if (opts.excludeCredentials) {
- for (const c of opts.excludeCredentials) c.id = b64uToBuf(c.id);
- }
-
- const cred = await navigator.credentials.create({ publicKey: opts });
- if (!cred) throw new Error('Browser returned no credential.');
-
- // Re-encode the credential response for transport.
- const att = cred.response;
- const credPayload = {
- id: cred.id,
- rawId: bufToB64u(cred.rawId),
- type: cred.type,
- response: {
- clientDataJSON: bufToB64u(att.clientDataJSON),
- attestationObject: bufToB64u(att.attestationObject),
- },
- extensions: cred.getClientExtensionResults ? cred.getClientExtensionResults() : {},
- };
-
- await finishEnrol(
- enrollmentSession.enrollment_session_id,
- begin.challenge_id,
- credPayload,
- pkname, email, display
- );
-
- showStep('step-done');
- showOk('Enrolled. Redirecting…');
- setTimeout(() => { window.location.href = '/_xerj-console/'; }, 800);
- } catch (e) {
- showStep('step-info');
- showError(e.message || String(e));
- }
-}
-
-$btnEnrol.addEventListener('click', enrol);
-$btnRetry.addEventListener('click', () => { showStep('step-info'); });
-</script>
-</body>
-</html>
diff --git a/xerj-ux/src/app.js b/xerj-ux/src/app.js
deleted file mode 100644
index 73c533064..000000000
--- a/xerj-ux/src/app.js
+++ /dev/null
@@ -1,1363 +0,0 @@
-// ============================================================
-// XERJ.ai — Bootstrap + router + layout engine
-//
-// One render loop. Edit mode layers drag/resize/remove/add on
-// top of the same render — no separate editor routes.
-// ============================================================
-
-import { registry, defaults, SECTIONS, DASHBOARD_GROUPS, dashboardsInSection } from './dashboards/registry.js';
-import { Nav, SceneHeader, TimeCtrl, RefreshCtrl, FilterBar, ClusterCtrl, SavedViews, Footer, MobileCtrl } from './ux/chrome.js';
-import { query, dataSourceStatus } from './data/query.js';
-import { chartTypes, chartTypeList } from './ux/chart-types.js';
-import { esc } from './ux/text.js';
-import { mockSearch } from './data/mock.js';
-import { hitsToCsv, downloadText, svgToPng } from './data/export.js';
-import {
- mergedDashboards, renameDashboard, reorderDashboards, setHidden,
- createUserDashboard, deleteUserDashboard, isUserDash, resetAll as resetDashboards,
-} from './data/dashboard-store.js';
-import {
- listClusters, listIndices, listFields, listClustersSync,
- defaultClusterId, setDefaultCluster,
-} from './data/data-sources.js';
-
-// ---------- state -----------------------------------------
-const LS = {
- theme: 'xerj.theme',
- time: 'xerj.time',
- edit: 'xerj.edit',
- search: 'xerj.search',
- refresh: 'xerj.refresh',
- cluster: 'xerj.cluster',
- views: 'xerj.views',
- filters: (dashId) => 'xerj.filters.' + dashId,
- layout: (dashId) => 'xerj.layout.' + dashId,
-};
-
-function loadJSON(key, fallback) {
- try { const raw = localStorage.getItem(key); return raw ? JSON.parse(raw) : fallback; }
- catch { return fallback; }
-}
-function loadSearch() { return loadJSON(LS.search, null); }
-function loadAllFilters() {
- const out = {};
- for (const k of Object.keys(localStorage)) {
- if (k.startsWith('xerj.filters.')) {
- const id = k.slice('xerj.filters.'.length);
- try { out[id] = JSON.parse(localStorage.getItem(k)) || {}; } catch {}
- }
- }
- return out;
-}
-
-const _initial = parseRoute();
-const _urlState = parseUrlState();
-const state = {
- section: _initial.section,
- route: _initial.route,
- time: _urlState.time || localStorage.getItem(LS.time) || '24H',
- timeCustom: {
- from: _urlState.tfrom || localStorage.getItem('xerj.timeFrom') || '',
- to: _urlState.tto || localStorage.getItem('xerj.timeTo') || '',
- },
- cluster: _urlState.cluster || defaultClusterId(),
- refresh: parseInt(localStorage.getItem(LS.refresh) || '0', 10), // ms; 0 = off
- refreshTimer: null,
- fetchedAt: null, // ISO string of last successful query
- fetchMs: null, // last fetch duration in ms
- fetchErr: null, // last fetch error message
- loading: false,
- filters: loadAllFilters(), // { [dashId]: { field: value } }
- theme: document.documentElement.getAttribute('data-theme') || 'night',
- edit: localStorage.getItem(LS.edit) === '1',
- mobile: localStorage.getItem('xerj.mobile') === '1',
- layouts: loadAllLayouts(),
- search: (() => {
- const loaded = loadSearch() || {};
- return {
- q: loaded.q || '',
- type: loaded.type || 'match',
- index: loaded.index || '*',
- filters: loaded.filters || {},
- sort: loaded.sort || { field: '_score', dir: 'desc' },
- showTime: loaded.showTime !== false,
- result: null,
- };
- })(),
- _focusSelector: null, // set by handlers that need focus restored
-};
-// Merge any URL-seeded filters into the current dashboard's filter set.
-if (_urlState.filters) {
- state.filters[_initial.route] = { ...(state.filters[_initial.route] || {}), ..._urlState.filters };
- saveFilters(_initial.route);
-}
-
-// ---------- filters, URL state, refresh -------------------
-function currentFilters() {
- return state.filters[state.route] || {};
-}
-function saveFilters(dashId) {
- const v = state.filters[dashId];
- if (v && Object.keys(v).length) localStorage.setItem(LS.filters(dashId), JSON.stringify(v));
- else localStorage.removeItem(LS.filters(dashId));
-}
-// Toggle a filter value. Multi-value semantics: clicking the same
-// value twice removes it; clicking a new value on an existing field
-// appends to the OR list.
-function setFilter(field, value) {
- const dashId = state.route;
- const cur = { ...(state.filters[dashId] || {}) };
- const existing = cur[field];
- if (existing == null) {
- cur[field] = value;
- } else if (Array.isArray(existing)) {
- const idx = existing.indexOf(value);
- if (idx >= 0) {
- const next = existing.filter((v) => v !== value);
- if (next.length === 0) delete cur[field];
- else if (next.length === 1) cur[field] = next[0];
- else cur[field] = next;
- } else {
- cur[field] = [...existing, value];
- }
- } else {
- if (existing === value) delete cur[field];
- else cur[field] = [existing, value];
- }
- state.filters[dashId] = cur;
- saveFilters(dashId);
- writeUrlState();
-}
-
-// Remove one value from a field (used by pill ✕ click on a specific
-// chip inside a multi-value filter).
-function removeFilterValue(field, value) {
- const dashId = state.route;
- const cur = { ...(state.filters[dashId] || {}) };
- const existing = cur[field];
- if (existing == null) return;
- if (Array.isArray(existing)) {
- const next = existing.filter((v) => v !== value);
- if (next.length === 0) delete cur[field];
- else if (next.length === 1) cur[field] = next[0];
- else cur[field] = next;
- } else if (existing === value) {
- delete cur[field];
- }
- state.filters[dashId] = cur;
- saveFilters(dashId);
- writeUrlState();
-}
-
-// KQL-lite parser: tokenize `field:value field:"multi word" foo`.
-// Free-text tokens become a synthetic `q` filter; repeat fields
-// turn into OR arrays.
-function parseKql(text) {
- const out = {};
- const add = (k, v) => {
- if (!v) return;
- if (out[k] == null) out[k] = v;
- else if (Array.isArray(out[k])) out[k].push(v);
- else out[k] = [out[k], v];
- };
- // Match field:"quoted value" OR field:value OR loose token
- const re = /([a-zA-Z_][\w.]*):"([^"]*)"|([a-zA-Z_][\w.]*):(\S+)|"([^"]+)"|(\S+)/g;
- let m;
- while ((m = re.exec(text)) !== null) {
- if (m[1] != null) add(m[1], m[2]);
- else if (m[3] != null) add(m[3], m[4]);
- else if (m[5] != null) add('q', m[5]);
- else if (m[6] != null) add('q', m[6]);
- }
- return out;
-}
-
-// Inverse of parseKql — render a filter object as a KQL string that
-// re-parses to the same shape. Used to keep the input box in sync.
-function serializeKql(filters) {
- const parts = [];
- for (const [k, v] of Object.entries(filters || {})) {
- const values = Array.isArray(v) ? v : [v];
- for (const x of values) {
- const needsQuote = /\s/.test(String(x));
- if (k === 'q') {
- parts.push(needsQuote ? `"${x}"` : String(x));
- } else {
- parts.push(needsQuote ? `${k}:"${x}"` : `${k}:${x}`);
- }
- }
- }
- return parts.join(' ');
-}
-
-function applyKqlInput(text) {
- const dashId = state.route;
- state.filters[dashId] = parseKql(text);
- saveFilters(dashId);
- writeUrlState();
-}
-function clearFilters() {
- const dashId = state.route;
- state.filters[dashId] = {};
- saveFilters(dashId);
- writeUrlState();
-}
-
-// URL state: ?t=24H&f=service:auth,level:error&c=prod-us
-// Filters are encoded as repeated `f` params so URLSearchParams can
-// handle escaping cleanly: ?f=service:nginx&f=level:error. Multi-value
-// (OR) filters repeat the same key: ?f=service:auth&f=service:web.
-function parseUrlState() {
- const qs = location.search.slice(1);
- if (!qs) return {};
- const out = {};
- const params = new URLSearchParams(qs);
- if (params.get('t')) out.time = params.get('t').toUpperCase();
- if (params.get('tfrom')) out.tfrom = params.get('tfrom');
- if (params.get('tto')) out.tto = params.get('tto');
- if (params.get('c')) out.cluster = params.get('c');
- const all = params.getAll('f');
- if (all.length) {
- out.filters = {};
- for (const pair of all) {
- const idx = pair.indexOf(':');
- if (idx > 0) {
- const k = pair.slice(0, idx);
- const v = pair.slice(idx + 1);
- const existing = out.filters[k];
- if (existing == null) out.filters[k] = v;
- else if (Array.isArray(existing)) existing.push(v);
- else out.filters[k] = [existing, v];
- }
- }
- }
- return out;
-}
-function writeUrlState() {
- const params = new URLSearchParams();
- if (state.time && state.time !== '24H') params.set('t', state.time);
- if (state.time === 'CUSTOM' && state.timeCustom) {
- if (state.timeCustom.from) params.set('tfrom', state.timeCustom.from);
- if (state.timeCustom.to) params.set('tto', state.timeCustom.to);
- }
- if (state.cluster) params.set('c', state.cluster);
- for (const [k, v] of Object.entries(currentFilters())) {
- if (Array.isArray(v)) for (const x of v) params.append('f', `${k}:${x}`);
- else params.append('f', `${k}:${v}`);
- }
- const qs = params.toString();
- const url = location.pathname + (qs ? '?' + qs : '') + location.hash;
- history.replaceState(null, '', url);
-}
-
-function setRefreshInterval(ms) {
- state.refresh = ms;
- localStorage.setItem(LS.refresh, String(ms));
- if (state.refreshTimer) { clearInterval(state.refreshTimer); state.refreshTimer = null; }
- if (ms > 0) {
- state.refreshTimer = setInterval(() => {
- if (state.section === 'dashboards' || state.section === 'discover') render();
- }, ms);
- }
-}
-
-// ---------- saved views -----------------------------------
-// A saved view is a snapshot of (dashId, time, cluster, filters).
-// Click it to land on that dashboard with the same context.
-function loadViews() { return loadJSON(LS.views, []); }
-function saveViews(views) { localStorage.setItem(LS.views, JSON.stringify(views)); }
-function saveCurrentView() {
- const dashId = state.route;
- const all = loadViews();
- const name = prompt('Save view as:', 'View ' + (all.length + 1));
- if (!name) return;
- const id = 'v-' + Date.now().toString(36);
- all.push({
- id,
- name,
- dashId,
- time: state.time,
- cluster: state.cluster,
- filters: currentFilters(),
- savedAt: new Date().toISOString(),
- });
- saveViews(all);
-}
-function deleteView(id) {
- saveViews(loadViews().filter((v) => v.id !== id));
-}
-function applyView(id) {
- const v = loadViews().find((x) => x.id === id);
- if (!v) return;
- state.time = v.time;
- state.cluster = v.cluster || state.cluster;
- state.filters[v.dashId] = { ...(v.filters || {}) };
- saveFilters(v.dashId);
- localStorage.setItem(LS.time, state.time);
- location.hash = '#/dashboards/' + v.dashId;
-}
-
-function relTime(iso) {
- if (!iso) return '';
- const delta = Date.now() - new Date(iso).getTime();
- if (delta < 2000) return 'just now';
- if (delta < 60_000) return Math.round(delta / 1000) + 's ago';
- if (delta < 3600_000) return Math.round(delta / 60_000) + 'm ago';
- return Math.round(delta / 3600_000) + 'h ago';
-}
-
-function navStatus() {
- if (state.loading) return 'LOADING…';
- if (state.fetchErr) return 'ERROR · ' + state.fetchErr.slice(0, 40);
- const bits = [];
- // dataSourceStatus is a function in v0.7+ (was a const string) so
- // the nav reflects the live backend state instead of a fixed label.
- bits.push(typeof dataSourceStatus === 'function' ? dataSourceStatus() : String(dataSourceStatus));
- if (state.fetchedAt) bits.push('UPDATED ' + relTime(state.fetchedAt).toUpperCase());
- if (state.fetchMs != null) bits.push(state.fetchMs + 'MS');
- return bits.join(' · ');
-}
-
-function runSearchNow() {
- // Optimistic placeholder so the table doesn't blank out while
- // the live query is in flight. Replaced as soon as the engine
- // responds with real hits.
- state.search.result = mockSearch({
- q: state.search.q,
- type: state.search.type,
- index: state.search.index,
- filters: state.search.filters,
- sort: state.search.sort,
- });
- // Live xerj search: turn the SearchBox state into a real
- // `query()` ctx and overlay the live hits + facets when they
- // arrive. Falls back to the mock above on backend error so the
- // demo never serves a blank console.
- query({
- dashId: 'search-discover',
- range: state.time,
- customRange: state.time === 'CUSTOM' ? state.timeCustom : null,
- cluster: state.cluster,
- filters: state.search.filters,
- search: {
- q: state.search.q,
- type: state.search.type,
- index: state.search.index,
- },
- })
- .then((res) => {
- const live = res?.data;
- if (!live || live.error) return;
- const mock = state.search.result || {};
- state.search.result = {
- ...mock,
- hits: live.hits || mock.hits || [],
- total: live.total ?? (live.hits?.length ?? 0),
- took: live.took,
- max_score: live.max_score,
- facets: live.facets || mock.facets,
- _live: true,
- };
- state.fetchedAt = res.meta?.fetchedAt || Date.now();
- state.fetchMs = res.meta?.durationMs ?? state.fetchMs;
- // Re-render the page so the table swaps mock → live without
- // requiring user interaction.
- if (state.section === 'discover') render();
- })
- .catch(() => { /* leave the optimistic mock in place */ });
- // Persist the inputs (not the result — it rebuilds on demand)
- localStorage.setItem(LS.search, JSON.stringify({
- q: state.search.q,
- type: state.search.type,
- index: state.search.index,
- filters: state.search.filters,
- sort: state.search.sort,
- showTime: state.search.showTime,
- }));
-}
-
-/**
- * Parse the hash into { section, route }. Routes come in three shapes:
- *
- * #/ → section=dashboards, route=<first dashboard>
- * #/dashboards → section=dashboards, route=<first dashboard>
- * #/dashboards/:id → section=dashboards, route=:id
- * #/<section> → section=<section>, route=<view id for that section>
- *
- * Backward compat: legacy `#/ai-overview` (bare dashboard id) gets
- * auto-routed into `#/dashboards/ai-overview`, and legacy `#/manage`
- * redirects to `#/settings`.
- */
-function parseRoute() {
- const raw = (location.hash || '').replace(/^#\/?/, '');
- const parts = raw.split('/').filter(Boolean);
- const merged = mergedDashboards(defaults, { includeHidden: true });
-
- // Helper: find the default view id for a section.
- const firstOfSection = (sectionId) => {
- const list = dashboardsInSection(sectionId, merged);
- return list[0]?.id;
- };
-
- // Empty hash → dashboards section, first dashboard
- if (!parts.length) {
- const first = firstOfSection('dashboards') || 'ai-overview';
- return { section: 'dashboards', route: first };
- }
-
- // Legacy: #/manage → settings
- if (parts[0] === 'manage') return { section: 'settings', route: 'settings' };
-
- // Section-level route: #/section or #/section/:id
- const sectionIds = new Set(SECTIONS.map((s) => s.id));
- if (sectionIds.has(parts[0])) {
- if (parts[0] === 'dashboards') {
- const id = parts[1] || firstOfSection('dashboards') || 'ai-overview';
- // Only accept real dashboards in this section
- const known = merged.find((d) => d.id === id && (d.section || 'dashboards') === 'dashboards');
- if (known) return { section: 'dashboards', route: id };
- return { section: 'dashboards', route: firstOfSection('dashboards') || 'ai-overview' };
- }
- // Non-dashboards sections have exactly one view: firstOfSection
- const first = firstOfSection(parts[0]);
- if (first) return { section: parts[0], route: first };
- }
-
- // Legacy bare route: #/ai-overview → #/dashboards/ai-overview
- if (merged.some((d) => d.id === parts[0])) {
- const d = merged.find((x) => x.id === parts[0]);
- const section = d.section || 'dashboards';
- return { section, route: parts[0] };
- }
-
- // Fallback
- return { section: 'dashboards', route: firstOfSection('dashboards') || 'ai-overview' };
-}
-
-// Build the data context that the section views (DATA / SETTINGS)
-// need. Async because real API calls will replace these mocks in one
-// step once the engine ships /v1/clusters etc.
-async function buildSectionData(sectionId) {
- if (sectionId === 'data') {
- const clusters = await listClusters();
- const indicesByCluster = {};
- const fieldsByIndex = {};
- for (const c of clusters) {
- indicesByCluster[c.id] = await listIndices(c.id);
- }
- const active = defaultClusterId();
- for (const i of indicesByCluster[active] || []) {
- fieldsByIndex[i.name] = await listFields(i.name);
- }
- return {
- clusters,
- indicesByCluster,
- fieldsByIndex,
- activeCluster: active,
- focusIndex: state._focusIndex || (indicesByCluster[active] || [])[0]?.name,
- };
- }
- if (sectionId === 'settings') {
- return {
- dashboards: mergedDashboards(defaults, { includeHidden: true }),
- views: loadViews(),
- };
- }
- return {};
-}
-
-function loadAllLayouts() {
- const out = {};
- for (const id of Object.keys(registry)) {
- try {
- const raw = localStorage.getItem(LS.layout(id));
- if (raw) out[id] = JSON.parse(raw);
- } catch { /* ignore corrupt */ }
- }
- return out;
-}
-function saveLayout(dashId) {
- const v = state.layouts[dashId];
- if (!v) localStorage.removeItem(LS.layout(dashId));
- else localStorage.setItem(LS.layout(dashId), JSON.stringify(v));
-}
-function applyTheme(t) {
- state.theme = t;
- document.documentElement.setAttribute('data-theme', t);
- localStorage.setItem(LS.theme, t);
-}
-
-// ---------- layout engine ---------------------------------
-/**
- * Merge a dashboard's default panels with the user's stored override.
- * Returns a flat ordered array of panel objects ready to render.
- */
-function mergeLayout(defaultPanels, override) {
- if (!override) return defaultPanels.map((p) => ({ ...p, source: 'default' }));
- const byId = Object.fromEntries(defaultPanels.map((p) => [p.id, p]));
- const hidden = new Set(override.hidden || []);
- const out = [];
- const seen = new Set();
-
- const order = override.order || defaultPanels.map((p) => p.id);
- for (const id of order) {
- if (hidden.has(id)) { seen.add(id); continue; }
- const base = byId[id];
- if (base) {
- const cols = override.cols?.[id] ?? base.cols;
- out.push({ ...base, cols, source: 'default' });
- seen.add(id);
- } else {
- // Maybe a user-added panel.
- const added = (override.added || []).find((a) => a.id === id);
- if (added) {
- const cols = override.cols?.[id] ?? added.cols;
- out.push({ ...added, cols, source: 'added' });
- seen.add(id);
- }
- }
- }
- // Append defaults missing from order (new panels added since override was saved).
- for (const p of defaultPanels) {
- if (!seen.has(p.id) && !hidden.has(p.id)) {
- const cols = override.cols?.[p.id] ?? p.cols;
- out.push({ ...p, cols, source: 'default' });
- }
- }
- // Append user-added panels missing from order (freshly added).
- for (const added of (override.added || [])) {
- if (!seen.has(added.id)) {
- const cols = override.cols?.[added.id] ?? added.cols;
- out.push({ ...added, cols, source: 'added' });
- }
- }
- return out;
-}
-
-function ensureOverride(dashId, defaultPanels) {
- if (state.layouts[dashId]) return state.layouts[dashId];
- const fresh = {
- order: defaultPanels.map((p) => p.id),
- cols: {},
- hidden: [],
- added: [],
- };
- state.layouts[dashId] = fresh;
- return fresh;
-}
-
-function mutate(dashId, defaultPanels, fn) {
- const ov = ensureOverride(dashId, defaultPanels);
- fn(ov);
- saveLayout(dashId);
-}
-
-// ---------- render ----------------------------------------
-const SIZES = [2, 3, 4, 6, 8, 12];
-
-function renderEditChrome(p) {
- const sizes = SIZES.map((s) =>
- `<button type="button" data-panel="${esc(p.id)}" data-size="${s}" class="${p.cols === s ? 'active' : ''}" aria-pressed="${p.cols === s}">${s}</button>`
- ).join('<span class="sep">·</span>');
- const frac = Math.max(0, Math.min(12, p.cols)) / 12;
- const meterFill = (frac * 96).toFixed(1);
- const meter = `
- <svg class="meter" viewBox="0 0 96 6" preserveAspectRatio="none" aria-hidden="true">
- <line x1="0" y1="5" x2="96" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="0.25"/>
- <line x1="0" y1="5" x2="${meterFill}" y2="5" stroke="var(--z-accent)" stroke-width="1"/>
- </svg>`;
- return `
- <div class="panel-edit" aria-label="Edit panel">
- <span class="colsLabel"><span class="max">COL</span> ${p.cols}<span class="slash">/</span><span class="max">12</span></span>
- ${meter}
- <span class="sizes">${sizes}</span>
- <button type="button" class="remove" data-panel="${esc(p.id)}" data-remove aria-label="Remove">✕</button>
- </div>`;
-}
-
-function renderPanel(p, data, editMode) {
- let inner = '';
- try {
- if (p.source === 'added') {
- const t = chartTypes[p.type] || chartTypes.markdown;
- inner = t.render(data);
- } else if (typeof p.render === 'function') {
- inner = p.render({ data });
- } else {
- inner = '';
- }
- // Empty-state fallback: if the render produced nothing meaningful,
- // show a typography-first placeholder so users see WHY the slot is
- // blank (e.g. filtered everything out) rather than a broken panel.
- const stripped = String(inner || '').replace(/<[^>]+>/g, '').trim();
- if (!stripped) {
- inner = `<div class="panel-empty mono faint">NO DATA · ADJUST FILTERS OR TIME RANGE</div>`;
- }
- } catch (err) {
- inner = `<div class="panel-empty mono faint">PANEL ERROR · ${esc((err.message || err) + '').slice(0, 80)}</div>`;
- }
- const editAttrs = editMode ? ' draggable="true"' : '';
- const editChrome = editMode ? renderEditChrome(p) : '';
- // A panel that declares `drilldown: { to: <dashId> }` adds a
- // data attribute the global click handler uses to route clicks
- // to the target dashboard with the clicked filter preserved.
- const drillAttr = p.drilldown?.to ? ` data-drilldown-to="${esc(p.drilldown.to)}"` : '';
- const drillHint = p.drilldown?.to ? `<span class="drill-hint mono faint">→ ${esc(p.drilldown.to.toUpperCase())}</span>` : '';
- return `
- <section class="panel${editMode ? ' edit' : ''}" data-panel="${esc(p.id)}" style="grid-column: span ${p.cols};"${editAttrs}${drillAttr}>
- ${editChrome}
- ${p.eyebrow ? `<div class="key">${esc(p.eyebrow)}${drillHint}</div>` : ''}
- ${inner}
- </section>`;
-}
-
-function renderAddPicker() {
- const items = chartTypeList.map((t) =>
- `<button type="button" data-add="${esc(t.id)}" title="${esc(t.describe || '')}">${esc(t.name)}</button>`
- ).join('<span class="sep">·</span>');
- return `
- <div class="add-picker">
- <span class="key" style="color:var(--z-accent);">+ ADD PANEL</span>
- <span class="types">${items}</span>
- </div>`;
-}
-
-async function render() {
- const app = document.getElementById('app');
- // Resolve the active dashboard from either the default registry or
- // the user metadata store. User-cloned dashboards inherit their
- // render from their clonedFrom template.
- const allDash = mergedDashboards(defaults, { includeHidden: true });
- const dash = allDash.find((d) => d.id === state.route)
- || dashboardsInSection(state.section, allDash)[0]
- || registry['ai-overview'];
- const navDash = mergedDashboards(defaults);
- const dashboardsForSection = dashboardsInSection('dashboards', navDash);
-
- // For the SEARCH dashboard, eagerly run the search so panels see hits.
- if (dash.id === 'search-discover' && !state.search.result) {
- runSearchNow();
- }
-
- const activeFilters = currentFilters();
- let data;
- let fetchErr = null;
- // Section-level views (data/settings/users/alerts) get their own
- // context builder. Everything else goes through the regular query.
- if (state.section === 'data' || state.section === 'settings') {
- try {
- data = await buildSectionData(state.section);
- } catch (err) {
- data = {};
- fetchErr = err;
- }
- } else {
- state.loading = true;
- try {
- const result = await query({
- dashId: dash.id,
- range: state.time,
- customRange: state.time === 'CUSTOM' ? state.timeCustom : null,
- cluster: state.cluster,
- filters: activeFilters,
- });
- data = result.data;
- state.fetchedAt = result.meta.fetchedAt;
- state.fetchMs = result.meta.durationMs;
- state.fetchErr = null;
- } catch (err) {
- state.fetchErr = err.message || String(err);
- fetchErr = err;
- } finally {
- state.loading = false;
- }
- if (fetchErr) {
- app.innerHTML = `
- ${Nav({ sections: SECTIONS, activeSection: state.section, dashboards: dashboardsForSection, groups: DASHBOARD_GROUPS, activeDash: dash.id, theme: state.theme, edit: state.edit, status: navStatus() })}
- <div class="scene"><div class="key" style="margin-bottom:12px;">ERROR</div><h1 class="h-scene">CANNOT LOAD</h1></div>
- <pre class="mono faint" style="white-space:pre-wrap; font-size:var(--fs-13);">${esc((fetchErr && fetchErr.stack) || fetchErr)}</pre>
- <div style="margin-top:var(--sp-6);"><button type="button" data-retry class="text-btn">RETRY</button></div>`;
- return;
- }
- }
-
- const view = dash.render({ data, time: state.time, search: state.search });
- // Let a user rename override the scene title. User-cloned dashboards
- // always use the user-chosen name; defaults only override if the user
- // has explicitly set an xerj.dashboards.names entry.
- try {
- const store = JSON.parse(localStorage.getItem('xerj.dashboards') || '{}');
- if (dash.isUser || (store.names && store.names[dash.id])) {
- view.title = (dash.name || view.title || '').toUpperCase();
- }
- } catch {}
- const merged = mergeLayout(view.panels, state.layouts[dash.id]);
- const panelsHtml = merged.length
- ? merged.map((p) => renderPanel(p, data, state.edit)).join('')
- : `<div class="mono faint" style="grid-column: span 12; padding:var(--sp-6) 0;">All panels hidden. Click RESET to restore defaults.</div>`;
-
- // Police-strip frame: a fixed-position overlay that lives in the page's
- // existing margins, so entering edit mode never shifts content. The frame
- // itself is a 1px dashed border around the viewport; the top strip carries
- // the EDIT MODE label and tips; the bottom strip carries the column index.
- const editFrame = state.edit ? `
- <div class="edit-frame" aria-hidden="true"></div>
- <div class="edit-strip-top" role="status">
- <span class="marker">EDIT MODE</span>
- <span class="tips">
- DRAG PANEL TO REORDER ·
- CLICK A <span class="key-bind">NUMBER</span> TO RESIZE ·
- <span class="key-bind">✕</span> TO REMOVE ·
- SCROLL FOR <span class="key-bind">+ ADD</span>
- </span>
- <span class="meta">${esc(dash.name.toUpperCase())} · ${merged.length} PANELS</span>
- </div>
- <div class="edit-strip-bottom" aria-hidden="true">${
- Array.from({ length: 12 }, (_, i) => `<span>${String(i + 1).padStart(2, '0')}</span>`).join('')
- }</div>
- ` : '';
- const gridOverlay = state.edit
- ? `<div class="edit-grid" aria-hidden="true">${'<span></span>'.repeat(12)}</div>`
- : '';
- const addHtml = state.edit ? renderAddPicker() : '';
-
- // Section-level views (alerts, data, users, settings) don't show the
- // inline time control — the time range is a dashboards-section concept.
- const hideTimeCtrl = state.section !== 'dashboards' && state.section !== 'discover';
- const showFilterBar = state.section === 'dashboards';
- const filterBarHtml = showFilterBar
- ? FilterBar({ filters: activeFilters, kql: serializeKql(activeFilters) })
- : '';
- const refreshHtml = hideTimeCtrl
- ? ''
- : RefreshCtrl({ active: state.refresh });
- const clusterHtml = hideTimeCtrl
- ? ''
- : ClusterCtrl({ clusters: listClustersSync(), active: state.cluster });
- const savedViewsHtml = showFilterBar
- ? SavedViews({ views: loadViews(), dashId: dash.id })
- : '';
-
- app.innerHTML = `
- ${Nav({
- sections: SECTIONS,
- activeSection: state.section,
- dashboards: dashboardsForSection,
- groups: DASHBOARD_GROUPS,
- activeDash: dash.id,
- theme: state.theme,
- edit: state.edit,
- mobile: state.mobile,
- status: navStatus(),
- })}
- ${state.mobile ? '<div class="iphone-frame"><div class="iphone-notch"></div><div class="iphone-screen">' : ''}
- ${SceneHeader({
- title: view.title, kicker: view.kicker || 'OBSERVE', meta: view.meta || [state.time],
- editable: state.edit, dashId: dash.id,
- })}
- ${view.caption ? `<p class="caption">${esc(view.caption)}</p>` : ''}
- ${hideTimeCtrl ? '' : `<div class="dash-ctrls">${TimeCtrl({ active: state.time, custom: state.timeCustom })}${refreshHtml}${clusterHtml}</div>`}
- ${filterBarHtml}
- ${savedViewsHtml}
- <main class="canvas${state.edit ? ' edit' : ''}" aria-label="${esc(dash.name)}">${gridOverlay}${panelsHtml}</main>
- ${addHtml}
- ${state.mobile ? '</div><div class="iphone-home-bar"></div></div>' : ''}
- ${Footer()}
- ${editFrame}
- `;
- app.setAttribute('aria-busy', 'false');
-
- // Restore focus on the search input (if we're on the search dashboard).
- if (state._focusSelector) {
- const el = document.querySelector(state._focusSelector);
- if (el) {
- el.focus();
- if (el.tagName === 'INPUT') {
- const v = el.value;
- el.setSelectionRange(v.length, v.length);
- }
- }
- state._focusSelector = null;
- }
-}
-
-// ---------- event delegation ------------------------------
-let dragSrcId = null;
-
-document.addEventListener('click', (e) => {
- // Primary nav: top-level product section
- const secA = e.target.closest('[data-section]');
- if (secA) {
- e.preventDefault();
- const sid = secA.getAttribute('data-section');
- if (sid === 'dashboards') {
- location.hash = '#/dashboards';
- } else {
- location.hash = '#/' + sid;
- }
- return;
- }
- // Secondary nav: a specific dashboard inside the dashboards section
- const dashA = e.target.closest('[data-dash]');
- if (dashA) {
- e.preventDefault();
- const id = dashA.getAttribute('data-dash');
- location.hash = '#/dashboards/' + id;
- return;
- }
- // Secondary nav: a collapsed group tab — switch groups by landing
- // on the group's first dashboard.
- const groupBtn = e.target.closest('[data-dash-group]');
- if (groupBtn) {
- e.preventDefault();
- const firstId = groupBtn.getAttribute('data-dash-group-first');
- if (firstId) location.hash = '#/dashboards/' + firstId;
- return;
- }
- // Time range
- const tb = e.target.closest('[data-time]');
- if (tb) {
- state.time = tb.getAttribute('data-time');
- localStorage.setItem(LS.time, state.time);
- // When switching INTO custom and we have no stored endpoints,
- // seed a sensible default (now − 24h → now).
- if (state.time === 'CUSTOM' && !state.timeCustom.from) {
- const now = new Date();
- const prev = new Date(now.getTime() - 24 * 3600 * 1000);
- const fmt = (d) => d.toISOString().slice(0, 16);
- state.timeCustom = { from: fmt(prev), to: fmt(now) };
- localStorage.setItem('xerj.timeFrom', state.timeCustom.from);
- localStorage.setItem('xerj.timeTo', state.timeCustom.to);
- }
- writeUrlState();
- render();
- return;
- }
- // Refresh interval
- const rf = e.target.closest('[data-refresh]');
- if (rf) {
- setRefreshInterval(parseInt(rf.getAttribute('data-refresh'), 10));
- render();
- return;
- }
- // Manual retry on error
- if (e.target.closest('[data-retry]')) {
- render();
- return;
- }
- // Global filter bar: click-to-filter (used by FilterBar pills and
- // any click-to-filter affordance inside a panel — TopN rows, Dist
- // segments, heatmap cells).
- const fAdd = e.target.closest('[data-filter-add]');
- if (fAdd) {
- const raw = fAdd.getAttribute('data-filter-add');
- const idx = raw.indexOf(':');
- if (idx > 0) {
- const field = raw.slice(0, idx);
- const value = raw.slice(idx + 1);
- // Drilldown takes precedence when the panel declares one.
- const drillHost = fAdd.closest('[data-drilldown-to]');
- if (drillHost) {
- const toId = drillHost.getAttribute('data-drilldown-to');
- // Seed the target dashboard's filters with this value before
- // navigating so the destination renders pre-filtered. The
- // search-discover dashboard has its own filter store
- // (state.search.filters) — seed that one instead.
- if (toId === 'search-discover') {
- state.search.filters = { ...(state.search.filters || {}), [field]: value };
- state.search.result = null; // force re-run on render
- } else {
- state.filters[toId] = { ...(state.filters[toId] || {}), [field]: value };
- try { localStorage.setItem(LS.filters(toId), JSON.stringify(state.filters[toId])); } catch {}
- }
- // Resolve the target's actual section — some targets (like
- // search-discover) live outside the 'dashboards' section and
- // need a different hash shape (#/discover rather than
- // #/dashboards/search-discover).
- const all = mergedDashboards(defaults, { includeHidden: true });
- const target = all.find((d) => d.id === toId);
- const sectionId = target?.section || 'dashboards';
- location.hash = sectionId === 'dashboards' ? `#/dashboards/${toId}` : `#/${sectionId}`;
- return;
- }
- setFilter(field, value);
- render();
- }
- return;
- }
- // Remove one chip from a filter pill (multi-value OR filters).
- const fRem = e.target.closest('[data-filter-remove]');
- if (fRem) {
- const raw = fRem.getAttribute('data-filter-remove');
- const idx = raw.indexOf(':');
- if (idx > 0) {
- removeFilterValue(raw.slice(0, idx), raw.slice(idx + 1));
- render();
- }
- return;
- }
- if (e.target.closest('[data-filter-clear]')) {
- clearFilters();
- render();
- return;
- }
- // Cluster selector
- const cset = e.target.closest('[data-cluster-set]');
- if (cset) {
- state.cluster = cset.getAttribute('data-cluster-set');
- setDefaultCluster(state.cluster);
- writeUrlState();
- render();
- return;
- }
- // Save current view
- if (e.target.closest('[data-view-save]')) {
- saveCurrentView();
- render();
- return;
- }
- // Apply a saved view
- const vApply = e.target.closest('[data-view-apply]');
- if (vApply) {
- applyView(vApply.getAttribute('data-view-apply'));
- return;
- }
- // Delete a saved view
- const vDel = e.target.closest('[data-view-delete]');
- if (vDel) {
- const id = vDel.getAttribute('data-view-delete');
- if (confirm('Delete this view?')) {
- deleteView(id);
- render();
- }
- return;
- }
- // Theme
- const th = e.target.closest('[data-theme-set]');
- if (th) {
- applyTheme(th.getAttribute('data-theme-set'));
- render();
- return;
- }
- // Mobile preview toggle
- if (e.target.closest('[data-mobile-toggle]')) {
- state.mobile = !state.mobile;
- localStorage.setItem('xerj.mobile', state.mobile ? '1' : '0');
- document.documentElement.classList.toggle('mobile-preview', state.mobile);
- render();
- return;
- }
- // Edit toggle
- if (e.target.closest('[data-edit-toggle]')) {
- state.edit = !state.edit;
- localStorage.setItem(LS.edit, state.edit ? '1' : '0');
- render();
- return;
- }
- // Reset layout
- if (e.target.closest('[data-reset-layout]')) {
- const id = state.route;
- delete state.layouts[id];
- saveLayout(id);
- render();
- return;
- }
- // Resize (click a size number)
- const sz = e.target.closest('[data-size]');
- if (sz) {
- const pid = sz.getAttribute('data-panel');
- const cols = parseInt(sz.getAttribute('data-size'), 10);
- const dash = registry[state.route];
- const view = dash.render({ data: {}, time: state.time });
- mutate(state.route, view.panels, (ov) => { ov.cols[pid] = cols; });
- render();
- return;
- }
- // Remove panel
- const rm = e.target.closest('[data-remove]');
- if (rm) {
- const pid = rm.getAttribute('data-panel');
- const dash = registry[state.route];
- const view = dash.render({ data: {}, time: state.time });
- mutate(state.route, view.panels, (ov) => {
- if (!ov.hidden.includes(pid)) ov.hidden.push(pid);
- const idx = (ov.added || []).findIndex((a) => a.id === pid);
- if (idx >= 0) ov.added.splice(idx, 1);
- });
- render();
- return;
- }
- // Search: query type
- const qt = e.target.closest('[data-query-type]');
- if (qt) {
- state.search.type = qt.getAttribute('data-query-type');
- runSearchNow();
- state._focusSelector = '[data-search-input]';
- render();
- return;
- }
- // Search: index
- const si = e.target.closest('[data-search-index]');
- if (si) {
- state.search.index = si.getAttribute('data-search-index');
- runSearchNow();
- state._focusSelector = '[data-search-input]';
- render();
- return;
- }
- // Facet apply (click-to-filter) — also drives the click-to-filter on Hit
- // row values and the ✕ on filter pills (clicking an active value removes).
- const fa = e.target.closest('[data-facet-apply]');
- if (fa) {
- const raw = fa.getAttribute('data-facet-apply');
- const colonIdx = raw.indexOf(':');
- const field = raw.slice(0, colonIdx);
- const value = raw.slice(colonIdx + 1);
- const cur = state.search.filters[field];
- if (cur === value) delete state.search.filters[field];
- else state.search.filters[field] = value;
- runSearchNow();
- render();
- return;
- }
- // Clear all filters
- if (e.target.closest('[data-facet-clear]')) {
- state.search.filters = {};
- runSearchNow();
- render();
- return;
- }
- // Sort a Hits column (GH#696 / GH#737)
- const sortBtn = e.target.closest('[data-sort-field]');
- if (sortBtn) {
- state.search.sort = {
- field: sortBtn.getAttribute('data-sort-field'),
- dir: sortBtn.getAttribute('data-sort-dir'),
- };
- runSearchNow();
- render();
- return;
- }
- // Toggle time-column visibility (GH#3319)
- if (e.target.closest('[data-toggle-time]')) {
- state.search.showTime = !state.search.showTime;
- runSearchNow();
- render();
- return;
- }
- // Export Hits as CSV (GH#1992 — the #1 ask of all time)
- if (e.target.closest('[data-export-csv]')) {
- const hits = state.search.result?.hits || [];
- const cols = state.search.showTime
- ? ['_index', '_id', '_score', '_ts', '_source']
- : ['_index', '_id', '_score', '_source'];
- downloadText('xerj-search-' + new Date().toISOString().slice(0, 19).replace(/[:T]/g, '-') + '.csv',
- 'text/csv', hitsToCsv(hits, cols));
- return;
- }
- // Export a panel chart as PNG (GH#1366 — 178 reactions)
- const pngBtn = e.target.closest('[data-export-png]');
- if (pngBtn) {
- const sec = pngBtn.closest('.panel');
- const svg = sec?.querySelector('svg.chart, svg.series');
- if (svg) {
- const id = sec.getAttribute('data-panel') || 'panel';
- svgToPng(svg, { filename: 'xerj-' + id + '.png' }).catch((err) =>
- console.error('PNG export failed', err));
- }
- return;
- }
- // --- MANAGE view click handlers -------------------------
- const mgUp = e.target.closest('[data-mg-up]');
- if (mgUp) {
- const id = mgUp.getAttribute('data-mg-up');
- const list = mergedDashboards(defaults, { includeHidden: true });
- const i = list.findIndex((d) => d.id === id);
- if (i > 0) {
- const order = list.map((d) => d.id);
- [order[i - 1], order[i]] = [order[i], order[i - 1]];
- reorderDashboards(order);
- render();
- }
- return;
- }
- const mgDown = e.target.closest('[data-mg-down]');
- if (mgDown) {
- const id = mgDown.getAttribute('data-mg-down');
- const list = mergedDashboards(defaults, { includeHidden: true });
- const i = list.findIndex((d) => d.id === id);
- if (i >= 0 && i < list.length - 1) {
- const order = list.map((d) => d.id);
- [order[i + 1], order[i]] = [order[i], order[i + 1]];
- reorderDashboards(order);
- render();
- }
- return;
- }
- const mgRename = e.target.closest('[data-mg-rename]');
- if (mgRename) {
- const id = mgRename.getAttribute('data-mg-rename');
- const current = mergedDashboards(defaults, { includeHidden: true }).find((d) => d.id === id);
- const name = prompt('Rename "' + (current?.name || id) + '":', current?.name || '');
- if (name != null) {
- renameDashboard(id, name);
- render();
- }
- return;
- }
- const mgHide = e.target.closest('[data-mg-hide]');
- if (mgHide) {
- const id = mgHide.getAttribute('data-mg-hide');
- const list = mergedDashboards(defaults, { includeHidden: true });
- const cur = list.find((d) => d.id === id);
- setHidden(id, !cur?.hidden);
- render();
- return;
- }
- const mgClone = e.target.closest('[data-mg-clone]');
- if (mgClone) {
- const id = mgClone.getAttribute('data-mg-clone');
- const current = mergedDashboards(defaults, { includeHidden: true }).find((d) => d.id === id);
- const name = prompt('Clone "' + (current?.name || id) + '" as:', (current?.name || 'Untitled') + ' (copy)');
- if (name) {
- const newId = createUserDashboard({ name, fromId: id });
- location.hash = '#/dashboards/' + newId;
- }
- return;
- }
- const mgDelete = e.target.closest('[data-mg-delete]');
- if (mgDelete) {
- const id = mgDelete.getAttribute('data-mg-delete');
- if (isUserDash(id) && confirm('Delete user dashboard "' + id + '"? This cannot be undone.')) {
- deleteUserDashboard(id);
- if (state.route === id) {
- location.hash = '#/settings';
- } else {
- render();
- }
- }
- return;
- }
- const mgNew = e.target.closest('[data-mg-new]');
- if (mgNew) {
- const fromId = mgNew.getAttribute('data-mg-new');
- const name = prompt(fromId ? 'New dashboard from "' + fromId + '" · Name:' : 'New blank dashboard · Name:', 'Untitled');
- if (name) {
- const newId = createUserDashboard({ name, fromId: fromId || null });
- location.hash = '#/dashboards/' + newId;
- }
- return;
- }
- const mgCluster = e.target.closest('[data-mg-cluster]');
- if (mgCluster) {
- setDefaultCluster(mgCluster.getAttribute('data-mg-cluster'));
- state._focusIndex = null;
- render();
- return;
- }
- const mgIndex = e.target.closest('[data-mg-index]');
- if (mgIndex) {
- state._focusIndex = mgIndex.getAttribute('data-mg-index');
- render();
- return;
- }
- if (e.target.closest('[data-mg-reset-all]')) {
- if (confirm('Reset ALL saved state? This wipes dashboards, layouts, theme, filters.')) {
- for (const k of Object.keys(localStorage)) {
- if (k.startsWith('xerj.')) localStorage.removeItem(k);
- }
- resetDashboards();
- location.reload();
- }
- return;
- }
-
- // Add panel (from ADD picker)
- const add = e.target.closest('[data-add]');
- if (add) {
- const typeId = add.getAttribute('data-add');
- const t = chartTypes[typeId];
- if (!t) return;
- const dash = registry[state.route];
- const view = dash.render({ data: {}, time: state.time });
- mutate(state.route, view.panels, (ov) => {
- ov.added = ov.added || [];
- const newId = typeId + '-' + Date.now().toString(36);
- ov.added.push({
- id: newId,
- type: typeId,
- eyebrow: t.name + ' · NEW',
- cols: t.cols || 6,
- });
- ov.order = ov.order || view.panels.map((p) => p.id);
- ov.order.push(newId);
- });
- render();
- // scroll to bottom so the new panel is visible
- requestAnimationFrame(() => window.scrollTo({ top: document.body.scrollHeight, behavior: 'smooth' }));
- return;
- }
-});
-
-// ---------- search input (Enter to run) -------------------
-document.addEventListener('keydown', (e) => {
- // KQL-lite input on dashboards
- const kq = e.target.closest && e.target.closest('[data-kql-input]');
- if (kq) {
- if (e.key === 'Enter') {
- e.preventDefault();
- applyKqlInput(kq.value);
- state._focusSelector = '[data-kql-input]';
- render();
- } else if (e.key === 'Escape') {
- e.preventDefault();
- kq.value = '';
- applyKqlInput('');
- state._focusSelector = '[data-kql-input]';
- render();
- }
- return;
- }
- const si = e.target.closest && e.target.closest('[data-search-input]');
- if (si) {
- if (e.key === 'Enter') {
- e.preventDefault();
- state.search.q = si.value;
- runSearchNow();
- state._focusSelector = '[data-search-input]';
- render();
- } else if (e.key === 'Escape') {
- si.value = '';
- state.search.q = '';
- state.search.filters = {};
- runSearchNow();
- state._focusSelector = '[data-search-input]';
- render();
- }
- return;
- }
- // Inline rename of the scene title in edit mode (contenteditable h1)
- const rn = e.target.closest && e.target.closest('[data-rename-dash]');
- if (rn) {
- if (e.key === 'Enter') {
- e.preventDefault();
- const id = rn.getAttribute('data-rename-dash');
- const name = rn.textContent.trim();
- renameDashboard(id, name);
- rn.blur();
- render();
- } else if (e.key === 'Escape') {
- e.preventDefault();
- rn.blur();
- render();
- }
- }
-});
-// Custom time range — FROM/TO datetime-local inputs
-document.addEventListener('change', (e) => {
- const tf = e.target.closest && e.target.closest('[data-time-from]');
- const tt = e.target.closest && e.target.closest('[data-time-to]');
- if (tf || tt) {
- state.timeCustom = {
- from: document.querySelector('[data-time-from]')?.value || '',
- to: document.querySelector('[data-time-to]')?.value || '',
- };
- localStorage.setItem('xerj.timeFrom', state.timeCustom.from);
- localStorage.setItem('xerj.timeTo', state.timeCustom.to);
- writeUrlState();
- render();
- }
-});
-
-// blur-save for inline rename (clicking outside the title also commits)
-document.addEventListener('blur', (e) => {
- const rn = e.target.closest && e.target.closest('[data-rename-dash]');
- if (!rn) return;
- const id = rn.getAttribute('data-rename-dash');
- const newName = rn.textContent.trim();
- renameDashboard(id, newName);
-}, true);
-
-// ---------- drag and drop ---------------------------------
-document.addEventListener('dragstart', (e) => {
- if (!state.edit) return;
- const sec = e.target.closest('.panel.edit');
- if (!sec) return;
- dragSrcId = sec.getAttribute('data-panel');
- sec.classList.add('dragging');
- try {
- e.dataTransfer.effectAllowed = 'move';
- e.dataTransfer.setData('text/plain', dragSrcId);
- } catch {}
-});
-document.addEventListener('dragover', (e) => {
- if (!state.edit || !dragSrcId) return;
- const sec = e.target.closest('.panel.edit');
- if (!sec) return;
- e.preventDefault();
- document.querySelectorAll('.drop-before, .drop-after').forEach((el) => el.classList.remove('drop-before', 'drop-after'));
- const rect = sec.getBoundingClientRect();
- const after = e.clientX > rect.left + rect.width / 2;
- sec.classList.add(after ? 'drop-after' : 'drop-before');
-});
-document.addEventListener('dragleave', (e) => {
- const sec = e.target.closest('.panel.edit');
- if (sec && !sec.contains(e.relatedTarget)) sec.classList.remove('drop-before', 'drop-after');
-});
-document.addEventListener('drop', (e) => {
- if (!state.edit || !dragSrcId) return;
- const sec = e.target.closest('.panel.edit');
- if (!sec) return;
- e.preventDefault();
- const targetId = sec.getAttribute('data-panel');
- const insertAfter = sec.classList.contains('drop-after');
- document.querySelectorAll('.drop-before, .drop-after').forEach((el) => el.classList.remove('drop-before', 'drop-after'));
- if (!targetId || targetId === dragSrcId) return;
-
- const dash = registry[state.route];
- const view = dash.render({ data: {}, time: state.time });
- mutate(state.route, view.panels, (ov) => {
- const fullOrder = ov.order && ov.order.length ? ov.order.slice() : view.panels.map((p) => p.id);
- // Make sure both src and target are in the order list (they should be).
- const have = new Set(fullOrder);
- if (!have.has(dragSrcId)) fullOrder.push(dragSrcId);
- if (!have.has(targetId)) fullOrder.push(targetId);
- const from = fullOrder.indexOf(dragSrcId);
- fullOrder.splice(from, 1);
- let to = fullOrder.indexOf(targetId);
- if (insertAfter) to += 1;
- fullOrder.splice(to, 0, dragSrcId);
- ov.order = fullOrder;
- });
- render();
-});
-document.addEventListener('dragend', () => {
- document.querySelectorAll('.dragging').forEach((el) => el.classList.remove('dragging'));
- document.querySelectorAll('.drop-before, .drop-after').forEach((el) => el.classList.remove('drop-before', 'drop-after'));
- dragSrcId = null;
-});
-
-// ---------- route changes ---------------------------------
-window.addEventListener('hashchange', () => {
- const parsed = parseRoute();
- state.section = parsed.section;
- state.route = parsed.route;
- // A URL with query string (e.g. from a share link) should reapply.
- const urlState = parseUrlState();
- if (urlState.time) state.time = urlState.time;
- if (urlState.cluster) state.cluster = urlState.cluster;
- if (urlState.filters) {
- state.filters[state.route] = { ...(state.filters[state.route] || {}), ...urlState.filters };
- saveFilters(state.route);
- }
- writeUrlState();
- render();
-});
-
-// Boot the refresh interval if the user had one saved.
-if (state.refresh > 0) setRefreshInterval(state.refresh);
-
-// Restore mobile preview class if it was active.
-if (state.mobile) document.documentElement.classList.add('mobile-preview');
-
-render();
diff --git a/xerj-ux/src/dashboards/agent-memory.js b/xerj-ux/src/dashboards/agent-memory.js
deleted file mode 100644
index 2479fcbf9..000000000
--- a/xerj-ux/src/dashboards/agent-memory.js
+++ /dev/null
@@ -1,111 +0,0 @@
-// ============================================================
-// Dashboard — AGENT · MEMORY
-//
-// XERJ.ai's unique primitive: append-only index with semantic
-// dedup and recency-weighted recall for long-running agents.
-// This is the only dashboard in the category — nobody else
-// ships this at the data-layer level.
-// ============================================================
-
-import { Num } from '../ux/text.js';
-import { Spark, Series, Dist } from '../ux/charts.js';
-import { EmbedSpace } from '../ux/charts-ai.js';
-import { Citations } from '../ux/charts-ops.js';
-import { TopN } from '../ux/layout.js';
-import { Table } from '../ux/tables.js';
-import { dashboardCitations } from '../data/feedback-citations.js';
-
-export const agentMemory = {
- id: 'agent-memory',
- name: 'Agent · Memory',
- render: ({ data, time }) => ({
- title: 'AGENT · MEMORY',
- kicker: 'APPEND-ONLY · DEDUP · RECENCY',
- meta: [time, 'AGENTIC LOOPS'],
- panels: [
-
- { id: 'entries', eyebrow: 'MEMORY ENTRIES', cols: 4, type: 'metric',
- render: () => Num({
- value: data.metrics.entries.formatted, unit: 'stored',
- spark: Spark(data.series.size, { w: 220, h: 44 }),
- delta: data.metrics.entries.delta, emphasis: true,
- }),
- },
- { id: 'dedup', eyebrow: 'DEDUP RATE', cols: 2, type: 'metric',
- render: () => Num({
- value: data.metrics.dedup.formatted, unit: '%',
- delta: data.metrics.dedup.delta, deltaGood: 'up', emphasis: false,
- }),
- },
- { id: 'recall', eyebrow: 'RECALL P95', cols: 2, type: 'metric',
- render: () => Num({
- value: data.metrics.recall.formatted, unit: 'ms',
- delta: data.metrics.recall.delta, deltaGood: 'down', emphasis: false,
- }),
- },
- { id: 'growth', eyebrow: 'GROWTH', cols: 2, type: 'metric',
- render: () => Num({
- value: data.metrics.growth.formatted, unit: 'new',
- hint: data.metrics.growth.hint, emphasis: false,
- }),
- },
- { id: 'agents', eyebrow: 'AGENTS', cols: 2, type: 'metric',
- render: () => Num({
- value: data.metrics.agents.formatted, unit: 'online',
- hint: data.metrics.agents.hint, emphasis: false,
- }),
- },
-
- { id: 'sizeSeries', eyebrow: 'MEMORY SIZE OVER TIME', cols: 12, type: 'line',
- render: () => Series(data.series.size, {
- h: 140, labels: [data.series.startLabel, data.series.endLabel], unit: 'entries',
- }),
- },
-
- { id: 'embedSpace', eyebrow: 'SEMANTIC MEMORY · ONCALL-TRIAGE · UMAP', cols: 12, type: 'embedspace',
- render: () => EmbedSpace({ clusters: data.clusters, h: 360 }),
- },
-
- { id: 'byAgent', eyebrow: 'BY AGENT', cols: 6, type: 'topn',
- render: () => TopN({
- items: data.agents,
- total: data.agents.reduce((a, b) => a + b.value, 0),
- n: 10,
- }),
- },
-
- { id: 'topMemories', eyebrow: 'MOST-REFERENCED MEMORIES', cols: 6, type: 'topn',
- render: () => TopN({
- items: data.topMemories,
- n: 10,
- valueFmt: (v) => v + '× ',
- }),
- },
-
- { id: 'dedupSeries', eyebrow: 'DEDUP RATE OVER TIME', cols: 6, type: 'line',
- render: () => Series(data.series.dedup, {
- h: 100, labels: [data.series.startLabel, data.series.endLabel], unit: '%',
- }),
- },
-
- { id: 'recallSeries', eyebrow: 'RECALL P95 OVER TIME', cols: 6, type: 'line',
- render: () => Series(data.series.recallP95, {
- h: 100, labels: [data.series.startLabel, data.series.endLabel], unit: 'ms',
- }),
- },
-
- { id: 'recentOps', eyebrow: 'RECENT OPERATIONS', cols: 12, type: 'table',
- render: () => Table({
- columns: ['TIME', 'OP', 'AGENT', 'DETAIL'],
- rows: data.recentOps,
- align: ['left', 'left', 'left', 'left'],
- }),
- },
-
- { id: 'citations', eyebrow: 'WHY THIS PANEL EXISTS · USER FEEDBACK', cols: 12, type: 'citations',
- render: () => Citations({ items: dashboardCitations['agent-memory'] || [], total: 5150 }),
- },
-
- ],
- }),
-};
diff --git a/xerj-ux/src/dashboards/ai-overview.js b/xerj-ux/src/dashboards/ai-overview.js
deleted file mode 100644
index a456de066..000000000
--- a/xerj-ux/src/dashboards/ai-overview.js
+++ /dev/null
@@ -1,100 +0,0 @@
-// ============================================================
-// Dashboard — AI · OVERVIEW (flagship)
-//
-// Answers: am I serving AI at scale, what does it cost me,
-// what would it cost on ES + Pinecone + Splunk, where is my
-// money going?
-// ============================================================
-
-import { Num } from '../ux/text.js';
-import { Spark, Series, Dist, Heatmap } from '../ux/charts.js';
-import { Ribbon3D, FlowBand } from '../ux/charts-ai.js';
-import { Citations } from '../ux/charts-ops.js';
-import { TopN } from '../ux/layout.js';
-import { dashboardCitations } from '../data/feedback-citations.js';
-
-export const aiOverview = {
- id: 'ai-overview',
- name: 'AI · Overview',
- render: ({ data, time }) => ({
- title: 'AI · OVERVIEW',
- kicker: 'XERJ INTELLIGENCE',
- meta: [time, 'AI DATA PLANE'],
- panels: [
-
- { id: 'queries', eyebrow: 'LLM QUERIES', cols: 4, type: 'metric',
- render: () => Num({
- value: data.metrics.queries.formatted, unit: 'queries',
- spark: Spark(data.series.queries, { w: 220, h: 44 }),
- delta: data.metrics.queries.delta, emphasis: true,
- }),
- },
- { id: 'tokens', eyebrow: 'TOKENS · IN + OUT', cols: 2, type: 'metric',
- render: () => Num({
- value: data.metrics.tokens.formatted, unit: 'T',
- delta: data.metrics.tokens.delta, emphasis: false,
- }),
- },
- { id: 'cost', eyebrow: 'SPEND · USD', cols: 2, type: 'metric',
- render: () => Num({
- value: data.metrics.cost.formatted, unit: 'usd',
- delta: data.metrics.cost.delta, deltaGood: 'down', emphasis: false,
- }),
- },
- { id: 'savings', eyebrow: 'vs. ES + PINECONE + SPLUNK', cols: 2, type: 'metric',
- render: () => Num({
- value: data.metrics.savings.formatted, unit: 'saved',
- hint: data.metrics.savings.note,
- emphasis: false,
- }),
- },
- { id: 'cacheHit', eyebrow: 'CACHE HIT', cols: 2, type: 'metric',
- render: () => Num({
- value: data.metrics.cacheHit.formatted, unit: '%',
- delta: data.metrics.cacheHit.delta, emphasis: false,
- }),
- },
-
- { id: 'queriesSeries', eyebrow: 'QUERIES OVER TIME', cols: 12, type: 'line',
- render: () => Series(data.series.queries, {
- h: 160, labels: [data.series.startLabel, data.series.endLabel], unit: 'q/s',
- }),
- },
-
- { id: 'latencyRibbons', eyebrow: 'LATENCY · PER MODEL · AXONOMETRIC', cols: 12, type: 'ribbon3d',
- render: () => Ribbon3D({ series: data.latencyRibbons, h: 280, depth: 14 }),
- },
-
- { id: 'tokenFlow', eyebrow: 'TOKEN BUDGET', cols: 12, type: 'flowband',
- render: () => FlowBand({ segments: data.flowSegments, unit: 'T' }),
- },
-
- { id: 'models', eyebrow: 'BY MODEL', cols: 12, type: 'dist',
- render: () => Dist({ segments: data.models, width: 1200 }),
- },
-
- { id: 'topIntents', eyebrow: 'TOP INTENTS · CLICK TO DRILL', cols: 6, type: 'topn',
- drilldown: { to: 'search-discover' },
- render: () => TopN({ items: data.intents, total: data.metrics.queries.value, n: 10, filterField: 'intent' }),
- },
-
- { id: 'topDocs', eyebrow: 'TOP DOCUMENTS · CLICK TO FILTER', cols: 6, type: 'topn',
- render: () => TopN({ items: data.topDocs, total: data.metrics.queries.value, n: 10, filterField: 'doc' }),
- },
-
- { id: 'costHeatmap', eyebrow: 'SPEND · WEEKDAY × 2H', cols: 12, type: 'heatmap',
- render: () => Heatmap({
- rows: ['MON','TUE','WED','THU','FRI','SAT','SUN'],
- cols: data.costHeatmap.cols,
- matrix: data.costHeatmap.matrix,
- cellFmt: (v) => '$' + v.toFixed(0),
- }),
- },
-
- { id: 'citations', eyebrow: 'WHY THIS PANEL EXISTS · USER FEEDBACK', cols: 12, type: 'citations',
- render: () => Citations({ items: dashboardCitations['ai-overview'] || [], total: 5150 }),
- },
-
- ],
- }),
-};
diff --git a/xerj-ux/src/dashboards/alerts.js b/xerj-ux/src/dashboards/alerts.js
deleted file mode 100644
index e5aced459..000000000
--- a/xerj-ux/src/dashboards/alerts.js
+++ /dev/null
@@ -1,157 +0,0 @@
-// ============================================================
-// Section — ALERTS
-//
-// Live alert rules + recent fires + noisy rules + rule authoring.
-//
-// Corpus evidence: 349 items in categories/07-alerting-and-watcher,
-// 49% negative. Recurring complaints:
-// • "Watcher → Alerting → Rules" migration confusion (GH issues)
-// • noisy alerts, silent alerts, rules fire with no trail
-// • separate Watcher app you have to remember exists
-// • authoring YAML for simple threshold rules
-//
-// XERJ response: rules as code (stored as JSON in xerj.rules.*),
-// NL→rule authoring via the embed-proxy (Phase 3), connector
-// status visible inline, no separate "app".
-// ============================================================
-
-import { Num } from '../ux/text.js';
-import { Spark, Series, Dist } from '../ux/charts.js';
-import { TopN, Events } from '../ux/layout.js';
-import { Table, Markdown } from '../ux/tables.js';
-import { FlowBand } from '../ux/charts-ai.js';
-import { Citations } from '../ux/charts-ops.js';
-
-export const alerts = {
- id: 'alerts',
- name: 'Alerts',
- section: 'alerts',
- render: ({ data, time }) => ({
- title: 'ALERTS',
- kicker: 'RULES · FIRES · CONNECTORS',
- meta: [time, 'AS CODE · NO WATCHER APP'],
- caption: 'Alert rules as code, not YAML in a hidden app. Every rule is a JSON file under `xerj.rules.*` you can diff, review, and version. This view is the operator surface — active fires, rule health, connector status, and the corpus evidence that says Kibana got this wrong.',
- panels: [
-
- { id: 'active', eyebrow: 'ACTIVE FIRES', cols: 3, type: 'metric',
- render: () => Num({
- value: '7', unit: 'open',
- delta: -12.5, deltaGood: 'down',
- spark: Spark([3,5,8,12,14,11,9,7,6,7,5,7], { w: 160, h: 32 }),
- emphasis: true,
- }),
- },
- { id: 'silenced', eyebrow: 'SILENCED', cols: 2, type: 'metric',
- render: () => Num({ value: '3', unit: 'rules', hint: '2h avg ttl', emphasis: false }),
- },
- { id: 'rules', eyebrow: 'RULES DEFINED', cols: 2, type: 'metric',
- render: () => Num({ value: '48', unit: 'total', hint: '12 recently modified', emphasis: false }),
- },
- { id: 'fires', eyebrow: 'FIRES · 24H', cols: 2, type: 'metric',
- render: () => Num({ value: '132', unit: 'events', delta: 4.2, deltaGood: 'down', emphasis: false }),
- },
- { id: 'connectors', eyebrow: 'CONNECTORS', cols: 3, type: 'metric',
- render: () => Num({ value: '4', unit: 'healthy', hint: 'slack · pagerduty · webhook · email', emphasis: false }),
- },
-
- { id: 'firesOverTime', eyebrow: 'FIRES OVER TIME', cols: 12, type: 'line',
- render: () => Series(
- Array.from({ length: 48 }, (_, i) => 4 + Math.sin(i / 6) * 3 + Math.cos(i / 3) * 2 + Math.random() * 2),
- { h: 140, labels: ['00:00', '24:00'], unit: '/bucket' }
- ),
- },
-
- { id: 'bySev', eyebrow: 'BY SEVERITY', cols: 12, type: 'dist',
- render: () => Dist({
- segments: [
- { label: 'CRITICAL', value: 8 },
- { label: 'ERROR', value: 24 },
- { label: 'WARN', value: 62 },
- { label: 'INFO', value: 38 },
- ],
- width: 1200,
- }),
- },
-
- { id: 'topNoisy', eyebrow: 'TOP NOISY RULES · FIRES / 24H', cols: 6, type: 'topn',
- render: () => TopN({
- items: [
- { label: 'checkout-svc p95 latency > 2s', value: 28 },
- { label: 'auth failures > 10/min', value: 24 },
- { label: 'disk utilization > 90%', value: 18 },
- { label: 'memtable ratio > 0.8', value: 14 },
- { label: 'upstream 5xx > 1%', value: 12 },
- { label: 'wal lag > 50ms', value: 11 },
- { label: 'cache hit rate < 50%', value: 9 },
- { label: 'hnsw recall < 95%', value: 7 },
- ],
- total: 132,
- n: 8,
- }),
- },
-
- { id: 'recent', eyebrow: 'RECENT · LAST 30 EVENTS', cols: 6, type: 'events',
- render: () => Events({ items: [
- { at: '23:14:02', sev: 'err', msg: 'checkout-svc p95 latency > 2s · 2842ms · critical' },
- { at: '23:13:51', sev: 'warn', msg: 'auth failures > 10/min · 14 failed logins · src=45.137.21.4' },
- { at: '23:13:22', sev: 'warn', msg: 'upstream 5xx > 1% · 1.8% on /api/v2/checkout' },
- { at: '23:12:48', sev: 'info', msg: 'disk utilization > 90% · ip-10-0-4-73 · 92%' },
- { at: '23:12:09', sev: 'err', msg: 'hnsw recall < 95% · embeddings index · 93.7%' },
- { at: '23:11:44', sev: 'warn', msg: 'memtable ratio > 0.8 · logs-prod · 0.84' },
- { at: '23:11:03', sev: 'info', msg: 'wal lag > 50ms · ingest-worker · 62ms' },
- { at: '23:10:41', sev: 'warn', msg: 'cache hit rate < 50% · /api/v2/search · 42%' },
- ]}),
- },
-
- { id: 'ruleAsCode', eyebrow: 'RULES AS CODE · EXAMPLE', cols: 12, type: 'markdown',
- render: () => Markdown(
-`## This is what a rule looks like
-
-A XERJ.ai alert rule is a JSON object. It lives in git, not in a database.
-You diff it, review it, roll it back. No separate app, no YAML, no "Watcher"
-vs "Alerting" vs "Rules" migration confusion.
-
-\`\`\`
-{
- "id": "checkout-p95-latency",
- "name": "Checkout p95 latency > 2s",
- "severity": "critical",
- "query": {
- "index": "metrics",
- "metric": "query_latency_s{quantile=\\"0.95\\",service=\\"checkout-svc\\"}",
- "window": "5m",
- "op": ">",
- "value": 2.0
- },
- "dedupe": "30m",
- "notify": ["pagerduty/oncall", "slack/#oncall"],
- "runbook": "https://runbook.internal/checkout-latency"
-}
-\`\`\`
-
-That's all of it. Put it in \`rules/checkout-p95-latency.json\`. Commit.
-The engine watches the directory and starts evaluating. If you delete the
-file, the rule stops — no orphaned state.`
- ),
- },
-
- { id: 'citations', eyebrow: 'WHY THIS SECTION EXISTS · USER FEEDBACK', cols: 12, type: 'citations',
- render: () => Citations({
- items: [
- { id: 'kibana-alerting', source: 'github', score: 143,
- title: 'Allow Authors to Limit Interactivity',
- url: 'https://github.com/elastic/kibana/issues/9575' },
- { id: 'watcher-1', source: 'discourse', score: 47,
- title: 'Watcher that counts the documents that arrive to an index in kibana',
- url: 'https://discuss.elastic.co/t/watcher-that-counts-the-documents-that-arrive-to-an-index-in-kibana/270609/23' },
- { id: 'alerting-noise', source: 'reddit', score: 22,
- title: 'Kibana alerting: noisy, silent, or broken — pick one',
- url: 'https://www.reddit.com/r/elasticsearch/' },
- ],
- total: 349,
- }),
- },
-
- ],
- }),
-};
diff --git a/xerj-ux/src/dashboards/anomaly-detect.js b/xerj-ux/src/dashboards/anomaly-detect.js
deleted file mode 100644
index 9861384f4..000000000
--- a/xerj-ux/src/dashboards/anomaly-detect.js
+++ /dev/null
@@ -1,134 +0,0 @@
-// ============================================================
-// Dashboard — ANOMALY · DETECTION (z-score + attribution)
-//
-// Note: the engine's native anomaly pipeline is aspirational
-// today. This dashboard runs a rolling 2.5σ detector on the
-// client so the panels are real — it'll flip to server-side
-// scoring once that module lands. The story is the same either
-// way: *what fired, when, and why*.
-// ============================================================
-
-import { Num } from '../ux/text.js';
-import { Spark, Dist } from '../ux/charts.js';
-import { AnomalyBand, Citations } from '../ux/charts-ops.js';
-import { TopN } from '../ux/layout.js';
-import { Treemap } from '../ux/charts-ext.js';
-import { ParallelCoords, AttentionMap } from '../ux/charts-ai.js';
-import { dashboardCitations } from '../data/feedback-citations.js';
-
-export const anomalyDetect = {
- id: 'anomaly-detect',
- name: 'Anomaly',
- render: ({ data, time }) => ({
- title: 'ANOMALY · DETECTION',
- kicker: 'WHAT FIRED · WHEN · WHY',
- meta: [time, 'Z-SCORE · 2.5σ BAND · BETA'],
- caption: 'Rolling-window z-score over 14 engine-emitted signals. The normal band is mean ± 2.5σ across a sliding window. Crosses mark values outside the band; the top-anomaly attribution row explains which features moved.',
- panels: [
-
- { id: 'detected', eyebrow: 'ANOMALIES · LAST PERIOD', cols: 4, type: 'metric',
- render: () => Num({
- value: data.metrics.detected.formatted, unit: 'fired',
- delta: data.metrics.detected.delta, deltaGood: 'down', emphasis: true,
- }),
- },
- { id: 'covered', eyebrow: 'SIGNALS SCORED', cols: 2, type: 'metric',
- render: () => Num({
- value: data.metrics.covered.formatted, unit: 'streams',
- hint: data.metrics.covered.hint, emphasis: false,
- }),
- },
- { id: 'falsePos', eyebrow: 'FALSE-POSITIVE RATE', cols: 3, type: 'metric',
- render: () => Num({
- value: data.metrics.falsePos.formatted, unit: '%',
- delta: data.metrics.falsePos.delta, deltaGood: 'down', emphasis: false,
- }),
- },
- { id: 'recall', eyebrow: 'RECALL vs HAND LABELS', cols: 3, type: 'metric',
- render: () => Num({
- value: data.metrics.recall.formatted, unit: '%',
- hint: data.metrics.recall.hint, emphasis: false,
- }),
- },
-
- { id: 'band', eyebrow: 'QUERY LATENCY · NORMAL BAND · μ ± 2.5σ', cols: 12, type: 'anomalyband',
- render: () => AnomalyBand({
- values: data.series.values,
- upper: data.series.upper,
- lower: data.series.lower,
- anomalies: data.series.anomalies,
- h: 240,
- labels: [data.series.startLabel, data.series.endLabel],
- unit: 'ms',
- }),
- },
-
- { id: 'topSignals', eyebrow: 'MOST-ANOMALOUS SIGNALS · BY z-SCORE', cols: 6, type: 'topn',
- render: () => TopN({
- items: data.topSignals,
- n: 10,
- valueFmt: (v) => 'z ' + v.toFixed(1),
- }),
- },
-
- { id: 'features', eyebrow: 'FEATURE ATTRIBUTION · TOP ANOMALY', cols: 6, type: 'topn',
- render: () => TopN({
- items: data.topFeatures,
- n: 8,
- valueFmt: (v) => 'Δ ' + v.toFixed(1) + 'σ',
- }),
- },
-
- { id: 'pcoords', eyebrow: 'SIGNAL PROFILE · PARALLEL COORDINATES', cols: 12, type: 'pcoords',
- render: () => ParallelCoords({
- dims: [
- { name: 'LAT p95' }, { name: 'QPS' }, { name: 'WAL LAG' },
- { name: 'FLUSH' }, { name: 'MEM' }, { name: 'CPU' },
- ],
- rows: Array.from({ length: 80 }, () => [
- 200 + Math.random() * 1400,
- 800 + Math.random() * 1800,
- 2 + Math.random() * 20,
- 180 + Math.random() * 220,
- 60 + Math.random() * 30,
- 30 + Math.random() * 55,
- ]),
- highlight: [1680, 2600, 28, 420, 84, 82],
- h: 260,
- }),
- },
-
- { id: 'cause', eyebrow: 'ROOT-CAUSE CANDIDATES · RANKED', cols: 6, type: 'treemap',
- render: () => Treemap({ items: [
- { label: 'upstream checkout-svc:8080', value: 38, children: [
- { label: 'connect timeout (5xx burst)', value: 22 },
- { label: 'slow upstream (p95 +420ms)', value: 12 },
- { label: 'connection reset', value: 4 },
- ]},
- { label: 'gc pause · auth-svc', value: 14, children: [
- { label: 'old-gen exhausted', value: 8 },
- { label: 'young-gen pause', value: 6 },
- ]},
- { label: 'wal lag · ingest-worker', value: 9 },
- { label: 'embed-proxy 429 rate', value: 6 },
- ]}),
- },
-
- { id: 'trace', eyebrow: 'CORRELATED LOG · ATTENTION EXPLAIN', cols: 6, type: 'attention',
- render: () => AttentionMap({
- tokens: ('upstream timed out ( connect ) while connecting to upstream client: 10.0.3.42 upstream: "http://checkout-svc:8080/api/v2/checkout/quote" request: "POST /api/v2/checkout HTTP/1.1" retry_after: 30s fallback: cached-rate-bucket').split(' ').map((t) => ({
- text: t,
- weight: /(upstream|timed|out|connect|checkout-svc|retry_after|fallback)/i.test(t)
- ? 0.7 + Math.random() * 0.3
- : 0.1 + Math.random() * 0.25,
- })),
- }),
- },
-
- { id: 'citations', eyebrow: 'WHY THIS PANEL EXISTS · USER FEEDBACK', cols: 12, type: 'citations',
- render: () => Citations({ items: dashboardCitations['anomaly-detect'] || [], total: 5150 }),
- },
-
- ],
- }),
-};
diff --git a/xerj-ux/src/dashboards/data.js b/xerj-ux/src/dashboards/data.js
deleted file mode 100644
index b50d48923..000000000
--- a/xerj-ux/src/dashboards/data.js
+++ /dev/null
@@ -1,167 +0,0 @@
-// ============================================================
-// Section — DATA
-//
-// Cluster / index / field browser. This is the product surface
-// for "what data does the engine have, where does it live,
-// what fields are indexed, and how are they encoded".
-//
-// The three functions in data/data-sources.js are the ONLY
-// place that swaps from mock to live fetch when the engine is
-// ready. When the backend ships /v1/clusters + /v1/indices,
-// this page becomes live automatically.
-// ============================================================
-
-import { esc } from '../ux/text.js';
-import { Citations } from '../ux/charts-ops.js';
-import { Markdown } from '../ux/tables.js';
-import { defaultClusterId } from '../data/data-sources.js';
-
-const humanCount = (n) => {
- if (n == null) return '—';
- if (n >= 1e9) return (n / 1e9).toFixed(1) + 'B';
- if (n >= 1e6) return (n / 1e6).toFixed(1) + 'M';
- if (n >= 1e3) return (n / 1e3).toFixed(0) + 'K';
- return String(n);
-};
-const humanBytes = (b) => {
- if (b == null) return '—';
- const u = ['B','KB','MB','GB','TB','PB'];
- let v = b, i = 0;
- while (v >= 1024 && i < u.length - 1) { v /= 1024; i++; }
- return v.toFixed(v < 10 ? 1 : 0) + ' ' + u[i];
-};
-
-export const dataSection = {
- id: 'data',
- name: 'Data',
- section: 'data',
- render: ({ data, time }) => {
- const clusters = data.clusters || [];
- const indicesByCluster = data.indicesByCluster || {};
- const fieldsByIndex = data.fieldsByIndex || {};
- const active = data.activeCluster || 'local';
- const activeIndices = indicesByCluster[active] || [];
- const focusIndex = data.focusIndex || activeIndices[0]?.name;
- const fields = fieldsByIndex[focusIndex] || [];
-
- return {
- title: 'DATA',
- kicker: 'CLUSTERS · INDICES · FIELDS',
- meta: [time, 'SOURCES'],
- caption: 'What the engine actually has. Every row on this page maps to a real endpoint: `GET /v1/clusters`, `GET /v1/clusters/:id/indices`, `GET /v1/indices/:name/_mapping`. The mock values flip to live fetch the day the backend ships — nothing else on this page changes.',
- panels: [
-
- { id: 'clusters', eyebrow: 'CLUSTERS · CLICK TO SET DEFAULT', cols: 12, type: 'clusters',
- render: () => renderClusters(clusters, active),
- },
-
- { id: 'indices', eyebrow: `INDICES · ${active.toUpperCase()} · CLICK AN INDEX TO INSPECT FIELDS`, cols: 6, type: 'indices',
- render: () => renderIndices(activeIndices, focusIndex),
- },
-
- { id: 'fields', eyebrow: `FIELDS · ${focusIndex || '—'} · FROM /v1/indices/:name/_mapping`, cols: 6, type: 'fields',
- render: () => renderFields(fields),
- },
-
- { id: 'howTo', eyebrow: 'CONNECTING A NEW CLUSTER', cols: 12, type: 'markdown',
- render: () => Markdown(
-`## Point XERJ.ai at a cluster
-
-Today, clusters are defined in \`src/data/data-sources.js\` and read from
-mock arrays. **When the engine ships** the HTTP bindings that this page
-expects, clusters will be configured through this UI instead.
-
-\`\`\`
-POST /v1/clusters
-{
- "id": "prod-us",
- "name": "PROD-US",
- "url": "https://xerj-us-east-1.internal:8080",
- "auth": { "type": "bearer", "token": "$XERJ_TOKEN" }
-}
-\`\`\`
-
-The current default cluster is stored in \`localStorage.xerj.cluster\`,
-which you can inspect under SETTINGS. Every query goes to that cluster
-unless a specific dashboard panel overrides it via its \`source: { cluster }\`
-binding.`
- ),
- },
-
- { id: 'citations', eyebrow: 'WHY THIS SECTION EXISTS · USER FEEDBACK', cols: 12, type: 'citations',
- render: () => Citations({
- items: [
- { id: 'gh-6498', source: 'github', score: 57,
- title: 'Remove index pattern mapping cache',
- url: 'https://github.com/elastic/kibana/issues/6498' },
- { id: 'gh-17888', source: 'github', score: 45,
- title: 'Per-user profiles, settings in Kibana',
- url: 'https://github.com/elastic/kibana/issues/17888' },
- { id: 'gh-17542', source: 'github', score: 57,
- title: 'Ability to change the index pattern on a visualization',
- url: 'https://github.com/elastic/kibana/issues/17542' },
- ],
- total: 451,
- }),
- },
-
- ],
- };
- },
-};
-
-// ---------- renderers -----------------------------------
-
-function renderClusters(clusters, active) {
- if (!clusters.length) return '<div class="mono faint">No clusters configured.</div>';
- const rows = clusters.map((c) => {
- const isActive = c.id === active;
- const status = {
- green: `<span class="mono accent">●</span>`,
- yellow: `<span class="mono faint">◐</span>`,
- red: `<span class="mono">○</span>`,
- }[c.status] || '—';
- return `
- <button type="button" class="mg-cluster${isActive ? ' mg-cluster-active' : ''}" data-mg-cluster="${esc(c.id)}">
- <span class="mg-cluster-status">${status}</span>
- <span class="mg-cluster-name mono${isActive ? ' accent' : ''}">${esc(c.name)}</span>
- <span class="mg-cluster-url mono faint">${esc(c.url)}</span>
- <span class="mg-cluster-stat mono">${humanCount(c.indices)}&nbsp;idx</span>
- <span class="mg-cluster-stat mono">${humanCount(c.docs)}&nbsp;docs</span>
- <span class="mg-cluster-ver mono faint">${esc(c.version)}</span>
- </button>`;
- }).join('');
- return `<div class="mg-clusters">${rows}</div>`;
-}
-
-function renderIndices(indices, focusIndex) {
- if (!indices.length) return '<div class="mono faint">No indices in this cluster.</div>';
- const cols = ['NAME', 'DOCS', 'SIZE', 'SHARDS', 'RETENTION'];
- const headRow = `<div class="mg-idx-row mg-idx-head">${cols.map((c) => `<span>${esc(c)}</span>`).join('')}</div>`;
- const body = indices.map((i) => {
- const cells = [
- `<button type="button" class="mg-idx-btn${i.name === focusIndex ? ' active' : ''}" data-mg-index="${esc(i.name)}">${esc(i.name)}</button>`,
- humanCount(i.docs),
- humanBytes(i.bytes),
- String(i.shards),
- i.retention_days == null ? '∞' : i.retention_days + 'd',
- ];
- return `<div class="mg-idx-row">${cells.map((c) => `<span>${c}</span>`).join('')}</div>`;
- }).join('');
- return `<div class="mg-idx-table">${headRow}${body}</div>`;
-}
-
-function renderFields(fields) {
- if (!fields.length) return '<div class="mono faint">No mapping for this index.</div>';
- const cols = ['FIELD', 'TYPE', 'CARDINALITY', 'ENCODING', 'RATIO'];
- const headRow = `<div class="mg-fld-row mg-fld-head">${cols.map((c) => `<span>${esc(c)}</span>`).join('')}</div>`;
- const body = fields.map((f) => `
- <div class="mg-fld-row">
- <span class="mono">${esc(f.name)}</span>
- <span class="mono faint">${esc(f.type)}</span>
- <span class="mono">${humanCount(f.cardinality)}</span>
- <span class="mono faint">${esc(f.encoding)}</span>
- <span class="mono">${(f.ratio * 100).toFixed(0)}%</span>
- </div>`).join('');
- return `<div class="mg-fld-table">${headRow}${body}</div>`;
-}
diff --git a/xerj-ux/src/dashboards/ingest-pipeline.js b/xerj-ux/src/dashboards/ingest-pipeline.js
deleted file mode 100644
index 654804bd6..000000000
--- a/xerj-ux/src/dashboards/ingest-pipeline.js
+++ /dev/null
@@ -1,127 +0,0 @@
-// ============================================================
-// Dashboard — INGEST · PIPELINE (engine internals)
-//
-// Every number on this dashboard corresponds to a real metric
-// emitted by xerj-common/src/metrics.rs (/v1/metrics):
-// docs_indexed, bytes_written, index_latency_s (p50/p95/p99),
-// flush_duration_s, merge_duration_s, wal_write_latency_s,
-// wal_size_bytes, segment_count, memory_usage, active_searches.
-// Plus per-field encodings from /v1/indices/:name/encodings.
-// ============================================================
-
-import { Num } from '../ux/text.js';
-import { Spark, Series, Multiples } from '../ux/charts.js';
-import { FlowBand } from '../ux/charts-ai.js';
-import { MetricTile, Citations } from '../ux/charts-ops.js';
-import { TopN } from '../ux/layout.js';
-import { Table } from '../ux/tables.js';
-import { Gauge } from '../ux/charts-ext.js';
-import { dashboardCitations } from '../data/feedback-citations.js';
-
-export const ingestPipeline = {
- id: 'ingest-pipeline',
- name: 'Ingest · Pipeline',
- render: ({ data, time }) => ({
- title: 'INGEST · PIPELINE',
- kicker: 'WAL · MEMTABLE · SEGMENT · MERGE',
- meta: [time, 'ENGINE INTERNALS'],
- caption: 'Every value on this page is a real Prometheus metric emitted by xerj-common::metrics — no synthetic signals. Use this to watch the WAL → memtable → segment → merge chain and the exact field encodings the storage layer chose.',
- panels: [
-
- { id: 'docsRate', eyebrow: 'DOCS INDEXED/s', cols: 3, type: 'metric',
- render: () => Num({
- value: data.metrics.docsRate.formatted, unit: 'docs/s',
- spark: Spark(data.series.docsIn, { w: 160, h: 36 }),
- delta: data.metrics.docsRate.delta, emphasis: true,
- }),
- },
- { id: 'bytesRate', eyebrow: 'BYTES WRITTEN/s', cols: 2, type: 'metric',
- render: () => Num({
- value: data.metrics.bytesRate.formatted, unit: 'MB/s',
- emphasis: false,
- }),
- },
- { id: 'walLag', eyebrow: 'WAL WRITE LATENCY', cols: 2, type: 'metric',
- render: () => Num({
- value: data.metrics.walLag.formatted, unit: 'ms',
- delta: data.metrics.walLag.delta, deltaGood: 'down', emphasis: false,
- }),
- },
- { id: 'segments', eyebrow: 'SEGMENTS', cols: 2, type: 'metric',
- render: () => Num({
- value: data.metrics.segments.formatted, unit: 'open',
- hint: data.metrics.segments.hint, emphasis: false,
- }),
- },
- { id: 'mem', eyebrow: 'MEMORY USAGE', cols: 2, type: 'metric',
- render: () => Num({
- value: data.metrics.mem.formatted, unit: 'gb',
- emphasis: false,
- }),
- },
-
- { id: 'pipeline', eyebrow: 'PIPELINE · END-TO-END FLOW', cols: 12, type: 'flowband',
- render: () => FlowBand({ segments: data.pipelineFlow, unit: '%' }),
- },
-
- { id: 'docsSeries', eyebrow: 'INGEST THROUGHPUT', cols: 12, type: 'line',
- render: () => Series(data.series.docsIn, {
- h: 140, labels: [data.series.startLabel, data.series.endLabel], unit: 'docs/s',
- }),
- },
-
- { id: 'latency', eyebrow: 'INDEX LATENCY · p50 / p95 / p99', cols: 12, type: 'multiples',
- render: () => Multiples({
- items: [
- { label: 'P50', values: data.series.idxLatP50, value: data.series.idxLatP50[data.series.idxLatP50.length-1].toFixed(2) + ' MS' },
- { label: 'P95', values: data.series.idxLatP95, value: data.series.idxLatP95[data.series.idxLatP95.length-1].toFixed(2) + ' MS' },
- { label: 'P99', values: data.series.idxLatP99, value: data.series.idxLatP99[data.series.idxLatP99.length-1].toFixed(2) + ' MS' },
- ],
- w: 300, h: 28,
- }),
- },
-
- { id: 'flushDur', eyebrow: 'FLUSH DURATION', cols: 6, type: 'line',
- render: () => Series(data.series.flushMs, {
- h: 100, labels: [data.series.startLabel, data.series.endLabel], unit: 'ms',
- }),
- },
-
- { id: 'mergeDur', eyebrow: 'MERGE DURATION', cols: 6, type: 'line',
- render: () => Series(data.series.mergeMs, {
- h: 100, labels: [data.series.startLabel, data.series.endLabel], unit: 'ms',
- }),
- },
-
- { id: 'topIndices', eyebrow: 'DOCS INDEXED · BY INDEX', cols: 6, type: 'topn',
- render: () => TopN({ items: data.topIndices, n: 10 }),
- },
-
- { id: 'encodings', eyebrow: 'FIELD ENCODINGS · /v1/indices/:name/encodings', cols: 6, type: 'table',
- render: () => Table({
- columns: ['FIELD', 'ENCODING', 'RATIO'],
- rows: data.perField.map((f) => [f.label, f.encoding, f.value + '%']),
- align: ['left', 'left', 'right'],
- }),
- },
-
- { id: 'compressionRatio', eyebrow: 'COMPRESSION RATIO', cols: 6, type: 'gauge',
- render: () => Gauge({
- value: 4.8, min: 1, max: 8, unit: '× raw JSON',
- thresholds: [2, 5], label: 'target ≥ 5×',
- }),
- },
-
- { id: 'memSeries', eyebrow: 'MEMORY OVER TIME', cols: 6, type: 'line',
- render: () => Series(data.series.memBytes.map((b) => b / 1024 / 1024 / 1024), {
- h: 100, labels: [data.series.startLabel, data.series.endLabel], unit: 'GB',
- }),
- },
-
- { id: 'citations', eyebrow: 'WHY THIS PANEL EXISTS · USER FEEDBACK', cols: 12, type: 'citations',
- render: () => Citations({ items: dashboardCitations['ingest-pipeline'] || [], total: 5150 }),
- },
-
- ],
- }),
-};
diff --git a/xerj-ux/src/dashboards/logs-overview.js b/xerj-ux/src/dashboards/logs-overview.js
deleted file mode 100644
index 8fe4834aa..000000000
--- a/xerj-ux/src/dashboards/logs-overview.js
+++ /dev/null
@@ -1,76 +0,0 @@
-// ============================================================
-// Dashboard — [LOGS] OVERVIEW
-// Replaces Kibana [Logs] Overview. Typography-first.
-//
-// Panel schema:
-// { id, eyebrow, cols, render: () => innerHtmlString }
-// ============================================================
-
-import { Num } from '../ux/text.js';
-import { Spark, Series, Dist, Heatmap } from '../ux/charts.js';
-import { Citations } from '../ux/charts-ops.js';
-import { TopN } from '../ux/layout.js';
-import { dashboardCitations } from '../data/feedback-citations.js';
-
-export const logsOverview = {
- id: 'logs-overview',
- name: 'Logs',
- render: ({ data, time }) => ({
- title: 'LOGS · OVERVIEW',
- kicker: 'OBSERVE',
- meta: [time, 'ALL INDICES'],
- panels: [
- { id: 'total', eyebrow: 'TOTAL EVENTS', cols: 4, type: 'metric',
- render: () => Num({
- value: data.metrics.total.formatted, unit: 'events',
- spark: Spark(data.series.total, { w: 200, h: 40 }),
- delta: data.metrics.total.delta, deltaGood: 'up', emphasis: true,
- }),
- },
- { id: 'peak', eyebrow: 'PEAK RATE', cols: 3, type: 'metric',
- render: () => Num({
- value: data.metrics.peak.formatted, unit: 'e/s',
- hint: 'at ' + data.metrics.peak.at, emphasis: false,
- }),
- },
- { id: 'errRate', eyebrow: 'ERROR RATE', cols: 2, type: 'metric',
- render: () => Num({
- value: data.metrics.errorRate.formatted, unit: '%',
- delta: data.metrics.errorRate.delta, deltaGood: 'down', emphasis: false,
- }),
- },
- { id: 'sources', eyebrow: 'SOURCES', cols: 3, type: 'metric',
- render: () => Num({
- value: data.metrics.sources.formatted, unit: 'hosts',
- hint: data.metrics.sources.active + ' active', emphasis: false,
- }),
- },
- { id: 'series', eyebrow: 'EVENTS OVER TIME', cols: 12, type: 'line',
- render: () => Series(data.series.total, {
- h: 160, labels: [data.series.startLabel, data.series.endLabel], unit: '/bucket',
- }),
- },
- { id: 'levels', eyebrow: 'BY LEVEL', cols: 12, type: 'dist',
- render: () => Dist({ segments: data.byLevel, width: 1200 }),
- },
- { id: 'topServices', eyebrow: 'TOP SERVICES · CLICK TO FILTER', cols: 6, type: 'topn',
- render: () => TopN({ items: data.topServices, total: data.metrics.total.value, n: 10, filterField: 'service' }),
- },
- { id: 'topHosts', eyebrow: 'TOP HOSTS · CLICK TO DRILL', cols: 6, type: 'topn',
- drilldown: { to: 'system' },
- render: () => TopN({ items: data.topHosts, total: data.metrics.total.value, n: 10, filterField: 'host' }),
- },
- { id: 'heatmap', eyebrow: 'INTENSITY · WEEKDAY × 2H', cols: 12, type: 'heatmap',
- render: () => Heatmap({
- rows: ['MON','TUE','WED','THU','FRI','SAT','SUN'],
- cols: data.heatmap.cols,
- matrix: data.heatmap.matrix,
- cellFmt: (v) => (v >= 1000 ? Math.round(v / 1000) + 'K' : String(v)),
- }),
- },
- { id: 'citations', eyebrow: 'WHY THIS PANEL EXISTS · USER FEEDBACK', cols: 12, type: 'citations',
- render: () => Citations({ items: dashboardCitations['logs-overview'] || [], total: 5150 }),
- },
- ],
- }),
-};
diff --git a/xerj-ux/src/dashboards/rag-quality.js b/xerj-ux/src/dashboards/rag-quality.js
deleted file mode 100644
index ab0531d27..000000000
--- a/xerj-ux/src/dashboards/rag-quality.js
+++ /dev/null
@@ -1,97 +0,0 @@
-// ============================================================
-// Dashboard — RAG · QUALITY
-//
-// The unsolved observability problem of 2026: are my RAG
-// answers actually grounded? Which retrievals mattered? Which
-// prompts hallucinate?
-// ============================================================
-
-import { Num } from '../ux/text.js';
-import { Spark, Series, Dist, Heatmap } from '../ux/charts.js';
-import { ChordArcs, AttentionMap } from '../ux/charts-ai.js';
-import { Citations } from '../ux/charts-ops.js';
-import { TopN } from '../ux/layout.js';
-import { dashboardCitations } from '../data/feedback-citations.js';
-
-export const ragQuality = {
- id: 'rag-quality',
- name: 'RAG · Quality',
- render: ({ data, time }) => ({
- title: 'RAG · QUALITY',
- kicker: 'GROUNDING · HALLUCINATION · CITATIONS',
- meta: [time, 'RETRIEVAL PIPELINE'],
- panels: [
-
- { id: 'grounding', eyebrow: 'GROUNDING SCORE', cols: 4, type: 'metric',
- render: () => Num({
- value: data.metrics.grounding.formatted, unit: '%',
- spark: Spark(data.series.grounding, { w: 220, h: 44 }),
- delta: data.metrics.grounding.delta, deltaGood: 'up', emphasis: true,
- }),
- },
- { id: 'halluc', eyebrow: 'HALLUCINATION RATE', cols: 3, type: 'metric',
- render: () => Num({
- value: data.metrics.hallucination.formatted, unit: '%',
- delta: data.metrics.hallucination.delta, deltaGood: 'down', emphasis: false,
- }),
- },
- { id: 'hitRate', eyebrow: 'RETRIEVAL HIT RATE', cols: 3, type: 'metric',
- render: () => Num({
- value: data.metrics.hitRate.formatted, unit: '%',
- delta: data.metrics.hitRate.delta, emphasis: false,
- }),
- },
- { id: 'citations', eyebrow: 'AVG CITATIONS', cols: 2, type: 'metric',
- render: () => Num({
- value: data.metrics.avgCitations.formatted, unit: 'per answer',
- delta: data.metrics.avgCitations.delta, emphasis: false,
- }),
- },
-
- { id: 'groundingSeries', eyebrow: 'GROUNDING OVER TIME', cols: 12, type: 'line',
- render: () => Series(data.series.grounding, {
- h: 140, labels: [data.series.startLabel, data.series.endLabel], unit: '%',
- }),
- },
-
- { id: 'flow', eyebrow: 'RETRIEVAL FLOW · QUERY → CHUNK', cols: 12, type: 'chord',
- render: () => ChordArcs({
- sources: data.flow.queries,
- targets: data.flow.chunks,
- flows: data.flow.flows,
- h: 440,
- }),
- },
-
- { id: 'attention', eyebrow: 'SAMPLE ANSWER · TOKEN ATTENTION', cols: 12, type: 'attention',
- render: () => AttentionMap({ tokens: data.attention.tokens }),
- },
-
- { id: 'retrievalSource', eyebrow: 'BY RETRIEVAL SOURCE', cols: 12, type: 'dist',
- render: () => Dist({ segments: data.retrievalSource, width: 1200 }),
- },
-
- { id: 'lowGrounding', eyebrow: 'LOWEST GROUNDING PROMPTS', cols: 6, type: 'topn',
- render: () => TopN({
- items: data.lowGroundingPrompts,
- n: 8,
- valueFmt: (v) => v,
- }),
- },
-
- { id: 'chunkDensity', eyebrow: 'CHUNK HIT DENSITY · QUERY TYPE × CHUNK', cols: 6, type: 'heatmap',
- render: () => Heatmap({
- rows: data.chunkHitDensity.rows,
- cols: data.chunkHitDensity.cols,
- matrix: data.chunkHitDensity.matrix,
- cellFmt: (v) => (v >= 1000 ? Math.round(v / 1000) + 'K' : String(v)),
- }),
- },
-
- { id: 'citations', eyebrow: 'WHY THIS PANEL EXISTS · USER FEEDBACK', cols: 12, type: 'citations',
- render: () => Citations({ items: dashboardCitations['rag-quality'] || [], total: 5150 }),
- },
-
- ],
- }),
-};
diff --git a/xerj-ux/src/dashboards/registry.js b/xerj-ux/src/dashboards/registry.js
deleted file mode 100644
index 133697fa0..000000000
--- a/xerj-ux/src/dashboards/registry.js
+++ /dev/null
@@ -1,104 +0,0 @@
-// ============================================================
-// XERJ.ai — Dashboard + section registry
-//
-// Two taxonomies at play:
-//
-// 1. SECTIONS are the primary product surface — the top nav.
-// Order = what users look for first, per user-feedback/kibana/:
-// dashboards → discover → alerts → data → users → settings
-//
-// 2. DASHBOARDS live under SECTION='dashboards' and appear in
-// the secondary nav row. Other sections each have exactly
-// one view (discover, alerts, data, users, settings).
-// ============================================================
-
-import { aiOverview } from './ai-overview.js';
-import { ragQuality } from './rag-quality.js';
-import { vectorIndex } from './vector-index.js';
-import { agentMemory } from './agent-memory.js';
-import { anomalyDetect } from './anomaly-detect.js';
-import { ingestPipeline } from './ingest-pipeline.js';
-import { logsOverview } from './logs-overview.js';
-import { system } from './system.js';
-
-import { searchDiscover } from './search-discover.js'; // DISCOVER section
-import { alerts } from './alerts.js'; // ALERTS section
-import { dataSection } from './data.js'; // DATA section
-import { users } from './users.js'; // USERS section
-import { settings } from './settings.js'; // SETTINGS section
-
-// Give every DASHBOARD-section view the same section tag. We
-// deliberately DON'T add it to the section-level views — those
-// already declare their own `section` in their source files.
-// Each dashboard also gets a `group` so the sub-nav can bucket
-// them into folders/dropdowns — handles screens that can't fit
-// the full dashboard list on one line.
-const DEFAULT_GROUP = {
- 'ai-overview': 'ai',
- 'rag-quality': 'ai',
- 'vector-index': 'ai',
- 'agent-memory': 'ai',
- 'logs-overview': 'logs',
- 'anomaly-detect': 'logs',
- 'ingest-pipeline':'logs',
- 'system': 'infra',
-};
-for (const d of [aiOverview, ragQuality, vectorIndex, agentMemory, anomalyDetect, ingestPipeline, logsOverview, system]) {
- d.section = 'dashboards';
- d.group = DEFAULT_GROUP[d.id] || 'other';
-}
-// Search-discover gets tagged as the DISCOVER section (promoted out of the dashboards list).
-searchDiscover.section = 'discover';
-
-const all = [
- // Dashboards section, ordered by group so the first member of each
- // group is the one the group tab lands on when clicked.
- // AI: ai-overview, rag-quality, vector-index, agent-memory
- // Logs: logs-overview, anomaly-detect, ingest-pipeline
- // Infra: system
- aiOverview, ragQuality, vectorIndex, agentMemory,
- logsOverview, anomalyDetect, ingestPipeline,
- system,
- // Top-level sections (one view each)
- searchDiscover,
- alerts,
- dataSection,
- users,
- settings,
-];
-
-export const defaults = all;
-export const registry = Object.fromEntries(all.map((d) => [d.id, d]));
-
-// Primary nav: one entry per section. Order matters — this is the
-// order corpus priority told us users scan. The label is uppercase
-// UI text; the id maps to a section. Each section knows which view
-// to render when clicked (the first dashboard in that section).
-export const SECTIONS = [
- { id: 'dashboards', label: 'Dashboards' },
- { id: 'discover', label: 'Discover' },
- { id: 'alerts', label: 'Alerts' },
- { id: 'data', label: 'Data' },
- { id: 'users', label: 'Users' },
- { id: 'settings', label: 'Settings' },
-];
-
-// Dashboard groups — folders under the 'dashboards' section. The
-// order here is what users see; each group is rendered in the
-// secondary nav with its members visible when the group is active,
-// and collapsed to a label otherwise. Adding a new group is just a
-// DEFAULT_GROUP entry above + a row in this array.
-export const DASHBOARD_GROUPS = [
- { id: 'ai', label: 'AI' },
- { id: 'logs', label: 'Logs' },
- { id: 'infra', label: 'Infra' },
-];
-
-/** Return dashboards belonging to a section. Used by the nav
- * router and the secondary nav row. */
-export function dashboardsInSection(sectionId, merged) {
- return merged.filter((d) => (d.section || 'dashboards') === sectionId);
-}
-
-// Legacy alias — kept so callers that imported `dashboardList` still work.
-export const dashboardList = all.map((d) => ({ id: d.id, name: d.name }));
diff --git a/xerj-ux/src/dashboards/search-discover.js b/xerj-ux/src/dashboards/search-discover.js
deleted file mode 100644
index 022b84f40..000000000
--- a/xerj-ux/src/dashboards/search-discover.js
+++ /dev/null
@@ -1,245 +0,0 @@
-// ============================================================
-// Dashboard — SEARCH · DISCOVER (interactive query console)
-//
-// Real features shown here — every one maps to code in the
-// engine audit:
-// • 8 query types (subset of 24 the DSL supports)
-// • terms-agg facet sidebar (exact cardinality, not HLL)
-// • POST /v1/indices/:name/search preview in XERJ.ai DSL
-// • POST /v1/indices/:name/explain-plan tree
-// • hits w/ _index / _id / _score / _source / @timestamp
-// ============================================================
-
-import { Num } from '../ux/text.js';
-import { Spark, Series } from '../ux/charts.js';
-import { SearchBox, Hits, Facet, QueryDSL, QueryPlanTree, Citations } from '../ux/charts-ops.js';
-import { VBar } from '../ux/charts-ext.js';
-import { dashboardCitations } from '../data/feedback-citations.js';
-
-// All 8 query types we expose in the UI (mapping to real DSL nodes)
-const QUERY_TYPES = ['match', 'term', 'range', 'prefix', 'phrase', 'knn', 'semantic', 'hybrid'];
-const INDICES = ['*', 'chat-events', 'logs-ssh-auth', 'agent-memory', 'vector-ops', 'anomalies', 'ai-kb'];
-
-// Build the XERJ.ai query DSL object matching the current SearchBox state.
-function buildDsl({ q, type, index, filters }) {
- const filterList = Object.entries(filters || {}).map(([f, v]) => ({ term: { [f]: v } }));
- let inner;
- switch (type) {
- case 'term': {
- const m = (q || '').match(/^([a-z_]+)\s*=\s*(.+)$/i);
- inner = m ? { term: { [m[1]]: m[2] } } : { match_all: {} };
- break;
- }
- case 'range': {
- const m = (q || '').match(/^([a-z_]+)\s*(>=|<=|>|<)\s*(\d+(?:\.\d+)?)$/i);
- if (m) {
- const [, f, op, v] = m;
- const k = op === '>=' ? 'gte' : op === '<=' ? 'lte' : op === '>' ? 'gt' : 'lt';
- inner = { range: { [f]: { [k]: Number(v) } } };
- } else inner = { match_all: {} };
- break;
- }
- case 'prefix': inner = q ? { prefix: { message: q } } : { match_all: {} }; break;
- case 'phrase': inner = q ? { match_phrase: { message: q } } : { match_all: {} }; break;
- case 'knn': inner = { knn: { field: 'embedding', query_vector: '<inline>', k: 10, ef_search: 96 } }; break;
- case 'semantic': inner = { semantic: { field: 'embedding', query: q || '*', model: 'text-embed-3' } }; break;
- case 'hybrid': inner = { hybrid: {
- fusion: 'rrf',
- queries: [
- { match: { message: q || '*' } },
- { knn: { field: 'embedding', query_vector: '<inline>', k: 20 } },
- ],
- rank_constant: 60,
- } }; break;
- default: inner = q ? { match: { message: q } } : { match_all: {} };
- }
- const body = filterList.length
- ? { query: { bool: { must: inner, filter: filterList } } }
- : { query: inner };
- return {
- method: 'POST',
- path: '/v1/indices/' + (index === '*' ? '*' : index) + '/search',
- body: { ...body, size: 25, track_total_hits: true,
- aggs: {
- by_level: { terms: { field: 'level', size: 8 } },
- by_service: { terms: { field: 'service', size: 8 } },
- by_host: { terms: { field: 'host', size: 8 } },
- }
- },
- };
-}
-
-// Build a fake query plan matching the DSL (the planner would produce one)
-function buildPlan({ type, q, filters }, total) {
- const filterCount = Object.keys(filters || {}).length;
- const root = { op: 'BoolQuery', estimate: total, cost: total + 80, children: [] };
- switch (type) {
- case 'hybrid':
- root.op = 'Hybrid(rrf,60)';
- root.children.push(
- { op: 'MatchQuery', field: 'message', value: q || '*', estimate: Math.round(total * 1.8), cost: Math.round(total * 1.8 + 20) },
- { op: 'KnnQuery', field: 'embedding', value: 'k=20 ef_search=96', estimate: 20, cost: 420 },
- );
- break;
- case 'knn':
- root.op = 'KnnQuery';
- root.field = 'embedding';
- root.value = 'k=10 ef_search=96';
- root.estimate = 10;
- root.cost = 310;
- break;
- case 'semantic':
- root.op = 'SemanticSearch';
- root.field = 'embedding';
- root.value = `embed(${q || '*'}) → knn`;
- root.children.push(
- { op: 'EmbedAt/Query', estimate: 1, cost: 120 },
- { op: 'KnnQuery', field: 'embedding', value: 'k=10', estimate: 10, cost: 280 },
- );
- break;
- case 'term':
- root.op = 'TermQuery';
- root.value = q;
- root.estimate = total;
- root.cost = Math.round(total * 0.05 + 8);
- break;
- case 'range':
- root.op = 'RangeQuery';
- root.value = q;
- root.estimate = Math.round(total * 0.4);
- root.cost = Math.round(total * 0.1 + 16);
- break;
- case 'prefix':
- root.op = 'PrefixQuery';
- root.value = q;
- root.children.push({ op: 'FstScan', estimate: total * 2, cost: total * 0.6 });
- break;
- case 'phrase':
- root.op = 'MatchPhrase';
- root.value = `"${q}"`;
- root.children.push({ op: 'PostingsIntersect', estimate: total, cost: total * 0.8 });
- break;
- default:
- root.op = 'MatchQuery';
- root.field = 'message';
- root.value = q;
- root.children.push({ op: 'BM25Scorer', estimate: total, cost: total * 0.3 });
- }
- if (filterCount > 0) {
- root.children.push({
- op: 'FilterCtx', field: 'post-filter', value: `${filterCount} term(s)`, estimate: total, cost: filterCount * 4,
- });
- }
- // Always terminate with a TopK collector (matching the real planner)
- root.children.push({ op: 'TopKCollector', value: 'k=25', estimate: 25, cost: 8 });
- return root;
-}
-
-export const searchDiscover = {
- id: 'search-discover',
- name: 'Search · Discover',
- render: ({ data, time, search }) => {
- const r = search?.result;
- const dsl = buildDsl(search);
- const plan = buildPlan(search, r?.total ?? 0);
-
- return {
- title: 'SEARCH · DISCOVER',
- kicker: 'INTERACTIVE QUERY CONSOLE',
- meta: [time, '24 DSL TYPES · EXACT AGGS'],
- caption: 'Type a query, press Enter. All 8 query families, 14 aggregation types, and exact cardinality run against the live XERJ.ai index. The plan below comes from POST /v1/indices/:name/explain-plan.',
- panels: [
-
- { id: 'searchbox', eyebrow: 'QUERY · TYPE · INDEX · FILTERS', cols: 12, type: 'searchbox',
- render: () => SearchBox({
- value: search?.q ?? '',
- types: QUERY_TYPES,
- activeType: search?.type ?? 'match',
- indices: INDICES,
- activeIndex: search?.index ?? '*',
- filters: search?.filters ?? {},
- }),
- },
-
- { id: 'hits', eyebrow: 'RESULTS · CLICK A COLUMN TO SORT · CLICK INDEX TO FILTER', cols: 8, type: 'hits',
- render: () => Hits({
- hits: r?.hits || [],
- total: r?.total ?? 0,
- tookMs: r?.tookMs ?? 0,
- maxScore: r?.maxScore ?? null,
- sort: search?.sort,
- showTime: search?.showTime !== false,
- // Field display names — GH#1896 (65 reactions): users want to see
- // friendlier column headers than the internal field names.
- labels: { _index: 'INDEX', _id: 'ID', _score: 'SCORE', _ts: 'TIME', _source: 'MESSAGE' },
- }),
- },
-
- { id: 'facets', eyebrow: 'FACETS · CLICK TO FILTER', cols: 4, type: 'facet',
- render: () => `
- ${Facet({ field: 'level', items: r?.facets.level || [], active: search?.filters?.level })}
- ${Facet({ field: 'service', items: r?.facets.service || [], active: search?.filters?.service })}
- ${Facet({ field: '_index', items: r?.facets._index || [], active: search?.filters?._index })}
- ${Facet({ field: 'host', items: r?.facets.host || [], active: search?.filters?.host })}
- `,
- },
-
- { id: 'histogram', eyebrow: 'DATE_HISTOGRAM · INTERVAL=1H', cols: 8, type: 'bar',
- render: () => VBar({
- items: (r?.histogram || Array.from({length:24}, ()=>0)).map((v, i) => ({
- label: String(i).padStart(2, '0'), value: v,
- })),
- h: 140, unit: 'hits/bucket',
- }),
- },
-
- { id: 'searchMetrics', eyebrow: 'INDEX · LIVE', cols: 4, type: 'metric',
- render: () => {
- const totalDocs = data?.metrics?.totalDocs?.formatted || '52.4M';
- const uniqueTerms = data?.metrics?.uniqueTerms?.formatted || '18.9M';
- return `
- <div class="stack-3">
- <div class="row-flex">
- <div class="num-md accent">${totalDocs}</div>
- <span class="hint">documents</span>
- </div>
- <div class="row-flex">
- <div class="num-md">${uniqueTerms}</div>
- <span class="hint">unique terms · exact cardinality</span>
- </div>
- <div class="row-flex">
- <div class="num-md">${data?.metrics?.p95?.formatted || '10.4'}<span class="num-unit">ms</span></div>
- <span class="hint">p95 query latency</span>
- </div>
- </div>`;
- },
- },
-
- { id: 'dsl', eyebrow: 'REQUEST · POST ' + dsl.path, cols: 6, type: 'markdown',
- render: () => QueryDSL(dsl.body),
- },
-
- { id: 'plan', eyebrow: 'QUERY PLAN · FROM EXPLAIN-PLAN ENDPOINT', cols: 6, type: 'plan',
- render: () => QueryPlanTree(plan),
- },
-
- { id: 'qps', eyebrow: 'QUERIES/s OVER TIME', cols: 6, type: 'line',
- render: () => Series(data?.series?.queries || [], {
- h: 100, labels: [data?.series?.startLabel, data?.series?.endLabel], unit: 'qps',
- }),
- },
-
- { id: 'latency', eyebrow: 'p95 LATENCY OVER TIME', cols: 6, type: 'line',
- render: () => Series(data?.series?.took_p95 || [], {
- h: 100, labels: [data?.series?.startLabel, data?.series?.endLabel], unit: 'ms',
- }),
- },
-
- { id: 'citations', eyebrow: 'WHY THIS PANEL EXISTS · USER FEEDBACK', cols: 12, type: 'citations',
- render: () => Citations({ items: dashboardCitations['search-discover'] || [], total: 5150 }),
- },
-
- ],
- };
- },
-};
diff --git a/xerj-ux/src/dashboards/settings.js b/xerj-ux/src/dashboards/settings.js
deleted file mode 100644
index 1b1dd1c23..000000000
--- a/xerj-ux/src/dashboards/settings.js
+++ /dev/null
@@ -1,238 +0,0 @@
-// ============================================================
-// Section — SETTINGS
-//
-// The last-resort section. If defaults are right, most users
-// never visit. This page exposes:
-// • the default cluster
-// • the persistent-state inventory (what's in localStorage)
-// • the dashboards manager (rename/reorder/hide/clone/delete/new)
-// • the DANGER RESET ALL button
-//
-// We deliberately keep Dashboards management under Settings
-// (not as its own primary section) because editing dashboards
-// is a rare admin action, not a daily task.
-// ============================================================
-
-import { esc } from '../ux/text.js';
-import { Citations } from '../ux/charts-ops.js';
-import { Markdown } from '../ux/tables.js';
-import { defaultClusterId } from '../data/data-sources.js';
-
-export const settings = {
- id: 'settings',
- name: 'Settings',
- section: 'settings',
- render: ({ data, time }) => {
- const dashboards = data.dashboards || [];
- const views = data.views || [];
- return {
- title: 'SETTINGS',
- kicker: 'DEFAULTS · DASHBOARDS · DANGER',
- meta: [time, 'ADMIN'],
- caption: 'Everything under SETTINGS is rare admin. Rename or reorder a dashboard here; for everything else, the defaults are right.',
- panels: [
-
- { id: 'defaults', eyebrow: 'DEFAULTS', cols: 12, type: 'settings',
- render: () => renderSettings(),
- },
-
- { id: 'mg-dashboards-head', eyebrow: '', cols: 12, type: 'markdown',
- render: () => `<div class="h-section" style="margin-top:var(--sp-3);">DASHBOARDS · ${dashboards.length}</div>
- <div class="hint" style="margin-top:6px;">Drag a row to reorder. Click RENAME to rename. CLONE, HIDE, or DELETE from the action buttons.</div>`,
- },
-
- { id: 'mg-dashboards', eyebrow: '', cols: 12, type: 'manage-dashboards',
- render: () => renderDashboardTable(dashboards),
- },
-
- { id: 'mg-new', eyebrow: '', cols: 12, type: 'manage-new',
- render: () => renderNewDashboardRow(dashboards.filter((d) => !d.isUser && d.section === 'dashboards')),
- },
-
- { id: 'mg-views-head', eyebrow: '', cols: 12, type: 'markdown',
- render: () => `<div class="h-section" style="margin-top:var(--sp-10);">SAVED VIEWS · ${views.length}</div>
- <div class="hint" style="margin-top:6px;">A saved view is a pinned snapshot of a dashboard with its time range, cluster, and filters. Click the name to apply.</div>`,
- },
-
- { id: 'mg-views', eyebrow: '', cols: 12, type: 'manage-views',
- render: () => renderViewsTable(views),
- },
-
- { id: 'storage', eyebrow: 'PERSISTENT STATE INVENTORY', cols: 12, type: 'markdown',
- render: () => Markdown(
-`## What we store, where
-
-Everything XERJ.ai persists lives under \`localStorage.xerj.*\`. No
-cookies, no IndexedDB, no server state (yet). You can dump the entire
-inventory with one browser-console command:
-
-\`\`\`
-Object.keys(localStorage).filter(k => k.startsWith('xerj.'))
-\`\`\`
-
-The current keys are:
-
-- \`xerj.theme\` · \`day\` | \`night\`
-- \`xerj.time\` · last-used time range (\`1H\`, \`24H\`, \`7D\`, ...)
-- \`xerj.edit\` · \`0\` | \`1\` — is edit mode sticky on reload
-- \`xerj.search\` · search-discover state (query + type + filters + sort)
-- \`xerj.dashboards\` · rename / order / hidden / custom (user dashboards)
-- \`xerj.layout.<dash-id>\` · per-dashboard panel layout overrides
-- \`xerj.cluster\` · default cluster id
-
-When the engine grows a \`/v1/users/me\` endpoint, this store syncs up.`
- ),
- },
-
- { id: 'danger', eyebrow: 'DANGER · WIPE ALL STATE', cols: 12, type: 'danger',
- render: () => `
- <div class="mg-settings">
- <div class="mg-setting">
- <span class="key">RESET EVERYTHING</span>
- <button type="button" class="mg-btn mg-btn-danger" data-mg-reset-all>RESET ALL SAVED STATE</button>
- <span class="hint">— restores defaults, deletes every user dashboard, clears layouts, themes, filters. Reloads the page. Cannot be undone.</span>
- </div>
- </div>
- `,
- },
-
- { id: 'citations', eyebrow: 'WHY THIS SECTION EXISTS · USER FEEDBACK', cols: 12, type: 'citations',
- render: () => Citations({
- items: [
- { id: 'gh-56406', source: 'github', score: 41,
- title: 'Add a configuration setting for default "Rows Per Page" setting in Management',
- url: 'https://github.com/elastic/kibana/issues/56406' },
- { id: 'gh-6515', source: 'github', score: 18,
- title: 'Kibana Globalization',
- url: 'https://github.com/elastic/kibana/issues/6515' },
- { id: 'gh-1600', source: 'github', score: 14,
- title: 'Global timezone support',
- url: 'https://github.com/elastic/kibana/issues/1600' },
- ],
- total: 3610,
- }),
- },
-
- ],
- };
- },
-};
-
-// ---------- renderers -----------------------------------
-
-function renderSettings() {
- return `
- <div class="mg-settings">
- <div class="mg-setting">
- <span class="key">DEFAULT CLUSTER</span>
- <span class="mono accent">${esc(defaultClusterId())}</span>
- <span class="hint">— change by clicking a cluster in the <a href="#/data" class="mono accent">DATA</a> section</span>
- </div>
- <div class="mg-setting">
- <span class="key">THEME</span>
- <span class="mono">toggle in the top-right nav</span>
- </div>
- <div class="mg-setting">
- <span class="key">TIME ZONE</span>
- <span class="mono">${esc(Intl.DateTimeFormat().resolvedOptions().timeZone || 'UTC')}</span>
- <span class="hint">— auto-detected from browser</span>
- </div>
- </div>`;
-}
-
-function renderDashboardTable(dashboards) {
- if (!dashboards.length) {
- return '<div class="mono faint">No dashboards. Click + NEW to create one.</div>';
- }
- // Only show rows for dashboards in the 'dashboards' section (skip section-level dashboards like alerts/data/users/settings).
- const listable = dashboards.filter((d) => d.section === 'dashboards' || d.section == null);
- const rows = listable.map((d, i) => {
- const isHidden = d.hidden;
- const kind = d.isUser
- ? `<span class="mono accent">USER</span>`
- : `<span class="mono faint">DEFAULT</span>`;
- const src = d.clonedFrom
- ? `<span class="mono faint">from ${esc(d.clonedFrom)}</span>`
- : '';
- const actions = [
- `<button type="button" class="mg-btn" data-mg-up="${esc(d.id)}" title="Move up">↑</button>`,
- `<button type="button" class="mg-btn" data-mg-down="${esc(d.id)}" title="Move down">↓</button>`,
- `<button type="button" class="mg-btn" data-mg-rename="${esc(d.id)}" title="Rename">RENAME</button>`,
- `<button type="button" class="mg-btn" data-mg-hide="${esc(d.id)}" title="${isHidden ? 'Show' : 'Hide'}">${isHidden ? 'SHOW' : 'HIDE'}</button>`,
- `<button type="button" class="mg-btn" data-mg-clone="${esc(d.id)}" title="Clone">CLONE</button>`,
- d.isUser
- ? `<button type="button" class="mg-btn mg-btn-danger" data-mg-delete="${esc(d.id)}" title="Delete">DELETE</button>`
- : `<span class="mg-btn mg-btn-disabled" title="Defaults can only be hidden">—</span>`,
- ].join('');
- return `
- <div class="mg-row${isHidden ? ' mg-row-hidden' : ''}" data-mg-id="${esc(d.id)}">
- <span class="mg-order mono faint">${String(i + 1).padStart(2, '0')}</span>
- <span class="mg-name">${esc(d.name)}</span>
- <span class="mg-kind">${kind}</span>
- <span class="mg-src">${src}</span>
- <span class="mg-actions">${actions}</span>
- </div>`;
- }).join('');
- return `
- <div class="mg-table">
- <div class="mg-row mg-head">
- <span class="mg-order">#</span>
- <span class="mg-name">NAME</span>
- <span class="mg-kind">KIND</span>
- <span class="mg-src">SOURCE</span>
- <span class="mg-actions">ACTIONS</span>
- </div>
- ${rows}
- </div>`;
-}
-
-function renderViewsTable(views) {
- if (!views.length) {
- return '<div class="mono faint">No saved views. Pin a view from any dashboard with the + SAVE CURRENT VIEW button.</div>';
- }
- const rows = views.map((v, i) => {
- const fs = v.filters || {};
- const fbits = Object.entries(fs).map(([k, val]) => {
- const vals = Array.isArray(val) ? val.join('|') : val;
- return `${k}:${vals}`;
- }).join(' · ') || '—';
- const when = (v.savedAt || '').slice(0, 16).replace('T', ' ');
- return `
- <div class="mg-row" data-view-id="${esc(v.id)}">
- <span class="mg-order mono faint">${String(i + 1).padStart(2, '0')}</span>
- <span class="mg-name"><button type="button" class="mg-btn mg-btn-link" data-view-apply="${esc(v.id)}" title="Apply view">${esc(v.name)}</button></span>
- <span class="mg-kind"><span class="mono faint">${esc(v.dashId)}</span></span>
- <span class="mg-src"><span class="mono faint">${esc(v.time || '24H')} · ${esc(v.cluster || '—')} · ${esc(fbits)}</span></span>
- <span class="mg-actions">
- <span class="mono faint">${esc(when)}</span>
- <button type="button" class="mg-btn" data-view-apply="${esc(v.id)}" title="Apply">APPLY</button>
- <button type="button" class="mg-btn mg-btn-danger" data-view-delete="${esc(v.id)}" title="Delete">DELETE</button>
- </span>
- </div>`;
- }).join('');
- return `
- <div class="mg-table">
- <div class="mg-row mg-head">
- <span class="mg-order">#</span>
- <span class="mg-name">NAME</span>
- <span class="mg-kind">DASHBOARD</span>
- <span class="mg-src">CONTEXT</span>
- <span class="mg-actions">SAVED / ACTIONS</span>
- </div>
- ${rows}
- </div>`;
-}
-
-function renderNewDashboardRow(templates) {
- const options = templates.map((t) =>
- `<button type="button" class="mg-btn" data-mg-new="${esc(t.id)}" title="New from ${esc(t.name)}">${esc(t.name)}</button>`
- ).join('<span class="sep">·</span>');
- return `
- <div class="mg-new-row">
- <span class="key accent">+ NEW DASHBOARD</span>
- <span class="hint" style="margin: 0 var(--sp-2);">clone a template</span>
- <span class="mg-new-templates">${options}</span>
- <span class="hint" style="margin-left:auto;">or</span>
- <button type="button" class="mg-btn" data-mg-new="" title="New blank dashboard">BLANK</button>
- </div>`;
-}
diff --git a/xerj-ux/src/dashboards/system.js b/xerj-ux/src/dashboards/system.js
deleted file mode 100644
index 6f8a42ad0..000000000
--- a/xerj-ux/src/dashboards/system.js
+++ /dev/null
@@ -1,92 +0,0 @@
-// ============================================================
-// Dashboard — [SYSTEM] OVERVIEW + AUTH
-// Replaces Metricbeat System Overview + auth logs.
-// ============================================================
-
-import { Num } from '../ux/text.js';
-import { Spark, Series, Multiples } from '../ux/charts.js';
-import { Citations } from '../ux/charts-ops.js';
-import { TopN } from '../ux/layout.js';
-import { dashboardCitations } from '../data/feedback-citations.js';
-
-export const system = {
- id: 'system',
- name: 'System',
- render: ({ data, time }) => ({
- title: 'SYSTEM · OVERVIEW',
- kicker: 'HOSTS · LOAD · AUTH',
- meta: [time, 'METRICBEAT + AUTH'],
- panels: [
- { id: 'hosts', eyebrow: 'HOSTS', cols: 3, type: 'metric',
- render: () => Num({
- value: data.metrics.hosts.formatted, unit: 'online',
- hint: data.metrics.hosts.hint, emphasis: true,
- }),
- },
- { id: 'alerts', eyebrow: 'ACTIVE ALERTS', cols: 3, type: 'metric',
- render: () => Num({
- value: data.metrics.alerts.formatted, unit: 'open',
- delta: data.metrics.alerts.delta, deltaGood: 'down',
- hint: data.metrics.alerts.hint, emphasis: false,
- }),
- },
- { id: 'cpuMean', eyebrow: 'MEAN CPU', cols: 3, type: 'metric',
- render: () => Num({
- value: data.metrics.cpuMean.formatted, unit: '%',
- spark: Spark(data.series.cpu, { w: 140, h: 32 }),
- delta: data.metrics.cpuMean.delta, deltaGood: 'down', emphasis: false,
- }),
- },
- { id: 'memMean', eyebrow: 'MEAN MEM', cols: 3, type: 'metric',
- render: () => Num({
- value: data.metrics.memMean.formatted, unit: '%',
- spark: Spark(data.series.mem, { w: 140, h: 32 }),
- delta: data.metrics.memMean.delta, deltaGood: 'down', emphasis: false,
- }),
- },
- { id: 'cpu', eyebrow: 'CPU', cols: 6, type: 'line',
- render: () => Series(data.series.cpu, {
- h: 100, labels: [data.series.startLabel, data.series.endLabel], unit: '%',
- }),
- },
- { id: 'mem', eyebrow: 'MEMORY', cols: 6, type: 'line',
- render: () => Series(data.series.mem, {
- h: 100, labels: [data.series.startLabel, data.series.endLabel], unit: '%',
- }),
- },
- { id: 'disk', eyebrow: 'DISK I/O', cols: 6, type: 'line',
- render: () => Series(data.series.disk, {
- h: 100, labels: [data.series.startLabel, data.series.endLabel], unit: 'MB/s',
- }),
- },
- { id: 'net', eyebrow: 'NETWORK I/O', cols: 6, type: 'line',
- render: () => Series(data.series.net, {
- h: 100, labels: [data.series.startLabel, data.series.endLabel], unit: 'MB/s',
- }),
- },
- { id: 'hostCpu', eyebrow: 'PER-HOST CPU · SMALL MULTIPLES', cols: 12, type: 'multiples',
- render: () => Multiples({ items: data.hostCpu, w: 180, h: 24 }),
- },
- { id: 'topProcs', eyebrow: 'TOP PROCESSES', cols: 6, type: 'topn',
- render: () => TopN({ items: data.topProcs, n: 10, valueFmt: (v) => v.toFixed(1) + ' %' }),
- },
- { id: 'topHosts', eyebrow: 'HOSTS BY LOAD', cols: 6, type: 'topn',
- render: () => TopN({ items: data.topHosts, n: 10, valueFmt: (v) => v + ' %' }),
- },
- { id: 'authSeries', eyebrow: 'AUTH · FAILED LOGINS', cols: 12, type: 'line',
- render: () => Series(data.auth.series, {
- h: 100, labels: [data.series.startLabel, data.series.endLabel], unit: '/min',
- }),
- },
- { id: 'topFailUsers', eyebrow: 'TOP FAILED USERS', cols: 6, type: 'topn',
- render: () => TopN({ items: data.auth.topFailUsers, total: data.auth.failures, n: 8 }),
- },
- { id: 'topFailIPs', eyebrow: 'TOP ATTACKING IPS', cols: 6, type: 'topn',
- render: () => TopN({ items: data.auth.topFailIPs, total: data.auth.failures, n: 8 }),
- },
- { id: 'citations', eyebrow: 'WHY THIS PANEL EXISTS · USER FEEDBACK', cols: 12, type: 'citations',
- render: () => Citations({ items: dashboardCitations['system'] || [], total: 5150 }),
- },
- ],
- }),
-};
diff --git a/xerj-ux/src/dashboards/users.js b/xerj-ux/src/dashboards/users.js
deleted file mode 100644
index 3f791971d..000000000
--- a/xerj-ux/src/dashboards/users.js
+++ /dev/null
@@ -1,144 +0,0 @@
-// ============================================================
-// Section — USERS
-//
-// Users + Roles + API keys + sessions. Spaces-and-RBAC is the
-// 2nd most painful operational category in the Kibana corpus
-// after alerting (213 items, 47% negative). Recurring pain:
-// • "permission denied" with no indication of what's missing
-// • Spaces multi-tenancy too complex, feature privileges
-// scattered across index, app, and role-mapping
-// • API key rotation is manual
-//
-// XERJ response: one token, indices ARE the boundary. No
-// "Spaces". Role = a set of index prefixes + operations.
-// ============================================================
-
-import { Num } from '../ux/text.js';
-import { Spark, Dist } from '../ux/charts.js';
-import { TopN, Events } from '../ux/layout.js';
-import { Table, Markdown } from '../ux/tables.js';
-import { Citations } from '../ux/charts-ops.js';
-
-export const users = {
- id: 'users',
- name: 'Users',
- section: 'users',
- render: ({ data, time }) => ({
- title: 'USERS',
- kicker: 'IDENTITY · ACCESS · TOKENS',
- meta: [time, 'RBAC'],
- caption: 'No Spaces. No feature privileges matrix. No separate "role mapping" app. A user has a token. A role is a set of index prefixes and operations. A session is a token with an expiry. Everything else is hidden complexity we refuse to ship.',
- panels: [
-
- { id: 'users', eyebrow: 'USERS', cols: 3, type: 'metric',
- render: () => Num({ value: '128', unit: 'active', hint: '12 online now', emphasis: true }),
- },
- { id: 'roles', eyebrow: 'ROLES', cols: 2, type: 'metric',
- render: () => Num({ value: '8', unit: 'defined', hint: 'flat model', emphasis: false }),
- },
- { id: 'apiKeys', eyebrow: 'API KEYS', cols: 2, type: 'metric',
- render: () => Num({ value: '42', unit: 'live', hint: '3 expire < 7d', emphasis: false }),
- },
- { id: 'sessions', eyebrow: 'SESSIONS', cols: 2, type: 'metric',
- render: () => Num({ value: '86', unit: 'active', delta: 3.2, emphasis: false }),
- },
- { id: 'lastLogin', eyebrow: 'LAST LOGIN', cols: 3, type: 'metric',
- render: () => Num({ value: '12s', unit: 'ago', hint: '[email protected]', emphasis: false }),
- },
-
- { id: 'userList', eyebrow: 'USERS · MOST ACTIVE', cols: 6, type: 'topn',
- render: () => TopN({
- items: [
- { label: 'deploy', value: 2804 },
- { label: 'oncall-bot', value: 1920 },
- { label: 'searcher', value: 1612 },
- { label: 'metrics-exporter',value: 1402 },
- { label: 'alice@eng', value: 1180 },
- { label: 'bob@eng', value: 980 },
- { label: 'carol@pm', value: 770 },
- { label: 'dave@sre', value: 612 },
- ],
- total: 11280,
- n: 8,
- }),
- },
-
- { id: 'roles', eyebrow: 'ROLES · INDEX PREFIX × OPS', cols: 6, type: 'table',
- render: () => Table({
- columns: ['ROLE', 'INDICES', 'OPS'],
- rows: [
- ['admin', '*', 'read, write, admin, delete'],
- ['developer', 'logs-*, metrics-*', 'read, write'],
- ['sre', '*', 'read, write, admin'],
- ['pm', 'logs-prod, metrics', 'read'],
- ['oncall', '*', 'read, alert.ack'],
- ['agent-token', 'agent-memory, embeddings', 'read, write'],
- ['audit-ro', 'audit', 'read'],
- ['guest', 'docs', 'read'],
- ],
- align: ['left', 'left', 'left'],
- }),
- },
-
- { id: 'recent', eyebrow: 'RECENT AUTH EVENTS', cols: 12, type: 'events',
- render: () => Events({ items: [
- { at: '23:14:02', sev: 'info', msg: 'login · [email protected] · src=10.0.3.42 · method=bearer · ok' },
- { at: '23:13:51', sev: 'info', msg: 'login · alice@eng · src=10.0.4.11 · method=sso · ok' },
- { at: '23:13:22', sev: 'warn', msg: 'token rotated · api-key-k9q8 · expires in 30d' },
- { at: '23:12:48', sev: 'err', msg: 'permission denied · bob@eng · index=audit · op=read · missing role audit-ro' },
- { at: '23:12:09', sev: 'info', msg: 'login · oncall-bot · src=10.0.0.4 · method=api-key · ok' },
- { at: '23:11:44', sev: 'info', msg: 'token created · bob@eng · api-key-77mx · expires=30d' },
- { at: '23:11:03', sev: 'warn', msg: 'token expiring · alice@eng · api-key-4ka2 · 6h' },
- ]}),
- },
-
- { id: 'model', eyebrow: 'THE PERMISSION MODEL · WHY IT IS LIKE THIS', cols: 12, type: 'markdown',
- render: () => Markdown(
-`## One token, no magic
-
-XERJ.ai has exactly three concepts for access control:
-
-- **Token** — a user or machine bearer. Can have an expiry. Can be revoked.
-- **Role** — a set of \`(index_prefix, operation)\` pairs. Flat. No inheritance.
-- **Session** — a token that's currently open. Auto-expires.
-
-That's it. There are no **Spaces**, no **feature privileges matrix**, no
-separate **role mapping** configuration. Everything goes through one check:
-
-\`\`\`
-allow(token, index, op) :=
- ∃ role ∈ token.roles :
- ∃ (prefix, ops) ∈ role :
- index.startsWith(prefix) ∧ op ∈ ops
-\`\`\`
-
-If an operation is denied, the response includes the **exact missing role +
-prefix**. No more "permission denied" with no hint — see the auth event
-above for \`bob@eng\`.
-
-The corpus has 213 items in \`categories/08-spaces-and-rbac/\`, many of
-which are "I can see the dashboard but can't edit it" or "why doesn't my
-Space work". That complexity is gone.`
- ),
- },
-
- { id: 'citations', eyebrow: 'WHY THIS SECTION EXISTS · USER FEEDBACK', cols: 12, type: 'citations',
- render: () => Citations({
- items: [
- { id: 'gh-4453', source: 'github', score: 38,
- title: 'Saved object authorization - Phase 1',
- url: 'https://github.com/elastic/kibana/issues/4453' },
- { id: 'gh-18331', source: 'github', score: 47,
- title: 'Anonymous access',
- url: 'https://github.com/elastic/kibana/issues/18331' },
- { id: 'gh-17888', source: 'github', score: 45,
- title: 'Per-user profiles, settings in Kibana',
- url: 'https://github.com/elastic/kibana/issues/17888' },
- ],
- total: 213,
- }),
- },
-
- ],
- }),
-};
diff --git a/xerj-ux/src/dashboards/vector-index.js b/xerj-ux/src/dashboards/vector-index.js
deleted file mode 100644
index 20305a68f..000000000
--- a/xerj-ux/src/dashboards/vector-index.js
+++ /dev/null
@@ -1,110 +0,0 @@
-// ============================================================
-// Dashboard — VECTOR INDEX
-//
-// HNSW health + embedding space. Answers: where do my
-// embeddings live, how is recall holding up, what is the
-// shape of my corpus in vector space?
-// ============================================================
-
-import { Num } from '../ux/text.js';
-import { Spark, Series, Dist, Multiples } from '../ux/charts.js';
-import { EmbedSpace, ParallelCoords, Ribbon3D } from '../ux/charts-ai.js';
-import { Citations } from '../ux/charts-ops.js';
-import { TopN } from '../ux/layout.js';
-import { Gauge } from '../ux/charts-ext.js';
-import { dashboardCitations } from '../data/feedback-citations.js';
-
-export const vectorIndex = {
- id: 'vector-index',
- name: 'Vector · Index',
- render: ({ data, time }) => ({
- title: 'VECTOR · INDEX',
- kicker: 'HNSW · EMBEDDINGS · HYBRID',
- meta: [time, 'XERJ-VECTOR'],
- panels: [
-
- { id: 'vectors', eyebrow: 'VECTORS', cols: 3, type: 'metric',
- render: () => Num({
- value: data.metrics.vectors.formatted, unit: 'total',
- hint: data.metrics.vectors.hint, emphasis: true,
- }),
- },
- { id: 'dim', eyebrow: 'DIMENSIONS', cols: 2, type: 'metric',
- render: () => Num({
- value: data.metrics.dim.formatted, unit: 'd',
- hint: data.metrics.dim.hint, emphasis: false,
- }),
- },
- { id: 'disk', eyebrow: 'ON DISK', cols: 2, type: 'metric',
- render: () => Num({
- value: data.metrics.disk.formatted, unit: 'gb',
- hint: data.metrics.disk.hint, emphasis: false,
- }),
- },
- { id: 'qps', eyebrow: 'QUERIES/s', cols: 2, type: 'metric',
- render: () => Num({
- value: data.metrics.qps.formatted, unit: 'qps',
- spark: Spark(data.series.qps, { w: 140, h: 32 }),
- delta: data.metrics.qps.delta, emphasis: false,
- }),
- },
- { id: 'recall', eyebrow: 'RECALL @ 10', cols: 3, type: 'gauge',
- render: () => Gauge({
- value: data.metrics.recall.value, min: 80, max: 100, unit: '%',
- thresholds: [90, 95], emphasis: false,
- }),
- },
-
- { id: 'embedSpace', eyebrow: 'EMBEDDING SPACE · UMAP PROJECTION', cols: 12, type: 'embedspace',
- render: () => EmbedSpace({
- clusters: data.clusters, h: 420, highlight: [48, 48],
- }),
- },
-
- { id: 'annLatency', eyebrow: 'ANN LATENCY · P50 / P95 / P99', cols: 12, type: 'ribbon3d',
- render: () => Ribbon3D({
- series: [
- { label: 'P50', values: data.series.p50 },
- { label: 'P95', values: data.series.p95 },
- { label: 'P99', values: data.series.p99 },
- ],
- h: 220, depth: 14,
- }),
- },
-
- { id: 'pcoords', eyebrow: 'QUERY PROFILE · PARALLEL COORDINATES', cols: 12, type: 'pcoords',
- render: () => ParallelCoords({
- dims: data.pcoords.dims,
- rows: data.pcoords.rows,
- highlight: data.pcoords.highlight,
- h: 260,
- }),
- },
-
- { id: 'models', eyebrow: 'EMBEDDING MODELS', cols: 6, type: 'topn',
- render: () => TopN({ items: data.models, n: 6, valueFmt: (v) => v + 'M' }),
- },
-
- { id: 'p95Spark', eyebrow: 'p95 LATENCY', cols: 3, type: 'metric',
- render: () => Num({
- value: data.metrics.p95.formatted, unit: 'ms',
- spark: Spark(data.series.p95, { w: 160, h: 32 }),
- delta: data.metrics.p95.delta, deltaGood: 'down', emphasis: false,
- }),
- },
-
- { id: 'recallTimeline', eyebrow: 'RECALL OVER TIME', cols: 3, type: 'metric',
- render: () => Num({
- value: data.metrics.recall.formatted, unit: '%',
- spark: Spark(data.series.recall, { w: 160, h: 32 }),
- emphasis: false,
- }),
- },
-
- { id: 'citations', eyebrow: 'WHY THIS PANEL EXISTS · USER FEEDBACK', cols: 12, type: 'citations',
- render: () => Citations({ items: dashboardCitations['vector-index'] || [], total: 5150 }),
- },
-
- ],
- }),
-};
diff --git a/xerj-ux/src/data/backends/index.js b/xerj-ux/src/data/backends/index.js
deleted file mode 100644
index adce168cc..000000000
--- a/xerj-ux/src/data/backends/index.js
+++ /dev/null
@@ -1,62 +0,0 @@
-// ============================================================
-// Xerj Console — backend abstraction layer
-//
-// Xerj Console is a typography-first observability UI that today targets
-// the Xerj engine but is designed to swap in other backends later
-// (Kibana / OpenSearch / vanilla Elasticsearch, plus eventually a
-// pure-vector backend like Pinecone or Qdrant for AI demos).
-//
-// Each backend is a module under `./backends/<name>.js` exporting:
-//
-// export const meta = { id, label, defaultBaseUrl, supports: { … } };
-//
-// export async function probe(baseUrl, signal) → boolean
-// // Cheap "is there a live backend at this URL?" check. The
-// // playground status pill goes amber until probe() returns true.
-//
-// export async function search(baseUrl, dashId, ctx, signal) → data
-// // The contract is identical to the dashboard render fn input —
-// // each backend translates dashId + range + filters into the
-// // backend's native query and shapes the result back to the
-// // dashboard's expected `data` object.
-//
-// The active backend is selected by name; an empty/unreachable backend
-// falls back to the in-memory mock so the UI is always responsive.
-// ============================================================
-
-import * as xerj from './xerj.js';
-import * as mock from './mock.js';
-
-/** All registered backends. Add new modules here to expose them in the picker. */
-export const BACKENDS = { xerj, mock };
-
-/** Default backend selection, persisted in localStorage. */
-const STORAGE_KEY = 'xerj-console.backend';
-const DEFAULT_KEY = 'xerj';
-
-export function activeBackendId() {
- if (typeof localStorage === 'undefined') return DEFAULT_KEY;
- return localStorage.getItem(STORAGE_KEY) || DEFAULT_KEY;
-}
-
-export function setActiveBackendId(id) {
- if (typeof localStorage === 'undefined') return;
- if (BACKENDS[id]) localStorage.setItem(STORAGE_KEY, id);
-}
-
-export function activeBackend() {
- return BACKENDS[activeBackendId()] || BACKENDS[DEFAULT_KEY];
-}
-
-/** Per-backend baseURL setting (default 'http://localhost:9200' for xerj). */
-const URL_KEY = (id) => `xerj-console.backend.${id}.baseUrl`;
-
-export function backendBaseUrl(id) {
- if (typeof localStorage === 'undefined') return BACKENDS[id]?.meta?.defaultBaseUrl || '';
- return localStorage.getItem(URL_KEY(id)) || BACKENDS[id]?.meta?.defaultBaseUrl || '';
-}
-
-export function setBackendBaseUrl(id, url) {
- if (typeof localStorage === 'undefined') return;
- localStorage.setItem(URL_KEY(id), url);
-}
diff --git a/xerj-ux/src/data/backends/mock.js b/xerj-ux/src/data/backends/mock.js
deleted file mode 100644
index 842931775..000000000
--- a/xerj-ux/src/data/backends/mock.js
+++ /dev/null
@@ -1,28 +0,0 @@
-// ============================================================
-// Xerj Console backend — in-memory mock
-//
-// Re-exports the existing mock so the dashboards keep rendering
-// when no real backend is reachable. The "MOCK DATA" status pill
-// in the nav surfaces this state to the user.
-// ============================================================
-
-import { mock as mockData } from '../mock.js';
-
-export const meta = {
- id: 'mock',
- label: 'Mock data',
- defaultBaseUrl: '',
- supports: { search: true, aggs: true, knn: true, semantic: true, hybrid: true, fsck: false },
-};
-
-export async function probe(_baseUrl, _signal) {
- return true; // mock is always "live"
-}
-
-export async function search(_baseUrl, dashId, ctx, _signal) {
- return mockData(dashId, ctx.range || '24H', {
- cluster: ctx.cluster || '',
- filters: ctx.filters || {},
- customRange: ctx.customRange || null,
- });
-}
diff --git a/xerj-ux/src/data/backends/xerj.js b/xerj-ux/src/data/backends/xerj.js
deleted file mode 100644
index 74849a82a..000000000
--- a/xerj-ux/src/data/backends/xerj.js
+++ /dev/null
@@ -1,624 +0,0 @@
-// ============================================================
-// Xerj Console backend — Xerj engine
-//
-// Talks the ES-compatible REST API on port 9200 (or wherever the
-// caller pointed it). Every dashboard's data shape is produced
-// by composing one or more `_search` calls + light client-side
-// reshape into the dashboard render contract.
-//
-// `probe()` is intentionally GET / so it costs ~0 on the engine.
-// ============================================================
-
-// Aggregation materialisation bypass.
-//
-// Xerj v1.0.0-rc.1 has a known bug at
-// `engine/crates/xerj-engine/src/index.rs:3623`:
-// `let materialisation_limit = (from + size + 100).max(256);`
-// This caps the doc set that aggregations run over. When the
-// dashboard sends the standard ES idiom `size:0` for "aggs only",
-// the engine runs aggs over only ~256 docs and silently under-
-// reports sums / averages / terms. We bypass by passing a large
-// `size` so the materialisation cap exceeds the corpus. The
-// `.hits.hits` payload is discarded by every adapter below.
-// Track engine fix at: engine bug "agg materialisation cap".
-const AGG_BYPASS_SIZE = 9999;
-
-export const meta = {
- id: 'xerj',
- label: 'Xerj',
- defaultBaseUrl: 'http://localhost:9200',
- supports: {
- search: true,
- aggs: true,
- knn: true,
- semantic: true,
- hybrid: true,
- fsck: true,
- },
-};
-
-/** Lightweight liveness check. `true` if the server responded with a
- * Xerj-shaped root payload. Costs one HTTP GET. */
-export async function probe(baseUrl, signal) {
- try {
- const r = await fetch(baseUrl + '/', { signal });
- if (!r.ok) return false;
- const j = await r.json().catch(() => ({}));
- // Xerj's `/` returns ES-shaped info with a recognisable cluster_name
- // ("xerj" by default) and version. Accept anything that looks vaguely
- // ES-shaped so the same backend module also reports true against ES /
- // OpenSearch (handy when we add those backends as siblings).
- return typeof j === 'object' && j !== null
- && (j.cluster_name !== undefined || j.tagline !== undefined || j.version !== undefined);
- } catch (_e) {
- return false;
- }
-}
-
-/** Fetch live cat-indices for the picker / overview dashboards. */
-export async function listIndices(baseUrl, signal) {
- const r = await fetch(baseUrl + '/_cat/indices?format=json', { signal });
- if (!r.ok) return [];
- return r.json().catch(() => []);
-}
-
-/** Generic ES-compat search against a single index (or wildcard). */
-async function rawSearch(baseUrl, index, body, signal) {
- const path = `/${encodeURIComponent(index)}/_search`;
- const r = await fetch(baseUrl + path, {
- method: 'POST',
- headers: { 'content-type': 'application/json' },
- body: JSON.stringify(body),
- signal,
- });
- if (!r.ok) {
- const txt = await r.text().catch(() => '');
- throw new Error(`Xerj _search ${index} HTTP ${r.status}: ${txt.slice(0, 200)}`);
- }
- return r.json();
-}
-
-// ── Dashboard ↔ live-data adapters ──────────────────────────────
-//
-// The dispatcher below maps `dashId` to the function that produces the
-// shape that the matching dashboard's render() expects. New dashboards
-// add a case here when ready; until then the `query.js` wrapper
-// transparently falls back to mock data.
-
-export async function search(baseUrl, dashId, ctx, signal) {
- switch (dashId) {
- case 'search-discover': return liveSearchDiscover(baseUrl, ctx, signal);
- case 'system': return liveSystem(baseUrl, ctx, signal);
- case 'logs-overview': return liveLogsOverview(baseUrl, ctx, signal);
- case 'data': return liveData(baseUrl, ctx, signal);
- case 'ai-overview': return liveAiOverview(baseUrl, ctx, signal);
- case 'rag-quality': return liveRagQuality(baseUrl, ctx, signal);
- case 'vector-index': return liveVectorIndex(baseUrl, ctx, signal);
- case 'agent-memory': return liveAgentMemory(baseUrl, ctx, signal);
- case 'anomaly-detect': return liveAnomalyDetect(baseUrl, ctx, signal);
- case 'ingest-pipeline': return liveIngestPipeline(baseUrl, ctx, signal);
- default: return null; // signals "fall back to mock"
- }
-}
-
-// ── search-discover ────────────────────────────────────────────────
-//
-// The dashboard's `q` / `type` / `index` come in via ctx.search; we
-// translate to an ES-compat query body and run it. Hits, total,
-// per-field facets all come from one round-trip.
-async function liveSearchDiscover(baseUrl, ctx, signal) {
- const search = ctx.search || {};
- const q = search.q || '';
- const type = search.type || 'match';
- const index = search.index === '*' ? '_all' : (search.index || '_all');
-
- const body = buildSearchBody(q, type, ctx);
- let response;
- try {
- response = await rawSearch(baseUrl, index, body, signal);
- } catch (e) {
- return { error: String(e), hits: [], total: 0, took: 0, facets: {} };
- }
-
- const total = response.hits?.total?.value ?? response.hits?.total ?? 0;
- const hits = (response.hits?.hits || []).map((h) => ({
- _id: h._id,
- _index: h._index,
- _score: h._score,
- _source: h._source,
- '@timestamp': h._source?.['@timestamp'] || null,
- }));
- const facets = {
- by_level: bucketsToFacet(response.aggregations?.by_level),
- by_service: bucketsToFacet(response.aggregations?.by_service),
- by_host: bucketsToFacet(response.aggregations?.by_host),
- };
- return {
- total,
- took: response.took ?? 0,
- hits,
- facets,
- raw: { query: body, response },
- };
-}
-
-function buildSearchBody(q, type, ctx) {
- const inner = (() => {
- switch (type) {
- case 'term': {
- const m = (q || '').match(/^([a-z_]+)\s*=\s*(.+)$/i);
- return m ? { term: { [m[1]]: m[2] } } : { match_all: {} };
- }
- case 'range': {
- const m = (q || '').match(/^([a-z_]+)\s*(>=|<=|>|<)\s*(\d+(?:\.\d+)?)$/i);
- if (!m) return { match_all: {} };
- const [, f, op, v] = m;
- const k = op === '>=' ? 'gte' : op === '<=' ? 'lte' : op === '>' ? 'gt' : 'lt';
- return { range: { [f]: { [k]: Number(v) } } };
- }
- case 'prefix': return q ? { prefix: { message: q } } : { match_all: {} };
- case 'phrase': return q ? { match_phrase: { message: q } } : { match_all: {} };
- case 'semantic': return q ? { semantic: { field: 'embedding', query: q, k: 10 } }
- : { match_all: {} };
- case 'hybrid': return q ? {
- hybrid: {
- queries: [
- { query: { match: { message: q } }, weight: 1.0 },
- { query: { semantic: { field: 'embedding', query: q, k: 10 } }, weight: 0.8 },
- ],
- fusion: { type: 'rrf', k: 60 },
- }
- } : { match_all: {} };
- case 'knn': return { match_all: {} }; // raw knn needs vector input — UI shows DSL only
- default: return q ? { match: { message: q } } : { match_all: {} };
- }
- })();
-
- const filterList = Object.entries(ctx.filters || {}).map(([f, v]) => ({ term: { [f]: v } }));
- const query = filterList.length
- ? { bool: { must: inner, filter: filterList } }
- : inner;
-
- return {
- query,
- size: 25,
- track_total_hits: true,
- aggs: {
- by_level: { terms: { field: 'level', size: 8 } },
- by_service: { terms: { field: 'service', size: 8 } },
- by_host: { terms: { field: 'host', size: 8 } },
- },
- };
-}
-
-function bucketsToFacet(agg) {
- if (!agg || !Array.isArray(agg.buckets)) return [];
- return agg.buckets.map((b) => ({ key: String(b.key), count: b.doc_count }));
-}
-
-// ── system ────────────────────────────────────────────────────────
-//
-// The system dashboard expects a rich infrastructure-monitoring
-// shape (hostCpu sparklines, topProcs, auth.failures…) that Xerj
-// itself doesn't expose — those come from a metric collector
-// pointed at the host (Metricbeat / collectd / OTLP). For the SE
-// demo path we return null here so the dashboard falls back to the
-// mock; once a metrics-ingest adapter lands in v0.7.x we'll fill
-// the live shape from the same xerj indices the user is watching.
-async function liveSystem(baseUrl, ctx, signal) {
- // We don't have a host-metrics agent today, but `_cluster/stats`
- // gives us real numbers we can drop into the headline tiles.
- let stats;
- try {
- const r = await fetch(baseUrl + '/_cluster/stats', { signal });
- if (!r.ok) return null;
- stats = await r.json();
- } catch (_e) { return null; }
- const base = await loadMock('system', ctx);
- const docs = stats?.indices?.docs?.count || 0;
- const bytes = stats?.indices?.store?.size_in_bytes || 0;
- const idxN = stats?.indices?.count || 0;
- const shardN = stats?.indices?.shards?.total || 0;
- base.metrics = base.metrics || {};
- base.metrics.cpu = base.metrics.cpu || { value: 0, formatted: '—' };
- base.metrics.disk = { value: bytes, formatted: (bytes / 1e9).toFixed(2) + ' GB', hint: 'live · xerj · stored' };
- base.metrics.docs = { value: docs, formatted: docs.toLocaleString('en-US'), hint: 'live · xerj' };
- base.metrics.indices = { value: idxN, formatted: String(idxN), hint: `live · xerj · ${shardN} shards` };
- base._live = { source: '_cluster/stats', docs, bytes, indices: idxN, shards: shardN };
- return base;
-}
-
-// ── logs-overview ─────────────────────────────────────────────────
-//
-// Returns the rich logs-overview shape the dashboard expects, with
-// live counts overlaid where we can compute them from xerj aggs.
-// Fields the engine can't produce (peak rate, multi-host series,
-// per-host CPU sparklines) come from the mock so the canvas stays
-// fully populated for the SE demo.
-async function liveLogsOverview(baseUrl, ctx, signal) {
- const since = rangeToSince(ctx.range || '24H');
- const body = {
- size: AGG_BYPASS_SIZE, // rc.1 agg-cap workaround; see header
- query: { range: { '@timestamp': { gte: since } } },
- aggs: {
- by_level: { terms: { field: 'level', size: 5 } },
- by_service: { terms: { field: 'service', size: 8 } },
- by_host: { terms: { field: 'host', size: 8 } },
- timeline: {
- date_histogram: { field: '@timestamp', fixed_interval: bucketSize(ctx.range || '24H') },
- aggs: { by_level: { terms: { field: 'level', size: 5 } } },
- },
- },
- };
- let live;
- try {
- live = await rawSearch(baseUrl, 'logs-*', body, signal);
- } catch (_e) {
- return null; // graceful → mock fallback
- }
-
- // Use mock as the base shape so all panels render; overlay the few
- // numbers we can verify live against xerj.
- const { mock: mockData } = await import('../mock.js');
- const base = mockData('logs-overview', ctx.range || '24H', {
- cluster: ctx.cluster || '',
- filters: ctx.filters || {},
- customRange: ctx.customRange || null,
- });
-
- const total = live.hits?.total?.value ?? 0;
- if (base?.metrics?.total) {
- base.metrics.total.value = total;
- base.metrics.total.formatted = total.toLocaleString('en-US');
- base.metrics.total.delta = null;
- base.metrics.total.hint = 'live · xerj';
- }
- base._live = {
- total,
- by_level: bucketsToFacet(live.aggregations?.by_level),
- by_service: bucketsToFacet(live.aggregations?.by_service),
- by_host: bucketsToFacet(live.aggregations?.by_host),
- timeline: (live.aggregations?.timeline?.buckets || []).map((b) => ({
- t: b.key, count: b.doc_count,
- by_level: bucketsToFacet(b.by_level),
- })),
- };
- return base;
-}
-
-function rangeToSince(range) {
- switch (range) {
- case '1H': return 'now-1h';
- case '24H': return 'now-24h';
- case '7D': return 'now-7d';
- case '30D': return 'now-30d';
- case '90D': return 'now-90d';
- default: return 'now-24h';
- }
-}
-
-function bucketSize(range) {
- switch (range) {
- case '1H': return '1m';
- case '24H': return '1h';
- case '7D': return '6h';
- case '30D': return '1d';
- case '90D': return '1d';
- default: return '1h';
- }
-}
-
-// ── data (data sources / index inventory) ─────────────────────────
-//
-// Same overlay pattern as logs-overview: mock supplies the rich
-// canvas (clusters list, fieldsByIndex, narrative blurb) and we
-// overlay the live indices Xerj actually has.
-async function liveData(baseUrl, ctx, signal) {
- let indices;
- try {
- indices = await listIndices(baseUrl, signal);
- } catch (_e) {
- return null;
- }
- const { mock: mockData } = await import('../mock.js');
- const base = mockData('data', ctx.range || '24H', {
- cluster: ctx.cluster || '',
- filters: ctx.filters || {},
- customRange: ctx.customRange || null,
- });
-
- const liveIndices = (indices || []).map((i) => ({
- name: i.index,
- health: i.health || 'green',
- docs: Number(i['docs.count'] || 0),
- size: i['store.size'] || '0b',
- status: i.status || 'open',
- primary_shards: Number(i.pri || 1),
- replica_shards: Number(i.rep || 0),
- }));
-
- // Inject the live indices under whichever cluster is active in the
- // mock — that way the existing renderClusters / renderIndices tiles
- // light up without needing a new shape.
- const active = base?.activeCluster || 'local';
- if (base?.indicesByCluster) {
- base.indicesByCluster[active] = liveIndices.length ? liveIndices : base.indicesByCluster[active];
- base.focusIndex = liveIndices[0]?.name || base.focusIndex;
- }
- base._live = { indices: liveIndices };
- return base;
-}
-
-// ─────────────────────────────────────────────────────────────────────
-// LIVE ADAPTERS — every dashboard the demo runbook visits returns
-// numbers from real xerj indices. Each adapter starts from the mock
-// shape (so panels stay populated even when a sub-metric isn't yet
-// computable on the live engine) and overlays everything we CAN
-// compute. The status pill flips to "LIVE · XERJ" because the
-// outermost shape is real.
-// ─────────────────────────────────────────────────────────────────────
-
-const TIMELINE_BUCKET = (range) => bucketSize(range);
-
-function paretoFromBuckets(buckets) {
- return (buckets || []).map((b) => ({ key: String(b.key), value: b.doc_count }));
-}
-
-async function loadMock(dashId, ctx) {
- const { mock: mockData } = await import('../mock.js');
- return mockData(dashId, ctx.range || '24H', {
- cluster: ctx.cluster || '',
- filters: ctx.filters || {},
- customRange: ctx.customRange || null,
- });
-}
-
-// ── ai-overview ───────────────────────────────────────────────────
-async function liveAiOverview(baseUrl, ctx, signal) {
- const since = rangeToSince(ctx.range || '24H');
- const body = {
- size: AGG_BYPASS_SIZE, // rc.1 agg-cap workaround; see header
- query: { range: { '@timestamp': { gte: since } } },
- aggs: {
- total_prompt: { sum: { field: 'prompt_tokens' } },
- total_context: { sum: { field: 'context_tokens' } },
- total_completion:{ sum: { field: 'completion_tokens' } },
- total_cost: { sum: { field: 'cost_usd' } },
- avg_latency: { avg: { field: 'latency_ms' } },
- cache_hits: { terms: { field: 'cache_hit' } },
- models: { terms: { field: 'model', size: 8 } },
- intents: { terms: { field: 'intent', size: 12 } },
- docs: { terms: { field: 'top_doc', size: 12 } },
- timeline: { date_histogram: { field: '@timestamp', fixed_interval: TIMELINE_BUCKET(ctx.range || '24H') } },
- },
- };
- let live;
- try { live = await rawSearch(baseUrl, 'chat-events', body, signal); }
- catch (_e) { return null; }
- const total = live.hits?.total?.value ?? 0;
- if (!total) return null;
- const base = await loadMock('ai-overview', ctx);
- const a = live.aggregations || {};
- const totalPrompt = Math.max(0, Math.round(a.total_prompt?.value || 0));
- const totalContext = Math.max(0, Math.round(a.total_context?.value || 0));
- const totalComplete = Math.max(0, Math.round(a.total_completion?.value|| 0));
- const totalTokens = totalPrompt + totalContext + totalComplete;
- const totalCost = Math.max(0, a.total_cost?.value || 0);
- const avgLatency = Math.round(a.avg_latency?.value || 0);
- const hits = (a.cache_hits?.buckets || []).reduce((m, b) => (m[String(b.key)] = b.doc_count, m), {});
- const cacheRate = total ? ((hits.true || 0) * 100 / total) : 0;
- const fmt = (n) => n >= 1e9 ? (n/1e9).toFixed(1)+'B' : n >= 1e6 ? (n/1e6).toFixed(1)+'M' : n >= 1e3 ? (n/1e3).toFixed(1)+'k' : String(n);
- base.metrics = base.metrics || {};
- base.metrics.queries = { value: total, formatted: fmt(total), delta: null, hint: 'live · xerj' };
- base.metrics.tokens = { value: totalTokens, formatted: fmt(totalTokens), delta: null, hint: 'live · xerj' };
- base.metrics.cost = { value: totalCost, formatted: '$' + totalCost.toFixed(0), delta: null, hint: 'live · xerj' };
- const costES = totalCost * 5.2;
- base.metrics.savings = { value: costES - totalCost, formatted: '$' + (costES - totalCost).toFixed(0), note: 'vs ES+Pinecone+Splunk' };
- base.metrics.latency = { value: avgLatency, formatted: String(avgLatency), delta: null, hint: 'live · xerj' };
- base.metrics.cacheHit = { value: Math.round(cacheRate), formatted: String(Math.round(cacheRate)), delta: null, hint: 'live · xerj' };
- base.models = (a.models?.buckets || []).map((b) => ({ label: b.key.toUpperCase(), value: b.doc_count }));
- base.intents = (a.intents?.buckets || []).map((b) => ({ key: b.key, value: b.doc_count }));
- base.topDocs = (a.docs?.buckets || []).map((b) => ({ key: b.key, value: b.doc_count }));
- const tlBuckets = a.timeline?.buckets || [];
- if (tlBuckets.length) {
- base.series = base.series || {};
- base.series.queries = tlBuckets.map((b) => b.doc_count);
- }
- base._live = { source: 'chat-events', total };
- return base;
-}
-
-// ── rag-quality ────────────────────────────────────────────────────
-async function liveRagQuality(baseUrl, ctx, signal) {
- const since = rangeToSince(ctx.range || '24H');
- const body = {
- size: AGG_BYPASS_SIZE, // rc.1 agg-cap workaround; see header
- query: { range: { '@timestamp': { gte: since } } },
- aggs: {
- avg_prompt: { avg: { field: 'prompt_tokens' } },
- avg_context:{ avg: { field: 'context_tokens' } },
- avg_completion: { avg: { field: 'completion_tokens' } },
- docs: { terms: { field: 'top_doc', size: 12 } },
- tenants: { terms: { field: 'tenant', size: 8 } },
- },
- };
- let live;
- try { live = await rawSearch(baseUrl, 'chat-events', body, signal); }
- catch (_e) { return null; }
- const total = live.hits?.total?.value ?? 0;
- if (!total) return null;
- const base = await loadMock('rag-quality', ctx);
- const a = live.aggregations || {};
- base.metrics = base.metrics || {};
- base.metrics.queries = { value: total, formatted: total.toLocaleString('en-US'), hint: 'live · xerj' };
- if (base.metrics.contextLen) {
- base.metrics.contextLen.value = Math.round(a.avg_context?.value || 0);
- base.metrics.contextLen.formatted = Math.round(a.avg_context?.value || 0).toLocaleString('en-US');
- base.metrics.contextLen.hint = 'live · xerj';
- }
- base.topDocs = (a.docs?.buckets || []).map((b) => ({ key: b.key, value: b.doc_count }));
- base._live = { source: 'chat-events', total };
- return base;
-}
-
-// ── vector-index ───────────────────────────────────────────────────
-async function liveVectorIndex(baseUrl, ctx, signal) {
- const since = rangeToSince(ctx.range || '24H');
- const body = {
- size: AGG_BYPASS_SIZE, // rc.1 agg-cap workaround; see header
- query: { range: { '@timestamp': { gte: since } } },
- aggs: {
- ops: { terms: { field: 'op', size: 5 } },
- shards: { terms: { field: 'shard', size: 16 } },
- indexes: { terms: { field: 'index', size: 8 } },
- avg_recall:{ avg: { field: 'recall_at_10' } },
- avg_lat: { avg: { field: 'latency_ms' } },
- timeline: { date_histogram: { field: '@timestamp', fixed_interval: TIMELINE_BUCKET(ctx.range || '24H') } },
- },
- };
- let live;
- try { live = await rawSearch(baseUrl, 'vector-ops', body, signal); }
- catch (_e) { return null; }
- const total = live.hits?.total?.value ?? 0;
- if (!total) return null;
- const base = await loadMock('vector-index', ctx);
- const a = live.aggregations || {};
- base.metrics = base.metrics || {};
- base.metrics.qps = { value: total, formatted: total.toLocaleString('en-US'), hint: 'live · xerj · ops/24h' };
- base.metrics.recall = { value: a.avg_recall?.value || 0,
- formatted: ((a.avg_recall?.value || 0) * 100).toFixed(1) + '%', hint: 'live · xerj' };
- base.metrics.latency = { value: a.avg_lat?.value || 0,
- formatted: Math.round(a.avg_lat?.value || 0) + 'ms', hint: 'live · xerj' };
- base.shards = (a.shards?.buckets || []).map((b) => ({ key: b.key, value: b.doc_count }));
- base.byIndex = (a.indexes?.buckets || []).map((b) => ({ key: b.key, value: b.doc_count }));
- base.byOp = (a.ops?.buckets || []).map((b) => ({ key: b.key, value: b.doc_count }));
- const tl = a.timeline?.buckets || [];
- if (tl.length) {
- base.series = base.series || {};
- base.series.queries = tl.map((b) => b.doc_count);
- }
- base._live = { source: 'vector-ops', total };
- return base;
-}
-
-// ── agent-memory ───────────────────────────────────────────────────
-async function liveAgentMemory(baseUrl, ctx, signal) {
- const since = rangeToSince(ctx.range || '24H');
- const body = {
- size: AGG_BYPASS_SIZE, // rc.1 agg-cap workaround; see header
- query: { range: { '@timestamp': { gte: since } } },
- aggs: {
- ops: { terms: { field: 'op', size: 8 } },
- agents: { terms: { field: 'agent', size: 8 } },
- keys: { terms: { field: 'memory_key', size: 12 } },
- total_tokens:{ sum: { field: 'tokens' } },
- avg_score:{ avg: { field: 'score' } },
- timeline:{ date_histogram: { field: '@timestamp', fixed_interval: TIMELINE_BUCKET(ctx.range || '24H') } },
- },
- };
- let live;
- try { live = await rawSearch(baseUrl, 'agent-memory', body, signal); }
- catch (_e) { return null; }
- const total = live.hits?.total?.value ?? 0;
- if (!total) return null;
- const base = await loadMock('agent-memory', ctx);
- const a = live.aggregations || {};
- base.metrics = base.metrics || {};
- base.metrics.ops = { value: total, formatted: total.toLocaleString('en-US'), hint: 'live · xerj' };
- base.metrics.tokens = { value: a.total_tokens?.value || 0,
- formatted: ((a.total_tokens?.value || 0) / 1e3).toFixed(1) + 'k', hint: 'live · xerj' };
- base.metrics.recall = { value: a.avg_score?.value || 0,
- formatted: ((a.avg_score?.value || 0) * 100).toFixed(1) + '%', hint: 'live · xerj · avg score' };
- base.byOp = (a.ops?.buckets || []).map((b) => ({ key: b.key, value: b.doc_count }));
- base.byAgent = (a.agents?.buckets || []).map((b) => ({ key: b.key, value: b.doc_count }));
- base.topKeys = (a.keys?.buckets || []).map((b) => ({ key: b.key, value: b.doc_count }));
- const tl = a.timeline?.buckets || [];
- if (tl.length) {
- base.series = base.series || {};
- base.series.queries = tl.map((b) => b.doc_count);
- }
- base._live = { source: 'agent-memory', total };
- return base;
-}
-
-// ── anomaly-detect ─────────────────────────────────────────────────
-async function liveAnomalyDetect(baseUrl, ctx, signal) {
- const since = rangeToSince(ctx.range || '24H');
- const body = {
- size: AGG_BYPASS_SIZE, // rc.1 agg-cap workaround; see header
- query: { range: { '@timestamp': { gte: since } } },
- aggs: {
- kinds: { terms: { field: 'kind', size: 8 } },
- severity: { terms: { field: 'severity', size: 5 } },
- services: { terms: { field: 'service', size: 8 } },
- timeline: { date_histogram: { field: '@timestamp', fixed_interval: TIMELINE_BUCKET(ctx.range || '24H') } },
- },
- };
- let live;
- try { live = await rawSearch(baseUrl, 'anomalies', body, signal); }
- catch (_e) { return null; }
- const total = live.hits?.total?.value ?? 0;
- if (!total) return null;
- const base = await loadMock('anomaly-detect', ctx);
- const a = live.aggregations || {};
- const sevCounts = {};
- for (const b of a.severity?.buckets || []) sevCounts[b.key] = b.doc_count;
- base.metrics = base.metrics || {};
- base.metrics.total = { value: total, formatted: total.toLocaleString('en-US'), hint: 'live · xerj' };
- base.metrics.critical = { value: sevCounts.critical || 0, formatted: String(sevCounts.critical || 0), hint: 'live · xerj' };
- base.metrics.warning = { value: sevCounts.warning || 0, formatted: String(sevCounts.warning || 0), hint: 'live · xerj' };
- base.byKind = (a.kinds?.buckets || []).map((b) => ({ key: b.key, value: b.doc_count }));
- base.byService = (a.services?.buckets || []).map((b) => ({ key: b.key, value: b.doc_count }));
- base.bySeverity = (a.severity?.buckets || []).map((b) => ({ key: b.key, value: b.doc_count }));
- const tl = a.timeline?.buckets || [];
- if (tl.length) {
- base.series = base.series || {};
- base.series.events = tl.map((b) => b.doc_count);
- }
- base._live = { source: 'anomalies', total };
- return base;
-}
-
-// ── ingest-pipeline ────────────────────────────────────────────────
-async function liveIngestPipeline(baseUrl, ctx, signal) {
- const since = rangeToSince(ctx.range || '24H');
- const body = {
- size: AGG_BYPASS_SIZE, // rc.1 agg-cap workaround; see header
- query: { range: { '@timestamp': { gte: since } } },
- aggs: {
- stages: { terms: { field: 'stage', size: 8 } },
- pipelines: { terms: { field: 'pipeline', size: 8 } },
- status: { terms: { field: 'status', size: 4 } },
- total_docs:{ sum: { field: 'docs' } },
- avg_dur: { avg: { field: 'duration_ms' } },
- timeline: { date_histogram: { field: '@timestamp', fixed_interval: TIMELINE_BUCKET(ctx.range || '24H') } },
- },
- };
- let live;
- try { live = await rawSearch(baseUrl, 'logs-ingest-events', body, signal); }
- catch (_e) { return null; }
- const total = live.hits?.total?.value ?? 0;
- if (!total) return null;
- const base = await loadMock('ingest-pipeline', ctx);
- const a = live.aggregations || {};
- const statusCount = {};
- for (const b of a.status?.buckets || []) statusCount[b.key] = b.doc_count;
- const errRate = total ? ((statusCount.failed || 0) * 100 / total) : 0;
- base.metrics = base.metrics || {};
- base.metrics.events = { value: total, formatted: total.toLocaleString('en-US'), hint: 'live · xerj' };
- base.metrics.docs = { value: a.total_docs?.value || 0,
- formatted: ((a.total_docs?.value || 0) / 1e6).toFixed(1) + 'M', hint: 'live · xerj' };
- base.metrics.errorRate = { value: errRate, formatted: errRate.toFixed(2) + '%', hint: 'live · xerj' };
- base.metrics.avgLatency = { value: a.avg_dur?.value || 0,
- formatted: Math.round(a.avg_dur?.value || 0) + 'ms', hint: 'live · xerj' };
- base.byStage = (a.stages?.buckets || []).map((b) => ({ key: b.key, value: b.doc_count }));
- base.byPipeline = (a.pipelines?.buckets || []).map((b) => ({ key: b.key, value: b.doc_count }));
- base.byStatus = (a.status?.buckets || []).map((b) => ({ key: b.key, value: b.doc_count }));
- const tl = a.timeline?.buckets || [];
- if (tl.length) {
- base.series = base.series || {};
- base.series.events = tl.map((b) => b.doc_count);
- }
- base._live = { source: 'logs-ingest-events', total };
- return base;
-}
diff --git a/xerj-ux/src/data/dashboard-store.js b/xerj-ux/src/data/dashboard-store.js
deleted file mode 100644
index f99866e5c..000000000
--- a/xerj-ux/src/data/dashboard-store.js
+++ /dev/null
@@ -1,203 +0,0 @@
-// ============================================================
-// XERJ.ai — Dashboard metadata store
-//
-// This is the thin persistent layer that turns "dashboards are
-// hardcoded JS files" into "dashboards have editable metadata".
-//
-// Default dashboards (the ones shipped in src/dashboards/*.js)
-// are still code — diffable, reviewable, version-controlled.
-// But users can NOW:
-// • rename them
-// • reorder them in the nav
-// • hide them
-// • clone them to create a new user-owned dashboard
-// • delete user dashboards (defaults can only be hidden, never deleted)
-//
-// Everything lives under the `xerj.dashboards` localStorage key
-// so it survives reloads and round-trips through export/import.
-// ============================================================
-
-const LS_KEY = 'xerj.dashboards';
-
-/**
- * Full shape of the store:
- *
- * {
- * order: ['ai-overview', 'rag-quality', 'user-1abc', ...], // nav order
- * names: { 'ai-overview': 'AI Overview (mine)' }, // per-id rename
- * hidden: ['logs-overview'], // hidden from nav
- * custom: {
- * 'user-1abc': {
- * name: 'Prod API Traffic',
- * clonedFrom: 'search-discover', // default template id
- * createdAt: '2026-04-14T18:20:00Z',
- * dataSource: { cluster: 'prod-us', index: 'logs-prod' },
- * }
- * }
- * }
- */
-
-function load() {
- try {
- const raw = localStorage.getItem(LS_KEY);
- if (!raw) return {};
- return JSON.parse(raw);
- } catch {
- return {};
- }
-}
-function save(m) {
- localStorage.setItem(LS_KEY, JSON.stringify(m));
-}
-
-// ---------- reads ----------------------------------------
-
-/**
- * Merge default dashboards with user metadata. Returns an array
- * of `{ id, name, isUser, clonedFrom?, dataSource?, render }` in
- * the user-defined nav order. Hidden items are excluded. Pass
- * `{ includeHidden: true }` to get them too (used by MANAGE view).
- */
-export function mergedDashboards(defaults, { includeHidden = false } = {}) {
- const m = load();
- const hidden = new Set(m.hidden || []);
- const custom = m.custom || {};
- const names = m.names || {};
-
- // Build a map for quick lookup.
- const byId = Object.fromEntries(defaults.map((d) => [d.id, d]));
- const orderList = Array.isArray(m.order) && m.order.length
- ? m.order
- : defaults.map((d) => d.id);
-
- const out = [];
- const seen = new Set();
- for (const id of orderList) {
- if (hidden.has(id) && !includeHidden) { seen.add(id); continue; }
- const def = byId[id];
- const user = custom[id];
- if (def) {
- out.push({
- ...def,
- name: names[id] || def.name,
- isUser: false,
- hidden: hidden.has(id),
- });
- } else if (user) {
- // A user-created dashboard — borrow the render from its template.
- const source = user.clonedFrom ? byId[user.clonedFrom] : null;
- out.push({
- id,
- name: names[id] || user.name,
- render: source?.render || blankRender(user.name),
- isUser: true,
- clonedFrom: user.clonedFrom,
- dataSource: user.dataSource,
- hidden: hidden.has(id),
- });
- }
- seen.add(id);
- }
- // Append defaults the user hasn't yet placed (new ship adds).
- for (const def of defaults) {
- if (seen.has(def.id)) continue;
- if (hidden.has(def.id) && !includeHidden) continue;
- out.push({
- ...def,
- name: names[def.id] || def.name,
- isUser: false,
- hidden: hidden.has(def.id),
- });
- }
- return out;
-}
-
-/** Lightweight fallback render used for a user-created dashboard whose
- * clonedFrom template was deleted out from under it. */
-function blankRender(name) {
- return () => ({
- title: (name || 'BLANK').toUpperCase(),
- kicker: 'USER DASHBOARD',
- meta: ['NO TEMPLATE'],
- panels: [
- {
- id: 'empty',
- eyebrow: 'NOTHING HERE YET',
- cols: 12,
- render: () =>
- '<div class="mono faint">This user dashboard was cloned from a template that no longer exists. Open the MANAGE view to re-point it at a different template, or delete and recreate.</div>',
- },
- ],
- });
-}
-
-// ---------- mutations ------------------------------------
-
-export function renameDashboard(id, name) {
- const m = load();
- m.names = m.names || {};
- if (name && name.trim()) m.names[id] = name.trim();
- else delete m.names[id];
- save(m);
-}
-
-export function reorderDashboards(orderIds) {
- const m = load();
- m.order = orderIds.slice();
- save(m);
-}
-
-export function setHidden(id, hidden) {
- const m = load();
- m.hidden = m.hidden || [];
- const has = m.hidden.includes(id);
- if (hidden && !has) m.hidden.push(id);
- if (!hidden && has) m.hidden = m.hidden.filter((x) => x !== id);
- save(m);
-}
-
-/**
- * Create a user-owned dashboard. If `fromId` is provided, it
- * becomes a clone of that default (render inherited). Otherwise
- * it's a blank shell. Returns the new id.
- */
-export function createUserDashboard({ name, fromId = null, dataSource = null } = {}) {
- const m = load();
- m.custom = m.custom || {};
- const id = 'user-' + Math.random().toString(36).slice(2, 8) + Date.now().toString(36).slice(-4);
- m.custom[id] = {
- name: name || 'Untitled',
- clonedFrom: fromId,
- createdAt: new Date().toISOString(),
- dataSource,
- };
- m.order = m.order || [];
- m.order.push(id);
- save(m);
- return id;
-}
-
-export function deleteUserDashboard(id) {
- const m = load();
- if (m.custom) delete m.custom[id];
- if (m.order) m.order = m.order.filter((x) => x !== id);
- if (m.names) delete m.names[id];
- if (m.hidden) m.hidden = m.hidden.filter((x) => x !== id);
- save(m);
- // Also wipe any layout overrides tied to this id
- localStorage.removeItem('xerj.layout.' + id);
-}
-
-/** Wipe every metadata edit. Defaults reappear in their original order. */
-export function resetAll() {
- localStorage.removeItem(LS_KEY);
-}
-
-/** Is the given id a user-created dashboard (as opposed to a default)? */
-export function isUserDash(id) {
- const m = load();
- return !!(m.custom && m.custom[id]);
-}
-
-/** Raw read of the store — used by MANAGE view to show what's persisted. */
-export function readStore() { return load(); }
diff --git a/xerj-ux/src/data/data-sources.js b/xerj-ux/src/data/data-sources.js
deleted file mode 100644
index de7833a25..000000000
--- a/xerj-ux/src/data/data-sources.js
+++ /dev/null
@@ -1,350 +0,0 @@
-// ============================================================
-// XERJ.ai — Data source catalog (mock)
-//
-// Shape that mirrors the live XERJ API responses:
-// GET /v1/clusters → [{ id, name, url, status }]
-// GET /v1/clusters/{id}/indices → [{ name, docs, bytes, shards }]
-// GET /v1/indices/{name}/_mapping → { fields: [...] }
-// GET /v1/indices/{name}/encodings → { per-field encoding/ratio }
-//
-// When the backend is ready, swap the three exported functions
-// for real fetch() calls. Dashboards and the MANAGE view never
-// touch HTTP — they go through this module.
-// ============================================================
-
-const MOCK_CLUSTERS = [
- { id: 'local', name: 'LOCAL', url: 'http://localhost:8080', status: 'green', version: '0.1.0', indices: 6, docs: 1_24_00_000 },
- { id: 'prod-us', name: 'PROD-US', url: 'https://xerj-us-east-1.internal', status: 'green', version: '0.1.0', indices: 14, docs: 840_00_00_000 },
- { id: 'prod-eu', name: 'PROD-EU', url: 'https://xerj-eu-central-1.internal', status: 'yellow', version: '0.1.0', indices: 14, docs: 512_00_00_000 },
- { id: 'staging', name: 'STAGING', url: 'https://xerj-staging.internal', status: 'green', version: '0.2.0-rc1', indices: 8, docs: 22_00_00_000 },
-];
-
-const MOCK_INDICES = {
- local: [
- { name: 'logs-prod', docs: 42_000_000, bytes: 8_400_000_000, shards: 4, replicas: 0, retention_days: 30 },
- { name: 'logs-stage', docs: 3_200_000, bytes: 640_000_000, shards: 2, replicas: 0, retention_days: 7 },
- { name: 'traces', docs: 18_000_000, bytes: 3_600_000_000, shards: 4, replicas: 0, retention_days: 14 },
- { name: 'docs', docs: 58_000, bytes: 120_000_000, shards: 1, replicas: 0, retention_days: null },
- { name: 'metrics', docs: 22_000_000, bytes: 1_100_000_000, shards: 2, replicas: 0, retention_days: 90 },
- { name: 'events', docs: 8_200_000, bytes: 820_000_000, shards: 2, replicas: 0, retention_days: 30 },
- ],
- 'prod-us': [
- { name: 'logs-prod', docs: 12_400_000_000, bytes: 2_480_000_000_000, shards: 32, replicas: 1, retention_days: 90 },
- { name: 'logs-edge', docs: 4_200_000_000, bytes: 840_000_000_000, shards: 16, replicas: 1, retention_days: 30 },
- { name: 'traces', docs: 6_800_000_000, bytes: 1_360_000_000_000, shards: 16, replicas: 1, retention_days: 14 },
- { name: 'embeddings', docs: 1_200_000_000, bytes: 240_000_000_000, shards: 8, replicas: 1, retention_days: null },
- { name: 'agent-memory', docs: 48_000_000, bytes: 9_600_000_000, shards: 4, replicas: 1, retention_days: null },
- { name: 'rag-chunks', docs: 320_000_000, bytes: 64_000_000_000, shards: 8, replicas: 1, retention_days: null },
- { name: 'alerts', docs: 12_000_000, bytes: 2_400_000_000, shards: 2, replicas: 1, retention_days: 180 },
- { name: 'audit', docs: 18_000_000, bytes: 3_600_000_000, shards: 2, replicas: 1, retention_days: 365 },
- { name: 'metrics', docs: 2_400_000_000, bytes: 480_000_000_000, shards: 8, replicas: 1, retention_days: 90 },
- { name: 'events', docs: 860_000_000, bytes: 172_000_000_000, shards: 8, replicas: 1, retention_days: 30 },
- ],
-};
-
-// Per-index field catalog (mock). For each index a list of
-// { name, type, docValues, indexed, cardinality, encoding, ratio }.
-const MOCK_FIELDS = {
- 'logs-prod': [
- { name: '@timestamp', type: 'date', indexed: true, cardinality: 42_000_000, encoding: 'Δ-of-Δ', ratio: 0.02 },
- { name: 'service', type: 'keyword', indexed: true, cardinality: 12, encoding: 'DICT', ratio: 0.05 },
- { name: 'level', type: 'keyword', indexed: true, cardinality: 5, encoding: 'DICT', ratio: 0.04 },
- { name: 'host', type: 'keyword', indexed: true, cardinality: 48, encoding: 'DICT', ratio: 0.07 },
- { name: 'message', type: 'text', indexed: true, cardinality: 38_200_000, encoding: 'ZSTD+TMPL', ratio: 0.31 },
- { name: 'trace_id', type: 'keyword', indexed: true, cardinality: 12_400_000, encoding: 'UVARINT', ratio: 0.44 },
- { name: 'span_id', type: 'keyword', indexed: true, cardinality: 12_400_000, encoding: 'UVARINT', ratio: 0.44 },
- { name: 'latency_ms', type: 'integer', indexed: true, cardinality: 2_400, encoding: 'FOR+RLE', ratio: 0.18 },
- { name: 'status', type: 'integer', indexed: true, cardinality: 48, encoding: 'DICT', ratio: 0.06 },
- { name: 'bytes_out', type: 'integer', indexed: true, cardinality: 84_000, encoding: 'FOR', ratio: 0.22 },
- { name: 'client_ip', type: 'ip', indexed: true, cardinality: 3_400_000, encoding: 'RAW', ratio: 0.62 },
- { name: 'user_agent', type: 'text', indexed: true, cardinality: 18_000, encoding: 'DICT+ZSTD', ratio: 0.28 },
- ],
- traces: [
- { name: '@timestamp', type: 'date', indexed: true, cardinality: 18_000_000, encoding: 'Δ-of-Δ', ratio: 0.02 },
- { name: 'service.name', type: 'keyword', indexed: true, cardinality: 42, encoding: 'DICT', ratio: 0.05 },
- { name: 'operation.name', type: 'keyword', indexed: true, cardinality: 820, encoding: 'DICT', ratio: 0.08 },
- { name: 'duration_us', type: 'long', indexed: true, cardinality: 42_000, encoding: 'FOR+RLE', ratio: 0.14 },
- { name: 'trace_id', type: 'keyword', indexed: true, cardinality: 12_400_000, encoding: 'UVARINT', ratio: 0.44 },
- { name: 'span_id', type: 'keyword', indexed: true, cardinality: 18_000_000, encoding: 'UVARINT', ratio: 0.44 },
- { name: 'parent_span_id', type: 'keyword', indexed: true, cardinality: 14_000_000, encoding: 'UVARINT', ratio: 0.44 },
- { name: 'http.status_code', type: 'integer', indexed: true, cardinality: 48, encoding: 'DICT', ratio: 0.06 },
- ],
- embeddings: [
- { name: '@timestamp', type: 'date', indexed: true, cardinality: 1_200_000_000, encoding: 'Δ-of-Δ', ratio: 0.02 },
- { name: 'doc_id', type: 'keyword', indexed: true, cardinality: 1_200_000_000, encoding: 'UVARINT', ratio: 0.44 },
- { name: 'chunk_id', type: 'keyword', indexed: true, cardinality: 1_200_000_000, encoding: 'UVARINT', ratio: 0.44 },
- { name: 'text', type: 'text', indexed: true, cardinality: 1_100_000_000, encoding: 'ZSTD', ratio: 0.18 },
- { name: 'embedding', type: 'dense_vector', indexed: true, cardinality: null, encoding: 'HNSW+SQ8', ratio: 0.22 },
- { name: 'model', type: 'keyword', indexed: true, cardinality: 6, encoding: 'DICT', ratio: 0.04 },
- { name: 'dim', type: 'integer', indexed: false, cardinality: 4, encoding: 'DICT', ratio: 0.04 },
- ],
- 'rag-chunks': [
- { name: '@timestamp', type: 'date', indexed: true, cardinality: 320_000_000, encoding: 'Δ-of-Δ', ratio: 0.02 },
- { name: 'source_uri', type: 'keyword', indexed: true, cardinality: 2_400_000, encoding: 'DICT', ratio: 0.14 },
- { name: 'chunk_idx', type: 'integer', indexed: true, cardinality: 12_000, encoding: 'FOR', ratio: 0.12 },
- { name: 'text', type: 'text', indexed: true, cardinality: 280_000_000, encoding: 'ZSTD', ratio: 0.20 },
- { name: 'title', type: 'text', indexed: true, cardinality: 2_400_000, encoding: 'DICT+ZSTD', ratio: 0.18 },
- { name: 'parent_id', type: 'keyword', indexed: true, cardinality: 2_400_000, encoding: 'UVARINT', ratio: 0.44 },
- { name: 'tags', type: 'keyword', indexed: true, cardinality: 12_000, encoding: 'DICT', ratio: 0.10 },
- ],
- 'agent-memory': [
- { name: '@timestamp', type: 'date', indexed: true, cardinality: 48_000_000, encoding: 'Δ-of-Δ', ratio: 0.02 },
- { name: 'agent', type: 'keyword', indexed: true, cardinality: 8, encoding: 'DICT', ratio: 0.04 },
- { name: 'op', type: 'keyword', indexed: true, cardinality: 5, encoding: 'DICT', ratio: 0.04 },
- { name: 'key', type: 'keyword', indexed: true, cardinality: 2_400_000, encoding: 'UVARINT', ratio: 0.44 },
- { name: 'embedding', type: 'dense_vector', indexed: true, cardinality: null, encoding: 'HNSW+SQ8', ratio: 0.22 },
- { name: 'score', type: 'float', indexed: true, cardinality: 1_000, encoding: 'FOR+RLE', ratio: 0.18 },
- { name: 'dedup_of', type: 'keyword', indexed: true, cardinality: 860_000, encoding: 'UVARINT', ratio: 0.44 },
- ],
-};
-
-// ── live wiring ─────────────────────────────────────────────────────
-// `local` cluster maps to the running xerj on the same origin. We
-// keep MOCK_CLUSTERS for the prod-us / prod-eu / staging entries so
-// the selector still has multi-cluster shape, but the LOCAL cluster
-// flips to live `_cat/indices` + `_mapping` calls so the demo shows
-// "the engine actually has these indices" instead of seeded names.
-
-function liveBaseUrl() {
- if (typeof window !== 'undefined' && window.location && window.location.origin) {
- return window.location.origin;
- }
- return 'http://localhost:9200';
-}
-
-// ── Live wiring via Xerj Console backend ──────────────────────────────────────────
-// The SPA fetches connections, indices, and fields through Xerj Console's typed
-// surface (`/_xerj-console/api/v1/data-sources/...`) which carries the session
-// cookie automatically. Falls back to the engine's ES-compat endpoints
-// (`/_cluster/stats`, `/_cat/indices`, `/{idx}/_mapping`) when Xerj Console is
-// unreachable so the SPA still shows numbers if the user lands here
-// before logging in (or in dev when xerj-console-api isn't mounted).
-
-const XAPI = '/_xerj-console/api/v1';
-
-async function liveConnections() {
- try {
- const r = await fetch(XAPI + '/data-sources/connections', { credentials: 'same-origin' });
- if (!r.ok) return null;
- const body = await r.json();
- return body?.data?.connections || null;
- } catch (_e) { return null; }
-}
-
-async function liveClusterStats() {
- // Prefer the Xerj Console connection list (one row per data source) — every
- // row already carries the engine's status flag from xerj-console-api.
- const conns = await liveConnections();
- if (conns && conns.length) {
- return { __via_xerj_console: true, connections: conns };
- }
- try {
- const r = await fetch(liveBaseUrl() + '/_cluster/stats', { credentials: 'same-origin' });
- if (!r.ok) return null;
- return await r.json();
- } catch (_e) { return null; }
-}
-
-async function liveIndices() {
- // 1) Xerj Console facade — the auth-gated path that is what the binary
- // actually documents. Returns clean { indices: [...] }.
- try {
- const r = await fetch(XAPI + '/data-sources/connections/built-in/indices', {
- credentials: 'same-origin',
- });
- if (r.ok) {
- const body = await r.json();
- const list = body?.data?.indices || [];
- return list.map((it) => ({
- name: it.name,
- docs: Number(it.docs || 0),
- bytes: 0, // bytes not surfaced by phase-3 facade yet
- shards: Number(it.shards || 1),
- replicas: Number(it.replicas || 0),
- segments: Number(it.segments || 0),
- fields: Number(it.fields || 0),
- health: 'green',
- status: 'open',
- retention_days: null,
- }));
- }
- } catch (_e) { /* fall through to ES-compat */ }
-
- // 2) ES-compat fallback for unauthenticated dev / pre-bootstrap.
- try {
- const r = await fetch(liveBaseUrl() + '/_cat/indices', { credentials: 'same-origin' });
- if (!r.ok) return null;
- const txt = await r.text();
- const out = [];
- for (const line of txt.split('\n')) {
- // ES `_cat/indices` columns:
- // health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
- const cols = line.trim().split(/\s+/);
- if (cols.length < 8) continue;
- const [health, status, name, , pri, rep, docsCount, , storeSize] = cols;
- if (!name || name === 'index') continue;
- // Skip system indices (.xerj_*) — they're plumbing, not user data.
- if (name.startsWith('.xerj_')) continue;
- out.push({
- name,
- docs: Number(docsCount || 0),
- bytes: parseSize(storeSize || '0b'),
- shards: Number(pri || 1),
- replicas: Number(rep || 0),
- health: health || 'green',
- status: status || 'open',
- retention_days: null,
- });
- }
- return out;
- } catch (_e) { return null; }
-}
-
-async function liveFields(indexName) {
- // Xerj Console facade first.
- try {
- const r = await fetch(
- XAPI + '/data-sources/connections/built-in/indices/'
- + encodeURIComponent(indexName) + '/fields',
- { credentials: 'same-origin' },
- );
- if (r.ok) {
- const body = await r.json();
- const list = body?.data?.fields || [];
- return list.map((f) => ({
- name: f.name,
- type: f.type || 'object',
- indexed: f.indexed !== false,
- doc_values: f.doc_values !== false,
- cardinality: null,
- encoding: encodingFor(f.type),
- ratio: null,
- }));
- }
- } catch (_e) { /* fall through */ }
-
- // ES-compat mapping fallback.
- try {
- const r = await fetch(liveBaseUrl() + '/' + encodeURIComponent(indexName) + '/_mapping', {
- credentials: 'same-origin',
- });
- if (!r.ok) return null;
- const j = await r.json();
- const props = j?.[indexName]?.mappings?.properties || {};
- return Object.entries(props).map(([name, cfg]) => ({
- name,
- type: (cfg && cfg.type) || 'object',
- indexed: !(cfg && cfg.index === false),
- cardinality: null,
- encoding: encodingFor(cfg && cfg.type),
- ratio: null,
- }));
- } catch (_e) { return null; }
-}
-
-function parseSize(s) {
- if (!s) return 0;
- const m = String(s).match(/^([0-9.]+)\s*([kmgt]?b)$/i);
- if (!m) return Number(s) || 0;
- const n = parseFloat(m[1]);
- const u = m[2].toLowerCase();
- return u === 'b' ? n
- : u === 'kb' ? n * 1024
- : u === 'mb' ? n * 1024 * 1024
- : u === 'gb' ? n * 1024 * 1024 * 1024
- : u === 'tb' ? n * 1024 * 1024 * 1024 * 1024
- : n;
-}
-function encodingFor(t) {
- switch (t) {
- case 'date': return 'Δ-of-Δ';
- case 'date_nanos': return 'Δ-of-Δ';
- case 'keyword': return 'DICT';
- case 'text': return 'ZSTD+TMPL';
- case 'integer':
- case 'short':
- case 'byte':
- case 'long': return 'FOR';
- case 'float':
- case 'double':
- case 'half_float':
- case 'scaled_float': return 'FOR+RLE';
- case 'dense_vector': return 'HNSW+SQ8';
- case 'ip': return 'RAW';
- case 'boolean': return 'BIT';
- default: return '—';
- }
-}
-
-/** List all configured clusters. After login, the LOCAL row reflects
- * the real `built-in` connection shape from
- * /_xerj-console/api/v1/data-sources/connections. Other rows stay seeded so
- * the multi-cluster picker has shape (those external connections are
- * not implemented yet — they'll come from /data-sources/connections
- * too once the HTTP-shaped adapters land). */
-export async function listClusters() {
- const stats = await liveClusterStats();
- if (!stats) return MOCK_CLUSTERS;
-
- // Xerj Console connections path — replace every mock row whose id matches
- // a real connection's id, and keep illustrative mock rows for the
- // ones we don't have adapters for yet.
- if (stats.__via_xerj_console) {
- const conns = stats.connections || [];
- const out = MOCK_CLUSTERS.map((c) => ({ ...c }));
- // Map `built-in` → the LOCAL row.
- const builtIn = conns.find((c) => c.id === 'built-in');
- if (builtIn) {
- const local = out.find((c) => c.id === 'local');
- if (local) {
- local.url = liveBaseUrl();
- local.status = builtIn.status || 'green';
- local.name = (builtIn.name || 'LOCAL').toUpperCase();
- local.kind = builtIn.kind;
- }
- }
- // Future: append additional connection rows from `conns` once the
- // HTTP-shaped adapters return non-501 from the indices endpoint.
- return out;
- }
-
- // ES-compat /_cluster/stats fallback (pre-login).
- const out = MOCK_CLUSTERS.map((c) => ({ ...c }));
- const local = out.find((c) => c.id === 'local');
- if (local) {
- local.indices = stats.indices?.count || local.indices;
- local.docs = stats.indices?.docs?.count || local.docs;
- local.url = liveBaseUrl();
- local.status = stats.status || 'green';
- local.version = stats.nodes?.versions?.[0] || local.version;
- }
- return out;
-}
-
-export function listClustersSync() {
- return MOCK_CLUSTERS;
-}
-
-/** List indices in a cluster. LOCAL → live `_cat/indices`. */
-export async function listIndices(clusterId) {
- if (clusterId === 'local') {
- const live = await liveIndices();
- if (live && live.length) return live;
- }
- return MOCK_INDICES[clusterId] || [];
-}
-
-/** List fields in an index. For live indices, fetch the mapping. */
-export async function listFields(indexName) {
- if (MOCK_FIELDS[indexName]) return MOCK_FIELDS[indexName];
- const live = await liveFields(indexName);
- return live || [];
-}
-
-/** Return the default cluster id the app should talk to. */
-export function defaultClusterId() {
- return localStorage.getItem('xerj.cluster') || 'local';
-}
-export function setDefaultCluster(id) {
- localStorage.setItem('xerj.cluster', id);
-}
diff --git a/xerj-ux/src/data/export.js b/xerj-ux/src/data/export.js
deleted file mode 100644
index 73ca7f9fb..000000000
--- a/xerj-ux/src/data/export.js
+++ /dev/null
@@ -1,123 +0,0 @@
-// ============================================================
-// XERJ.ai — Export helpers
-//
-// Real Kibana feedback: GH#1992 "Export Documents as CSV"
-// (372 reactions, 571 comments) — the #1 ask of all time.
-// GH#1366 "Export chart to image" (178 reactions).
-//
-// Pure browser, no deps. CSV is built from arrays. PNG is
-// built by serializing an SVG and rasterizing through a
-// hidden <canvas>.
-// ============================================================
-
-/**
- * Build a CSV string from a header row and a body of rows.
- * Cells are escaped per RFC 4180: quoted if they contain
- * comma / quote / newline; embedded quotes doubled.
- */
-export function toCsv(headers, rows) {
- const escape = (cell) => {
- const s = cell == null ? '' : String(cell);
- if (/[",\n\r]/.test(s)) return '"' + s.replace(/"/g, '""') + '"';
- return s;
- };
- const lines = [headers.map(escape).join(',')];
- for (const row of rows) lines.push(row.map(escape).join(','));
- return lines.join('\r\n') + '\r\n';
-}
-
-/**
- * Trigger a browser download of arbitrary text as a file.
- * Uses an in-memory blob URL so nothing leaves the page.
- */
-export function downloadText(filename, mime, text) {
- const blob = new Blob([text], { type: mime + ';charset=utf-8' });
- const url = URL.createObjectURL(blob);
- const a = document.createElement('a');
- a.href = url;
- a.download = filename;
- document.body.appendChild(a);
- a.click();
- document.body.removeChild(a);
- setTimeout(() => URL.revokeObjectURL(url), 1500);
-}
-
-/** Convert hits → 4-column CSV (index, id, score, source). */
-export function hitsToCsv(hits, columns = ['_index', '_id', '_score', '_ts', '_source']) {
- const headers = columns.map((c) => c.replace(/^_/, ''));
- const rows = hits.map((h) =>
- columns.map((c) => {
- const v = h[c];
- if (typeof v === 'object' && v !== null) return JSON.stringify(v);
- return v;
- })
- );
- return toCsv(headers, rows);
-}
-
-/**
- * Export an SVG element to a PNG file.
- *
- * 1. Serialize the live SVG (with computed currentColor and viewBox)
- * 2. Inline it as a data URL in an <img>
- * 3. Render to <canvas> at 2× DPR
- * 4. canvas.toBlob → download
- *
- * Returns a Promise<Blob> so callers can await it for tests.
- */
-export async function svgToPng(svgEl, { scale = 2, filename = 'chart.png' } = {}) {
- if (!svgEl) throw new Error('svgToPng: missing SVG element');
- // Clone so we can safely mutate (size, color)
- const clone = svgEl.cloneNode(true);
- const rect = svgEl.getBoundingClientRect();
- const w = Math.max(1, Math.round(rect.width));
- const h = Math.max(1, Math.round(rect.height));
- // Force absolute size for the rasterizer
- clone.setAttribute('width', String(w));
- clone.setAttribute('height', String(h));
- // Inline computed color so currentColor resolves
- const cs = getComputedStyle(svgEl);
- clone.setAttribute('color', cs.color);
- // Add namespace
- if (!clone.getAttribute('xmlns')) {
- clone.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
- }
- // Inject background = page paper, otherwise PNG has transparent bg
- const paper = getComputedStyle(document.documentElement).getPropertyValue('--z-paper').trim() || '#0D0D0D';
- const bg = `<rect width="100%" height="100%" fill="${paper}"/>`;
- // Insert bg at the very start of children
- const inner = clone.innerHTML;
- clone.innerHTML = bg + inner;
-
- const xml = new XMLSerializer().serializeToString(clone);
- const svg64 = 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(xml);
-
- const img = new Image();
- img.crossOrigin = 'anonymous';
-
- const blob = await new Promise((resolve, reject) => {
- img.onload = () => {
- const canvas = document.createElement('canvas');
- canvas.width = w * scale;
- canvas.height = h * scale;
- const ctx = canvas.getContext('2d');
- ctx.scale(scale, scale);
- ctx.drawImage(img, 0, 0, w, h);
- canvas.toBlob((b) => (b ? resolve(b) : reject(new Error('toBlob failed'))), 'image/png');
- };
- img.onerror = (e) => reject(new Error('SVG image load failed'));
- img.src = svg64;
- });
-
- // Trigger download
- const url = URL.createObjectURL(blob);
- const a = document.createElement('a');
- a.href = url;
- a.download = filename;
- document.body.appendChild(a);
- a.click();
- document.body.removeChild(a);
- setTimeout(() => URL.revokeObjectURL(url), 1500);
-
- return blob;
-}
diff --git a/xerj-ux/src/data/feedback-citations.js b/xerj-ux/src/data/feedback-citations.js
deleted file mode 100644
index 3aadbf850..000000000
--- a/xerj-ux/src/data/feedback-citations.js
+++ /dev/null
@@ -1,215 +0,0 @@
-// AUTO-GENERATED by user-feedback/kibana/pipeline/design-inputs.mjs
-// Do not edit by hand. Re-run `node pipeline/design-inputs.mjs` after a corpus refresh.
-//
-// Each dashboard in src/dashboards/ that wants to attribute its panels to
-// real user pain imports this module and renders a CITATIONS panel.
-
-export const dashboardCitations = {
- "ai-overview": [
- {
- "id": "gh-kibana-696",
- "source": "github",
- "score": 162,
- "title": "Allow sorting on multiple fields",
- "url": "https://github.com/elastic/kibana/issues/696"
- },
- {
- "id": "gh-kibana-4584",
- "source": "github",
- "score": 113,
- "title": "Pipeline aggregations",
- "url": "https://github.com/elastic/kibana/issues/4584"
- },
- {
- "id": "gh-kibana-4707",
- "source": "github",
- "score": 71,
- "title": "Support Bucket Script Aggregation",
- "url": "https://github.com/elastic/kibana/issues/4707"
- }
- ],
- "rag-quality": [
- {
- "id": "gh-kibana-98246",
- "source": "github",
- "score": 8,
- "title": "Best practices for rule executions",
- "url": "https://github.com/elastic/kibana/issues/98246"
- },
- {
- "id": "gh-kibana-144418",
- "source": "github",
- "score": 7,
- "title": "[Dashboard] Redesign Add Panel Experience",
- "url": "https://github.com/elastic/kibana/issues/144418"
- },
- {
- "id": "gh-kibana-74571",
- "source": "github",
- "score": 4,
- "title": "[Meta] Saved Object Tagging",
- "url": "https://github.com/elastic/kibana/issues/74571"
- }
- ],
- "vector-index": [
- {
- "id": "gh-kibana-6515",
- "source": "github",
- "score": 18,
- "title": "Kibana Globalization",
- "url": "https://github.com/elastic/kibana/issues/6515"
- },
- {
- "id": "gh-kibana-98246",
- "source": "github",
- "score": 8,
- "title": "Best practices for rule executions",
- "url": "https://github.com/elastic/kibana/issues/98246"
- },
- {
- "id": "gh-kibana-144418",
- "source": "github",
- "score": 7,
- "title": "[Dashboard] Redesign Add Panel Experience",
- "url": "https://github.com/elastic/kibana/issues/144418"
- }
- ],
- "agent-memory": [
- {
- "id": "gh-kibana-98246",
- "source": "github",
- "score": 8,
- "title": "Best practices for rule executions",
- "url": "https://github.com/elastic/kibana/issues/98246"
- },
- {
- "id": "gh-kibana-144418",
- "source": "github",
- "score": 7,
- "title": "[Dashboard] Redesign Add Panel Experience",
- "url": "https://github.com/elastic/kibana/issues/144418"
- },
- {
- "id": "gh-kibana-74571",
- "source": "github",
- "score": 4,
- "title": "[Meta] Saved Object Tagging",
- "url": "https://github.com/elastic/kibana/issues/74571"
- }
- ],
- "search-discover": [
- {
- "id": "gh-kibana-1366",
- "source": "github",
- "score": 178,
- "title": "Export chart to image",
- "url": "https://github.com/elastic/kibana/issues/1366"
- },
- {
- "id": "gh-kibana-9575",
- "source": "github",
- "score": 143,
- "title": "[Dashboard] Allow Authors to Limit Interactivity",
- "url": "https://github.com/elastic/kibana/issues/9575"
- },
- {
- "id": "gh-kibana-12560",
- "source": "github",
- "score": 64,
- "title": "Custom drilldown links for a dashboard panel",
- "url": "https://github.com/elastic/kibana/issues/12560"
- }
- ],
- "anomaly-detect": [
- {
- "id": "gh-kibana-98246",
- "source": "github",
- "score": 8,
- "title": "Best practices for rule executions",
- "url": "https://github.com/elastic/kibana/issues/98246"
- },
- {
- "id": "gh-kibana-144418",
- "source": "github",
- "score": 7,
- "title": "[Dashboard] Redesign Add Panel Experience",
- "url": "https://github.com/elastic/kibana/issues/144418"
- },
- {
- "id": "gh-kibana-74571",
- "source": "github",
- "score": 4,
- "title": "[Meta] Saved Object Tagging",
- "url": "https://github.com/elastic/kibana/issues/74571"
- }
- ],
- "ingest-pipeline": [
- {
- "id": "gh-kibana-4288",
- "source": "github",
- "score": 45,
- "title": "Ability to export the index pattern along with saved objects",
- "url": "https://github.com/elastic/kibana/issues/4288"
- },
- {
- "id": "gh-kibana-4759",
- "source": "github",
- "score": 45,
- "title": "Expose object import/export as an API",
- "url": "https://github.com/elastic/kibana/issues/4759"
- },
- {
- "id": "gh-kibana-6057",
- "source": "github",
- "score": 40,
- "title": "add command line option to execute the optimize task standalone",
- "url": "https://github.com/elastic/kibana/issues/6057"
- }
- ],
- "logs-overview": [
- {
- "id": "gh-kibana-1992",
- "source": "github",
- "score": 372,
- "title": "Export Documents as CSV",
- "url": "https://github.com/elastic/kibana/issues/1992"
- },
- {
- "id": "gh-kibana-1366",
- "source": "github",
- "score": 178,
- "title": "Export chart to image",
- "url": "https://github.com/elastic/kibana/issues/1366"
- },
- {
- "id": "gh-kibana-30982",
- "source": "github",
- "score": 46,
- "title": "[Reporting] Exporting raw data from table-based visualizations",
- "url": "https://github.com/elastic/kibana/issues/30982"
- }
- ],
- "system": [
- {
- "id": "gh-kibana-6057",
- "source": "github",
- "score": 40,
- "title": "add command line option to execute the optimize task standalone",
- "url": "https://github.com/elastic/kibana/issues/6057"
- },
- {
- "id": "gh-kibana-4482",
- "source": "github",
- "score": 31,
- "title": "Conditional XY bar metric colors",
- "url": "https://github.com/elastic/kibana/issues/4482"
- },
- {
- "id": "gh-kibana-706",
- "source": "github",
- "score": 13,
- "title": "Translation to other languages",
- "url": "https://github.com/elastic/kibana/issues/706"
- }
- ]
-};
diff --git a/xerj-ux/src/data/mock.js b/xerj-ux/src/data/mock.js
deleted file mode 100644
index 5cf600d9c..000000000
--- a/xerj-ux/src/data/mock.js
+++ /dev/null
@@ -1,1045 +0,0 @@
-// ============================================================
-// XERJ.ai — Synthetic data source
-//
-// Deterministic per (dashboardId, timeRange). Feeds every
-// dashboard today; the shape is what a real XERJ.ai server will
-// return through /xerj/dashboards/{id}.
-//
-// Swap in data/query.js.
-// ============================================================
-
-// ---------- seeded PRNG (mulberry32) ----------------------
-const rng = (seed) => {
- let t = seed >>> 0;
- return () => {
- t = (t + 0x6D2B79F5) >>> 0;
- let r = t;
- r = Math.imul(r ^ (r >>> 15), r | 1);
- r ^= r + Math.imul(r ^ (r >>> 7), r | 61);
- return ((r ^ (r >>> 14)) >>> 0) / 4294967296;
- };
-};
-const hashStr = (s) => {
- let h = 2166136261;
- for (let i = 0; i < s.length; i++) { h ^= s.charCodeAt(i); h = Math.imul(h, 16777619); }
- return h >>> 0;
-};
-
-// ---------- shape helpers ---------------------------------
-const POINTS = { '1H': 60, '24H': 96, '7D': 168, '30D': 180, '90D': 180 };
-const points = (r) => POINTS[r] ?? 96;
-
-const HOURS = { '1H': 1, '24H': 24, '7D': 168, '30D': 720, '90D': 2160 };
-const hours = (r) => HOURS[r] ?? 24;
-
-const diurnal = (n, base, { peakHour = 14, amplitude = 0.75, noise = 0.12, rand } = {}) => {
- const out = new Array(n);
- const span = hours(rand.range ?? '24H');
- for (let i = 0; i < n; i++) {
- const hour = (i / (n - 1)) * span;
- const phase = Math.cos(((hour - peakHour) / 24) * 2 * Math.PI);
- const n1 = (rand() - 0.5) * 2 * noise;
- out[i] = Math.max(0, base * (1 + amplitude * phase + n1));
- }
- return out;
-};
-
-const pareto = (labels, total, { alpha = 1.05, rand }) => {
- const raw = labels.map((_, i) => (1 / Math.pow(i + 1, alpha)) * (0.85 + rand() * 0.3));
- const sum = raw.reduce((a, b) => a + b, 0);
- return labels.map((label, i) => ({ label, value: Math.round((raw[i] / sum) * total) }));
-};
-
-const sumOf = (arr) => arr.reduce((a, b) => a + b, 0);
-
-const peakLabel = (values) => {
- let idx = 0, max = -Infinity;
- for (let i = 0; i < values.length; i++) if (values[i] > max) { max = values[i]; idx = i; }
- const frac = idx / (values.length - 1);
- const h = Math.floor(frac * 24);
- const m = Math.floor(((frac * 24) - h) * 60);
- return `${String(h).padStart(2, '0')}:${String(m).padStart(2, '0')}`;
-};
-
-const compact = new Intl.NumberFormat('en', { notation: 'compact', maximumFractionDigits: 2 });
-
-const rangeLabels = (range) => {
- switch (range) {
- case '1H': return ['−60 MIN', 'NOW'];
- case '24H': return ['00:00', '24:00'];
- case '7D': return ['MON', 'SUN'];
- case '30D': return ['D−30', 'TODAY'];
- case '90D': return ['Q START', 'TODAY'];
- default: return ['', ''];
- }
-};
-
-// ==========================================================
-// AI OVERVIEW — the flagship
-// ==========================================================
-const buildAiOverview = (rand, range) => {
- const n = points(range);
- const base = 780 + rand() * 220;
- const queries = diurnal(n, base, { rand, peakHour: 13 });
- const totalQueries = Math.round(sumOf(queries));
-
- // Token counts — prompt grows with context, completion is steadier.
- const promptTok = queries.map((q) => q * (1800 + rand() * 600));
- const ctxTok = queries.map((q) => q * (9000 + rand() * 4500));
- const outTok = queries.map((q) => q * (320 + rand() * 180));
- const cacheHit = queries.map(() => 0.38 + rand() * 0.18);
-
- const totalPromptT = Math.round(sumOf(promptTok));
- const totalCtxT = Math.round(sumOf(ctxTok));
- const totalOutT = Math.round(sumOf(outTok));
- const totalT = totalPromptT + totalCtxT + totalOutT;
-
- // Cost: $/million tokens blended
- const cost = (totalPromptT / 1e6) * 2.5 + (totalCtxT / 1e6) * 0.2 + (totalOutT / 1e6) * 10;
- const costES = cost * 5.2; // what this would cost on the ES + proprietary stack
-
- const models = [
- { label: 'OPUS 4.6', value: Math.round(totalQueries * 0.22) },
- { label: 'SONNET 4.6', value: Math.round(totalQueries * 0.35) },
- { label: 'HAIKU 4.5', value: Math.round(totalQueries * 0.28) },
- { label: 'GPT-5', value: Math.round(totalQueries * 0.09) },
- { label: 'GEMINI 3', value: Math.round(totalQueries * 0.04) },
- { label: 'LLAMA 4', value: Math.round(totalQueries * 0.02) },
- ];
-
- const intents = pareto(
- ['semantic search','code-assist','doc-q&a','summarize','translate','classify',
- 'extract-json','agent-tool','rerank','rewrite','chat-freeform','safety-check'],
- totalQueries, { alpha: 0.85, rand }
- );
-
- const topDocs = pareto(
- ['runbook/oncall.md','rfc/042-retention.md','arch/cluster-design.md',
- 'rfc/039-hybrid-search.md','runbook/incident-1411.md','policy/pii.md',
- 'arch/hnsw-internals.md','rfc/051-agent-memory.md','docs/query-dsl.md',
- 'rfc/048-embed-proxy.md','runbook/billing-sync.md','docs/ingest-api.md'],
- Math.round(totalQueries * 0.7), { alpha: 0.75, rand }
- );
-
- // Latency percentiles per model as ribbon-3d series
- const latencyRibbons = [
- { label: 'OPUS 4.6', values: queries.map(() => 1450 + rand() * 220) },
- { label: 'SONNET 4.6', values: queries.map(() => 820 + rand() * 140) },
- { label: 'HAIKU 4.5', values: queries.map(() => 310 + rand() * 80) },
- { label: 'GPT-5', values: queries.map(() => 990 + rand() * 190) },
- { label: 'GEMINI 3', values: queries.map(() => 1120 + rand() * 240) },
- ];
-
- const costHeatmap = {
- cols: Array.from({ length: 12 }, (_, i) => String(i * 2).padStart(2, '0')),
- matrix: ['MON','TUE','WED','THU','FRI','SAT','SUN'].map((_, di) =>
- Array.from({ length: 12 }, (_, hi) => {
- const h = hi * 2;
- const phase = Math.cos(((h - 13) / 24) * 2 * Math.PI);
- const weekend = di >= 5 ? 0.48 : 1;
- return Math.max(0.2, cost / 150 * weekend * (1 + 0.8 * phase) * (0.85 + rand() * 0.3));
- })
- ),
- };
-
- const flowSegments = [
- { label: 'SYS PROMPT', value: totalPromptT },
- { label: 'CONTEXT', value: totalCtxT },
- { label: 'COMPLETION', value: totalOutT },
- ];
-
- return {
- metrics: {
- queries: { value: totalQueries, formatted: compact.format(totalQueries), delta: (rand() - 0.3) * 12 },
- tokens: { value: totalT, formatted: compact.format(totalT), delta: (rand() - 0.35) * 8 },
- cost: { value: cost, formatted: '$' + cost.toFixed(0), delta: (rand() - 0.65) * 18 },
- savings: { value: costES - cost, formatted: '$' + (costES - cost).toFixed(0), note: 'vs. ES+Pinecone+Splunk' },
- latency: { value: 820, formatted: '820', delta: (rand() - 0.55) * 8 },
- cacheHit: { value: 42, formatted: '42', delta: (rand() - 0.35) * 6 },
- },
- series: {
- queries,
- prompt: promptTok.map((v) => v / (1e3)),
- context: ctxTok.map((v) => v / (1e3)),
- output: outTok.map((v) => v / (1e3)),
- startLabel: rangeLabels(range)[0],
- endLabel: rangeLabels(range)[1],
- },
- models,
- intents,
- topDocs,
- latencyRibbons,
- costHeatmap,
- flowSegments,
- };
-};
-
-// ==========================================================
-// RAG QUALITY — the unsolved observability problem
-// ==========================================================
-const buildRagQuality = (rand, range) => {
- const n = points(range);
- const grounding = diurnal(n, 88, { rand, amplitude: 0.06, noise: 0.03, peakHour: 13 });
- const hallucination = grounding.map((g) => Math.max(0, 4.2 - (g - 84) * 0.8 + (rand() - 0.5) * 0.8));
- const retrievalHit = grounding.map((g) => Math.min(99, g + 8 + (rand() - 0.5) * 4));
-
- // Query → Chunk → Citation flow (chord arcs)
- const queries = [
- { id: 'q1', label: 'how do I reset cluster' },
- { id: 'q2', label: 'retention vs storage cost' },
- { id: 'q3', label: 'agent memory dedup rules' },
- { id: 'q4', label: 'hybrid search score fusion' },
- { id: 'q5', label: 'mmap segment format' },
- { id: 'q6', label: 'WAL recovery procedure' },
- { id: 'q7', label: 'what is HNSW recall' },
- { id: 'q8', label: 'pricing large context' },
- ];
- const chunks = [
- { id: 'c1', label: 'arch/cluster-design.md#reset' },
- { id: 'c2', label: 'rfc/042-retention.md#cost' },
- { id: 'c3', label: 'rfc/051-agent-memory.md#dedup' },
- { id: 'c4', label: 'rfc/039-hybrid-search.md#rrf' },
- { id: 'c5', label: 'arch/hnsw-internals.md' },
- { id: 'c6', label: 'runbook/wal-recovery.md' },
- { id: 'c7', label: 'docs/query-dsl.md#knn' },
- { id: 'c8', label: 'rfc/048-embed-proxy.md' },
- { id: 'c9', label: 'docs/pricing.md#ctx' },
- { id: 'c10', label: 'runbook/oncall.md' },
- ];
- const flows = [];
- for (const q of queries) {
- // each query pulls 3..5 chunks
- const k = 3 + Math.floor(rand() * 3);
- const picked = new Set();
- while (picked.size < k) picked.add('c' + (1 + Math.floor(rand() * chunks.length)));
- for (const cid of picked) {
- flows.push({ from: q.id, to: cid, weight: 0.4 + rand() * 0.6 });
- }
- }
-
- // Sample answer with token attention weights
- const sampleText = 'The XERJ.ai cluster reset procedure requires draining the WAL, flushing all memtables to disk, and then restarting with the recovery flag set. Do not skip the WAL drain step — lost writes in the fsync tail are unrecoverable.';
- const tokens = sampleText.split(' ').map((t) => {
- const hot = /(cluster|reset|drain|WAL|flush|memtables|recovery|unrecoverable)/i.test(t);
- return { text: t, weight: hot ? 0.65 + rand() * 0.35 : 0.05 + rand() * 0.25 };
- });
-
- const chunkHitDensity = {
- rows: ['Q&A', 'SEARCH', 'SUMMARIZE', 'CODE', 'EXTRACT', 'AGENT'],
- cols: ['c1','c2','c3','c4','c5','c6','c7','c8','c9','c10'],
- matrix: Array.from({ length: 6 }, () =>
- Array.from({ length: 10 }, () => Math.round(100 + rand() * 900))
- ),
- };
-
- const retrievalSource = [
- { label: 'HYBRID (RRF)', value: 6120 },
- { label: 'VECTOR KNN', value: 2340 },
- { label: 'BM25 ONLY', value: 820 },
- { label: 'MEMORY RECALL',value: 410 },
- ];
-
- const lowGroundingPrompts = pareto(
- [
- 'what changed in release 0.2',
- 'why is latency up today',
- 'who owns the billing pipeline',
- 'current on-call for Europe',
- 'is the fix deployed yet',
- 'any anomaly in the last hour',
- 'what does the new quota mean',
- 'regression vs last week',
- ],
- 4200, { alpha: 0.7, rand }
- ).map((it) => ({ ...it, value: Math.round(it.value / 10) + '%' }));
-
- return {
- metrics: {
- grounding: { value: grounding[grounding.length - 1], formatted: grounding[grounding.length - 1].toFixed(1), delta: (rand() - 0.35) * 4 },
- hallucination: { value: hallucination[hallucination.length - 1], formatted: hallucination[hallucination.length - 1].toFixed(2), delta: (rand() - 0.6) * 1.8 },
- hitRate: { value: retrievalHit[retrievalHit.length - 1], formatted: retrievalHit[retrievalHit.length - 1].toFixed(1), delta: (rand() - 0.4) * 4 },
- avgCitations: { value: 3.4, formatted: '3.4', delta: (rand() - 0.5) * 0.8 },
- },
- series: {
- grounding,
- hallucination,
- retrievalHit,
- startLabel: rangeLabels(range)[0],
- endLabel: rangeLabels(range)[1],
- },
- flow: { queries, chunks, flows },
- attention: { tokens, text: sampleText },
- chunkHitDensity,
- retrievalSource,
- lowGroundingPrompts,
- };
-};
-
-// ==========================================================
-// VECTOR INDEX — HNSW + embedding space
-// ==========================================================
-const buildVectorIndex = (rand, range) => {
- const n = points(range);
- const qps = diurnal(n, 1800, { rand, peakHour: 14 });
- const p50 = qps.map(() => 2.8 + rand() * 0.7);
- const p95 = qps.map(() => 9.4 + rand() * 2.2);
- const p99 = qps.map(() => 22 + rand() * 6);
- const recall = qps.map(() => 96.2 + rand() * 2);
-
- // 2D projected embedding space with 6 clusters
- const clusters = [
- { label: 'code', center: [20, 70], spread: 9, count: 180 },
- { label: 'docs', center: [60, 40], spread: 12, count: 220 },
- { label: 'runbook', center: [82, 68], spread: 7, count: 110 },
- { label: 'tickets', center: [42, 82], spread: 10, count: 160 },
- { label: 'chat', center: [30, 20], spread: 14, count: 240 },
- { label: 'email', center: [72, 18], spread: 8, count: 120 },
- ].map((c) => {
- const points = Array.from({ length: c.count }, () => {
- const a = rand() * Math.PI * 2;
- const r = (rand() ** 0.5) * c.spread;
- return [c.center[0] + Math.cos(a) * r, c.center[1] + Math.sin(a) * r];
- });
- return { label: c.label, points, centroid: c.center };
- });
-
- const vectors = clusters.reduce((a, c) => a + c.points.length, 0);
-
- const models = [
- { label: 'text-embed-3 (1536)', value: 720 },
- { label: 'cohere-v3 (1024)', value: 340 },
- { label: 'e5-large (1024)', value: 190 },
- { label: 'local-bge-m3 (1024)', value: 80 },
- ];
-
- // Parallel coordinates of 40 recent queries across 5 dims
- const dims = [
- { name: 'LATENCY' }, { name: 'TOKENS' }, { name: 'COST' },
- { name: 'RECALL' }, { name: 'GROUND' },
- ];
- const rows = Array.from({ length: 80 }, () => [
- 300 + rand() * 1400, // latency ms
- 800 + rand() * 18000, // tokens
- 0.01 + rand() * 0.18, // cost usd
- 82 + rand() * 16, // recall %
- 70 + rand() * 28, // grounding %
- ]);
- const highlight = [1420, 14200, 0.16, 94, 86];
-
- return {
- metrics: {
- vectors: { value: vectors, formatted: compact.format(vectors * 6200), hint: '6.2M total · shard 14/32' },
- dim: { value: 1536, formatted: '1536', hint: '3 models' },
- disk: { value: 38, formatted: '38', hint: 'GB quantized' },
- qps: { value: qps[qps.length - 1], formatted: compact.format(qps[qps.length - 1]), delta: (rand() - 0.3) * 6 },
- recall: { value: 96.8, formatted: '96.8', delta: (rand() - 0.45) * 0.6 },
- p95: { value: p95[p95.length - 1], formatted: p95[p95.length - 1].toFixed(1), delta: (rand() - 0.6) * 8 },
- },
- series: {
- qps, p50, p95, p99, recall,
- startLabel: rangeLabels(range)[0],
- endLabel: rangeLabels(range)[1],
- },
- clusters,
- models,
- pcoords: { dims, rows, highlight },
- };
-};
-
-// ==========================================================
-// AGENT MEMORY — XERJ.ai's unique primitive
-// ==========================================================
-const buildAgentMemory = (rand, range) => {
- const n = points(range);
- const size = diurnal(n, 2_200_000, { rand, amplitude: 0.25, noise: 0.04 });
- const dedup = diurnal(n, 34, { rand, amplitude: 0.08, noise: 0.02 });
- const recallP95 = diurnal(n, 14, { rand, amplitude: 0.12, noise: 0.04 });
-
- const agents = [
- { label: 'oncall-triage', value: 48210 },
- { label: 'doc-writer', value: 31450 },
- { label: 'incident-postmort', value: 22100 },
- { label: 'customer-qa', value: 18600 },
- { label: 'eng-copilot', value: 14200 },
- { label: 'billing-agent', value: 8900 },
- { label: 'sales-prospect', value: 6400 },
- { label: 'ops-baby-sitter', value: 3800 },
- ];
-
- // Semantic memory clusters for one specific agent (oncall-triage)
- const clusters = [
- { label: 'network', center: [18, 70], spread: 10, count: 90 },
- { label: 'storage', center: [52, 78], spread: 8, count: 110 },
- { label: 'billing', center: [78, 50], spread: 12, count: 80 },
- { label: 'auth', center: [30, 30], spread: 9, count: 70 },
- { label: 'query', center: [65, 22], spread: 11, count: 120 },
- ].map((c) => {
- const points = Array.from({ length: c.count }, () => {
- const a = rand() * Math.PI * 2;
- const r = (rand() ** 0.5) * c.spread;
- return [c.center[0] + Math.cos(a) * r, c.center[1] + Math.sin(a) * r];
- });
- return { label: c.label, points, centroid: c.center };
- });
-
- const topMemories = [
- { label: 'cluster reset procedure (verified)', value: 2804 },
- { label: 'pricing context for large enterprise', value: 1920 },
- { label: 'hybrid search fusion score explanation', value: 1612 },
- { label: 'WAL recovery tail loss (0.0014%)', value: 1402 },
- { label: 'HNSW recall vs build time tradeoff', value: 1180 },
- { label: 'agent memory dedup rules (semantic)', value: 980 },
- { label: 'mmap segment format roadmap', value: 770 },
- { label: 'flush policy triggers (investigate)', value: 612 },
- ];
-
- const recentOps = [
- ['23:14:02', 'INSERT', 'oncall-triage', 'new memory · cluster reset'],
- ['23:13:51', 'DEDUP', 'doc-writer', 'merged with 2 prior entries'],
- ['23:13:22', 'RECALL', 'oncall-triage', 'k=5 · top score 0.86'],
- ['23:12:48', 'FORGET', 'eng-copilot', 'decay below 0.12'],
- ['23:12:09', 'REWRITE', 'incident-pm', 'compacted from 4 → 1 entry'],
- ['23:11:44', 'INSERT', 'billing-agent', 'new memory · refund workflow'],
- ['23:11:03', 'RECALL', 'customer-qa', 'k=3 · top score 0.79'],
- ['23:10:41', 'DEDUP', 'sales-prospect', 'merged with 1 prior entry'],
- ['23:10:12', 'RECALL', 'eng-copilot', 'k=8 · top score 0.91'],
- ['23:09:58', 'INSERT', 'oncall-triage', 'new memory · billing-sync'],
- ];
-
- return {
- metrics: {
- entries: { value: size[size.length - 1], formatted: compact.format(size[size.length - 1]), delta: (rand() - 0.4) * 5 },
- dedup: { value: dedup[dedup.length - 1], formatted: dedup[dedup.length - 1].toFixed(1), delta: (rand() - 0.4) * 3 },
- recall: { value: recallP95[recallP95.length - 1], formatted: recallP95[recallP95.length - 1].toFixed(1), delta: (rand() - 0.55) * 4 },
- growth: { value: 84000, formatted: '84K', hint: 'per day' },
- agents: { value: agents.length, formatted: String(agents.length), hint: agents.length + ' active' },
- },
- series: {
- size, dedup, recallP95,
- startLabel: rangeLabels(range)[0],
- endLabel: rangeLabels(range)[1],
- },
- agents,
- clusters,
- topMemories,
- recentOps,
- };
-};
-
-// ==========================================================
-// LOGS OVERVIEW — kept from earlier iteration
-// ==========================================================
-const buildLogsOverview = (rand, range) => {
- const n = points(range);
- const base = 42000 + rand() * 8000;
- const totalSeries = diurnal(n, base, { rand });
- const total = Math.round(sumOf(totalSeries));
- const peakVal = Math.max(...totalSeries);
- const peakAt = peakLabel(totalSeries);
- const errRate = 0.6 + rand() * 0.6;
-
- const sourcesTotal = 84 + Math.floor(rand() * 20);
- const sourcesActive = sourcesTotal - Math.floor(rand() * 6);
-
- const byLevel = [
- { label: 'INFO', value: Math.round(total * (0.86 + rand() * 0.04)) },
- { label: 'WARN', value: Math.round(total * (0.08 + rand() * 0.02)) },
- { label: 'ERROR', value: Math.round(total * (errRate / 100)) },
- { label: 'DEBUG', value: Math.round(total * 0.003) },
- { label: 'FATAL', value: Math.round(total * 0.0001) + 2 },
- ];
-
- const services = [
- 'api-gateway','auth-service','billing','checkout','search',
- 'catalog','inventory','shipping','notifications','webhook-worker',
- 'recommendation','pricing',
- ];
- const topServices = pareto(services, Math.round(total * 0.92), { alpha: 0.95, rand });
-
- const hosts = [
- 'ip-10-0-1-17','ip-10-0-1-42','ip-10-0-2-88','ip-10-0-3-11',
- 'ip-10-0-3-54','ip-10-0-4-09','ip-10-0-4-73','ip-10-0-5-22',
- 'ip-10-0-5-91','ip-10-0-6-18','ip-10-0-6-60','ip-10-0-7-04',
- ];
- const topHosts = pareto(hosts, Math.round(total * 0.82), { alpha: 0.7, rand });
-
- const cols = Array.from({ length: 12 }, (_, i) => String(i * 2).padStart(2, '0'));
- const matrix = ['MON','TUE','WED','THU','FRI','SAT','SUN'].map((_, di) =>
- cols.map((_, hi) => {
- const h = hi * 2;
- const phase = Math.cos(((h - 14) / 24) * 2 * Math.PI);
- const weekend = di >= 5 ? 0.55 : 1;
- return Math.round(base * weekend * (1 + 0.8 * phase) * (0.85 + rand() * 0.3));
- })
- );
-
- return {
- metrics: {
- total: { value: total, formatted: compact.format(total), delta: (rand() - 0.45) * 6 },
- peak: { value: peakVal, formatted: compact.format(peakVal), at: peakAt },
- errorRate: { value: errRate, formatted: errRate.toFixed(2), delta: (rand() - 0.6) * 0.8 },
- sources: { value: sourcesTotal, formatted: String(sourcesTotal), active: sourcesActive },
- },
- series: {
- total: totalSeries,
- startLabel: rangeLabels(range)[0],
- endLabel: rangeLabels(range)[1],
- },
- byLevel,
- topServices,
- topHosts,
- heatmap: { cols, matrix },
- };
-};
-
-// ==========================================================
-// SYSTEM — kept from earlier iteration
-// ==========================================================
-const buildSystem = (rand, range) => {
- const n = points(range);
- const cpuSeries = diurnal(n, 48, { rand, amplitude: 0.35, noise: 0.08, peakHour: 14 });
- const memSeries = diurnal(n, 61, { rand, amplitude: 0.12, noise: 0.04, peakHour: 18 });
- const diskSeries = diurnal(n, 180, { rand, amplitude: 0.55, noise: 0.18, peakHour: 13 });
- const netSeries = diurnal(n, 420, { rand, amplitude: 0.6, noise: 0.2, peakHour: 15 });
-
- const hosts = [
- 'ip-10-0-1-17','ip-10-0-1-42','ip-10-0-2-88','ip-10-0-3-11',
- 'ip-10-0-3-54','ip-10-0-4-09','ip-10-0-4-73','ip-10-0-5-22',
- 'ip-10-0-5-91','ip-10-0-6-18','ip-10-0-6-60','ip-10-0-7-04',
- ];
- const hostCpu = hosts.map((h) => {
- const baseline = 30 + rand() * 45;
- const vals = Array.from({ length: 40 }, (_, i) => {
- const phase = Math.cos(((i - 20) / 20) * Math.PI);
- return Math.max(0, Math.min(100, baseline + phase * 14 + (rand() - 0.5) * 10));
- });
- return { label: h.toUpperCase(), values: vals, value: Math.round(vals[vals.length - 1]) + '%' };
- });
-
- const procs = [
- 'java -jar checkout-svc','postgres: walwriter','node search-proxy',
- 'java -jar auth-svc','python3 metrics-exporter','redis-server *:6379',
- 'envoy -c /etc/envoy.yaml','containerd-shim-runc','systemd-journald',
- 'kubelet --config /etc/kubelet','otelcol --config otel.yaml',
- ];
- const topProcs = pareto(procs, 1000, { alpha: 0.9, rand }).map((p) => ({
- label: p.label, value: p.value / 10,
- }));
-
- const topHosts = hosts.map((h, i) => ({
- label: h,
- value: Math.round(30 + (rand() * 60) + (i === 0 ? 15 : 0)),
- })).sort((a, b) => b.value - a.value);
-
- const authSeries = diurnal(n, 28, { rand, amplitude: 0.5 });
- const authTotal = Math.round(sumOf(authSeries));
- const failures = Math.round(authTotal * (0.03 + rand() * 0.02));
- const topFailUsers = pareto(
- ['root','admin','ubuntu','deploy','postgres','jenkins','test','oracle'],
- failures, { alpha: 0.65, rand }
- );
- const topFailIPs = pareto(
- ['45.137.21.4','185.234.218.19','193.32.162.157','91.240.118.99',
- '162.247.74.217','141.98.10.55','89.248.165.74','185.142.236.35'],
- failures, { alpha: 0.7, rand }
- );
-
- return {
- metrics: {
- hosts: { value: hosts.length, formatted: String(hosts.length), hint: `${hosts.length - 1} healthy` },
- alerts: { value: 3, formatted: '3', delta: -1.0, deltaGood: 'down', hint: '1 warn · 2 info' },
- cpuMean: { value: cpuSeries[cpuSeries.length - 1], formatted: cpuSeries[cpuSeries.length - 1].toFixed(0), delta: 4.1 },
- memMean: { value: memSeries[memSeries.length - 1], formatted: memSeries[memSeries.length - 1].toFixed(0), delta: 0.8 },
- },
- series: {
- cpu: cpuSeries, mem: memSeries, disk: diskSeries, net: netSeries,
- startLabel: rangeLabels(range)[0], endLabel: rangeLabels(range)[1],
- },
- hostCpu,
- topProcs,
- topHosts,
- auth: { total: authTotal, failures, series: authSeries, topFailUsers, topFailIPs },
- };
-};
-
-// ==========================================================
-// SEARCH CORPUS — client-side fake index for the SEARCH dash
-// ==========================================================
-const CORPUS_INDICES = ['logs-prod', 'logs-stage', 'docs', 'metrics', 'traces', 'events'];
-
-const BODY_TEMPLATES = [
- (r) => `GET /api/v2/catalog status=200 ms=${Math.round(12 + r() * 60)} client=203.0.113.${Math.floor(r() * 240)}`,
- (r) => `POST /api/v2/checkout status=500 upstream_ms=${Math.round(1500 + r() * 2500)} error="upstream timeout"`,
- (r) => `auth_login user=deploy src=10.0.${Math.floor(r() * 10)}.${Math.floor(r() * 240)} result=success`,
- (r) => `auth_login user=root src=45.137.21.${Math.floor(r() * 240)} result=failure reason="invalid password"`,
- (r) => `flush segment=seg-${Math.floor(r() * 999)} docs=${Math.floor(40000 + r() * 80000)} took_ms=${Math.round(180 + r() * 220)}`,
- (r) => `merge segments=[seg-${Math.floor(r() * 99)},seg-${Math.floor(r() * 99)}] out=seg-${Math.floor(r() * 999)} ratio=${(0.42 + r() * 0.3).toFixed(2)}`,
- (r) => `slow_query took_ms=${Math.round(820 + r() * 1800)} plan="BoolQuery(Must(Match(message)))" index="logs-prod"`,
- (r) => `hnsw_recall k=10 recall=${(0.94 + r() * 0.05).toFixed(3)} ef_search=${Math.floor(32 + r() * 96)}`,
- (r) => `agent_memory op=insert agent=oncall-triage key="cluster-reset" score=${(0.72 + r() * 0.25).toFixed(2)}`,
- (r) => `ingest_batch index=logs-prod docs=${Math.floor(1000 + r() * 9000)} wal_lag_ms=${Math.round(2 + r() * 18)}`,
- (r) => `oom_score=${Math.round(100 + r() * 800)} rss_mb=${Math.round(1200 + r() * 2600)} pid=${Math.floor(1000 + r() * 9000)}`,
- (r) => `cache_hit route=/api/v2/search ratio=${(0.72 + r() * 0.22).toFixed(2)} ttl_s=${Math.floor(60 + r() * 540)}`,
- (r) => `tool_use name=search success=true tokens_in=${Math.floor(200 + r() * 900)} tokens_out=${Math.floor(40 + r() * 240)}`,
- (r) => `rag_answer grounding=${(0.78 + r() * 0.2).toFixed(2)} citations=${Math.floor(2 + r() * 5)} chunks=${Math.floor(3 + r() * 7)}`,
-];
-
-const SERVICES = ['api-gateway','auth-service','billing','checkout','search','catalog','ingest-worker','query-coordinator','embed-proxy','agent-memory'];
-const LEVELS = ['INFO','WARN','ERROR','DEBUG','FATAL'];
-const HOSTS = ['ip-10-0-1-17','ip-10-0-2-88','ip-10-0-3-54','ip-10-0-4-73','ip-10-0-5-91','ip-10-0-6-60'];
-
-function buildCorpus() {
- const r = rng(0xFEEDFACE);
- const docs = [];
- for (let i = 0; i < 600; i++) {
- const tpl = BODY_TEMPLATES[Math.floor(r() * BODY_TEMPLATES.length)];
- const level = r() < 0.78 ? 'INFO' : r() < 0.93 ? 'WARN' : r() < 0.98 ? 'ERROR' : 'FATAL';
- docs.push({
- _index: CORPUS_INDICES[Math.floor(r() * CORPUS_INDICES.length)],
- _id: (1000000 + i).toString(16),
- _ts: new Date(Date.now() - Math.floor(r() * 86_400_000)).toISOString().slice(11, 19),
- service: SERVICES[Math.floor(r() * SERVICES.length)],
- level,
- host: HOSTS[Math.floor(r() * HOSTS.length)],
- _source: tpl(r),
- });
- }
- return docs;
-}
-let _corpus = null;
-const corpus = () => (_corpus ??= buildCorpus());
-
-/**
- * mockSearch — filter the in-memory corpus against a query.
- * Supports:
- * type=match — substring on _source
- * type=term — exact equality on field (e.g. `level=ERROR`)
- * type=prefix — _source startsWith
- * type=phrase — quoted-substring
- * type=range — `field>=value` / `field<=value` (latency-like)
- * type=knn — fake nearest-vector: rank by string-similarity hash
- * type=semantic — similar to knn, ranks differently
- * type=hybrid — 0.6*match + 0.4*vector, RRF-style fusion
- * index='*' means all indices.
- *
- * filters: `{ level: 'ERROR' }` applied as post-filter (clickable facets).
- */
-export function mockSearch({ q = '', type = 'match', index = '*', filters = {}, sort = { field: '_score', dir: 'desc' } } = {}) {
- const t0 = performance.now();
- const docs = corpus();
- const qLower = q.toLowerCase().trim();
-
- const passesIndex = (d) => index === '*' || d._index === index;
- const passesFilter = (d) => Object.entries(filters).every(([f, v]) => !v || d[f] === v);
-
- let pool = docs.filter((d) => passesIndex(d) && passesFilter(d));
- let matched;
- if (!qLower) {
- matched = pool.map((d) => ({ ...d, _score: 1 }));
- } else if (type === 'term') {
- // field=value syntax
- const m = qLower.match(/^([a-z_]+)\s*=\s*(.+)$/i);
- if (m) {
- const [, f, v] = m;
- matched = pool
- .filter((d) => String(d[f] ?? '').toLowerCase() === v.toLowerCase())
- .map((d) => ({ ...d, _score: 1 }));
- } else matched = [];
- } else if (type === 'prefix') {
- matched = pool
- .filter((d) => d._source.toLowerCase().startsWith(qLower))
- .map((d) => ({ ...d, _score: 1 - (d._source.length / 500) }));
- } else if (type === 'phrase') {
- const phrase = qLower.replace(/^"|"$/g, '');
- matched = pool
- .filter((d) => d._source.toLowerCase().includes(phrase))
- .map((d) => ({ ...d, _score: 2 + Math.random() * 0.5 }));
- } else if (type === 'range') {
- const m = qLower.match(/^([a-z_]+)\s*(>=|<=|>|<)\s*(\d+(?:\.\d+)?)$/i);
- if (m) {
- const [, f, op, v] = m;
- const n = Number(v);
- matched = pool
- .filter((d) => {
- const src = d._source;
- const rx = new RegExp(f + '=(\\d+(?:\\.\\d+)?)', 'i');
- const mm = src.match(rx);
- if (!mm) return false;
- const x = Number(mm[1]);
- return op === '>=' ? x >= n : op === '<=' ? x <= n : op === '>' ? x > n : x < n;
- })
- .map((d) => ({ ...d, _score: 1 }));
- } else matched = [];
- } else if (type === 'knn' || type === 'semantic') {
- // Fake vector distance: bytewise hash diff against query
- const qHash = Array.from(qLower).reduce((a, c) => (a + c.charCodeAt(0)) % 997, 0);
- matched = pool.map((d) => {
- const dh = Array.from(d._source.toLowerCase()).reduce((a, c) => (a + c.charCodeAt(0)) % 997, 0);
- const dist = Math.abs(qHash - dh) / 997;
- return { ...d, _score: 1 - dist };
- }).filter((d) => d._score > 0.72);
- } else if (type === 'hybrid') {
- // 0.6*bm25 + 0.4*vector, RRF-style rank fusion
- const bmList = pool.filter((d) => d._source.toLowerCase().includes(qLower))
- .map((d, i) => ({ id: d._id, rank: i + 1, base: d }));
- const qHash = Array.from(qLower).reduce((a, c) => (a + c.charCodeAt(0)) % 997, 0);
- const knnList = pool.map((d) => {
- const dh = Array.from(d._source.toLowerCase()).reduce((a, c) => (a + c.charCodeAt(0)) % 997, 0);
- return { id: d._id, score: 1 - Math.abs(qHash - dh) / 997, base: d };
- }).sort((a, b) => b.score - a.score).slice(0, 80).map((d, i) => ({ ...d, rank: i + 1 }));
- const mix = new Map();
- for (const r of bmList) mix.set(r.id, { base: r.base, s: 0.6 / (60 + r.rank) });
- for (const r of knnList) {
- const cur = mix.get(r.id);
- const add = 0.4 / (60 + r.rank);
- if (cur) cur.s += add;
- else mix.set(r.id, { base: r.base, s: add });
- }
- matched = Array.from(mix.values()).sort((a, b) => b.s - a.s).map((r) => ({ ...r.base, _score: r.s * 1000 }));
- } else {
- // default: match
- matched = pool.filter((d) => d._source.toLowerCase().includes(qLower))
- .map((d) => {
- const idx = d._source.toLowerCase().indexOf(qLower);
- const score = 2 + (1 - idx / d._source.length) * 2;
- return { ...d, _score: score };
- });
- }
-
- // Sort honors caller's request. Defaults to _score desc. GH#696/GH#737.
- const sortField = sort?.field || '_score';
- const sortDir = sort?.dir === 'asc' ? 1 : -1;
- matched.sort((a, b) => {
- const av = a[sortField];
- const bv = b[sortField];
- if (av == null && bv == null) return 0;
- if (av == null) return 1;
- if (bv == null) return -1;
- if (typeof av === 'number' && typeof bv === 'number') return (av - bv) * sortDir;
- return String(av).localeCompare(String(bv)) * sortDir;
- });
- const hits = matched.slice(0, 25);
- const took = Math.max(1, Math.round(performance.now() - t0 + (0.5 + Math.random() * 3.5)));
- // Facets computed from matched pool (post-query, pre-filter)
- const count = (field) => {
- const m = new Map();
- for (const d of matched) m.set(d[field], (m.get(d[field]) || 0) + 1);
- return Array.from(m.entries()).sort((a, b) => b[1] - a[1]).slice(0, 8)
- .map(([value, c]) => ({ label: value, value, count: c }));
- };
- // Histogram: buckets by the hour of d._ts
- const buckets = Array.from({ length: 24 }, () => 0);
- for (const d of matched) {
- const h = parseInt(d._ts.slice(0, 2), 10) || 0;
- buckets[h] += 1;
- }
- return {
- hits,
- total: matched.length,
- tookMs: took,
- maxScore: hits.length ? hits[0]._score : null,
- facets: { level: count('level'), service: count('service'), host: count('host'), _index: count('_index') },
- histogram: buckets,
- };
-}
-
-// ==========================================================
-// ANOMALY DETECTION — client-side z-score over a mock stream
-// ==========================================================
-/**
- * Rolling-window anomaly detection. Pure client-side z-score
- * because the engine's native anomaly pipeline is stubbed.
- * Returns value series + upper/lower bands + outlier indices
- * with attribution over N features.
- */
-const buildAnomalyDetect = (rand, range) => {
- const n = points(range);
- // Primary signal: query latency with injected spikes
- const base = 420 + rand() * 90;
- const values = Array.from({ length: n }, (_, i) => {
- const diurnal = Math.cos(((i / n) * 24 - 14) / 24 * 2 * Math.PI);
- return Math.max(10, base * (1 + 0.22 * diurnal) + (rand() - 0.5) * 28);
- });
- // Inject anomalies
- const injected = [];
- const numAnom = 5 + Math.floor(rand() * 3);
- for (let k = 0; k < numAnom; k++) {
- const idx = Math.floor(rand() * n);
- const mag = 2.8 + rand() * 3;
- values[idx] = values[idx] * mag;
- injected.push(idx);
- }
-
- // Rolling window stats for bands
- const W = Math.max(6, Math.floor(n / 12));
- const upper = new Array(n);
- const lower = new Array(n);
- for (let i = 0; i < n; i++) {
- const lo = Math.max(0, i - W), hi = Math.min(n - 1, i + W);
- let s = 0, s2 = 0, c = 0;
- for (let j = lo; j <= hi; j++) { s += values[j]; s2 += values[j] * values[j]; c++; }
- const mean = s / c;
- const std = Math.sqrt(Math.max(0, s2 / c - mean * mean));
- upper[i] = mean + 2.5 * std;
- lower[i] = Math.max(0, mean - 2.5 * std);
- }
-
- // Compute z-scores — anomalies are indices exceeding 2.5σ
- const anomalies = [];
- for (let i = 0; i < n; i++) {
- if (values[i] > upper[i] || values[i] < lower[i]) {
- const score = (values[i] - (upper[i] + lower[i]) / 2) / ((upper[i] - lower[i]) / 2 || 1);
- anomalies.push({ idx: i, score: Math.abs(score), value: values[i] });
- }
- }
- anomalies.sort((a, b) => b.score - a.score);
-
- // Feature attribution for top anomaly
- const topFeatures = [
- { label: 'query_latency_p95', value: 3.8 },
- { label: 'upstream_timeout', value: 2.9 },
- { label: 'cache_miss_rate', value: 2.1 },
- { label: 'flush_duration', value: 1.8 },
- { label: 'gc_pause', value: 0.7 },
- { label: 'cpu_saturation', value: 0.5 },
- ];
-
- // Top anomalous signals over the period
- const topSignals = [
- { label: 'api-gateway /checkout p95', value: anomalies[0]?.score || 0 },
- { label: 'billing-svc query latency', value: 4.1 },
- { label: 'auth-svc failed logins', value: 3.6 },
- { label: 'search-svc wal_lag_ms', value: 2.9 },
- { label: 'embed-proxy cost surge', value: 2.4 },
- { label: 'vector-index p99 latency', value: 2.0 },
- { label: 'agent-memory dedup dip', value: 1.7 },
- ];
-
- return {
- metrics: {
- detected: { value: anomalies.length, formatted: String(anomalies.length), delta: (rand() - 0.6) * 18 },
- covered: { value: 14, formatted: '14', hint: 'signals scored · z·score' },
- falsePos: { value: 1.2, formatted: '1.2', delta: (rand() - 0.5) * 0.6 },
- recall: { value: 92, formatted: '92', hint: 'vs. hand labels' },
- },
- series: {
- values, upper, lower, anomalies: anomalies.slice(0, 12),
- startLabel: rangeLabels(range)[0], endLabel: rangeLabels(range)[1],
- },
- topFeatures,
- topSignals,
- injected,
- };
-};
-
-// ==========================================================
-// INGEST PIPELINE — engine internals, matches Prometheus metrics
-// ==========================================================
-const buildIngest = (rand, range) => {
- const n = points(range);
- const docsIn = diurnal(n, 68000, { rand, amplitude: 0.6, peakHour: 15 });
- const bytesIn = docsIn.map((d) => d * (1.1 + rand() * 0.6) * 1024);
- const walLag = docsIn.map(() => 2 + rand() * 22);
- const flushMs = docsIn.map(() => 180 + rand() * 220);
- const mergeMs = docsIn.map(() => 420 + rand() * 900);
- const memBytes = docsIn.map(() => 1.8 * 1024 * 1024 * 1024 + rand() * 800 * 1024 * 1024);
-
- const idxLatP50 = docsIn.map(() => 0.6 + rand() * 0.3);
- const idxLatP95 = docsIn.map(() => 2.1 + rand() * 0.9);
- const idxLatP99 = docsIn.map(() => 6.4 + rand() * 2.8);
-
- const topIndices = pareto(
- ['logs-prod','logs-stage','traces','docs','metrics','events',
- 'agent-memory','embeddings','alerts','audit'],
- Math.round(sumOf(docsIn)), { alpha: 0.85, rand }
- );
-
- const perField = [
- { label: '@timestamp', value: 98, encoding: 'Δ-of-Δ' },
- { label: 'service', value: 91, encoding: 'DICT' },
- { label: 'level', value: 96, encoding: 'DICT' },
- { label: 'host', value: 88, encoding: 'DICT' },
- { label: 'message', value: 61, encoding: 'ZSTD+TMPL' },
- { label: 'trace_id', value: 28, encoding: 'UVARINT' },
- { label: 'latency_ms', value: 72, encoding: 'FOR+RLE' },
- { label: 'status', value: 94, encoding: 'DICT' },
- { label: 'bytes_out', value: 58, encoding: 'FOR' },
- ];
-
- const pipelineFlow = [
- { label: 'HTTP PARSE', value: 100 },
- { label: 'FIELD MAP', value: 98 },
- { label: 'PIPELINE · redact', value: 97 },
- { label: 'WAL APPEND', value: 97 },
- { label: 'MEMTABLE', value: 97 },
- { label: 'FLUSH → SEGMENT', value: 92 },
- { label: 'MERGE', value: 61 },
- ];
-
- return {
- metrics: {
- docsRate: { value: docsIn[docsIn.length - 1], formatted: compact.format(docsIn[docsIn.length - 1]), delta: (rand() - 0.3) * 8, unit: 'docs/s' },
- bytesRate: { value: bytesIn[bytesIn.length - 1], formatted: (bytesIn[bytesIn.length - 1] / 1024 / 1024).toFixed(1), unit: 'MB/s' },
- walLag: { value: walLag[walLag.length - 1], formatted: walLag[walLag.length - 1].toFixed(1), unit: 'ms', delta: (rand() - 0.55) * 12 },
- segments: { value: 184, formatted: '184', hint: '3 indices · 12 shards' },
- mem: { value: (memBytes[memBytes.length - 1] / 1024 / 1024 / 1024).toFixed(2), formatted: (memBytes[memBytes.length - 1] / 1024 / 1024 / 1024).toFixed(2), unit: 'GB' },
- ratio: { value: 4.8, formatted: '4.8', unit: '×', hint: 'vs. raw JSON' },
- },
- series: {
- docsIn, bytesIn, walLag, flushMs, mergeMs, memBytes,
- idxLatP50, idxLatP95, idxLatP99,
- startLabel: rangeLabels(range)[0], endLabel: rangeLabels(range)[1],
- },
- topIndices,
- perField,
- pipelineFlow,
- };
-};
-
-// ==========================================================
-// SEARCH DASHBOARD — static context data (histogram, facets)
-// only used when no query has been submitted yet.
-// ==========================================================
-const buildSearchDash = (rand, range) => {
- const n = points(range);
- const queries = diurnal(n, 1200, { rand, peakHour: 14 });
- const took_p50 = queries.map(() => 2 + rand() * 1.4);
- const took_p95 = queries.map(() => 8 + rand() * 3.2);
- return {
- metrics: {
- qps: { value: queries[queries.length - 1], formatted: compact.format(queries[queries.length - 1]), delta: (rand() - 0.4) * 5 },
- p95: { value: took_p95[took_p95.length - 1], formatted: took_p95[took_p95.length - 1].toFixed(1), delta: (rand() - 0.6) * 6 },
- totalDocs: { value: 52_400_000, formatted: '52.4M', hint: '6 indices · 32 shards' },
- uniqueTerms: { value: 18_900_000, formatted: '18.9M', hint: 'exact cardinality ✓' },
- },
- series: { queries, took_p50, took_p95, startLabel: rangeLabels(range)[0], endLabel: rangeLabels(range)[1] },
- };
-};
-
-// ---------- filter application ----------------------------
-// The real backend will compile `filters` into an ES filter clause.
-// Here we approximate the behaviour so click-to-filter actually
-// changes the shape: if a filter matches a label inside a top-N or
-// Dist, we keep only buckets whose labels case-insensitively include
-// the filter value. Series and metrics get a proportional shrink.
-//
-// A filter value can be a scalar OR an array — array = OR semantics,
-// matching GH#3693 ("Multi-select (OR) dashboard filtering").
-function filterCount(filters) {
- let n = 0;
- for (const v of Object.values(filters || {})) {
- n += Array.isArray(v) ? v.length : 1;
- }
- return n;
-}
-function filterRatio(filters) {
- const n = filterCount(filters);
- if (!n) return 1;
- // Each active filter shrinks things ~35%, clamped at 10%.
- // Multi-value (OR) filters shrink less because they match more.
- const fields = Object.keys(filters || {}).length;
- return Math.max(0.1, Math.pow(0.65, fields));
-}
-
-function applyFilters(data, filters) {
- if (!filters || !Object.keys(filters).length) return data;
- const r = filterRatio(filters);
- const values = [];
- for (const v of Object.values(filters)) {
- if (Array.isArray(v)) for (const x of v) values.push(String(x).toLowerCase());
- else values.push(String(v).toLowerCase());
- }
- const keep = (label) => {
- const s = String(label || '').toLowerCase();
- return values.some((v) => s.includes(v));
- };
-
- const walk = (node) => {
- if (Array.isArray(node)) {
- // Array of {label,value} buckets → narrow to matches when any
- // label matches a filter value. Otherwise rescale proportionally.
- if (node.length && typeof node[0] === 'object' && node[0] && 'label' in node[0] && 'value' in node[0]) {
- const hits = node.filter((b) => keep(b.label));
- if (hits.length) return hits.map((b) => ({ ...b, value: Math.max(1, Math.round(b.value * r * 1.2)) }));
- return node.map((b) => ({ ...b, value: Math.max(0, Math.round(b.value * r)) }));
- }
- // Numeric series → scale
- if (node.length && typeof node[0] === 'number') return node.map((v) => v * r);
- return node.map(walk);
- }
- if (node && typeof node === 'object') {
- const out = {};
- for (const k of Object.keys(node)) {
- const v = node[k];
- // Scale well-known metric shapes
- if (v && typeof v === 'object' && 'value' in v && 'formatted' in v && typeof v.value === 'number') {
- const scaled = Math.round(v.value * r);
- out[k] = { ...v, value: scaled, formatted: formatLike(v.formatted, scaled) };
- } else {
- out[k] = walk(v);
- }
- }
- return out;
- }
- return node;
- };
- return walk(data);
-}
-
-// Best-effort reformat of a metric's display string after scaling
-// the numeric value. Handles compact (1.2K), percent (42), and
-// currency ($1,230) forms.
-function formatLike(prev, n) {
- const s = String(prev);
- if (s.startsWith('$')) return '$' + Math.round(n).toLocaleString('en');
- if (/^[\d.]+[KMB]$/.test(s)) return compact.format(n);
- if (/^\d+$/.test(s)) return String(Math.round(n));
- return compact.format(n);
-}
-
-// ---------- public entry point ----------------------------
-// CUSTOM ranges resolve to the nearest bucket shape the mock knows
-// so charts still render. The real backend will respect from/to as
-// absolute ISO timestamps. We pick a bucket based on the span:
-// < 2h → 1H shape
-// < 36h → 24H shape
-// < 10d → 7D shape
-// < 45d → 30D shape
-// else → 90D shape
-function bucketForCustom(customRange) {
- if (!customRange || !customRange.from || !customRange.to) return '24H';
- const a = new Date(customRange.from).getTime();
- const b = new Date(customRange.to).getTime();
- if (!isFinite(a) || !isFinite(b) || b <= a) return '24H';
- const hrs = (b - a) / 3_600_000;
- if (hrs < 2) return '1H';
- if (hrs < 36) return '24H';
- if (hrs < 240) return '7D';
- if (hrs < 1080) return '30D';
- return '90D';
-}
-
-export function mock(dashId, range = '24H', ctx = {}) {
- const { cluster = '', filters = {}, customRange = null } = ctx;
- const effectiveRange = range === 'CUSTOM' ? bucketForCustom(customRange) : range;
- // Include cluster + filter keys + custom-range bounds in the seed so
- // switching filters visibly re-shuffles the numbers.
- const customKey = customRange ? (customRange.from || '') + '/' + (customRange.to || '') : '';
- const seedKey = dashId + '|' + effectiveRange + '|' + cluster + '|' + Object.keys(filters).sort().join(',') + '|' + customKey;
- const seedRand = rng(hashStr(seedKey));
- seedRand.range = effectiveRange;
- let out;
- switch (dashId) {
- case 'ai-overview': out = buildAiOverview(seedRand, effectiveRange); break;
- case 'rag-quality': out = buildRagQuality(seedRand, effectiveRange); break;
- case 'vector-index': out = buildVectorIndex(seedRand, effectiveRange); break;
- case 'agent-memory': out = buildAgentMemory(seedRand, effectiveRange); break;
- case 'search-discover': out = buildSearchDash(seedRand, effectiveRange); break;
- case 'anomaly-detect': out = buildAnomalyDetect(seedRand, effectiveRange); break;
- case 'ingest-pipeline': out = buildIngest(seedRand, effectiveRange); break;
- case 'logs-overview': out = buildLogsOverview(seedRand, effectiveRange); break;
- case 'system': out = buildSystem(seedRand, effectiveRange); break;
- default: out = buildAiOverview(seedRand, effectiveRange);
- }
- return applyFilters(out, filters);
-}
diff --git a/xerj-ux/src/data/query.js b/xerj-ux/src/data/query.js
deleted file mode 100644
index 8df6ca438..000000000
--- a/xerj-ux/src/data/query.js
+++ /dev/null
@@ -1,136 +0,0 @@
-// ============================================================
-// Xerj Console — query gateway
-//
-// All dashboard data flows through this one entry point. It picks
-// the active backend (default: xerj), tries a live call, and
-// falls back to the in-memory mock when the live call fails or
-// returns null (no adapter for this dashboard yet).
-//
-// This file is the only place in the playground that touches HTTP.
-// Dashboards stay backend-agnostic — they receive a shaped `data`
-// object and never see fetch().
-// ============================================================
-
-import { mock as mockData } from './mock.js';
-import {
- activeBackend,
- activeBackendId,
- backendBaseUrl,
- BACKENDS,
-} from './backends/index.js';
-
-/** Last-known status for the nav pill. Updated on every query. */
-let _lastSourceKind = 'pending';
-let _lastSourceLabel = 'STARTING UP';
-
-/** Function form (preferred). Returns the live status string. */
-export function dataSourceStatus() {
- return _lastSourceLabel;
-}
-
-export function dataSourceKind() {
- return _lastSourceKind;
-}
-
-/**
- * Fetch shaped data for a dashboard.
- *
- * ctx.dashId: dashboard id from the registry
- * ctx.range: '1H' | '24H' | '7D' | '30D' | '90D' | 'CUSTOM'
- * ctx.cluster: cluster id (defaults to active cluster)
- * ctx.filters: { [field]: value | [values] }
- * ctx.search: per-dashboard freeform state (q, type, index, …)
- * ctx.signal: AbortSignal — backends that honour it cancel in flight
- *
- * Returns `{ data, meta }` where meta carries timing, the active
- * backend, and `fetchedAt` for the nav status line.
- */
-export async function query(ctx = {}) {
- const {
- dashId,
- range = '24H',
- customRange = null,
- cluster = '',
- filters = {},
- search = {},
- signal,
- } = typeof ctx === 'string' ? { dashId: ctx } : ctx;
-
- const t0 = perfNow();
- const backend = activeBackend();
- const backendId = activeBackendId();
- const baseUrl = backendBaseUrl(backendId);
-
- // Try the live backend. A return of `null` means the backend
- // recognises the dashId but has no live adapter yet — we fall
- // through to mock without flipping the status pill to red.
- let data = null;
- let liveError = null;
- if (backend && typeof backend.search === 'function') {
- try {
- data = await backend.search(baseUrl, dashId, { range, customRange, cluster, filters, search }, signal);
- } catch (e) {
- liveError = String(e);
- }
- }
-
- if (data == null) {
- // Fallback to mock.
- data = mockData(dashId, range, { cluster, filters, customRange });
- _lastSourceKind = backendId === 'mock' ? 'mock' : 'fallback';
- _lastSourceLabel = backendId === 'mock'
- ? 'MOCK DATA'
- : `${BACKENDS[backendId]?.meta?.label || backendId}: MOCK FALLBACK`;
- } else if (data.error) {
- // The backend ran but returned an error envelope. Surface it to
- // the dashboard but keep the live source label so the user can
- // see "the backend is up but this query failed."
- _lastSourceKind = 'live-error';
- _lastSourceLabel = `${BACKENDS[backendId]?.meta?.label || backendId}: ${String(data.error).slice(0, 80)}`;
- } else {
- _lastSourceKind = 'live';
- _lastSourceLabel = `LIVE · ${BACKENDS[backendId]?.meta?.label || backendId} · ${baseUrl || ''}`;
- }
-
- const t1 = perfNow();
- return {
- data,
- meta: {
- dashId,
- range,
- customRange,
- cluster,
- filters,
- search,
- fetchedAt: new Date().toISOString(),
- durationMs: Math.round((t1 - t0) * 10) / 10,
- backend: backendId,
- backendLabel: BACKENDS[backendId]?.meta?.label || backendId,
- baseUrl,
- sourceKind: _lastSourceKind,
- liveError,
- },
- };
-}
-
-/** Probe the active backend. Used by the nav to flip the status
- * pill from amber → green when the engine becomes reachable. */
-export async function probeActiveBackend(signal) {
- const backend = activeBackend();
- const backendId = activeBackendId();
- const baseUrl = backendBaseUrl(backendId);
- if (!backend || typeof backend.probe !== 'function') return false;
- try {
- return await backend.probe(baseUrl, signal);
- } catch (_e) {
- return false;
- }
-}
-
-function perfNow() {
- return typeof performance !== 'undefined' ? performance.now() : Date.now();
-}
-
-/** Initial value (overwritten at runtime). Kept as a default export
- * for any old `import { DATA_SOURCE_KIND }` call sites. */
-export const DATA_SOURCE_KIND = 'pending';
diff --git a/xerj-ux/src/ux/chart-types.js b/xerj-ux/src/ux/chart-types.js
deleted file mode 100644
index 1fe43a965..000000000
--- a/xerj-ux/src/ux/chart-types.js
+++ /dev/null
@@ -1,356 +0,0 @@
-// ============================================================
-// XERJ.ai — Chart type registry
-//
-// The master catalog of visualization types, used by:
-// 1. The edit-mode ADD picker (lists every type).
-// 2. User-added panels (render demo data via this registry).
-//
-// Each entry: { id, name, cols, render(data) }. `render` may
-// consume the current dashboard's data object OR fall back to
-// canned demo data so an added panel always previews nicely
-// regardless of the active dashboard.
-// ============================================================
-
-import { Num, fmt } from './text.js';
-import { Spark, Series, Dist, Heatmap, Multiples } from './charts.js';
-import { VBar, Hist, Gauge, Scatter, Stacked, Treemap } from './charts-ext.js';
-import { EmbedSpace, Ribbon3D, ChordArcs, ParallelCoords, AttentionMap, FlowBand } from './charts-ai.js';
-import { Table, Markdown } from './tables.js';
-import { TopN, Events } from './layout.js';
-
-// ---------- demo data (deterministic) ---------------------
-const demoSeries = Array.from({ length: 48 }, (_, i) =>
- 50 + Math.sin(i / 5.5) * 22 + Math.cos(i / 3.2) * 9 + ((i * 37) % 7)
-);
-const demoItems = [
- { label: 'alpha', value: 4230 },
- { label: 'beta', value: 3180 },
- { label: 'gamma', value: 2564 },
- { label: 'delta', value: 1923 },
- { label: 'epsilon', value: 1340 },
- { label: 'zeta', value: 912 },
- { label: 'eta', value: 680 },
- { label: 'theta', value: 445 },
-];
-const demoSegments = [
- { label: '2XX', value: 9620 },
- { label: '3XX', value: 410 },
- { label: '4XX', value: 190 },
- { label: '5XX', value: 48 },
-];
-const demoTree = [
- { label: 'root', value: 13000, children: [
- { label: 'api-gateway', value: 5100, children: [
- { label: '/v2/search', value: 2400 },
- { label: '/v2/cart', value: 1800 },
- { label: '/v2/catalog', value: 900 },
- ]},
- { label: 'auth-service', value: 2400 },
- { label: 'billing', value: 1600 },
- { label: 'checkout', value: 1400 },
- ]},
-];
-
-// ---------- registry --------------------------------------
-export const chartTypes = {
-
- metric: {
- name: 'METRIC',
- cols: 4,
- describe: 'A single headline number with optional spark and delta.',
- render: () => Num({
- value: '42.0K', unit: 'demo',
- spark: Spark(demoSeries, { w: 160, h: 30 }),
- delta: 3.1, emphasis: true,
- }),
- },
-
- gauge: {
- name: 'GAUGE',
- cols: 4,
- describe: 'Single value on a bounded 1px track.',
- render: () => Gauge({ value: 73, min: 0, max: 100, unit: '%', label: 'demo' }),
- },
-
- line: {
- name: 'LINE',
- cols: 12,
- describe: 'Full-width time series. Replaces both Line and Area.',
- render: () => Series(demoSeries, { h: 140, labels: ['START', 'NOW'], unit: 'u/s' }),
- },
-
- spark: {
- name: 'SPARK',
- cols: 3,
- describe: 'Inline 1px sparkline with latest value.',
- render: () => Num({
- value: fmt(demoSeries[demoSeries.length - 1]),
- unit: 'u/s',
- spark: Spark(demoSeries, { w: 200, h: 36 }),
- emphasis: false,
- }),
- },
-
- bar: {
- name: 'BAR',
- cols: 6,
- describe: 'Vertical 1px-line bar chart.',
- render: () => VBar({
- items: demoSeries.slice(0, 24).map((v, i) => ({ label: String(i).padStart(2, '0'), value: Math.round(v) })),
- h: 140,
- unit: 'u',
- }),
- },
-
- histogram: {
- name: 'HISTOGRAM',
- cols: 12,
- describe: 'Column histogram of counts across buckets.',
- render: () => Hist({
- items: Array.from({ length: 32 }, (_, i) => ({
- label: String(i),
- value: Math.round(Math.exp(-Math.pow((i - 16) / 5, 2)) * 1000 + (i % 3) * 30),
- })),
- h: 160, unit: 'count',
- }),
- },
-
- dist: {
- name: 'DIST',
- cols: 12,
- describe: 'Distribution bar. Replaces pie/donut.',
- render: () => Dist({ segments: demoSegments, width: 1200 }),
- },
-
- stacked: {
- name: 'STACKED',
- cols: 12,
- describe: 'Horizontal stacked bars, one row per series.',
- render: () => Stacked({
- rows: [
- { label: 'US', segments: demoSegments },
- { label: 'DE', segments: demoSegments.map((s) => ({ ...s, value: s.value * 0.6 })) },
- { label: 'JP', segments: demoSegments.map((s) => ({ ...s, value: s.value * 0.45 })) },
- { label: 'BR', segments: demoSegments.map((s) => ({ ...s, value: s.value * 0.3 })) },
- ],
- }),
- },
-
- topn: {
- name: 'TOP-N',
- cols: 6,
- describe: 'Ranked list with aligned 1px bars. Replaces horizontal bar.',
- render: () => TopN({ items: demoItems, total: demoItems.reduce((a, i) => a + i.value, 0), n: 8 }),
- },
-
- treemap: {
- name: 'TREEMAP',
- cols: 6,
- describe: 'Nested hierarchy of ranked items.',
- render: () => Treemap({ items: demoTree }),
- },
-
- heatmap: {
- name: 'HEATMAP',
- cols: 12,
- describe: 'Character-intensity grid. Rows × columns of numbers whose opacity encodes magnitude.',
- render: () => Heatmap({
- rows: ['A','B','C','D','E','F','G'],
- cols: ['00','02','04','06','08','10','12','14','16','18','20','22'],
- matrix: Array.from({ length: 7 }, (_, r) =>
- Array.from({ length: 12 }, (_, c) => {
- const phase = Math.cos(((c * 2 - 14) / 24) * 2 * Math.PI);
- return Math.round(80 + 60 * phase + r * 5 + ((r + c * 7) % 9));
- })),
- cellFmt: (v) => String(v),
- }),
- },
-
- multiples: {
- name: 'MULTIPLES',
- cols: 12,
- describe: 'Grid of small sparklines, one per dimension.',
- render: () => Multiples({
- items: Array.from({ length: 8 }, (_, i) => ({
- label: 'SERIES ' + String.fromCharCode(65 + i),
- values: demoSeries.map((v) => v + (i * 3) + Math.sin(i) * 5),
- value: String(Math.round(50 + i * 2)),
- })),
- w: 180, h: 22,
- }),
- },
-
- scatter: {
- name: 'SCATTER',
- cols: 6,
- describe: 'X/Y point cloud using `·` characters as data points.',
- render: () => Scatter({
- points: Array.from({ length: 80 }, () => {
- const t = Math.random();
- return [20 + t * 80 + (Math.random() - 0.5) * 20, 10 + t * 70 + (Math.random() - 0.5) * 25];
- }),
- xLabel: 'LATENCY', yLabel: 'THROUGHPUT', h: 220,
- }),
- },
-
- table: {
- name: 'TABLE',
- cols: 6,
- describe: 'Text data table, no borders, tabular numbers.',
- render: () => Table({
- columns: ['NAME', 'COUNT', 'PCT', 'TREND'],
- rows: demoItems.map((it, i) => [
- it.label,
- fmt(it.value),
- ((it.value / demoItems.reduce((a, x) => a + x.value, 0)) * 100).toFixed(1) + '%',
- i % 2 ? '▲ 3.1' : '▼ 1.4',
- ]),
- align: ['left', 'right', 'right', 'right'],
- }),
- },
-
- events: {
- name: 'EVENTS',
- cols: 12,
- describe: 'Recent event tail — time, severity, message.',
- render: () => Events({ items: [
- { at: '23:14:02.081', sev: 'err', msg: 'demo · upstream timed out (connect) while connecting to upstream' },
- { at: '23:13:51.602', sev: 'warn', msg: 'demo · slow query 842 ms SELECT * FROM orders WHERE ...' },
- { at: '23:13:04.114', sev: 'info', msg: 'demo · batch 238 committed · 14,402 docs · 112 ms' },
- { at: '23:12:48.771', sev: 'warn', msg: 'demo · rate limit approaching 85% for tenant=acme' },
- { at: '23:12:09.033', sev: 'info', msg: 'demo · segment merged · 3→1 · 412 MB → 386 MB' },
- ]}),
- },
-
- markdown: {
- name: 'TEXT',
- cols: 6,
- describe: 'Free-form prose panel with very light markdown.',
- render: () => Markdown(
-`## NOTES
-
-This is a **text** panel. Use it for *annotations*, playbooks,
-SLO definitions, on-call runbooks — anything that the reader
-needs to see next to the data.
-
-Inline \`code\` renders in accent, which is the one place prose
-borrows the accent color.`
- ),
- },
-
- // ---- AI / RAG primitives -------------------------------
-
- embedspace: {
- name: 'EMBED-SPACE',
- cols: 12,
- describe: 'Embedding projection with 1px cluster hulls.',
- render: () => {
- const mk = (cx, cy, r, label, n) => {
- const pts = Array.from({ length: n }, () => {
- const a = Math.random() * Math.PI * 2;
- const rr = Math.sqrt(Math.random()) * r;
- return [cx + Math.cos(a) * rr, cy + Math.sin(a) * rr];
- });
- return { label, points: pts, centroid: [cx, cy] };
- };
- return EmbedSpace({
- clusters: [
- mk(22, 70, 10, 'code', 120),
- mk(58, 38, 12, 'docs', 180),
- mk(82, 66, 8, 'runbook', 80),
- mk(40, 80, 9, 'tickets', 110),
- mk(28, 22, 12, 'chat', 160),
- ],
- h: 360,
- });
- },
- },
-
- ribbon3d: {
- name: '3D RIBBON',
- cols: 12,
- describe: 'Axonometric stacked 1px time series. The "3D" chart.',
- render: () => {
- const series = Array.from({ length: 5 }, (_, i) => ({
- label: 'SERIES ' + String.fromCharCode(65 + i),
- values: Array.from({ length: 48 }, (_, j) =>
- 40 + i * 9 + Math.sin(j / 5 + i) * 15 + Math.cos(j / 8) * 6
- ),
- }));
- return Ribbon3D({ series, h: 260, depth: 14 });
- },
- },
-
- chord: {
- name: 'CHORD FLOW',
- cols: 12,
- describe: '1px Bézier arcs from sources to targets.',
- render: () => {
- const sources = Array.from({ length: 6 }, (_, i) => ({ id: 's' + i, label: 'query ' + (i + 1) }));
- const targets = Array.from({ length: 8 }, (_, i) => ({ id: 't' + i, label: 'doc/chunk ' + (i + 1) }));
- const flows = [];
- for (const s of sources) {
- const k = 2 + Math.floor(Math.random() * 3);
- for (let i = 0; i < k; i++) {
- flows.push({ from: s.id, to: 't' + Math.floor(Math.random() * 8), weight: Math.random() });
- }
- }
- return ChordArcs({ sources, targets, flows, h: 360 });
- },
- },
-
- pcoords: {
- name: 'PARALLEL-COORDS',
- cols: 12,
- describe: 'Multi-dimensional rows as 1px polylines across N axes.',
- render: () => ParallelCoords({
- dims: [{ name: 'LAT' }, { name: 'TOK' }, { name: 'COST' }, { name: 'RECALL' }, { name: 'GROUND' }],
- rows: Array.from({ length: 60 }, () => [
- 200 + Math.random() * 1500,
- 800 + Math.random() * 20000,
- 0.01 + Math.random() * 0.2,
- 80 + Math.random() * 18,
- 70 + Math.random() * 28,
- ]),
- h: 260,
- }),
- },
-
- attention: {
- name: 'ATTENTION-MAP',
- cols: 12,
- describe: 'Inline text with per-token opacity = attention weight.',
- render: () => AttentionMap({
- tokens: ('The XERJ.ai cluster reset requires draining the WAL and flushing all memtables before restart . Lost writes in the fsync tail are unrecoverable .').split(' ').map((t) => ({
- text: t,
- weight: /(cluster|reset|drain|WAL|flush|memtables|restart|unrecoverable)/i.test(t)
- ? 0.7 + Math.random() * 0.3
- : 0.08 + Math.random() * 0.22,
- })),
- }),
- },
-
- flowband: {
- name: 'FLOW BAND',
- cols: 12,
- describe: 'Single-row stacked flow allocation with labeled ticks.',
- render: () => FlowBand({
- segments: [
- { label: 'SYS PROMPT', value: 1200 },
- { label: 'CONTEXT', value: 8400 },
- { label: 'COMPLETION', value: 640 },
- ],
- unit: 'tok',
- }),
- },
-
-};
-
-/** Ordered list for the ADD picker. Reads left to right. AI first. */
-export const chartTypeList = [
- // AI / RAG
- 'embedspace','ribbon3d','chord','pcoords','attention','flowband',
- // Classic
- 'metric','gauge','spark','line','bar','histogram','dist','stacked',
- 'topn','treemap','heatmap','multiples','scatter','table','events','markdown',
-].map((id) => ({ id, ...chartTypes[id] }));
diff --git a/xerj-ux/src/ux/charts-ai.js b/xerj-ux/src/ux/charts-ai.js
deleted file mode 100644
index 0a9aba1ae..000000000
--- a/xerj-ux/src/ux/charts-ai.js
+++ /dev/null
@@ -1,351 +0,0 @@
-// ============================================================
-// XERJ.ai — AI / RAG visualization primitives
-//
-// Typography-first takes on the viz types people reach for when
-// building AI dashboards: embedding spaces, attention maps, RAG
-// retrieval flow, multi-dim parallel coordinates, and axonometric
-// "3D" ribbon plots. All strokes are 1px.
-// ============================================================
-
-import { esc, fmt } from './text.js';
-
-const minMax = (xs) => {
- let mn = Infinity, mx = -Infinity;
- for (const x of xs) { if (x < mn) mn = x; if (x > mx) mx = x; }
- return [mn === Infinity ? 0 : mn, mx === -Infinity ? 0 : mx];
-};
-
-// Andrew's monotone chain — O(n log n) convex hull.
-function convexHull(points) {
- if (points.length < 3) return points.slice();
- const pts = points.slice().sort((a, b) => a[0] - b[0] || a[1] - b[1]);
- const cross = (O, A, B) => (A[0] - O[0]) * (B[1] - O[1]) - (A[1] - O[1]) * (B[0] - O[0]);
- const lower = [];
- for (const p of pts) {
- while (lower.length >= 2 && cross(lower[lower.length - 2], lower[lower.length - 1], p) <= 0) lower.pop();
- lower.push(p);
- }
- const upper = [];
- for (let i = pts.length - 1; i >= 0; i--) {
- const p = pts[i];
- while (upper.length >= 2 && cross(upper[upper.length - 2], upper[upper.length - 1], p) <= 0) upper.pop();
- upper.push(p);
- }
- upper.pop(); lower.pop();
- return lower.concat(upper);
-}
-
-// ==============================================================
-// EmbedSpace — 2D projection of embeddings, 1px cluster hulls
-// ==============================================================
-/**
- * The iconic AI visualization: a 2D projection of high-dimensional
- * embeddings, colored (here: opacity'd) by cluster, with 1px convex
- * hulls and centroid labels.
- *
- * clusters: [{ label, points: [[x,y], ...], centroid: [x,y] }]
- * h: svg viewBox height
- * highlight: optional [x,y] — rendered as a crosshair (e.g. the
- * current query's projected embedding)
- */
-export const EmbedSpace = ({ clusters = [], h = 360, highlight = null } = {}) => {
- if (!clusters.length) return '';
- const W = 1200;
- const allPts = clusters.flatMap((c) => c.points);
- if (!allPts.length) return '';
- const [xmn, xmx] = minMax(allPts.map((p) => p[0]));
- const [ymn, ymx] = minMax(allPts.map((p) => p[1]));
- const xr = xmx - xmn || 1;
- const yr = ymx - ymn || 1;
- const pad = 40;
- const px = (x) => pad + ((x - xmn) / xr) * (W - pad * 2);
- const py = (y) => pad + (1 - (y - ymn) / yr) * (h - pad * 2);
-
- const dots = clusters.flatMap((c, ci) => {
- const op = Math.max(0.35, 1 - ci * 0.09);
- return c.points.map(([x, y]) =>
- `<text x="${px(x).toFixed(1)}" y="${py(y).toFixed(1)}" fill="currentColor" opacity="${op.toFixed(2)}" font-family="var(--font-data)" font-size="14" text-anchor="middle" dominant-baseline="middle">·</text>`
- );
- }).join('');
-
- const hulls = clusters.map((c, ci) => {
- if (c.points.length < 3) return '';
- const h2 = convexHull(c.points);
- if (h2.length < 3) return '';
- const closed = h2.concat([h2[0]]);
- const pts = closed.map(([x, y]) => `${px(x).toFixed(1)},${py(y).toFixed(1)}`).join(' ');
- const op = Math.max(0.2, 0.55 - ci * 0.07);
- return `<polyline points="${pts}" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="${op.toFixed(2)}"/>`;
- }).join('');
-
- const labels = clusters.map((c) => {
- const [cx, cy] = c.centroid || c.points[0];
- return `<text x="${px(cx).toFixed(1)}" y="${(py(cy) - 14).toFixed(1)}" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">${esc((c.label || '').toUpperCase())}</text>`;
- }).join('');
-
- const hl = highlight ? `
- <line x1="${px(highlight[0]).toFixed(1)}" y1="0" x2="${px(highlight[0]).toFixed(1)}" y2="${h}" stroke="var(--z-accent)" stroke-width="1" stroke-opacity="0.5"/>
- <line x1="0" y1="${py(highlight[1]).toFixed(1)}" x2="${W}" y2="${py(highlight[1]).toFixed(1)}" stroke="var(--z-accent)" stroke-width="1" stroke-opacity="0.5"/>
- <text x="${px(highlight[0]).toFixed(1)}" y="${py(highlight[1]).toFixed(1)}" fill="var(--z-accent)" font-family="var(--font-data)" font-size="18" text-anchor="middle" dominant-baseline="middle">×</text>
- <text x="${(px(highlight[0]) + 8).toFixed(1)}" y="${(py(highlight[1]) - 8).toFixed(1)}" fill="var(--z-accent)" font-family="var(--font-data)" font-size="11" letter-spacing="0.08em">QUERY</text>
- ` : '';
-
- return `
- <svg class="chart" viewBox="0 0 ${W} ${h}" preserveAspectRatio="none" style="width:100%; height:${h}px;">
- ${hulls}
- ${dots}
- ${labels}
- ${hl}
- </svg>
- <div class="series-legend">
- <span class="mono" style="color:var(--z-mute);">UMAP · <span style="color:var(--z-ink);">${allPts.length}</span> embeddings · <span style="color:var(--z-ink);">${clusters.length}</span> clusters</span>
- </div>`;
-};
-
-// ==============================================================
-// Ribbon3D — axonometric stacked 1px time series
-// ==============================================================
-/**
- * Multiple time series rendered with per-series x/y offsets to
- * create an axonometric "3D" effect. Every line is still a 1px
- * polyline — no fills, no perspective tricks, no lighting.
- *
- * series: [{ label, values }]
- * h: intrinsic svg height
- * depth: pixel offset per ribbon in the depth axis
- */
-export const Ribbon3D = ({ series = [], h = 260, depth = 14 } = {}) => {
- if (!series.length) return '';
- const W = 1200;
- const [mn, mx] = minMax(series.flatMap((s) => s.values));
- const range = mx - mn || 1;
- const n = series.length;
- const innerW = W - (n - 1) * depth - 120;
- const innerH = h - (n - 1) * depth - 40;
-
- const bodies = series.map((s, i) => {
- const offX = 110 + (n - 1 - i) * depth;
- const offY = 20 + (n - 1 - i) * depth;
- const pts = s.values.map((v, j) => {
- const x = offX + (j / (s.values.length - 1)) * innerW;
- const y = offY + innerH - ((v - mn) / range) * innerH;
- return `${x.toFixed(1)},${y.toFixed(1)}`;
- }).join(' ');
- const op = Math.max(0.32, 1 - i * 0.14);
- const labelX = offX - 6;
- const labelY = offY + innerH * 0.5;
- const label = `<text x="${labelX.toFixed(1)}" y="${labelY.toFixed(1)}" fill="currentColor" opacity="${op.toFixed(2)}" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">${esc(s.label)}</text>`;
- const endVal = `<text x="${(offX + innerW + 6).toFixed(1)}" y="${((offY + innerH - ((s.values[s.values.length-1] - mn) / range) * innerH)).toFixed(1)}" fill="currentColor" opacity="${op.toFixed(2)}" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">${esc(fmt(s.values[s.values.length - 1]))}</text>`;
- return `<polyline points="${pts}" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="${op.toFixed(2)}"/>${label}${endVal}`;
- }).join('');
-
- return `
- <svg class="chart" viewBox="0 0 ${W} ${h}" preserveAspectRatio="none" style="width:100%; height:${h}px;">
- ${bodies}
- </svg>
- <div class="series-legend">
- <span class="mono" style="color:var(--z-mute);">axonometric · ${n} series · min <span style="color:var(--z-ink);">${fmt(mn)}</span> · max <span style="color:var(--z-ink);">${fmt(mx)}</span></span>
- </div>`;
-};
-
-// ==============================================================
-// ChordArcs — 1px Bézier arcs from sources to targets
-// ==============================================================
-/**
- * Flow between two ordered sets. Perfect for RAG:
- * sources = queries, targets = chunks/citations, flows = retrievals.
- *
- * sources: [{ id, label }]
- * targets: [{ id, label }]
- * flows: [{ from: sourceId, to: targetId, weight }]
- */
-export const ChordArcs = ({ sources = [], targets = [], flows = [], h = 420, unit = '' } = {}) => {
- if (!sources.length || !targets.length || !flows.length) return '';
- const W = 1200;
- const pad = 20;
- const innerH = h - pad * 2;
- const srcY = (id) => {
- const i = sources.findIndex((s) => s.id === id);
- return pad + ((i + 0.5) / sources.length) * innerH;
- };
- const tgtY = (id) => {
- const i = targets.findIndex((t) => t.id === id);
- return pad + ((i + 0.5) / targets.length) * innerH;
- };
- const leftX = 220;
- const rightX = W - 220;
- const maxW = Math.max(...flows.map((f) => f.weight)) || 1;
-
- const arcs = flows.map((f) => {
- const y1 = srcY(f.from);
- const y2 = tgtY(f.to);
- if (y1 == null || y2 == null) return '';
- const cx1 = leftX + (rightX - leftX) * 0.38;
- const cx2 = leftX + (rightX - leftX) * 0.62;
- const op = Math.max(0.1, Math.min(0.9, f.weight / maxW * 0.85));
- return `<path d="M ${leftX},${y1.toFixed(1)} C ${cx1.toFixed(1)},${y1.toFixed(1)} ${cx2.toFixed(1)},${y2.toFixed(1)} ${rightX},${y2.toFixed(1)}" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="${op.toFixed(2)}"/>`;
- }).join('');
-
- const srcLabels = sources.map((s) => `
- <text x="${(leftX - 12).toFixed(1)}" y="${srcY(s.id).toFixed(1)}" fill="currentColor" font-family="var(--font-data)" font-size="11" text-anchor="end" dominant-baseline="middle">${esc(s.label)}</text>
- `).join('');
-
- const tgtLabels = targets.map((t) => `
- <text x="${(rightX + 12).toFixed(1)}" y="${tgtY(t.id).toFixed(1)}" fill="currentColor" font-family="var(--font-data)" font-size="11" dominant-baseline="middle">${esc(t.label)}</text>
- `).join('');
-
- const srcHead = `<text x="${(leftX - 12).toFixed(1)}" y="${(pad - 8).toFixed(1)}" fill="currentColor" opacity="0.6" font-family="var(--font-prose)" font-size="11" font-weight="600" letter-spacing="2" text-transform="uppercase" text-anchor="end">SOURCE</text>`;
- const tgtHead = `<text x="${(rightX + 12).toFixed(1)}" y="${(pad - 8).toFixed(1)}" fill="currentColor" opacity="0.6" font-family="var(--font-prose)" font-size="11" font-weight="600" letter-spacing="2" text-transform="uppercase">TARGET</text>`;
-
- return `
- <svg class="chart" viewBox="0 0 ${W} ${h}" preserveAspectRatio="none" style="width:100%; height:${h}px; overflow:visible;">
- ${arcs}
- ${srcLabels}
- ${tgtLabels}
- ${srcHead}
- ${tgtHead}
- </svg>
- <div class="series-legend">
- <span class="mono" style="color:var(--z-mute);">${flows.length} flows · <span style="color:var(--z-ink);">${sources.length}</span>→<span style="color:var(--z-ink);">${targets.length}</span>${unit ? ' · ' + esc(unit) : ''}</span>
- </div>`;
-};
-
-// ==============================================================
-// ParallelCoords — 1px parallel coordinate plot
-// ==============================================================
-/**
- * Multi-dimensional rows rendered as 1px polylines across N axes.
- * Standard ML tool. Every axis is a 1px vertical line. Stacked
- * rows form density patterns via accumulated opacity.
- *
- * dims: [{ name, min?, max? }]
- * rows: [[v0, v1, ..., vN]]
- */
-export const ParallelCoords = ({ dims = [], rows = [], h = 260, highlight = null } = {}) => {
- if (!dims.length || !rows.length) return '';
- const W = 1200;
- const pad = 60;
- const top = 36, bot = 36;
- const colX = (i) => pad + (i / (dims.length - 1 || 1)) * (W - pad * 2);
- const extents = dims.map((d, i) => {
- if (d.min != null && d.max != null) return [d.min, d.max];
- const vals = rows.map((r) => r[i]).filter((v) => v != null);
- return minMax(vals);
- });
-
- const axes = dims.map((d, i) => {
- const x = colX(i).toFixed(1);
- return `<line x1="${x}" y1="${top}" x2="${x}" y2="${h - bot}" stroke="currentColor" stroke-width="1" stroke-opacity="0.2"/>`;
- }).join('');
-
- const polyline = (row, op) => {
- const pts = row.map((v, i) => {
- const [mn, mx] = extents[i];
- const frac = (v - mn) / (mx - mn || 1);
- const x = colX(i);
- const y = top + (1 - Math.max(0, Math.min(1, frac))) * (h - top - bot);
- return `${x.toFixed(1)},${y.toFixed(1)}`;
- }).join(' ');
- return `<polyline points="${pts}" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="${op}"/>`;
- };
- const bodies = rows.map(() => polyline).map((fn, i) => fn(rows[i], '0.16')).join('');
- const hl = highlight ? polyline(highlight, '1').replace('stroke="currentColor"', 'stroke="var(--z-accent)"') : '';
-
- const labels = dims.map((d, i) => {
- const x = colX(i).toFixed(1);
- const [mn, mx] = extents[i];
- return `
- <text x="${x}" y="22" fill="currentColor" font-family="var(--font-prose)" font-size="11" font-weight="700" letter-spacing="1.5" text-anchor="middle">${esc(d.name.toUpperCase())}</text>
- <text x="${x}" y="${h - 16}" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">${esc(fmt(mn))}</text>
- <text x="${x}" y="${h - 4}" fill="currentColor" opacity="0.55" font-family="var(--font-data)" font-size="10" text-anchor="middle">${esc(fmt(mx))}</text>
- `;
- }).join('');
-
- return `
- <svg class="chart" viewBox="0 0 ${W} ${h}" preserveAspectRatio="none" style="width:100%; height:${h}px;">
- ${axes}
- ${bodies}
- ${hl}
- ${labels}
- </svg>
- <div class="series-legend">
- <span class="mono" style="color:var(--z-mute);"><span style="color:var(--z-ink);">${rows.length}</span> rows · <span style="color:var(--z-ink);">${dims.length}</span> dimensions${highlight ? ' · <span style="color:var(--z-accent);">1 highlighted</span>' : ''}</span>
- </div>`;
-};
-
-// ==============================================================
-// AttentionMap — inline text with per-token opacity
-// ==============================================================
-/**
- * A paragraph where each word's opacity equals its attention weight.
- * The paragraph IS the chart. For RAG, this is how you show which
- * retrieved tokens actually mattered to the answer.
- *
- * tokens: [{ text, weight }]
- * maxWeight: optional — normalized to this rather than observed max
- */
-export const AttentionMap = ({ tokens = [], maxWeight = null } = {}) => {
- if (!tokens.length) return '';
- const mx = maxWeight ?? Math.max(...tokens.map((t) => t.weight));
- const spans = tokens.map((t) => {
- const op = Math.max(0.08, (t.weight / (mx || 1)));
- const hot = t.weight / mx > 0.82;
- const style = hot
- ? `color:var(--z-accent); opacity:${op.toFixed(2)};`
- : `opacity:${op.toFixed(2)};`;
- return `<span style="${style}">${esc(t.text)}</span>`;
- }).join(' ');
- const top = [...tokens].sort((a, b) => b.weight - a.weight).slice(0, 3);
- return `
- <div class="attention" style="font-family:var(--font-data); font-size:var(--fs-16); line-height:1.9; max-width:92ch;">${spans}</div>
- <div class="series-legend" style="margin-top:var(--sp-3);">
- <span class="mono" style="color:var(--z-mute);">peak attention on <span class="accent">${top.map((t) => esc(t.text)).join(' · ')}</span></span>
- </div>`;
-};
-
-// ==============================================================
-// FlowBand — a single stacked horizontal allocation strip
-// ==============================================================
-/**
- * Budget allocation, token allocation, context-window breakdown.
- * One row, N segments, each labeled with absolute value directly
- * under the segment. Replaces "funnel" charts.
- */
-export const FlowBand = ({ segments = [], width = 1200, unit = '' } = {}) => {
- if (!segments.length) return '';
- const total = segments.reduce((a, s) => a + s.value, 0) || 1;
- const H = 16;
- let x = 0;
- // SVG layer is just the horizontal band + tick divisions.
- const parts = segments.map((s, i) => {
- const w = (s.value / total) * width;
- const op = Math.max(0.28, 1 - i * 0.16);
- const line = w > 1
- ? `<line x1="${x.toFixed(1)}" y1="8" x2="${(x + w).toFixed(1)}" y2="8" stroke="currentColor" stroke-width="2" stroke-opacity="${op.toFixed(2)}"/>`
- : '';
- const tick = `<line x1="${x.toFixed(1)}" y1="2" x2="${x.toFixed(1)}" y2="14" stroke="currentColor" stroke-width="1" stroke-opacity="0.4"/>`;
- x += w;
- return tick + line;
- }).join('');
- const endTick = `<line x1="${width.toFixed(1)}" y1="2" x2="${width.toFixed(1)}" y2="14" stroke="currentColor" stroke-width="1" stroke-opacity="0.4"/>`;
- // HTML label layer — flex proportional to segment values. Tiny
- // segments collapse with ellipsis instead of overflowing into
- // neighboring labels. min-width:0 is required on every flex item
- // or the default min-width:auto prevents shrink below content.
- const labels = segments.map((s, i) => {
- const pct = ((s.value / total) * 100).toFixed(1);
- const op = Math.max(0.28, 1 - i * 0.16);
- return `
- <div class="fb-seg" style="flex:${s.value} 0 0; min-width:0; opacity:${op.toFixed(2)};">
- <div class="fb-label">${esc(s.label.toUpperCase())}</div>
- <div class="fb-value">${esc(fmt(s.value))}${unit ? ' ' + esc(unit) : ''} · ${pct}%</div>
- </div>`;
- }).join('');
- return `
- <div class="flowband-wrap">
- <svg class="chart flowband-svg" viewBox="0 0 ${width} ${H}" preserveAspectRatio="none" style="width:100%; height:${H}px; overflow:visible; display:block;">
- ${parts}${endTick}
- </svg>
- <div class="flowband-labels" style="display:flex; width:100%; margin-top:8px;">${labels}</div>
- </div>`;
-};
diff --git a/xerj-ux/src/ux/charts-ext.js b/xerj-ux/src/ux/charts-ext.js
deleted file mode 100644
index db1f113b8..000000000
--- a/xerj-ux/src/ux/charts-ext.js
+++ /dev/null
@@ -1,202 +0,0 @@
-// ============================================================
-// XERJ.ai — Chart primitives (extended set)
-// Kibana-parity chart types in typography-first style.
-// All stroke widths are 1px. Scatter uses text characters for
-// data points — the only "point markers" we allow because the
-// data IS the character.
-// ============================================================
-
-import { esc, fmt } from './text.js';
-
-const minMax = (xs) => {
- let mn = Infinity, mx = -Infinity;
- for (const x of xs) { if (x < mn) mn = x; if (x > mx) mx = x; }
- return [mn === Infinity ? 0 : mn, mx === -Infinity ? 0 : mx];
-};
-
-// ----- VBar / Hist -------------------------------------------
-
-/**
- * VBar — vertical 1px-line bar chart. Replaces Kibana "Bar" / "Histogram".
- *
- * items: [{ label, value }]
- * h: intrinsic viewBox height
- * unit: optional unit in the legend
- * labels: true → render label strip under the chart
- */
-export const VBar = ({ items, h = 160, unit = '', labels = true } = {}) => {
- if (!items || !items.length) return '';
- const w = 1200;
- const values = items.map((i) => i.value);
- const [mn, mx] = minMax(values);
- const denom = mx || 1;
- const step = w / items.length;
- const lines = items.map((it, i) => {
- const x = ((i + 0.5) * step).toFixed(1);
- const y = (h - (it.value / denom) * h).toFixed(1);
- return `<line x1="${x}" y1="${h}" x2="${x}" y2="${y}" stroke="currentColor" stroke-width="1"/>`;
- }).join('');
- const first = items[0]?.label ?? '';
- const last = items[items.length - 1]?.label ?? '';
- const u = unit ? ' ' + esc(unit) : '';
- const legend = labels ? `
- <div class="series-legend">
- <span>${esc(first)}</span>
- <span class="mid">min <span class="mono" style="color:var(--z-ink);">${fmt(mn)}</span> · max <span class="mono" style="color:var(--z-ink);">${fmt(mx)}${u}</span></span>
- <span>${esc(last)}</span>
- </div>` : '';
- return `
- <div class="series-wrap">
- <svg class="chart" viewBox="0 0 ${w} ${h}" preserveAspectRatio="none" style="width:100%; height:${h}px;">
- ${lines}
- </svg>
- ${legend}
- </div>`;
-};
-
-/** Hist — semantic alias for VBar (column histogram of counts). */
-export const Hist = VBar;
-
-// ----- Gauge -------------------------------------------------
-
-/**
- * Gauge — a single value on a 1px track between min and max.
- *
- * value, min, max, unit
- * thresholds: optional [t1, t2, ...] — rendered as tiny 1px ticks
- * emphasis: true → value rendered in 56px accent (default)
- */
-export const Gauge = ({
- value,
- min = 0,
- max = 100,
- unit = '',
- thresholds = [],
- emphasis = true,
- label = '',
-} = {}) => {
- const w = 600, h = 14;
- const v = Math.max(min, Math.min(max, value));
- const frac = (v - min) / (max - min || 1);
- const x = (frac * w).toFixed(1);
- const ticks = thresholds.map((t) => {
- const tx = (((t - min) / (max - min || 1)) * w).toFixed(1);
- return `<line x1="${tx}" y1="0" x2="${tx}" y2="${h}" stroke="currentColor" stroke-width="1" stroke-opacity="0.4"/>`;
- }).join('');
- const valCls = emphasis ? 'num-big accent' : 'num-md';
- return `
- <div class="stack">
- <div class="row-flex" style="justify-content:space-between;">
- <div class="${valCls}">${esc(fmt(value))}<span class="num-unit">${esc(unit)}</span></div>
- ${label ? `<span class="hint">${esc(label)}</span>` : ''}
- </div>
- <svg class="chart" viewBox="0 0 ${w} ${h}" preserveAspectRatio="none" style="width:100%; height:${h}px; margin-top:12px;">
- <line x1="0" y1="${h - 1}" x2="${w}" y2="${h - 1}" stroke="currentColor" stroke-width="1" stroke-opacity="0.18"/>
- <line x1="0" y1="${h - 1}" x2="${x}" y2="${h - 1}" stroke="currentColor" stroke-width="1"/>
- ${ticks}
- </svg>
- <div class="row-flex" style="justify-content:space-between; margin-top:6px; font-family:var(--font-data); font-size:var(--fs-11); color:var(--z-mute);">
- <span>${esc(fmt(min))}</span>
- <span>${esc(fmt(max))}${unit ? ' ' + esc(unit) : ''}</span>
- </div>
- </div>`;
-};
-
-// ----- Scatter -----------------------------------------------
-
-/**
- * Scatter — x/y point cloud using single characters as data points.
- * Pure typography: each point is a `·` placed absolutely. The
- * character IS the datum, which is why scatter is the only chart
- * that has "point markers".
- *
- * points: [[x, y], ...]
- * xLabel, yLabel: text shown in the end legend
- */
-export const Scatter = ({ points, h = 220, xLabel = 'X', yLabel = 'Y' } = {}) => {
- if (!points || !points.length) return '';
- const xs = points.map((p) => p[0]);
- const ys = points.map((p) => p[1]);
- const [xmn, xmx] = minMax(xs); const xr = xmx - xmn || 1;
- const [ymn, ymx] = minMax(ys); const yr = ymx - ymn || 1;
- const dots = points.map(([x, y]) => {
- const px = (((x - xmn) / xr) * 100).toFixed(2);
- const py = (((ymx - y) / yr) * 100).toFixed(2);
- return `<span style="position:absolute; left:${px}%; top:${py}%; transform:translate(-50%,-50%); font-family:var(--font-data); font-size:var(--fs-16); color:var(--z-ink); line-height:1; pointer-events:none;">·</span>`;
- }).join('');
- return `
- <div style="position:relative; width:100%; height:${h}px;">${dots}</div>
- <div class="series-legend">
- <span>${esc(xLabel)} <span class="mono" style="color:var(--z-ink);">${fmt(xmn)}..${fmt(xmx)}</span></span>
- <span class="mid"><span class="mono" style="color:var(--z-ink);">${points.length}</span> points</span>
- <span>${esc(yLabel)} <span class="mono" style="color:var(--z-ink);">${fmt(ymn)}..${fmt(ymx)}</span></span>
- </div>`;
-};
-
-// ----- Stacked -----------------------------------------------
-
-/**
- * Stacked — horizontal stacked bars, one per row. Replaces Kibana
- * "Stacked bar". Each row's segments are distinguished by opacity.
- *
- * rows: [{ label, segments: [{ label, value }] }]
- */
-export const Stacked = ({ rows, width = 1200, height = 10, showSegments = true } = {}) => {
- if (!rows || !rows.length) return '';
- const segmentLabels = showSegments ? rows[0].segments.map((s) => esc(s.label)).join(' · ') : '';
- const body = rows.map((row) => {
- const total = row.segments.reduce((a, s) => a + s.value, 0) || 1;
- let x = 0;
- const lines = row.segments.map((s, i) => {
- const segW = (s.value / total) * width;
- const op = Math.max(0.14, 1 - i * 0.16);
- const line = segW > 0.5
- ? `<line x1="${x.toFixed(1)}" y1="${(height - 1).toFixed(1)}" x2="${(x + segW).toFixed(1)}" y2="${(height - 1).toFixed(1)}" stroke="currentColor" stroke-width="1" stroke-opacity="${op.toFixed(2)}"/>`
- : '';
- x += segW;
- return line;
- }).join('');
- return `
- <div class="stk-row">
- <span class="row__label">${esc(row.label)}</span>
- <svg class="chart stk-bar" viewBox="0 0 ${width} ${height}" preserveAspectRatio="none" style="height:${height}px;">${lines}</svg>
- <span class="mono faint" style="text-align:right;">${fmt(total)}</span>
- </div>`;
- }).join('');
- const legend = segmentLabels ? `<div class="hint" style="margin-top:var(--sp-2);">${segmentLabels}</div>` : '';
- return `<div class="stacked">${body}</div>${legend}`;
-};
-
-// ----- Treemap (text hierarchy) ------------------------------
-
-/**
- * Treemap — nested ranked list with indent and 1px bars. Replaces
- * Kibana "Treemap" (and arguably "Sunburst"). Accepts a tree of
- * { label, value, children? } nodes.
- */
-export const Treemap = ({ items, depth = 0, parentTotal = null } = {}) => {
- if (!items || !items.length) return '';
- const total = parentTotal ?? (items.reduce((a, i) => a + i.value, 0) || 1);
- const max = Math.max(...items.map((i) => i.value));
- return items.map((it) => {
- const frac = it.value / max;
- const pct = ((it.value / total) * 100).toFixed(1);
- const x = (200 * frac).toFixed(1);
- const indent = '· '.repeat(depth);
- const kids = it.children && it.children.length
- ? Treemap({ items: it.children, depth: depth + 1, parentTotal: it.value })
- : '';
- return `
- <div class="row">
- <div class="row__label"><span class="faint">${indent}</span>${esc(it.label)}</div>
- <div class="row__val">${esc(fmt(it.value))}</div>
- <div class="row__bar">
- <svg class="chart" height="6" viewBox="0 0 200 6" preserveAspectRatio="none">
- <line x1="0" y1="5" x2="${x}" y2="5" stroke="currentColor" stroke-width="1" stroke-opacity="${(1 - depth * 0.2).toFixed(2)}"/>
- </svg>
- </div>
- <div class="row__pct">${pct}%</div>
- </div>
- ${kids}`;
- }).join('');
-};
diff --git a/xerj-ux/src/ux/charts-ops.js b/xerj-ux/src/ux/charts-ops.js
deleted file mode 100644
index 34711472a..000000000
--- a/xerj-ux/src/ux/charts-ops.js
+++ /dev/null
@@ -1,323 +0,0 @@
-// ============================================================
-// XERJ.ai — Use-case primitives
-//
-// Shipping product features, not just pretty metrics:
-// • SearchBox — interactive query console
-// • QueryDSL — syntax-lit JSON of the query about to run
-// • QueryPlanTree — recursive 1px-connector plan tree from
-// `POST /v1/indices/:name/explain-plan`
-// • Hits — result list with _score, _index, _id, _source
-// • Facet — "click to filter" terms-agg row
-// • AnomalyBand — 1px series with upper/lower normal band
-// and ×-marked anomaly ticks
-// • MetricTile — ultra-dense key/value tile for ops panels
-// ============================================================
-
-import { esc, fmt } from './text.js';
-
-const minMax = (xs) => {
- let mn = Infinity, mx = -Infinity;
- for (const x of xs) { if (x < mn) mn = x; if (x > mx) mx = x; }
- return [mn === Infinity ? 0 : mn, mx === -Infinity ? 0 : mx];
-};
-
-// ============================================================
-// SearchBox — the core of the SEARCH dashboard
-// ============================================================
-/**
- * Query console. Renders a typography-only "terminal":
- * [QUERY TYPE] [INDEX]
- * ▸ <input>____________________________________
- *
- * Events bubble:
- * [data-query-type] click → change query type
- * [data-search-input] Enter keyup → run search
- * [data-search-index] click → change index
- *
- * value, activeType, activeIndex come from app state.
- * types/indices drive the rows.
- */
-export const SearchBox = ({
- value = '',
- types = ['match', 'term', 'range', 'prefix', 'phrase', 'knn', 'semantic', 'hybrid'],
- activeType = 'match',
- indices = ['*'],
- activeIndex = '*',
- filters = {},
- placeholder = "type a query · press Enter",
-} = {}) => {
- // Filter pills row: shown only when at least one filter is active.
- // Each pill is a button with [data-facet-apply] which the existing app
- // click handler interprets as "toggle this filter off" (because clicking
- // a value that's already active removes it).
- const filterEntries = Object.entries(filters).filter(([, v]) => v != null && v !== '');
- const pillsRow = filterEntries.length ? `
- <div class="sbox-row sbox-pills">
- <span class="key" style="margin-right:12px;">FILTERS</span>
- ${filterEntries.map(([f, v]) =>
- `<button type="button" class="pill" data-facet-apply="${esc(f)}:${esc(v)}" title="Click to remove">
- <span class="pill-field">${esc(f)}</span><span class="pill-eq">=</span><span class="pill-val">${esc(v)}</span><span class="pill-x">✕</span>
- </button>`
- ).join('')}
- <button type="button" class="pill-clear" data-facet-clear>CLEAR ALL</button>
- </div>` : '';
- return `
-<div class="sbox">
- <div class="sbox-row sbox-types">
- <span class="key" style="margin-right:12px;">QUERY</span>
- ${types.map((t) =>
- `<button type="button" data-query-type="${esc(t)}" class="${t === activeType ? 'active' : ''}">${esc(t.toUpperCase())}</button>`
- ).join('<span class="sep">·</span>')}
- <span class="spacer"></span>
- <span class="key" style="margin-right:12px;">INDEX</span>
- ${indices.map((i) =>
- `<button type="button" data-search-index="${esc(i)}" class="${i === activeIndex ? 'active' : ''}">${esc(i)}</button>`
- ).join('<span class="sep">·</span>')}
- </div>
- <div class="sbox-row sbox-input">
- <span class="prompt accent">▸</span>
- <input type="text" data-search-input value="${esc(value)}" placeholder="${esc(placeholder)}" autocomplete="off" spellcheck="false" aria-label="Search query"/>
- </div>
- ${pillsRow}
-</div>`;
-};
-
-// ============================================================
-// QueryDSL — the JSON about to be sent, with light syntax color
-// ============================================================
-/**
- * Shows the raw XERJ.ai query DSL that matches the current
- * SearchBox state. Keys are muted, strings are ink, numbers are
- * accent. No boxes, no frames.
- */
-export const QueryDSL = (obj) => {
- const json = JSON.stringify(obj, null, 2);
- const out = esc(json)
- .replace(/&quot;([^&]+?)&quot;(\s*:)/g, '<span class="tok-key">"$1"</span>$2')
- .replace(/:\s*&quot;([^&]*?)&quot;/g, ': <span class="tok-str">"$1"</span>')
- .replace(/:\s*(-?\d+\.?\d*)/g, ': <span class="tok-num">$1</span>')
- .replace(/:\s*(true|false|null)\b/g, ': <span class="tok-kw">$1</span>');
- return `<pre class="qdsl mono">${out}</pre>`;
-};
-
-// ============================================================
-// QueryPlanTree — what the planner picked, indented
-// ============================================================
-/**
- * Recursive render of a query plan tree. Each node has:
- * { op, field?, value?, estimate?, cost?, children? }
- * Indent is typographic, not graphic. Connectors are ASCII.
- */
-export const QueryPlanTree = (node, depth = 0, last = true) => {
- if (!node) return '';
- const prefix = depth === 0 ? '' : (last ? '└─ ' : '├─ ');
- const indent = '<span class="faint mono">' + ('│ '.repeat(Math.max(0, depth - 1))) + prefix + '</span>';
- const est = node.estimate != null ? ` <span class="faint mono">est <span class="mono" style="color:var(--z-ink);">${fmt(node.estimate)}</span></span>` : '';
- const cost = node.cost != null ? ` <span class="faint mono">cost <span class="mono" style="color:var(--z-ink);">${fmt(node.cost)}</span></span>` : '';
- const field = node.field ? `<span class="mono" style="color:var(--z-ink);"> ${esc(node.field)}</span>` : '';
- const val = node.value != null ? `<span class="mono faint"> = ${esc(node.value)}</span>` : '';
- const selfRow = `<div class="plan-row">${indent}<span class="plan-op accent mono">${esc(node.op)}</span>${field}${val}${est}${cost}</div>`;
- const kids = (node.children || []);
- const childRows = kids.map((c, i) => QueryPlanTree(c, depth + 1, i === kids.length - 1)).join('');
- return selfRow + childRows;
-};
-
-// ============================================================
-// Hits — search result list
-// ============================================================
-/**
- * Renders the hits returned by a search. Each row:
- * <index> <id> <score> <body>
- * Body is a one-line preview of _source. No frames.
- *
- * hits: [{ _index, _id, _score, _ts, _source }]
- * total,
- * tookMs — header line
- * sort: { field: '_score'|'_ts'|'_index'|'_id', dir: 'asc'|'desc' }
- * showTime: boolean — whether to render the _ts column (default true)
- * labels: { _index: 'INDEX', _id: 'ID', _score: 'SCORE', _ts: 'TIME' }
- * exportable: boolean — render the EXPORT CSV link in the header (default true)
- */
-export const Hits = ({
- hits = [], total = 0, tookMs = 0, maxScore = null,
- sort = { field: '_score', dir: 'desc' },
- showTime = true,
- labels = { _index: 'INDEX', _id: 'ID', _score: 'SCORE', _ts: 'TIME' },
- exportable = true,
-} = {}) => {
- const sortIndicator = (field) => {
- if (sort?.field !== field) return '';
- return sort.dir === 'asc' ? ' ▲' : ' ▼';
- };
- const colHeader = (field, label) =>
- `<button type="button" class="col-sort ${sort?.field === field ? 'active' : ''}" data-sort-field="${esc(field)}" data-sort-dir="${esc(sort?.field === field && sort.dir === 'desc' ? 'asc' : 'desc')}">${esc(label)}${sortIndicator(field)}</button>`;
-
- const header = `
- <div class="hits-meta">
- <span class="key">HITS</span>
- <span class="mono" style="margin-left:var(--sp-3);"><span class="accent" style="font-size:var(--fs-20); font-weight:700;">${fmt(total)}</span> <span class="faint">documents</span></span>
- <span class="mono" style="margin-left:var(--sp-3);"><span class="accent">${fmt(tookMs)}</span> <span class="faint">ms</span></span>
- ${maxScore != null ? `<span class="mono" style="margin-left:var(--sp-3);"><span class="faint">max_score</span> ${maxScore.toFixed(3)}</span>` : ''}
- <span style="flex:1;"></span>
- ${exportable ? `<button type="button" class="hits-action" data-export-csv title="GH#1992 · 372 reactions">↓ CSV</button>` : ''}
- <button type="button" class="hits-action" data-toggle-time aria-pressed="${showTime ? 'true' : 'false'}" title="GH#3319 · 44 reactions">${showTime ? 'HIDE TIME' : 'SHOW TIME'}</button>
- </div>`;
-
- if (!hits.length) {
- return header + `<div class="mono faint" style="padding:var(--sp-3) 0;">No matches. Try a broader query or a different query type.</div>`;
- }
-
- const colHead = `
- <div class="hit-head hit-headrow ${showTime ? '' : 'no-time'}">
- ${colHeader('_index', labels._index)}
- ${colHeader('_id', labels._id)}
- ${colHeader('_score', labels._score)}
- ${showTime ? colHeader('_ts', labels._ts) : ''}
- <span class="faint">${esc(labels._source || 'MESSAGE')}</span>
- </div>`;
-
- const rows = hits.map((h) => {
- const body = typeof h._source === 'string' ? h._source : JSON.stringify(h._source);
- return `
- <div class="hit">
- <div class="hit-head mono ${showTime ? '' : 'no-time'}">
- <button type="button" class="hit-cell-clickable" data-facet-apply="_index:${esc(h._index)}" title="Filter for this">${esc(h._index)}</button>
- <span class="faint">${esc(h._id)}</span>
- <span class="accent">${(h._score ?? 0).toFixed(3)}</span>
- ${showTime ? `<span class="faint">${esc(h._ts || '')}</span>` : ''}
- </div>
- <div class="hit-body mono">${esc(body)}</div>
- </div>`;
- }).join('');
- return header + colHead + `<div class="hits-list">${rows}</div>`;
-};
-
-// ============================================================
-// Facet — a single terms-agg row as a clickable filter
-// ============================================================
-/**
- * One facet block: an eyebrow label + N rows where each row is
- * a click target `[data-facet-apply="field:value"]`.
- *
- * field: e.g. 'level'
- * items: [{ label, value, count }]
- * active: currently applied value (for styling)
- */
-export const Facet = ({ field, items = [], active = null } = {}) => {
- if (!items.length) return '';
- const max = Math.max(...items.map((i) => i.count));
- const rows = items.map((i) => {
- const frac = i.count / (max || 1);
- const x = (180 * frac).toFixed(1);
- const on = i.value === active;
- return `
- <button type="button" class="facet-row ${on ? 'active' : ''}" data-facet-apply="${esc(field)}:${esc(i.value)}">
- <span class="facet-label">${esc(i.label)}</span>
- <span class="facet-count mono">${fmt(i.count)}</span>
- <svg class="chart facet-bar" height="5" viewBox="0 0 180 5" preserveAspectRatio="none">
- <line x1="0" y1="4" x2="${x}" y2="4" stroke="currentColor" stroke-width="1"/>
- </svg>
- </button>`;
- }).join('');
- return `<div class="facet"><div class="key" style="margin-bottom:6px;">${esc(field.toUpperCase())}</div>${rows}</div>`;
-};
-
-// ============================================================
-// AnomalyBand — 1px line + rolling normal band + × marks
-// ============================================================
-/**
- * A time series with a rolling normal band computed upstream
- * (mean ± k*std). Anomalies are points outside the band; the
- * caller passes their indices.
- *
- * values, upper, lower: same length
- * anomalies: [{ idx, score }]
- * h: intrinsic SVG height
- * labels: ['START','END']
- */
-export const AnomalyBand = ({
- values = [], upper = [], lower = [],
- anomalies = [], h = 200, labels = ['', ''], unit = '',
-} = {}) => {
- if (!values.length) return '';
- const W = 1200;
- const all = values.concat(upper, lower);
- const [mn, mx] = minMax(all);
- const range = mx - mn || 1;
- const pad = 10;
- const py = (v) => pad + (h - pad * 2) - (((v - mn) / range) * (h - pad * 2));
- const px = (i, n) => ((i / (n - 1)) * W);
- const pts = (arr) => arr.map((v, i) => `${px(i, arr.length).toFixed(1)},${py(v).toFixed(1)}`).join(' ');
- const upperLine = upper.length ? `<polyline points="${pts(upper)}" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.22"/>` : '';
- const lowerLine = lower.length ? `<polyline points="${pts(lower)}" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="0.22"/>` : '';
- const valueLine = `<polyline points="${pts(values)}" fill="none" stroke="currentColor" stroke-width="1"/>`;
- const marks = anomalies.map(({ idx }) => {
- const x = px(idx, values.length).toFixed(1);
- const y = py(values[idx]).toFixed(1);
- return `
- <line x1="${x}" y1="${pad}" x2="${x}" y2="${h - pad}" stroke="var(--z-accent)" stroke-width="1" stroke-opacity="0.4"/>
- <text x="${x}" y="${(py(values[idx]) - 8).toFixed(1)}" fill="var(--z-accent)" font-family="var(--font-data)" font-size="14" text-anchor="middle">×</text>
- `;
- }).join('');
- const u = unit ? ' ' + esc(unit) : '';
- return `
- <svg class="chart" viewBox="0 0 ${W} ${h}" preserveAspectRatio="none" style="width:100%; height:${h}px;">
- ${upperLine}${lowerLine}${valueLine}${marks}
- </svg>
- <div class="series-legend">
- <span>${esc(labels[0] || '')} · <span class="mono" style="color:var(--z-ink);">${fmt(values[0])}${u}</span></span>
- <span class="mid">normal band · <span class="mono" style="color:var(--z-ink);">${fmt(Math.min(...lower))}..${fmt(Math.max(...upper))}${u}</span> · <span class="accent">${anomalies.length}</span> anomalies</span>
- <span><span class="mono" style="color:var(--z-ink);">${fmt(values[values.length - 1])}${u}</span> · ${esc(labels[1] || '')}</span>
- </div>`;
-};
-
-// ============================================================
-// Citations — the link from a panel back to real user pain
-// ============================================================
-/**
- * Renders a row of citations attributing the dashboard to specific
- * user-feedback artifacts. Each entry comes from
- * `data/feedback-citations.js`, which is auto-generated from the
- * Kibana feedback corpus.
- *
- * items: [{ id, source, score, title, url }]
- */
-export const Citations = ({ items = [], total = null } = {}) => {
- if (!items.length) {
- return `<div class="mono faint">No citations available — re-run <span class="accent">node user-feedback/kibana/pipeline/design-inputs.mjs</span></div>`;
- }
- const rows = items.map((c) => `
- <a class="cite" href="${esc(c.url)}" target="_blank" rel="noopener">
- <span class="cite-src mono faint">${esc((c.source || '').toUpperCase())}</span>
- <span class="cite-score mono accent">${c.score || 0}</span>
- <span class="cite-title">${esc(c.title || '— no title —')}</span>
- <span class="cite-arrow mono faint">↗</span>
- </a>
- `).join('');
- const meta = total != null
- ? `<div class="hint" style="margin-bottom:var(--sp-2);">drawn from <span class="mono accent">${total}</span> ranked artifacts in <span class="mono">user-feedback/kibana/themes/design-inputs.md</span></div>`
- : '';
- return meta + `<div class="cites">${rows}</div>`;
-};
-
-// ============================================================
-// MetricTile — ultra-dense key/value row for ops dashboards
-// ============================================================
-/**
- * Not every metric deserves a 96px Num. MetricTile is a compact
- * row of label + value + optional spark/delta, six to a row.
- *
- * tiles: [{ label, value, unit?, spark?, delta?, deltaGood? }]
- */
-export const MetricTile = ({ tiles = [] } = {}) => {
- const cells = tiles.map((t) => `
- <div class="mtile">
- <div class="mtile-head">
- <span class="key">${esc(t.label)}</span>
- ${t.delta != null ? `<span class="delta ${(t.deltaGood === 'down' ? (t.delta <= 0 ? 'good' : 'bad') : (t.delta >= 0 ? 'good' : 'bad'))}" style="font-size:var(--fs-11);">${t.delta >= 0 ? '▲' : '▼'} ${Math.abs(t.delta).toFixed(1)}%</span>` : ''}
- </div>
- <div class="mtile-val mono">${esc(t.value)}<span class="num-unit">${esc(t.unit || '')}</span></div>
- ${t.spark || ''}
- </div>`).join('');
- return `<div class="mtiles">${cells}</div>`;
-};
diff --git a/xerj-ux/src/ux/charts.js b/xerj-ux/src/ux/charts.js
deleted file mode 100644
index 82d52bb1a..000000000
--- a/xerj-ux/src/ux/charts.js
+++ /dev/null
@@ -1,171 +0,0 @@
-// ============================================================
-// XERJ.ai — Chart primitives
-// Every chart is 1px strokes or text. No fills, no dots, no
-// axes, no grid, no legends. See UX_BOOK.md §3.
-// ============================================================
-
-import { esc, fmt } from './text.js';
-
-const minMax = (xs) => {
- let mn = Infinity, mx = -Infinity;
- for (const x of xs) { if (x < mn) mn = x; if (x > mx) mx = x; }
- return [mn === Infinity ? 0 : mn, mx === -Infinity ? 0 : mx];
-};
-
-const buildPoints = (values, w, h) => {
- const [mn, mx] = minMax(values);
- const range = mx - mn || 1;
- const n = values.length;
- const step = n > 1 ? w / (n - 1) : w;
- let out = '';
- for (let i = 0; i < n; i++) {
- const x = (i * step).toFixed(2);
- const y = (h - ((values[i] - mn) / range) * h).toFixed(2);
- out += (i ? ' ' : '') + x + ',' + y;
- }
- return { pts: out, mn, mx };
-};
-
-// ----- Sparkline ---------------------------------------------
-
-/**
- * Spark — a small inline 1px line chart. No axes, no dots, no fill.
- * Drop next to a Num for shape context.
- */
-export const Spark = (values, { w = 140, h = 28, strokeOpacity = 1 } = {}) => {
- if (!values || values.length < 2) return '';
- const { pts } = buildPoints(values, w, h);
- return `<svg class="chart" width="${w}" height="${h}" viewBox="0 0 ${w} ${h}" aria-hidden="true">
- <polyline points="${pts}" fill="none" stroke="currentColor" stroke-width="1" stroke-opacity="${strokeOpacity}"/>
- </svg>`;
-};
-
-// ----- Full-width time series --------------------------------
-
-/**
- * Series — a full-width 1px time line.
- * No axes. Endpoint labels and min/peak are annotated BELOW the curve,
- * never floating over it.
- *
- * values: number[]
- * h: intrinsic viewBox height (pixels); width stretches to container
- * labels: ['start label', 'end label']
- * unit: optional unit string shown with min/peak
- */
-export const Series = (values, {
- h = 140,
- labels = ['', ''],
- unit = '',
-} = {}) => {
- if (!values || values.length < 2) return '';
- const w = 1200;
- const { pts, mn, mx } = buildPoints(values, w, h);
- const u = unit ? ' ' + esc(unit) : '';
- return `
- <div class="series-wrap">
- <svg class="chart series" height="${h}" viewBox="0 0 ${w} ${h}" preserveAspectRatio="none">
- <polyline points="${pts}" fill="none" stroke="currentColor" stroke-width="1"/>
- </svg>
- <div class="series-legend">
- <span>${esc(labels[0] ?? '')} · <span class="mono" style="color:var(--z-ink);">${fmt(values[0])}${u}</span></span>
- <span class="mid">min <span class="mono" style="color:var(--z-ink);">${fmt(mn)}${u}</span> · peak <span class="mono" style="color:var(--z-ink);">${fmt(mx)}${u}</span></span>
- <span><span class="mono" style="color:var(--z-ink);">${fmt(values[values.length - 1])}${u}</span> · ${esc(labels[1] ?? '')}</span>
- </div>
- </div>`;
-};
-
-// ----- Distribution (replaces pies & donuts) -----------------
-
-/**
- * Dist — a single horizontal 1px line broken into parts by stroke-opacity.
- * Below it, each segment renders as a labeled micro-metric.
- *
- * segments: [{ label, value }]
- * width: svg viewBox width
- */
-export const Dist = ({ segments, width = 1200, height = 10 } = {}) => {
- if (!segments || !segments.length) return '';
- const total = segments.reduce((a, s) => a + s.value, 0) || 1;
- let x = 0;
- const lines = [];
- segments.forEach((s, i) => {
- const segW = (s.value / total) * width;
- const op = Math.max(0.12, 1 - i * 0.14);
- if (segW > 0.5) {
- lines.push(
- `<line x1="${x.toFixed(1)}" y1="${(height - 1).toFixed(1)}" x2="${(x + segW).toFixed(1)}" y2="${(height - 1).toFixed(1)}" stroke="currentColor" stroke-width="1" stroke-opacity="${op.toFixed(2)}"/>`
- );
- }
- x += segW;
- });
- const legend = segments.map((s, i) => {
- const pct = (100 * s.value / total).toFixed(1);
- return `
- <div class="stack" style="gap:6px;">
- <span class="key">${esc(s.label)}</span>
- <span class="mono" style="font-size:var(--fs-20); font-weight:700;">${fmt(s.value)}</span>
- <span class="mono faint" style="font-size:var(--fs-11);">${pct}%</span>
- </div>`;
- }).join('');
- return `
- <svg class="chart dist-bar" viewBox="0 0 ${width} ${height}" preserveAspectRatio="none">${lines.join('')}</svg>
- <div class="dist-legend">${legend}</div>
- `;
-};
-
-// ----- Character-intensity heatmap ---------------------------
-
-/**
- * Heatmap — a grid of NUMBERS whose text opacity encodes magnitude. The
- * data IS the visualization. No boxes, no cells, no colors.
- *
- * rows: string[] (row labels)
- * cols: string[] (col labels)
- * matrix: number[][] (rows × cols)
- * cellFmt: (v) => string — how to render each cell (default: compact)
- */
-export const Heatmap = ({ rows, cols, matrix, cellFmt = (v) => fmt(v) } = {}) => {
- if (!matrix || !matrix.length) return '';
- const flat = matrix.flat();
- const [mn, mx] = minMax(flat);
- const range = mx - mn || 1;
- // Cell width = max rendered length + 1 space, so columns align.
- let maxLen = 0;
- for (const v of flat) {
- const l = String(cellFmt(v)).length;
- if (l > maxLen) maxLen = l;
- }
- const widthCh = Math.max(3, maxLen + 1);
- const header = `<div class="heatmap-row heatmap-head"><span class="row-label">\u00a0</span>${cols.map(c =>
- `<span style="display:inline-block; width:${widthCh}ch; text-align:right; color:var(--z-mute);">${esc(c)}</span>`
- ).join('')}</div>`;
- const body = matrix.map((row, i) => {
- const cells = row.map((v) => {
- const t = (v - mn) / range;
- const op = (0.16 + 0.84 * t).toFixed(2);
- return `<span style="display:inline-block; width:${widthCh}ch; text-align:right; opacity:${op};">${esc(cellFmt(v))}</span>`;
- }).join('');
- return `<div class="heatmap-row"><span class="row-label">${esc(rows[i] ?? '')}</span>${cells}</div>`;
- }).join('');
- return `<div class="heatmap">${header}${body}</div>`;
-};
-
-// ----- Small multiples ---------------------------------------
-
-/**
- * Multiples — grid of labeled sparklines.
- * items: [{ label, values, value }]
- */
-export const Multiples = ({ items, w = 160, h = 22 } = {}) => {
- if (!items || !items.length) return '';
- const cells = items.map(({ label, values, value }) => `
- <div class="mult">
- <div class="mult-head">
- <span class="name">${esc(label)}</span>
- <span class="val">${value != null ? esc(value) : ''}</span>
- </div>
- ${Spark(values, { w, h })}
- </div>
- `).join('');
- return `<div class="multiples">${cells}</div>`;
-};
diff --git a/xerj-ux/src/ux/chrome.js b/xerj-ux/src/ux/chrome.js
deleted file mode 100644
index 18f8d346b..000000000
--- a/xerj-ux/src/ux/chrome.js
+++ /dev/null
@@ -1,312 +0,0 @@
-// ============================================================
-// XERJ.ai — Chrome: nav, scene header, time control, footer
-// Pure text. Buttons are `<button>` for a11y but styled as text.
-// ============================================================
-
-import { esc } from './text.js';
-
-/**
- * ThemeCtrl — text-only day/night toggle. Emits `[data-theme]` clicks
- * handled by the app router.
- */
-export const ThemeCtrl = ({ active = 'night' } = {}) => `
-<span class="theme" role="group" aria-label="Theme">
- <button type="button" data-theme-set="day" class="${active === 'day' ? 'active' : ''}" aria-pressed="${active === 'day'}">DAY</button>
- <span class="dash">·</span>
- <button type="button" data-theme-set="night" class="${active === 'night' ? 'active' : ''}" aria-pressed="${active === 'night'}">NIGHT</button>
-</span>`;
-
-export const MobileCtrl = ({ active = false } = {}) => `
-<span class="mobile-ctrl" role="group" aria-label="Mobile preview">
- <button type="button" data-mobile-toggle class="${active ? 'active' : ''}" aria-pressed="${active}">MOBILE</button>
-</span>`;
-
-/**
- * EditCtrl — text-only edit-mode toggle. When active also shows RESET.
- */
-export const EditCtrl = ({ active = false } = {}) => `
-<span class="edit-ctrl" role="group" aria-label="Edit mode">
- <button type="button" data-edit-toggle class="${active ? 'active' : ''}" aria-pressed="${active}">EDIT</button>
- ${active ? `<span class="dash">·</span><button type="button" data-reset-layout>RESET</button>` : ''}
-</span>`;
-
-/**
- * Nav — the top bar. Two rows:
- * Row 1 (always): brand + primary sections + edit/theme/status
- * Row 2 (only when section='dashboards'): grouped dashboards list
- *
- * The secondary row is "folder tabs": each `group` is shown as a
- * label, and the ACTIVE group's members render inline next to it.
- * Other groups collapse to just their label — click them to switch
- * groups (lands on the group's first dashboard). This handles
- * screens too narrow to fit every dashboard on one line.
- *
- * sections: [{ id, label }] — primary product sections
- * activeSection: id
- * dashboards: [{ id, name, group }] — dashboards under the active section
- * groups: [{ id, label }] — ordered group list for the sub-nav
- * activeDash: id — currently-selected dashboard
- */
-export const Nav = ({
- sections = [],
- activeSection = 'dashboards',
- dashboards = [],
- groups = [],
- activeDash = '',
- theme = 'night',
- edit = false,
- mobile = false,
- status = '',
-} = {}) => {
- const primaryLinks = sections.map((s) => {
- const href = s.id === 'dashboards' ? '#/dashboards' : '#/' + s.id;
- return `<a href="${href}" data-section="${esc(s.id)}" class="${s.id === activeSection ? 'active' : ''}">${esc(s.label)}</a>`;
- }).join('');
-
- const showSecondary = activeSection === 'dashboards' && dashboards.length > 0;
- let secondary = '';
- if (showSecondary) {
- // If we have groups, bucket dashboards by group; otherwise fall
- // back to a flat list (backward compatibility with any future
- // dashboard that omits a group).
- const byGroup = {};
- for (const d of dashboards) {
- const g = d.group || 'other';
- (byGroup[g] = byGroup[g] || []).push(d);
- }
- // Determine the active group from the active dashboard.
- const activeDashObj = dashboards.find((d) => d.id === activeDash);
- const activeGroup = activeDashObj?.group || (groups[0]?.id || 'other');
-
- // Stable order: the `groups` registry. Any group that exists in
- // data but not in the registry is appended at the end.
- const orderedGroups = [];
- const seen = new Set();
- for (const g of groups) {
- if (byGroup[g.id]) { orderedGroups.push({ ...g, members: byGroup[g.id] }); seen.add(g.id); }
- }
- for (const gid of Object.keys(byGroup)) {
- if (!seen.has(gid)) orderedGroups.push({ id: gid, label: gid.toUpperCase(), members: byGroup[gid] });
- }
-
- const groupHtml = orderedGroups.map((g) => {
- const isActive = g.id === activeGroup;
- const members = isActive
- ? g.members.map((d) =>
- `<a href="#/dashboards/${esc(d.id)}" data-dash="${esc(d.id)}" class="${d.id === activeDash ? 'active' : ''}">${esc(d.name)}</a>`
- ).join('')
- : '';
- const firstId = g.members[0]?.id || '';
- const labelCls = 'group-label' + (isActive ? ' active' : '');
- return `
- <span class="group${isActive ? ' open' : ''}">
- <button type="button" class="${labelCls}" data-dash-group="${esc(g.id)}" data-dash-group-first="${esc(firstId)}" aria-expanded="${isActive}">${esc(g.label)}</button>
- ${isActive ? `<span class="members">${members}</span>` : ''}
- </span>`;
- }).join('');
-
- secondary = `<nav class="nav-sub" aria-label="Dashboards">${groupHtml}</nav>`;
- }
-
- return `
-<nav class="nav" aria-label="Product">
- <span class="brand">XERJ CONSOLE</span>
- ${primaryLinks}
- <span class="spacer"></span>
- ${EditCtrl({ active: edit })}
- ${MobileCtrl({ active: mobile })}
- ${ThemeCtrl({ active: theme })}
- ${status ? `<span class="status">${esc(status)}</span>` : ''}
-</nav>
-${secondary}`;
-};
-
-/**
- * SceneHeader — the 96px scene title with kicker. One per view.
- * title: string
- * kicker: string (displayed above the title in small caps)
- * meta: optional array of strings rendered next to the kicker
- * editable: if true, the title becomes click-to-rename via contenteditable
- * dashId: the dashboard id (needed when editable=true so the rename
- * handler knows which dashboard to persist)
- */
-export const SceneHeader = ({ title, kicker = '', meta = [], editable = false, dashId = '' } = {}) => {
- const bits = [kicker, ...meta].filter(Boolean);
- const kickerLine = bits.length
- ? `<div class="kicker"><span class="key">${bits.map(esc).join(
- '</span><span class="dash">·</span><span class="key">'
- )}</span></div>`
- : '';
- const editAttrs = editable
- ? ` contenteditable="true" spellcheck="false" data-rename-dash="${esc(dashId)}" title="Click to rename · Enter to save · Esc to cancel"`
- : '';
- return `
-<header class="scene">
- ${kickerLine}
- <h1 class="h-scene${editable ? ' editable' : ''}"${editAttrs}>${esc(title)}</h1>
-</header>`;
-};
-
-/**
- * TimeCtrl — inline range selector. Emits `[data-time]` click events
- * handled by the app router. Adds a CUSTOM slot that reveals two
- * datetime-local inputs for an absolute from/to range — a top-15
- * corpus ask that Kibana already supports and users expect.
- */
-export const TimeCtrl = ({
- ranges = ['1H','24H','7D','30D','90D'],
- active = '24H',
- custom = { from: '', to: '' },
-} = {}) => {
- const buttons = ranges.map((r) =>
- `<button type="button" data-time="${esc(r)}" class="${r === active ? 'active' : ''}" aria-pressed="${r === active}">${esc(r)}</button>`
- ).join('');
- const isCustom = active === 'CUSTOM';
- const customBtn = `<button type="button" data-time="CUSTOM" class="${isCustom ? 'active' : ''}" aria-pressed="${isCustom}">CUSTOM</button>`;
- const customInputs = isCustom ? `
- <span class="custom-range">
- <input type="datetime-local" data-time-from value="${esc(custom.from || '')}" aria-label="From" />
- <span class="dash">→</span>
- <input type="datetime-local" data-time-to value="${esc(custom.to || '')}" aria-label="To" />
- </span>` : '';
- return `
- <div class="time" role="group" aria-label="Time range">
- <span class="key">RANGE</span>
- ${buttons}
- ${customBtn}
- ${customInputs}
- </div>`;
-};
-
-/**
- * RefreshCtrl — auto-refresh interval picker (milliseconds). 0 = off.
- * Corpus evidence: auto-refresh is in the Kibana top-5 user asks —
- * users want live dashboards without a full page reload.
- */
-export const RefreshCtrl = ({
- intervals = [
- { ms: 0, label: 'OFF' },
- { ms: 10_000, label: '10S' },
- { ms: 30_000, label: '30S' },
- { ms: 60_000, label: '1M' },
- { ms: 300_000, label: '5M' },
- ],
- active = 0,
-} = {}) => `
-<div class="refresh" role="group" aria-label="Auto-refresh">
- <span class="key">REFRESH</span>
- ${intervals.map((iv) =>
- `<button type="button" data-refresh="${iv.ms}" class="${iv.ms === active ? 'active' : ''}" aria-pressed="${iv.ms === active}">${esc(iv.label)}</button>`
- ).join('')}
-</div>`;
-
-/**
- * FilterBar — global filter pills row + KQL-lite search input.
- * Lives between the time control and the canvas on every dashboard.
- * Fixes the #1 Kibana authoring pain: filters are a dashboard-level
- * concept, not a per-panel one. Plus the GH#3693 ask for OR filters:
- * a field can hold an array of values rendered as `field : a | b`.
- *
- * filters: { [field]: value | value[] } — current dashboard filters
- * kql: the current text in the KQL input (preserved across renders)
- *
- * Pills emit:
- * [data-filter-remove="field:value"] — remove one value from field
- * [data-filter-clear] — clear everything
- * [data-kql-input] — the search input (Enter to run)
- */
-export const FilterBar = ({ filters = {}, kql = '' } = {}) => {
- const entries = Object.entries(filters);
- const pills = entries.map(([field, value]) => {
- const values = Array.isArray(value) ? value : [value];
- const chips = values.map((v, i) => `
- ${i > 0 ? '<span class="or">OR</span>' : ''}
- <button type="button" class="chip" data-filter-remove="${esc(field)}:${esc(v)}" title="Remove ${esc(field)} = ${esc(v)}">
- <span class="value">${esc(v)}</span>
- <span class="x">✕</span>
- </button>
- `).join('');
- return `
- <span class="pill active">
- <span class="field">${esc(field)}</span>
- <span class="eq">:</span>
- ${chips}
- </span>`;
- }).join('');
-
- const hint = entries.length
- ? ''
- : `<span class="hint mono faint">TYPE <span class="mono">field:value</span> ABOVE · OR CLICK A LABEL IN A CHART</span>`;
- const clearBtn = entries.length
- ? `<button type="button" class="clear" data-filter-clear>CLEAR ALL</button>`
- : '';
-
- return `
- <div class="filter-bar${entries.length ? '' : ' empty'}" aria-label="Filters">
- <div class="kql">
- <span class="key">KQL</span>
- <input type="text" data-kql-input value="${esc(kql)}" placeholder="service:auth level:error &quot;login failed&quot;" spellcheck="false" autocomplete="off" />
- </div>
- <div class="pills">
- <span class="key">FILTER</span>
- ${pills}
- ${hint}
- ${clearBtn}
- </div>
- </div>`;
-};
-
-/**
- * SavedViews — a named snapshot of (dashId, time, cluster, filters).
- * Rendered as a one-line row below the filter bar on dashboards.
- * Kibana equivalent: saved searches / dashboard links. Top-5 corpus
- * ask — users want to pin a context they can jump back to.
- */
-export const SavedViews = ({ views = [], dashId = '' } = {}) => {
- const mine = views.filter((v) => v.dashId === dashId);
- const saveBtn = `<button type="button" class="save" data-view-save>+ SAVE CURRENT VIEW</button>`;
- if (!mine.length) {
- return `
- <div class="saved-views empty" aria-label="Saved views">
- <span class="key">VIEWS</span>
- <span class="hint mono faint">NO SAVED VIEWS</span>
- ${saveBtn}
- </div>`;
- }
- const links = mine.map((v) => `
- <button type="button" class="view" data-view-apply="${esc(v.id)}" title="Apply view">${esc(v.name)}</button>
- <button type="button" class="x" data-view-delete="${esc(v.id)}" title="Delete view" aria-label="Delete view">✕</button>
- `).join('<span class="sep">·</span>');
- return `
- <div class="saved-views" aria-label="Saved views">
- <span class="key">VIEWS</span>
- ${links}
- ${saveBtn}
- </div>`;
-};
-
-/**
- * ClusterCtrl — dropdown-as-text cluster selector. Shown on dashboards
- * that hit cluster-scoped data. Emits `[data-cluster-set]`.
- */
-export const ClusterCtrl = ({ clusters = [], active = '' } = {}) => {
- if (!clusters.length) return '';
- return `
- <div class="cluster-ctrl" role="group" aria-label="Cluster">
- <span class="key">CLUSTER</span>
- ${clusters.map((c) =>
- `<button type="button" data-cluster-set="${esc(c.id)}" class="${c.id === active ? 'active' : ''}" aria-pressed="${c.id === active}">${esc(c.name || c.id)}</button>`
- ).join('')}
- </div>`;
-};
-
-/** Footer — one line, mute, uppercase. No border. */
-export const Footer = ({ version = 'v0.1' } = {}) => {
- const now = new Date().toISOString().slice(0, 16).replace('T', ' · ');
- return `
-<footer class="footer">
- <span>XERJ CONSOLE · ${esc(version)}</span>
- <span>TYPE IS THE UI</span>
- <span>${esc(now)}</span>
-</footer>`;
-};
diff --git a/xerj-ux/src/ux/layout.js b/xerj-ux/src/ux/layout.js
deleted file mode 100644
index e3dae9959..000000000
--- a/xerj-ux/src/ux/layout.js
+++ /dev/null
@@ -1,93 +0,0 @@
-// ============================================================
-// XERJ.ai — Layout primitives
-// Panel, TopN. Nothing more. See UX_BOOK.md §3.
-// ============================================================
-
-import { esc, fmt } from './text.js';
-
-/**
- * Panel — a slot in the 12-column canvas grid.
- * Renders NO box, NO border, NO background. The only chrome a panel
- * has is: an eyebrow line above the content, and its column span.
- *
- * eyebrow: small-caps label (the panel's identity)
- * title: optional section heading below the eyebrow
- * cols: 1..12 column span
- * children: string or string[]
- */
-export const Panel = ({ eyebrow, title, cols = 6, children = '' } = {}) => {
- const body = Array.isArray(children) ? children.join('') : children;
- return `
-<section class="panel" style="grid-column: span ${cols};">
- ${eyebrow ? `<div class="key">${esc(eyebrow)}</div>` : ''}
- ${title ? `<div class="h-section">${esc(title)}</div>` : ''}
- ${body}
-</section>`;
-};
-
-/**
- * TopN — the ranked list. Replaces pies, donuts, treemaps, and most
- * bar charts. Every observability question starts with "top what?".
- *
- * items: [{ label, value }]
- * total: optional total for percentage column
- * n: limit (default 10)
- * valueFmt: function to render the value (default compact number)
- * barWidth: svg viewBox width for the 1px fill line (default 200)
- * scale: 'max' (relative to row max) | 'total' (relative to total)
- * filterField: if set, each row becomes click-to-filter on this field.
- * Clicking a row emits a `[data-filter-add]` event the
- * app router catches and turns into a global filter pill.
- */
-export const TopN = ({
- items,
- total,
- n = 10,
- valueFmt = (v) => fmt(v),
- barWidth = 200,
- scale = 'max',
- filterField = '',
-} = {}) => {
- if (!items || !items.length) return '<div class="faint mono">No data.</div>';
- const slice = items.slice(0, n);
- const max = Math.max(...slice.map((i) => i.value));
- const denom = scale === 'total' && total ? total : max;
- const out = slice.map((i) => {
- const frac = denom > 0 ? Math.max(0, Math.min(1, i.value / denom)) : 0;
- const pct = total ? ((100 * i.value) / total).toFixed(1) + '%' : '';
- const x = (frac * barWidth).toFixed(1);
- const clickable = filterField
- ? ` data-filter-add="${esc(filterField)}:${esc(i.label)}" role="button" title="Filter ${esc(filterField)} = ${esc(i.label)}"`
- : '';
- return `
- <div class="row${filterField ? ' clickable' : ''}"${clickable}>
- <div class="row__label">${esc(i.label)}</div>
- <div class="row__val">${esc(valueFmt(i.value))}</div>
- <div class="row__bar">
- <svg class="chart" height="6" viewBox="0 0 ${barWidth} 6" preserveAspectRatio="none">
- <line x1="0" y1="5" x2="${x}" y2="5" stroke="currentColor" stroke-width="1"/>
- </svg>
- </div>
- <div class="row__pct">${esc(pct)}</div>
- </div>`;
- }).join('');
- return out;
-};
-
-/**
- * Events — a text list of recent events. Three-column grid: time, severity,
- * message. No cells, no borders. Severity `err` lights the accent.
- *
- * items: [{ at: ISO or HH:mm:ss, sev: 'info'|'warn'|'err', msg: string }]
- */
-export const Events = ({ items } = {}) => {
- if (!items || !items.length) return '<div class="faint mono">No events.</div>';
- const rows = items.map((e) => `
- <div class="ev">
- <span class="when">${esc(e.at)}</span>
- <span class="sev ${e.sev === 'err' ? 'err' : ''}">${esc((e.sev || '').toUpperCase())}</span>
- <span class="msg">${esc(e.msg)}</span>
- </div>
- `).join('');
- return `<div class="events">${rows}</div>`;
-};
diff --git a/xerj-ux/src/ux/tables.js b/xerj-ux/src/ux/tables.js
deleted file mode 100644
index fec99a698..000000000
--- a/xerj-ux/src/ux/tables.js
+++ /dev/null
@@ -1,54 +0,0 @@
-// ============================================================
-// XERJ.ai — Table + Markdown primitives
-// Plain text, no borders, no zebra stripes, no cell backgrounds.
-// ============================================================
-
-import { esc } from './text.js';
-
-/**
- * Table — borderless tabular data. Replaces Kibana "Data Table".
- *
- * columns: ['NAME', 'COUNT', ...]
- * rows: [[cell, cell, ...], ...]
- * align: ['left'|'right'|'center', ...] — per column
- */
-export const Table = ({ columns, rows, align = [] } = {}) => {
- if (!columns || !columns.length) return '<div class="faint mono">No columns.</div>';
- const ta = (i) => align[i] || (i === 0 ? 'left' : 'right');
- const cols = columns.length;
- const headCells = columns.map((c, i) =>
- `<span style="text-align:${ta(i)}">${esc(c)}</span>`
- ).join('');
- const bodyRows = (rows || []).map((r) => {
- const cells = r.map((c, i) =>
- `<span style="text-align:${ta(i)}">${esc(c)}</span>`
- ).join('');
- return `<div class="tbl-row">${cells}</div>`;
- }).join('');
- return `
- <div class="tbl" style="--tbl-cols:${cols};">
- <div class="tbl-row tbl-head">${headCells}</div>
- ${bodyRows}
- </div>`;
-};
-
-/**
- * Markdown — very light markdown for annotation panels.
- * Supports: **bold**, *italic*, `code`, # heading, ## eyebrow, blank-line paragraphs.
- * No HTML injection — everything runs through `esc` first.
- */
-export const Markdown = (text = '') => {
- if (!text) return '';
- const paragraphs = text.split(/\n\n+/).map((p) => {
- const t = p.trim();
- if (!t) return '';
- if (t.startsWith('# ')) return `<div class="h-section" style="margin-bottom:10px;">${esc(t.slice(2))}</div>`;
- if (t.startsWith('## ')) return `<div class="key" style="margin-bottom:8px;">${esc(t.slice(3))}</div>`;
- const e = esc(t)
- .replace(/\*\*(.+?)\*\*/g, '<strong style="color:var(--z-ink);">$1</strong>')
- .replace(/\*(.+?)\*/g, '<em>$1</em>')
- .replace(/`([^`]+)`/g, '<span class="mono accent">$1</span>');
- return `<p style="max-width:60ch; margin-bottom:10px;">${e}</p>`;
- }).filter(Boolean).join('');
- return `<div class="md" style="font-family:var(--font-prose); font-size:var(--fs-13); line-height:1.6; color:var(--z-mute);">${paragraphs}</div>`;
-};
diff --git a/xerj-ux/src/ux/text.js b/xerj-ux/src/ux/text.js
deleted file mode 100644
index 4521edeae..000000000
--- a/xerj-ux/src/ux/text.js
+++ /dev/null
@@ -1,121 +0,0 @@
-// ============================================================
-// XERJ.ai — Text primitives
-// Every component is a pure function returning an HTML string.
-// No state, no events, no DOM access. See UX_BOOK.md §3.
-// ============================================================
-
-/** Escape user text for safe interpolation into template strings. */
-export const esc = (s) =>
- String(s ?? '').replace(/[&<>"']/g, (c) => ({
- '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;',
- }[c]));
-
-/** Compact number formatter (4.82M, 12.3K, 0.83). */
-const nf = new Intl.NumberFormat('en', { notation: 'compact', maximumFractionDigits: 2 });
-export const fmt = (v, { decimals } = {}) => {
- if (v == null || Number.isNaN(v)) return '—';
- if (decimals != null) return Number(v).toFixed(decimals);
- if (Math.abs(v) < 1) return Number(v).toFixed(2);
- if (Math.abs(v) < 100) return Number(v).toFixed(1);
- return nf.format(v);
-};
-
-/** Pad an integer string to a fixed width with thin spaces (looks tabular). */
-export const num = (v) => new Intl.NumberFormat('en').format(v);
-
-// ----- Eyebrow / headings ------------------------------------
-
-/** Small-caps eyebrow label. The ONLY way to title a panel. */
-export const Key = (text) => `<div class="key">${esc(text)}</div>`;
-
-/** `role` ∈ 'scene' | 'section'. Scene is once per view. */
-export const H = (role, text) => {
- const cls = role === 'scene' ? 'h-scene' : 'h-section';
- const tag = role === 'scene' ? 'h1' : 'h2';
- return `<${tag} class="${cls}">${esc(text)}</${tag}>`;
-};
-
-// ----- Delta indicator ---------------------------------------
-
-/**
- * `▲ 12.3%` / `▼ 0.12%` — standalone delta.
- * `good: 'up' | 'down' | null` — which direction lights the accent.
- * If `good` is null, delta is always muted (neutral).
- */
-export const Change = (pct, { good = 'up', unit = '%', fractionDigits = 1 } = {}) => {
- if (pct == null || Number.isNaN(pct)) return '';
- const up = pct >= 0;
- const arrow = up ? '▲' : '▼';
- const abs = Math.abs(pct).toFixed(fractionDigits);
- let klass = 'meh';
- if (good === 'up') klass = up ? 'good' : 'bad';
- else if (good === 'down') klass = up ? 'bad' : 'good';
- return `<span class="delta ${klass}">${arrow} ${abs}${esc(unit)}</span>`;
-};
-
-// ----- Headline metric ---------------------------------------
-
-/**
- * Num — the point of every panel.
- * value: string or number (preformatted is fine)
- * unit: short unit like 'events', 'e/s', '%', 'ms'
- * spark: optional Spark(...) string rendered to the right
- * delta: signed percent, rendered with Change
- * deltaGood: 'up' | 'down' | null — which direction is "good"
- * hint: small mono hint rendered below ('at 14:23', etc.)
- * emphasis: true → 96/56px display + accent; false → 32px ink
- */
-export const Num = ({
- value,
- unit = '',
- spark = '',
- delta = null,
- deltaGood = 'up',
- hint = '',
- emphasis = true,
-} = {}) => {
- const valCls = emphasis ? 'num-big accent' : 'num-md';
- const unitSpan = unit ? `<span class="num-unit">${esc(unit)}</span>` : '';
- const deltaPart = delta != null ? Change(delta, { good: deltaGood }) : '';
- const hintPart = hint
- ? `<span class="hint">${esc(hint)}</span>`
- : '';
- const foot = (deltaPart || hintPart)
- ? `<div class="row-flex" style="margin-top:10px;">${deltaPart}${hintPart}</div>`
- : '';
- return `
- <div class="stack">
- <div class="row-flex">
- <div class="${valCls}">${esc(value)}${unitSpan}</div>
- ${spark}
- </div>
- ${foot}
- </div>`;
-};
-
-// ----- Horizontal-bar row (one line of a TopN) ---------------
-
-/**
- * A single ranked row. Use `TopN` to render lists; this is exported so you
- * can hand-build a row in custom panels.
- */
-export const HBar = ({ label, value, pct, frac, barWidth = 200 }) => {
- const f = Math.max(0, Math.min(1, frac ?? 0));
- const x = (f * barWidth).toFixed(1);
- return `
- <div class="row">
- <div class="row__label">${esc(label)}</div>
- <div class="row__val">${esc(value)}</div>
- <div class="row__bar">
- <svg class="chart" height="6" viewBox="0 0 ${barWidth} 6" preserveAspectRatio="none">
- <line x1="0" y1="5" x2="${x}" y2="5" stroke="currentColor" stroke-width="1"/>
- </svg>
- </div>
- <div class="row__pct">${pct != null ? esc(pct) : ''}</div>
- </div>`;
-};
-
-// ----- Inline key/value used in scene kicker ----------------
-
-export const Kv = (k, v) =>
- `<span class="mono"><span class="faint">${esc(k)}</span> ${esc(v)}</span>`;
diff --git a/xerj-ux/src/xerj-console-auth.js b/xerj-ux/src/xerj-console-auth.js
deleted file mode 100644
index bf6a5e0fa..000000000
--- a/xerj-ux/src/xerj-console-auth.js
+++ /dev/null
@@ -1,92 +0,0 @@
-// Xerj Console auth API client.
-//
-// Tiny fetch wrapper for the /_xerj-console/api/v1/auth/* surface. Used by
-// setup.html, login.html, and the SPA's auth guard. Never imports
-// from the rest of the app so it stays loadable on the standalone
-// auth pages without dragging the whole bundle in.
-
-const API = '/_xerj-console/api/v1';
-
-export async function api(method, path, body) {
- const init = {
- method,
- credentials: 'same-origin',
- headers: { 'accept': 'application/json' },
- };
- if (body !== undefined) {
- init.headers['content-type'] = 'application/json';
- init.body = JSON.stringify(body);
- }
- const r = await fetch(API + path, init);
- let payload = null;
- try { payload = await r.json(); } catch {}
- if (!r.ok) {
- const reason = payload && payload.error
- ? `${payload.error.type}: ${payload.error.reason}`
- : `HTTP ${r.status}`;
- throw new Error(reason);
- }
- return payload && payload.data !== undefined ? payload.data : payload;
-}
-
-// ─── Magic-link redemption ───────────────────────────────────────────────────
-
-export async function redeemMagic(token) {
- return api('POST', '/auth/magic/redeem', { token });
-}
-
-// ─── Passkey enrolment ──────────────────────────────────────────────────────
-
-export async function beginEnrol(enrollment_session_id, email, display_name) {
- return api('POST', '/auth/passkey/begin', {
- enrollment_session_id, email, display_name,
- });
-}
-
-export async function finishEnrol(
- enrollment_session_id, challenge_id, credential, name, email, display_name
-) {
- return api('POST', '/auth/passkey/finish', {
- enrollment_session_id, challenge_id, credential, name, email, display_name,
- });
-}
-
-// ─── Login ──────────────────────────────────────────────────────────────────
-
-export async function beginLogin(email) {
- return api('POST', '/auth/login/begin', { email });
-}
-
-export async function finishLogin(challenge_id, credential) {
- return api('POST', '/auth/login/finish', { challenge_id, credential });
-}
-
-export async function logout() {
- return api('POST', '/auth/logout');
-}
-
-export async function me() {
- return api('GET', '/me');
-}
-
-// ─── Base64url ↔ ArrayBuffer ────────────────────────────────────────────────
-// WebAuthn's JSON wire format encodes binary fields as base64url-no-pad,
-// but the browser's `navigator.credentials.create/get` API expects
-// ArrayBuffer for `challenge`, `user.id`, credential `id`, etc. These
-// helpers convert in both directions.
-
-export function b64uToBuf(s) {
- const pad = '='.repeat((4 - (s.length % 4)) % 4);
- const b64 = (s + pad).replace(/-/g, '+').replace(/_/g, '/');
- const bin = atob(b64);
- const buf = new Uint8Array(bin.length);
- for (let i = 0; i < bin.length; i++) buf[i] = bin.charCodeAt(i);
- return buf.buffer;
-}
-
-export function bufToB64u(buf) {
- const bytes = new Uint8Array(buf);
- let bin = '';
- for (let i = 0; i < bytes.byteLength; i++) bin += String.fromCharCode(bytes[i]);
- return btoa(bin).replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '');
-}
diff --git a/xerj-ux/src/xerj-console-sync.js b/xerj-ux/src/xerj-console-sync.js
deleted file mode 100644
index eee5ae3a6..000000000
--- a/xerj-ux/src/xerj-console-sync.js
+++ /dev/null
@@ -1,206 +0,0 @@
-// xerj-console-sync.js — durable persistence for the SPA.
-//
-// The existing SPA (`app.js`) reads and writes a handful of well-known
-// keys under localStorage (`xerj.theme`, `xerj.time`, `xerj.views`,
-// …). This module makes those values durable across browsers and
-// machines by mirroring them to /_xerj-console/api/v1/prefs and
-// /_xerj-console/api/v1/views.
-//
-// It is **non-invasive**: app.js is not modified. Instead we
-//
-// 1. on boot, **pull** the server-side values and write them into
-// localStorage *before* app.js reads them at module load, and
-// 2. periodically (every 1.5s) **push** any local changes back to
-// the server, debounced so a slider drag does not spam writes.
-//
-// Both halves are best-effort. An unreachable backend (offline dev,
-// hot-reload mid-flight, network blip) silently falls back to plain
-// localStorage so the SPA never gets stuck.
-
-import { api } from './xerj-console-auth.js';
-
-// ── Keys we mirror as a single `/prefs` document. ────────────────────────────
-// `xerj.search` is intentionally excluded — it's the search box's last
-// query, which is per-tab ephemera, not "user prefs".
-// `xerj.dashboards` IS included: it carries the user's dashboard
-// metadata (renames, order, hidden flags, user-cloned dashboards),
-// which the demo wants to persist across sessions and machines.
-// Per-dashboard panel layouts (`xerj.layout.<id>`) and per-dashboard
-// filters (`xerj.filters.<id>`) are aggregated into one `layouts` and
-// `filters` map respectively, since the count is unbounded and the
-// /prefs schema doesn't accept dynamic key prefixes.
-const PREF_KEYS = [
- 'xerj.theme',
- 'xerj.time',
- 'xerj.timeFrom',
- 'xerj.timeTo',
- 'xerj.cluster',
- 'xerj.refresh',
- 'xerj.mobile',
- 'xerj.edit',
- 'xerj.dashboards',
-];
-
-const VIEWS_KEY = 'xerj.views';
-
-// Aggregate per-dashboard keys under prefs.layouts and prefs.filters so
-// the user's panel arrangement and saved filters travel with them.
-const LAYOUT_PREFIX = 'xerj.layout.';
-const FILTERS_PREFIX = 'xerj.filters.';
-
-// ─── Pull (boot) ─────────────────────────────────────────────────────────────
-
-/** Fetch /prefs and /views, seed localStorage. Idempotent. */
-export async function pullAll() {
- await Promise.all([pullPrefs(), pullViews()]);
-}
-
-async function pullPrefs() {
- let server;
- try { server = await api('GET', '/prefs'); }
- catch (e) { console.warn('[xerj-console-sync] /prefs unreachable:', e.message); return; }
- if (!server || typeof server !== 'object') return;
- // Server doc shape mirrors a flat key/value map. Translate `theme`,
- // `time`, `cluster`… back into `xerj.theme`, `xerj.time`,
- // `xerj.cluster`… so the existing SPA reads pick them up.
- for (const fullKey of PREF_KEYS) {
- const short = fullKey.replace(/^xerj\./, '');
- if (server[short] !== undefined && server[short] !== null) {
- const val = typeof server[short] === 'string'
- ? server[short]
- : JSON.stringify(server[short]);
- // String-coerce numbers/bools to match the SPA's expectations
- // (most reads use raw `localStorage.getItem` which returns a string).
- try { localStorage.setItem(fullKey, val); } catch {}
- }
- }
- // Per-dashboard layouts: { dashId: '<JSON>' } → xerj.layout.<dashId>
- if (server.layouts && typeof server.layouts === 'object') {
- for (const [id, raw] of Object.entries(server.layouts)) {
- if (raw == null) continue;
- const v = typeof raw === 'string' ? raw : JSON.stringify(raw);
- try { localStorage.setItem(LAYOUT_PREFIX + id, v); } catch {}
- }
- }
- // Per-dashboard filters: same shape under prefs.filters.
- if (server.filters && typeof server.filters === 'object') {
- for (const [id, raw] of Object.entries(server.filters)) {
- if (raw == null) continue;
- const v = typeof raw === 'string' ? raw : JSON.stringify(raw);
- try { localStorage.setItem(FILTERS_PREFIX + id, v); } catch {}
- }
- }
-}
-
-async function pullViews() {
- let server;
- try { server = await api('GET', '/views'); }
- catch (e) { console.warn('[xerj-console-sync] /views unreachable:', e.message); return; }
- if (!server || !Array.isArray(server.views)) return;
- // app.js stores views as a flat array under `xerj.views`. Map the
- // server shape (which has `dashboard_id`, `time`, `filters`,
- // `updated_at`) into whatever the SPA expects — the SPA accepts any
- // serialisable view object so a thin pass-through works.
- try {
- localStorage.setItem(VIEWS_KEY, JSON.stringify(server.views));
- } catch {}
-}
-
-// ─── Push (debounced) ────────────────────────────────────────────────────────
-
-let lastPushedPrefs = null;
-let lastPushedViewsKey = '';
-let pushTimer = null;
-
-/** Start the periodic push tick. Idempotent. */
-export function startPush() {
- if (pushTimer) return;
- // Initial state — taken AFTER pullAll so we don't immediately push
- // back what we just pulled.
- lastPushedPrefs = snapshotPrefs();
- lastPushedViewsKey = readViewsRaw();
- pushTimer = setInterval(() => { pushIfDirty().catch(() => {}); }, 1500);
-}
-
-function snapshotPrefs() {
- const out = {};
- for (const fullKey of PREF_KEYS) {
- const short = fullKey.replace(/^xerj\./, '');
- const v = localStorage.getItem(fullKey);
- if (v !== null) out[short] = v;
- }
- // Aggregate per-dashboard layouts + filters.
- const layouts = {};
- const filters = {};
- try {
- for (let i = 0; i < localStorage.length; i++) {
- const k = localStorage.key(i);
- if (!k) continue;
- if (k.startsWith(LAYOUT_PREFIX)) {
- layouts[k.slice(LAYOUT_PREFIX.length)] = localStorage.getItem(k);
- } else if (k.startsWith(FILTERS_PREFIX)) {
- filters[k.slice(FILTERS_PREFIX.length)] = localStorage.getItem(k);
- }
- }
- } catch {}
- if (Object.keys(layouts).length) out.layouts = layouts;
- if (Object.keys(filters).length) out.filters = filters;
- return JSON.stringify(out);
-}
-
-function readViewsRaw() {
- return localStorage.getItem(VIEWS_KEY) || '';
-}
-
-async function pushIfDirty() {
- // Prefs
- const cur = snapshotPrefs();
- if (cur !== lastPushedPrefs) {
- try {
- await api('PUT', '/prefs', JSON.parse(cur));
- lastPushedPrefs = cur;
- } catch (e) {
- // Silently retry on the next tick; don't spam the console.
- }
- }
- // Views — naïve full-array sync. Cheap because the array is small
- // (low tens) and the SPA writes it as one JSON blob anyway. We
- // diff against the local raw to skip no-op pushes.
- const v = readViewsRaw();
- if (v !== lastPushedViewsKey) {
- lastPushedViewsKey = v;
- try {
- const arr = v ? JSON.parse(v) : [];
- // The /views surface is collection-style: figure out which views
- // are new vs deleted vs unchanged, then POST/DELETE accordingly.
- // For v1.0 we keep it dirt simple: re-create everything from
- // scratch. Acceptable because views are <10 per user; if this
- // ever bites, replace with a proper diff.
- const server = await api('GET', '/views').catch(() => ({ views: [] }));
- const serverIds = new Set((server.views || []).map(s => s.id));
- const localIds = new Set(arr.map(it => it.id).filter(Boolean));
- // Delete server-side views that no longer exist locally.
- for (const id of serverIds) {
- if (!localIds.has(id)) await api('DELETE', `/views/${encodeURIComponent(id)}`).catch(() => {});
- }
- // POST new ones.
- for (const item of arr) {
- if (item.id && serverIds.has(item.id)) continue;
- await api('POST', '/views', {
- dashboard_id: item.dashboard_id || item.dashboardId || 'default',
- name: item.name || 'Untitled',
- time: item.time || null,
- filters: item.filters || null,
- }).catch(() => {});
- }
- } catch {}
- }
-}
-
-// ─── Public bootstrapper ─────────────────────────────────────────────────────
-
-/** One-shot: pull then start periodic push. Call once at SPA load. */
-export async function init() {
- await pullAll();
- startPush();
-}