From 8a32beede05e57f3b50535aa21d4013598d17e04 Mon Sep 17 00:00:00 2001 From: Shaun Struwig <41984034+Blargian@users.noreply.github.com> Date: Thu, 19 Nov 2026 21:17:24 +0100 Subject: [PATCH 01/16] Documentation defaults to dark with a wider reading column The prose column uses more of the space between navigation and the page outline. Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com> --- docs/theme.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/theme.css b/docs/theme.css index 3eec518939..043b9c0343 100644 --- a/docs/theme.css +++ b/docs/theme.css @@ -10,7 +10,7 @@ --blume-action-foreground: var(--blume-accent-foreground); --blume-code-background: var(--click-global-color-background-muted, #282828); --blume-radius: 0.5rem; - --blume-content-width: 44rem; + --blume-content-width: 54rem; } :root[data-theme="dark"] .loom-logo-background, From 2e1fd6dab2a67f3d990bb03c87353e66e2595034 Mon Sep 17 00:00:00 2001 From: Shaun Struwig <41984034+Blargian@users.noreply.github.com> Date: Tue, 24 Nov 2026 14:26:20 +0100 Subject: [PATCH 02/16] Retire GitHub Pages documentation Published documentation links and metadata point at the current documentation site, and translation finalization no longer dispatches the retired publisher. Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com> --- .github/workflows/docs-site.yml | 54 +--------------- .github/workflows/i18n.yml | 9 ++- docs/development/documentation-style.md | 6 +- docs/development/repository-guide.md | 2 +- docs/development/testing.md | 9 +-- docs/index.md | 2 +- mkdocs.yml | 8 +-- scripts/docs_site/overrides/main.html | 32 ---------- scripts/i18n/automation.py | 31 +--------- tests/unit/test_i18n_automation.py | 82 +++---------------------- 10 files changed, 28 insertions(+), 207 deletions(-) delete mode 100644 scripts/docs_site/overrides/main.html diff --git a/.github/workflows/docs-site.yml b/.github/workflows/docs-site.yml index d1e1c5914a..f57de3d012 100644 --- a/.github/workflows/docs-site.yml +++ b/.github/workflows/docs-site.yml @@ -1,6 +1,6 @@ name: docs site -# Publishes legacy redirects and submits changed site URLs after production deploys. +# Submits changed production documentation URLs after deployment. on: push: branches: [main] @@ -25,54 +25,6 @@ concurrency: cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: - build: - name: build - runs-on: ubuntu-latest - timeout-minutes: 15 - permissions: - contents: read - pages: read # Read the base URL used by the legacy Markdown copies. - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 - with: - python-version: "3.12" - - name: Install the site builder - run: | - python -m pip install --require-hashes --no-deps --only-binary=:all: -r scripts/docs_site/requirements.txt - - if: github.ref == 'refs/heads/main' && vars.DOCS_SITE_ENABLED == 'true' - name: Read the legacy Pages URL - id: pages - uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 - - name: Build legacy documentation redirects - env: - LOOM_LEGACY_DOCS_URL: ${{ steps.pages.outputs.base_url || 'https://loom.clickhouse.com/docs' }}/ - run: | - mkdocs build --strict - python -m scripts.docs_site.redirect_pages site "$LOOM_LEGACY_DOCS_URL" - - if: github.event_name != 'pull_request' - uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 - with: - path: site - - deploy: - name: deploy - if: github.ref == 'refs/heads/main' && vars.DOCS_SITE_ENABLED == 'true' - needs: build - runs-on: ubuntu-latest - timeout-minutes: 10 - permissions: - pages: write # Deploy the built Pages artifact. - id-token: write # Authenticate the Pages deployment. - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - steps: - - id: deployment - uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1 - indexnow: name: indexnow if: github.ref == 'refs/heads/main' @@ -95,8 +47,8 @@ jobs: GH_TOKEN: ${{ github.token }} run: | set -euo pipefail - # Legacy redirect publication has its own result. Only a successful IndexNow - # job advances the comparison point so the next run covers a failed submission. + # Only a successful IndexNow job advances the comparison point so the next run + # covers a failed submission. base= page=1 while [[ -z "$base" ]]; do diff --git a/.github/workflows/i18n.yml b/.github/workflows/i18n.yml index 1fcda7179f..a48f8441f0 100644 --- a/.github/workflows/i18n.yml +++ b/.github/workflows/i18n.yml @@ -118,10 +118,15 @@ jobs: - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: python-version: "3.12" - - name: Install the site builder + - name: Install the translation parser run: | python -m pip install --require-hashes --no-deps --only-binary=:all: -r scripts/docs_site/requirements.txt - - name: Merge the successful exact head and publish the site + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: "22.19" + - name: Install the documentation builder + run: npm ci --prefix docs + - name: Merge the successful exact head env: GH_TOKEN: ${{ github.token }} LOOM_I18N_LANGUAGES: ${{ vars.LOOM_I18N_LANGUAGES }} diff --git a/docs/development/documentation-style.md b/docs/development/documentation-style.md index f2be8a4de2..daae8f39af 100644 --- a/docs/development/documentation-style.md +++ b/docs/development/documentation-style.md @@ -96,7 +96,8 @@ These pages are rendered from the code. Edit the source, then run the generator. | [reference/status.md](../reference/status.md) | op `maturity` and the boolean settings of `server/settings/catalog.py` that load false | `python scripts/codegen/docs_reference.py` | | [reference/schema.md](../reference/schema.md) | `schemas/schema.sql` | `python scripts/codegen/docs_reference.py` | -On the documentation site, `scripts/docs_site/hooks.py` serves each page's Markdown copy beside the page, at its URL plus `index.html.md` and, for a section index, at `.md`, named by a `` tag on the page; `llms.txt` with its links pointing at those copies; `llms-full.txt` (the pages that say what Loom is and how to start); and the repository's `llms-install.md`. +On the documentation site, Blume serves each page's Markdown copy beside the page and +publishes `llms.txt`, `llms-full.txt`, and the repository's `llms-install.md`. The site publishes generated pages from `i18n//docs/` under `//`. English is the canonical default. Each page keeps its docs-relative path under `//`, so the homepage and use-case index have distinct routes. The English homepage links to each available translated homepage, or to its translated use-case index when the homepage is unavailable. Each translated page links to its English source and to the available equivalent translations. A notice marks translations whose source blob differs from the current English page. Translation generation stays in `scripts/i18n/translate.py`; the site build does not call a translation provider. @@ -110,6 +111,5 @@ The SDK op tables (`sdk/python/loom/ops.py`, `sdk/typescript/src/generated/ops.t make format # Prettier formats the Markdown, ruff its Python blocks uv run pytest tests/unit/test_doc_links.py tests/unit/test_public_copy.py -q python scripts/codegen/docs_reference.py --check -pip install --require-hashes --no-deps --only-binary=:all: -r scripts/docs_site/requirements.txt # once, in a virtualenv -mkdocs build --strict # the docs site build CI runs +npm --prefix docs run build # builds the deployed documentation site ``` diff --git a/docs/development/repository-guide.md b/docs/development/repository-guide.md index 680d8d038e..a0634450b7 100644 --- a/docs/development/repository-guide.md +++ b/docs/development/repository-guide.md @@ -21,7 +21,7 @@ What every top-level directory holds, where a concern lives inside `server/`, th | `tests/` | `unit/`, `integration/`, `analyzer/`, `code_lanes/`, `fixtures/` (below) | | `examples/` | runnable integration examples (`claude_agent_loop.py`, `ledger_run.py`, `log_conversation.py`, `onboarding_walkthrough.py`), and the course starter a teacher copies into a repository of their own (`course-starter/`, [teaching](../guides/teaching.md#hand-out-the-labs-as-an-assignment)) | | `i18n/` | machine translations of the README, the quickstart and the use-case pages, one folder per language in `LANGUAGES`; generated by `scripts/i18n/translate.py` (`.github/workflows/i18n.yml`), never edited by hand | -| `docs/` | this documentation; `mkdocs.yml` and `scripts/docs_site/` build it as the documentation site (`.github/workflows/docs-site.yml`) | +| `docs/` | this documentation and the Blume configuration that publishes it at `https://loom.clickhouse.com/docs/` | | `.github/` | CI, release and scan workflows (`workflows/`), issue and pull-request templates, and `social-preview.png`, the image uploaded in Settings → General → Social preview (GitHub reads only the uploaded copy) | | `.devcontainer/` | the GitHub Codespaces try-out: a dev container that installs the latest release with the installer and connects Claude Code; not a development environment ([quickstart](../getting-started/quickstart.md#try-it-in-github-codespaces)) | | `Dockerfile`, `Makefile`, `redeploy.sh`, `pyproject.toml`, `uv.lock` | the server's image, the task runner, the blue/green deploy script, the server package and its lock file | diff --git a/docs/development/testing.md b/docs/development/testing.md index 482952c6ba..5c2845e516 100644 --- a/docs/development/testing.md +++ b/docs/development/testing.md @@ -394,12 +394,9 @@ paths it leaves out, and why, are in the workflow's header. weekly and on demand. It publishes the score the README badge shows and adds the findings to code scanning; it does not run on pull requests and blocks no merge. -`.github/workflows/docs-site.yml` builds the documentation site with `mkdocs build --strict` -on pull requests into `main` that touch `docs/`, `mkdocs.yml`, `llms.txt`, -`llms-install.md`, `scripts/docs_site/`, `scripts/codegen/page_summary.py` or the workflow -itself, and on every push to `main`, so a broken link or anchor fails the -`docs site / build` check. It publishes the site to GitHub Pages from `main` only while the -repository variable `DOCS_SITE_ENABLED` is `true`. +`npm --prefix docs run build` builds the documentation site from the +`docs/` package. The deployment configuration publishes the result at +`https://loom.clickhouse.com/docs/`. Retarget a stacked pull request to `main` or a `release/X.Y` line before pushing its next real change or required rebase. Editing the base alone does not trigger the default diff --git a/docs/index.md b/docs/index.md index 35ca029b0c..2f6a8c236e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -95,5 +95,5 @@ Contributors can start with the [repository guide](development/repository-guide. ## Also Find a definition in the [glossary](glossary.md) or a short answer in the [FAQ](faq.md). -Agents can use the [documentation index](../llms.txt) or the +Agents can use the [documentation index](https://loom.clickhouse.com/docs/llms.txt) or the [combined Markdown](https://loom.clickhouse.com/docs/llms-full.txt). diff --git a/mkdocs.yml b/mkdocs.yml index 618dcc7945..a38620936d 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,6 +1,6 @@ -# The documentation site, built from docs/ by .github/workflows/docs-site.yml. +# Legacy documentation configuration used by the translation parser. site_name: ClickHouse Loom -site_url: !ENV [LOOM_LEGACY_DOCS_URL, https://loom.clickhouse.com/docs/] +site_url: https://loom.clickhouse.com/docs/ site_description: >- Self-hosted MCP server that gives AI agents shared long-term memory, document search with citations and a code index, stored in ClickHouse. @@ -9,7 +9,6 @@ edit_uri: edit/main/docs/ docs_dir: docs theme: name: material - custom_dir: scripts/docs_site/overrides features: [navigation.sections, search.suggest, content.code.copy, content.action.edit] markdown_extensions: - admonition @@ -21,9 +20,6 @@ markdown_extensions: - name: mermaid class: mermaid format: !!python/name:pymdownx.superfences.fence_code_format -hooks: - - scripts/docs_site/locales.py - - scripts/docs_site/hooks.py validation: links: not_found: warn diff --git a/scripts/docs_site/overrides/main.html b/scripts/docs_site/overrides/main.html deleted file mode 100644 index 255e58f689..0000000000 --- a/scripts/docs_site/overrides/main.html +++ /dev/null @@ -1,32 +0,0 @@ -{% extends "base.html" %} -{% block htmltitle %} - {{ (loom_title if page else config.site_name) | e }} -{% endblock %} -{% block extrahead %} - {% include "partials/locales-head.html" %} - {% set desc = page.meta.description if page and page.meta and page.meta.description else config.site_description %} - - - - - - - - {% if page %} - - {% endif %} - {% if page and page.file %} - {# The page's Markdown copy, served beside it by hooks.py for agents that read Markdown. #} - - {% endif %} - {% if page and page.is_homepage %} - {# Search-console ownership proof for the GitHub Pages site; read on the home page only. #} - - - {% endif %} -{% endblock %} - -{% block content %} - {% include "partials/locales-switch.html" %} - {{ super() }} -{% endblock %} diff --git a/scripts/i18n/automation.py b/scripts/i18n/automation.py index ca94336738..1026dd2646 100644 --- a/scripts/i18n/automation.py +++ b/scripts/i18n/automation.py @@ -410,33 +410,6 @@ def checks_succeeded(checks: list[dict[str, Any]]) -> bool: ) -def sync_site(repository: str) -> None: - """Retry a suppressed or failed deployment after a generated PR has merged.""" - owner = repository.split("/")[0] - merged = api( - f"repos/{repository}/pulls?state=closed&head={owner}:i18n/update&base=main&per_page=10" - ) - merged = [item for item in merged if item.get("merged_at") and item.get("merge_commit_sha")] - if not merged: - return - latest = max(merged, key=lambda item: item["merged_at"]) - merge_sha = latest["merge_commit_sha"] - runs = api(f"repos/{repository}/actions/workflows/docs-site.yml/runs?branch=main&per_page=20") - for run in runs["workflow_runs"]: - if run["status"] == "completed" and run["conclusion"] != "success": - continue - if run["head_branch"] != "main" or not SHA.fullmatch(run["head_sha"]): - continue - ancestry = subprocess.run( - ["git", "merge-base", "--is-ancestor", merge_sha, run["head_sha"]], - cwd=t.ROOT, - capture_output=True, - ) - if ancestry.returncode == 0: - return - command("gh", "workflow", "run", "docs-site.yml", "--ref", "main") - - def rollout_changes_allowed(base: str, candidate: str, codes: list[str]) -> bool: """Retain deferred data; new hidden copies may preserve an earlier pending batch.""" changed = git("diff", "--name-status", "--no-renames", "-z", base, candidate).split("\0")[:-1] @@ -453,7 +426,6 @@ def rollout_changes_allowed(base: str, candidate: str, codes: list[str]) -> bool def finalize() -> None: """Merge only an exact successful hosted CI head, with repository protections.""" repository = os.environ["GITHUB_REPOSITORY"] - sync_site(repository) owner = repository.split("/")[0] prs = api(f"repos/{repository}/pulls?state=open&head={owner}:i18n/update&base=main&per_page=2") if len(prs) != 1: @@ -498,12 +470,11 @@ def finalize() -> None: git("restore", "--source", sha, "--worktree", "--", "README.md", "i18n") if t.check(skip_stale=True): raise ValueError("translation validation failed before merge") - command("mkdocs", "build", "--strict") + command("npm", "--prefix", "docs", "run", "build") command("gh", "pr", "merge", str(pr["number"]), "--squash", "--match-head-commit", sha) merged = api(f"repos/{repository}/pulls/{pr['number']}") if not merged["merged"] or merged["head"]["sha"] != sha: raise ValueError("translation merge readback does not match validated head") - command("gh", "workflow", "run", "docs-site.yml", "--ref", "main") def main(argv: list[str] | None = None) -> int: diff --git a/tests/unit/test_i18n_automation.py b/tests/unit/test_i18n_automation.py index 34de76eb8c..2df9cdc6d8 100644 --- a/tests/unit/test_i18n_automation.py +++ b/tests/unit/test_i18n_automation.py @@ -412,10 +412,10 @@ def api(path: str) -> Any: actual = a.command def command(*args: str, **kwargs: Any) -> str: - if args[0] == "mkdocs": + if args[0] == "npm": calls.append(args) if site_raises: - raise RuntimeError("strict site build failed") + raise RuntimeError("documentation build failed") return "" if args[0] != "gh": return actual(*args, **kwargs) @@ -433,17 +433,19 @@ def command(*args: str, **kwargs: Any) -> str: monkeypatch.setattr(a, "command", command) permitted = published_code in (approved.split() or list(a.t.ROLLOUT_LANGUAGES)) if merged and permitted and site_raises: - with pytest.raises(RuntimeError, match="strict site build failed"): + with pytest.raises(RuntimeError, match="documentation build failed"): a.finalize() else: a.finalize() merge_calls = [call for call in calls if call[1:3] == ("pr", "merge")] if merged and permitted and not site_raises: assert len(merge_calls) == 1 - assert calls.index(("mkdocs", "build", "--strict")) < calls.index(merge_calls[0]) + assert calls.index(("npm", "--prefix", "docs", "run", "build")) < calls.index( + merge_calls[0] + ) assert merge_calls[0][-2:] == ("--match-head-commit", sha) assert "--admin" not in merge_calls[0] and "--auto" not in merge_calls[0] - assert calls[-1] == ("gh", "workflow", "run", "docs-site.yml", "--ref", "main") + assert calls[-1] == merge_calls[0] else: assert merge_calls == [] assert not any(call[1:3] == ("workflow", "run") for call in calls) @@ -475,51 +477,6 @@ def command(*args: str, **kwargs: Any) -> str: assert calls[-1][-1] == f"expected_sha={previous}" -@pytest.mark.parametrize( - "site_result,expected_dispatch", [(None, True), ("failure", True), ("success", False)] -) -def test_scheduled_reconciliation_retries_suppressed_or_failed_site_deployment( - repository: Path, - monkeypatch: pytest.MonkeyPatch, - site_result: str | None, - expected_dispatch: bool, -) -> None: - sha = a.git("rev-parse", "HEAD") - runs = ( - [] - if site_result is None - else [ - { - "head_branch": "main", - "head_sha": sha, - "status": "completed", - "conclusion": site_result, - } - ] - ) - - def api(path: str) -> Any: - if "/pulls?" in path: - return [{"merged_at": "one", "merge_commit_sha": sha}] - return {"workflow_runs": runs} - - monkeypatch.setattr(a, "api", api) - actual = a.command - calls: list[tuple[str, ...]] = [] - - def command(*args: str, **kwargs: Any) -> str: - if args[0] == "gh": - calls.append(args) - return "" - return actual(*args, **kwargs) - - monkeypatch.setattr(a, "command", command) - a.sync_site("ClickHouse/loom") - assert bool(calls) is expected_dispatch - if expected_dispatch: - assert calls == [("gh", "workflow", "run", "docs-site.yml", "--ref", "main")] - - @pytest.mark.parametrize( "event,ref,expected,passed", [ @@ -669,31 +626,6 @@ def command(*args: str, **kwargs: Any) -> str: a.publish() -def test_finalize_retries_merged_site_while_next_translation_pr_waits_for_ci( - repository: Path, monkeypatch: pytest.MonkeyPatch -) -> None: - monkeypatch.setenv("GITHUB_REPOSITORY", "ClickHouse/loom") - monkeypatch.setenv("GITHUB_EVENT_NAME", "schedule") - sha = a.git("rev-parse", "HEAD") - calls: list[tuple[str, ...]] = [] - - def api(path: str) -> Any: - if "/pulls?state=closed" in path: - return [{"merged_at": "one", "merge_commit_sha": sha}] - if "/pulls?state=open" in path: - return [ - {"draft": False, "head": {"sha": sha, "repo": {"full_name": "ClickHouse/loom"}}} - ] - if "/actions/workflows/" in path: - return {"workflow_runs": []} - raise AssertionError(path) - - monkeypatch.setattr(a, "api", api) - monkeypatch.setattr(a, "command", lambda *args: calls.append(args) or "") - a.finalize() - assert calls == [("gh", "workflow", "run", "docs-site.yml", "--ref", "main")] - - def test_rollout_scope_preserves_generic_language_capability() -> None: assert a.t.ROLLOUT_LANGUAGES == ("zh-CN", "ja", "ko", "pt-BR", "es") assert {lang.code for lang in a.t.LANGUAGES} == {"zh-CN", "ja", "ko", "pt-BR", "es"} From 767af90427a34664e4b79291fde238e796aa1a3b Mon Sep 17 00:00:00 2001 From: Shaun Struwig <41984034+Blargian@users.noreply.github.com> Date: Tue, 24 Nov 2026 14:31:17 +0100 Subject: [PATCH 03/16] Restrict translation finalizer actions permission The finalizer reads a validating CI run but no longer dispatches the retired documentation publisher. Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com> --- .github/workflows/i18n.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/i18n.yml b/.github/workflows/i18n.yml index a48f8441f0..da645e912a 100644 --- a/.github/workflows/i18n.yml +++ b/.github/workflows/i18n.yml @@ -106,7 +106,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 permissions: - actions: write # Dispatch the docs deployment after merge. + actions: read # Read the validating CI run when finalizing translations. contents: write # Write the validated squash merge to main. pull-requests: write # Squash-merge the validated translation pull request. steps: From d463f27ef0c9413855949a2125e43f971de2c096 Mon Sep 17 00:00:00 2001 From: Shaun Struwig <41984034+Blargian@users.noreply.github.com> Date: Tue, 24 Nov 2026 14:58:20 +0100 Subject: [PATCH 04/16] Generate LLM documentation indexes on the site Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com> --- .claude/rules/settings.md | 2 +- docs/development/documentation-style.md | 28 +-- llms.txt | 219 ------------------------ scripts/codegen/docs_reference.py | 101 +---------- scripts/codegen/page_summary.py | 12 +- tests/unit/test_docs_reference.py | 26 --- 6 files changed, 22 insertions(+), 366 deletions(-) delete mode 100644 llms.txt diff --git a/.claude/rules/settings.md b/.claude/rules/settings.md index 56d5f53ca4..7d7fb14fbc 100644 --- a/.claude/rules/settings.md +++ b/.claude/rules/settings.md @@ -11,4 +11,4 @@ paths: - `Annotated[T, LIVE]` makes a field take a runtime override (`server/settings/_live.py`): only for a field read at call time, never captured at boot or used as a calibration fallback (`test_live_settings.py`, which pins the LIVE set). - A changed default is a `DefaultChange` in `server/settings/_history.py`, with the release and the reason (`test_settings_defaults.py`). - Regenerate the reference, the settings-file schema and the settings-file template: `python -m scripts.codegen.settings_reference`, `python -m scripts.codegen.settings_schema` and `python -m scripts.codegen.settings_example` (`loom.example.yaml`). -- The Helm chart, the operator guides, the compose files and `deploy/standalone/env.example` name settings by hand: a rename or removal changes every `git grep -nw -e LOOM_ -e ` hit that names this setting (the lowercase name is the settings file's key: the chart's `settingsFile`, CI). Leave generated output to its generator: `loom.example.yaml`, the generated pages and regions under `docs/reference/` (`configuration.md`, `operations/`, the `BEGIN GENERATED` regions) and the root `llms.txt` come from `settings_reference` and `docs_reference`, and the copies in `integrations/codex-plugin/` from `agent_plugin_sync`; rerun each one whose output names the setting. +- The Helm chart, the operator guides, the compose files and `deploy/standalone/env.example` name settings by hand: a rename or removal changes every `git grep -nw -e LOOM_ -e ` hit that names this setting (the lowercase name is the settings file's key: the chart's `settingsFile`, CI). Leave generated output to its generator: `loom.example.yaml`, the generated pages and regions under `docs/reference/` (`configuration.md`, `operations/`, the `BEGIN GENERATED` regions) come from `settings_reference` and `docs_reference`, and the copies in `integrations/codex-plugin/` from `agent_plugin_sync`; rerun each one whose output names the setting. diff --git a/docs/development/documentation-style.md b/docs/development/documentation-style.md index daae8f39af..8bc7124b47 100644 --- a/docs/development/documentation-style.md +++ b/docs/development/documentation-style.md @@ -33,7 +33,7 @@ nothing is close enough. This page explains each leg, how the rank is computed, which settings move it. ``` -`llms.txt` lists the first sentence of that paragraph for the page, and the documentation site uses it as the page's search description. Then, where they apply: the user-visible behaviour, the interfaces (operations, CLI, settings), how it works, limits and failure modes, and "Related" links. Architecture pages add **Source entry points** (paths and symbols) and **Invariants**. +The documentation site uses the first sentence of that paragraph as the page's search description and generates `llms.txt` from it. Then, where they apply: the user-visible behaviour, the interfaces (operations, CLI, settings), how it works, limits and failure modes, and "Related" links. Architecture pages add **Source entry points** (paths and symbols) and **Invariants**. ## Prerequisites @@ -82,19 +82,19 @@ Use these spellings everywhere; the [glossary](../glossary.md) defines them. ## Generated pages -These pages are rendered from the code. Edit the source, then run the generator. `make lint` runs each with `--check`, so a stale page fails CI. - -| Page | Source | Generator | -| ------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | ---------------------------------------------- | -| [reference/configuration.md](../reference/configuration.md) | comments above fields in `server/settings/` | `python scripts/codegen/settings_reference.py` | -| [reference/operations.md](../reference/operations.md) | `server.operations.registry.ALL_OPERATIONS` | `python scripts/codegen/docs_reference.py` | -| [`llms.txt`](https://github.com/ClickHouse/loom/blob/main/llms.txt) (repository root) | every page's title and the first sentence of its opening paragraph | `python scripts/codegen/docs_reference.py` | -| `reference/operations/.md` (one per group) | the op input/output models and the comments above their fields | `python scripts/codegen/docs_reference.py` | -| [reference/workers.md](../reference/workers.md) | `server/workers/registry.py` (`_WORKERS`) | `python scripts/codegen/docs_reference.py` | -| [reference/cli.md](../reference/cli.md) | the `loom` parser snapshot `tests/unit/snapshots/cli_tree.json` | `python scripts/codegen/docs_reference.py` | -| [reference/errors.md](../reference/errors.md) | `server/core/errors.py` | `python scripts/codegen/docs_reference.py` | -| [reference/status.md](../reference/status.md) | op `maturity` and the boolean settings of `server/settings/catalog.py` that load false | `python scripts/codegen/docs_reference.py` | -| [reference/schema.md](../reference/schema.md) | `schemas/schema.sql` | `python scripts/codegen/docs_reference.py` | +These pages are generated from the code or documentation source. Edit the source, then run the generator. `make lint` runs each with `--check`, so a stale page fails CI. + +| Page | Source | Generator | +| ----------------------------------------------------------- | -------------------------------------------------------------------------------------- | ---------------------------------------------- | +| [reference/configuration.md](../reference/configuration.md) | comments above fields in `server/settings/` | `python scripts/codegen/settings_reference.py` | +| [reference/operations.md](../reference/operations.md) | `server.operations.registry.ALL_OPERATIONS` | `python scripts/codegen/docs_reference.py` | +| `llms.txt` (documentation site) | the docs' page titles and opening paragraphs | Blume site build | +| `reference/operations/.md` (one per group) | the op input/output models and the comments above their fields | `python scripts/codegen/docs_reference.py` | +| [reference/workers.md](../reference/workers.md) | `server/workers/registry.py` (`_WORKERS`) | `python scripts/codegen/docs_reference.py` | +| [reference/cli.md](../reference/cli.md) | the `loom` parser snapshot `tests/unit/snapshots/cli_tree.json` | `python scripts/codegen/docs_reference.py` | +| [reference/errors.md](../reference/errors.md) | `server/core/errors.py` | `python scripts/codegen/docs_reference.py` | +| [reference/status.md](../reference/status.md) | op `maturity` and the boolean settings of `server/settings/catalog.py` that load false | `python scripts/codegen/docs_reference.py` | +| [reference/schema.md](../reference/schema.md) | `schemas/schema.sql` | `python scripts/codegen/docs_reference.py` | On the documentation site, Blume serves each page's Markdown copy beside the page and publishes `llms.txt`, `llms-full.txt`, and the repository's `llms-install.md`. diff --git a/llms.txt b/llms.txt deleted file mode 100644 index e38392469d..0000000000 --- a/llms.txt +++ /dev/null @@ -1,219 +0,0 @@ -# ClickHouse Loom - -> Loom is a self-hosted MCP server that gives AI agents shared long-term memory, document search with citations and a code index. It keeps its data in ClickHouse, with Postgres as an option for live memory and knowledge state, and serves it over MCP, HTTP and the Python and TypeScript SDKs. - -Start with [the docs map](docs/index.md). To install Loom, a coding agent reads [agent setup](docs/getting-started/agent-setup.md) and follows [agent-setup.txt](https://github.com/ClickHouse/loom/releases/latest/download/agent-setup.txt), which each release attaches with its pins filled in; for Cline or another MCP client, it follows [llms-install.md](llms-install.md). To connect to a running server: [connect a coding agent](docs/getting-started/connect-a-coding-agent.md). To decide whether Loom fits: [the overview](docs/getting-started/overview.md); for one need, [use cases](docs/use-cases/index.md). Every operation's fields are in [operations](docs/reference/operations.md) and the pages it links. - -## Getting started - -- [Overview](docs/getting-started/overview.md): Loom is a server that stores memory, documents, conversations, an entity graph and a code index for AI agents, as rows in ClickHouse, with Postgres as an option for live memory and knowledge state. -- [Quickstart](docs/getting-started/quickstart.md): Run Loom locally with Docker. -- [Set up Loom with your coding agent](docs/getting-started/agent-setup.md): This page is for a coding agent, Claude Code or Codex, asked to install Loom on the machine it runs on and to prove that the install works. -- [Shared memory for Claude Code, Codex and Cursor](docs/getting-started/connect-a-coding-agent.md): Loom gives Claude Code, Codex and Cursor shared long-term memory through plugins or MCP tools connected to the same self-hosted server. -- [Evaluate Loom](docs/getting-started/evaluate.md): Evaluate the decision you need to make, not every harness in the repository. -- [Your first agent](docs/getting-started/first-agent.md): This tutorial builds a small agent with the Python SDK. -- [Configure models and API keys](docs/getting-started/models-and-keys.md): Your coding agent, Loom's internal LLM and Loom's embedding model are separate choices. -- [What's included](docs/getting-started/whats-included.md): This page lists Loom's main capabilities, self-hosted from the Apache-2.0 repository: one section per area, each row linked to the page that covers it. -- [Install Loom as an MCP server](llms-install.md): This file is for a coding agent asked to set Loom up as an MCP server for its user. - -## Use cases - -- [Use cases](docs/use-cases/index.md): Each page answers one question people and agents ask when they look for a tool: what Loom does for that need and where to start. -- [Memory for coding agents across sessions and tools](docs/use-cases/agent-memory.md): Loom is a self-hosted MCP memory server and HTTP API for coding agents that need to share project decisions, corrections and lessons across sessions and tools. -- [Memory, recall, audit and erasure for autonomous agents](docs/use-cases/autonomous-agents.md): Loom provides self-hosted long-term memory for autonomous agents. -- [Code intelligence for C++, Python, TypeScript, Go, Rust, Java and infrastructure code](docs/use-cases/code-intelligence-by-language.md): Loom's code index answers a coding agent's structure questions in the languages a repository holds: where a symbol is defined, who calls it, and what a change touches. -- [A code index for coding agents](docs/use-cases/code-intelligence.md): Loom gives coding agents a shared index of your git repositories, served over MCP, so an agent asks a structure question and gets the lines that answer it instead of reading whole files. -- [Lower model cost for coding agents](docs/use-cases/coding-agent-cost.md): With the Loom plugin and code index, Claude Code answered questions about the ClickHouse codebase at 6% to 21% lower model cost than without it on all three measured question sets. -- [Document search and RAG for agents](docs/use-cases/document-search.md): Loom indexes your documents (Markdown and text, and PDF, `.docx` and `.pptx` files that its extractor service converts) and lets agents search them with citations over MCP, HTTP or the SDKs. -- [Build a knowledge factory for AI agents](docs/use-cases/knowledge-factory.md): A knowledge factory turns source documents and lessons from agent work into knowledge that teams can review and reuse. -- [Memory linked to code for coding agents](docs/use-cases/memory-linked-to-code.md): Loom links coding agents' memories to the functions, classes and files they name, follows them through refactors, and flags a memory when its code changes. -- [Shared memory for a software factory and multi-agent workflows](docs/use-cases/multi-agent.md): Choose shared agent memory when implementation and review run in separate sessions or tools. -- [Agent runs, traces and PR history](docs/use-cases/runs-and-pr-history.md): Loom records agent runs and conversations, checks bug drafts for duplicates and ranks candidate regression PRs without building the code. -- [Self-hosted agent memory on ClickHouse](docs/use-cases/self-hosted-clickhouse.md): Loom runs on your own infrastructure, with Docker or on Kubernetes with its Helm chart, and stores agent memory, documents, conversations and code indexes as tables in ClickHouse. - -## FAQ and glossary - -- [Frequently asked questions](docs/faq.md): Short answers to the first questions people ask. -- [Glossary](docs/glossary.md): Loom's terms, alphabetically, each defined once. - -## Concepts - -- [Identities and namespaces](docs/concepts/identities-and-namespaces.md): Loom answers two questions on every call: whose row is this (the identity tuple, plus two columns the server stamps), and may this caller touch it (the token, the namespace's grants and its classification). -- [Agentic memory](docs/concepts/memory.md): Agentic memory lets an AI agent store, retrieve and revise information as it works. -- [Retrieval and ranking](docs/concepts/retrieval-and-ranking.md): This page explains how `memory.search` finds rows. - -## Features - -- [Features](docs/features/index.md): Loom gives agents memory, source material, and records of prior work in a namespace they can access. -- [Conversations and sessions](docs/features/conversations-and-sessions.md): Loom keeps three kinds of session state, each in its own plane: -- [The dashboard](docs/features/dashboard.md): The dashboard is a React single-page app the Loom server serves at its root URL. -- [Entity graph](docs/features/entity-graph.md): Loom keeps an entity graph beside the memory rows, in the same ClickHouse database. -- [Knowledge documents](docs/features/knowledge.md): A knowledge document is text an agent looks things up in: a runbook, a specification, a README. -- [Namespaces and sharing](docs/features/namespaces-and-sharing.md): A namespace is the unit of isolation and sharing inside an org. -- [Runs](docs/features/runs.md): A run is one execution of a task, such as "triage issue 1234". -- [Tasks, decisions and policies](docs/features/tasks-and-decisions.md): Three planes sit beside memory for coordination between agents. -- [Unified search and context packs](docs/features/unified-search.md): `loom_search` searches memory, profile, knowledge, past conversations and readable issues and PRs across the caller's namespaces in one round trip. -- [Code index for coding agents over MCP](docs/features/code-index/overview.md): With code workers enabled for a repository, Loom indexes it into ClickHouse and answers structure questions through the `code.*` operations: where a symbol is defined, who calls it, what a change reaches, which merged PR touched a line. -- [Code index freshness](docs/features/code-index/freshness.md): The index trails the repository: it indexes merged commits on a configured branch, pass by pass, and each tier advances its own watermark. -- [History, PRs and releases](docs/features/code-index/history-and-prs.md): ClickHouse Loom's PR-history operations need merged-PR history. -- [Code operations](docs/features/code-index/operations.md): This page maps questions to `code.*` ops. -- [Adding repositories](docs/features/code-index/repositories.md): A fresh install indexes no repository. -- [Integrations](docs/features/integrations/index.md): Integrations put Loom's tools in front of a model, capture its conversations, or receive its telemetry. -- [Agent instructions](docs/features/integrations/agent-instructions.md): A short block in an agent's instruction file tells it when to load Loom's context, save a fact and use the code index instead of grepping or reading files. -- [Agent Substrate](docs/features/integrations/agent-substrate.md): Needs Agent Substrate v1.0.0 and Loom's Helm chart in one Kubernetes cluster: Substrate's egress gateway adds each agent's Loom token to its MCP calls. -- [Claude Code plugin](docs/features/integrations/claude-code.md): The `loom` plugin for Claude Code does three things in one install: -- [ClickStack and HyperDX](docs/features/integrations/clickstack.md): Loom always emits OpenTelemetry; the HyperDX sources, dashboards and the erasure step need configuring. -- [Codex plugin](docs/features/integrations/codex.md): The Codex plugin gives Codex the same Loom integration as Claude Code: MCP tools, hooks that capture the session and load a primer, and the code shunt. -- [Cursor](docs/features/integrations/cursor.md): Connect Cursor to Loom to save decisions and reuse lessons from earlier sessions. -- [Agent frameworks and orchestrators](docs/features/integrations/frameworks.md): The SDKs ship adapters that present Loom through a framework's own memory or retrieval interface. -- [The grep shim](docs/features/integrations/grep-shim.md): The grep shim is a `grep`/`rg` wrapper that appends each hit's enclosing function, from the code index, to the match line; it needs Node 18 or later, a viewer token and a repository in the code index. -- [Langfuse](docs/features/integrations/langfuse.md): Needs `LOOM_LANGFUSE_URL` and `LOOM_LANGFUSE_ADMIN_TOKEN`; nothing is sent until both are set. -- [Connect to Loom's MCP memory server](docs/features/integrations/mcp-clients.md): An MCP memory server lets AI agents save and retrieve durable facts through the Model Context Protocol. -- [OKF bundles](docs/features/integrations/okf.md): A namespace can be rendered as an OKF (Open Knowledge Format) v0.2 bundle: one Markdown file per memory with YAML frontmatter, an `index.md` per directory listing each concept with a one-line description, and a `log.md` of changes. -- [VS Code](docs/features/integrations/vscode.md): GitHub Copilot in VS Code can save and retrieve project decisions through Loom's MCP server over streamable HTTP. -- [Conflicts and refusal](docs/features/memory/conflicts-and-refusal.md): Every memory write is judged against the facts the namespace already holds. -- [Extraction from transcripts](docs/features/memory/extraction.md): `memory.set_from_messages` takes a transcript and the server decides what in it is durable. -- [History and provenance](docs/features/memory/history-and-provenance.md): Every write to memory makes a new version; nothing is edited in place. -- [Procedures and learnings](docs/features/memory/procedures-and-learnings.md): Procedural memory gives AI agents reusable steps for recurring tasks and evidence from earlier runs. -- [Retention and erasure](docs/features/memory/retention-and-erasure.md): Loom deletes no memory unless its writer, the namespace owner or the operator asks. -- [Search and ask](docs/features/memory/search-and-ask.md): `memory.search` returns ranked hits for the agent to read. -- [Working memory and profiles](docs/features/memory/working-memory-and-profiles.md): Two planes hold text an agent is given every time instead of finding it by search: -- [Writing memory](docs/features/memory/writing.md): A memory is one claim stored under a key in a namespace. -- [Audit log](docs/features/observability/audit.md): Audit rows, the `audit_verifier` worker and the checkpoint chain are on by default. -- [Cost and usage](docs/features/observability/cost-and-usage.md): Loom records every upstream dollar it spends on embedding and LLM calls against the operation that spent it, in the per-operation ledger `loom.agent_events`. -- [Telemetry](docs/features/observability/telemetry.md): Loom reports on itself in three layers: -- [Issue duplicate checks and regression candidates for agents](docs/features/tracker/overview.md): With `LOOM_TRACKER_ORG` set and a registered source, Loom lets agents check whether a bug is already reported and rank changes that may have introduced a regression, using tracker records and indexed PR history. -- [Maintain a GitHub tracker record](docs/features/tracker/github-feed.md): `loom tracker-feed` copies repository issues, pull requests, issue comments and inline review comments into a team's dedicated ClickHouse database. -- [Tracker record contract](docs/features/tracker/record-contract.md): The `tracker.*` ops, and the tracker legs of `code.*` and `loom_search`, read a team's issues, pull requests and incidents live from the team's own ClickHouse with a read-only credential. - -## Guides - -- [Guides](docs/guides/index.md): Choose a task to connect an agent, put shared context to work, or evaluate a workflow. -- [Integrate Loom into an agent](docs/guides/agent-integration.md): This guide covers what an agent sends to Loom and how it reads the answers: the client surface, the identity, what to write, and how to read. -- [Choose retrieval scope from the audience](docs/guides/audience-scoped-retrieval.md): Needs an end-user issuer (`LOOM_JWT_END_USER_ISSUERS_JSON`): an agent host signs each request as the person who asked, and picks the collections a reply may draw on from who will read it. -- [Code tools for model integrations](docs/guides/code-tools.md): An indexed code namespace and a token with read access let an SDK tool loop investigate definitions, behavior and relationships with `loom_code_lookup`. -- [Compare self-hosted memory tools for coding agents](docs/guides/compare-coding-agent-memory.md): Choose memory by what the next coding session needs. -- [Debug a request](docs/guides/debugging.md): Loom tags everything one request does with the same id, so tracing a request is a join. -- [Customize the extraction pipeline](docs/guides/extraction-pipeline.md): `memory.set_from_messages` runs its transcript through an ordered list of steps that share one state. -- [Headless bots](docs/guides/headless-bots.md): A headless bot runs with no person to paste a token, notice a silent failure or say "remember this". -- [Import ClickGap memory](docs/guides/importing-clickgap-memory.md): `loom import-clickgap` loads one SQLite export shape, a ClickGap `lessons` store, into a Loom namespace; skip this page unless you have such an export. -- [Store an investigation agent's memory](docs/guides/investigation-agent-memory.md): An investigation agent produces several kinds of state, and Loom has a plane for each. -- [Optimize a namespace from its audit](docs/guides/optimize-namespace.md): A writer that uses `memory.set` as an object store (JSON blobs under hash keys, leases as memories, documents as claims) leaves every table consistent and recall useless. -- [Tune Loom's performance](docs/guides/performance-tuning.md): Every lever on this page is a setting or a request field. -- [Query Loom from Postgres](docs/guides/query-from-postgres.md): This guide reads a tenant's memories, conversations and usage from the org's own Postgres, where they can be joined with the application's tables. -- [Answer repository questions without a local checkout](docs/guides/repository-questions.md): An AI agent can answer questions about a Git repository without cloning it onto the machine that runs the agent. -- [How to choose AI software factory tools](docs/guides/software-factory-tools.md): An AI software factory coordinates agents and existing development tools to take work from an issue to a tested change. -- [Teaching with Loom](docs/guides/teaching.md): Loom can serve as the lab environment for a course on AI agents, information retrieval, databases or software engineering. -- [Tokens and grants](docs/guides/tokens-and-grants.md): Every call carries one JWT. -- [Trace and resume long agent runs](docs/guides/trace-and-resume.md): A long run (process 300 files, crawl a repository, work through a plan) can stop part way: a crash, a full context window, a deploy, a pause. -- [Use Loom without the dashboard](docs/guides/without-the-dashboard.md): Everything the `/me` dashboard does can be done from a terminal, a script or an agent's shell. - -## Operations - -- [Operations](docs/operations/index.md): Deploy Loom for a team, choose storage and identity settings, and maintain a running instance. -- [Exporting usage to a data warehouse](docs/operations/analytics-export.md): `loom export-analytics` writes one UTC day of usage and a snapshot of the namespaces to an S3 bucket as Parquet files, one file per entity per day, for a data warehouse to load. -- [Native assistant setup](docs/operations/assistant.md): The assistant runs inside Loom and uses the same dashboard, HTTP, MCP and SDK interfaces. -- [Backup and recovery](docs/operations/backup-and-recovery.md): A Loom backup is a ClickHouse backup, plus the document bucket while any catalog row names an object in it, and under the Postgres authority a backup of Postgres too. -- [Attaching the first cell](docs/operations/cell-attach.md): `loom cell attach` turns a prepared first cell (`loom cell prepare`, mode `recording`, directory row `attaching`) into a `serving` one: it places every org the cell holds in the router's directory, raises the cell's mode to `enforced` and… -- [Cell control upgrades and recovery](docs/operations/cell-control.md): Cell control mutations require generation-aware clients and router handlers, and direct access to the cell's Postgres. -- [Update a cell's configuration or addresses](docs/operations/cell-update.md): `loom cell update` reserves a configuration before the cell accepts it. -- [ClickHouse Cloud and Managed Postgres](docs/operations/clickhouse-cloud.md): This guide runs Loom on Kubernetes over two managed services: ClickHouse Cloud for projections, vectors, history and analytics, and ClickHouse Managed Postgres as the memory authority. -- [Code index operations](docs/operations/code-index-operations.md): This page covers how to enable the code index workers, configure repositories and keep the index current; the code index runs only when an operator enables its workers and configures repositories. -- [Deployment](docs/operations/deployment.md): Loom is one server image plus ClickHouse (and Postgres, under `LOOM_STORAGE_AUTHORITY=postgres`), with the document extractor service as an image of its own (container images). -- [Kubernetes](docs/operations/kubernetes.md): `deploy/helm/loom` runs Loom as N identical replicas on Kubernetes: one Deployment of web pods over one ClickHouse service, each pod a full replica. -- [Maintenance](docs/operations/maintenance.md): Every command here is a `loom` subcommand; run it inside the container that has the deployment's environment (`docker exec loom-server loom …`, or `loom-workers` in a split deployment). -- [Monitoring](docs/operations/monitoring.md): This page says what to watch. -- [Copying a namespace to another Loom](docs/operations/okf-sync.md): A job inside the private network copies one namespace from a private Loom to a public one on a schedule: `loom export-okf` reads it from the private Loom, and `loom import-okf --prune` writes it to the public Loom. -- [Postgres memory authority](docs/operations/postgres.md): This guide sets up a Loom deployment whose live memory and knowledge document heads are held in Postgres, on ClickHouse Managed Postgres or on a self-hosted Postgres, and covers what to check before it serves. -- [Running N replicas](docs/operations/replicas.md): Every Loom process is a full replica. -- [Runtime settings](docs/operations/runtime-settings.md): Every setting is an environment variable `LOOM_` read at startup, and can also go in the YAML settings file (configuration reference). -- [Single sign-on (OIDC)](docs/operations/sso.md): Loom can hand the human sign-in to an OpenID Connect identity provider. -- [Supported versions](docs/operations/supported-versions.md): Releases N and N−1 get fixes, and an SDK at `X.Y` works with a server at `X.Y` or `X.(Y−1)`. -- [Troubleshooting](docs/operations/troubleshooting.md): Each entry gives a symptom, the check that confirms its cause, and the fix. -- [Upgrades](docs/operations/upgrades.md): An upgrade replaces the image (and the document extractor's, which holds no state) and applies the migrations the new build carries. - -## Reference - -- [Reference](docs/reference/index.md): Look up SDKs, request and response fields, CLI commands, and server settings. -- [CLI reference](docs/reference/cli.md): `loom` is the one command-line entry point for running, maintaining and connecting to a Loom deployment. -- [Configuration reference](docs/reference/configuration.md): Every setting is declared in one file, `server/settings/catalog.py`, and is an environment variable `LOOM_` read at startup into `server.settings.settings`. -- [Environment variables reference](docs/reference/environment.md): Almost everything Loom is configured with is a settings field: the environment variable `LOOM_` of a field on `server.settings.Settings`, listed with its default and meaning in the generated configuration reference. -- [Errors reference](docs/reference/errors.md): Every refusal Loom makes carries a stable, upper-case `code`. -- [Extractor contract](docs/reference/extractor-contract.md): An extractor is an HTTP service the Loom server sends an original file to and gets its extraction artifact back from. -- [Go SDK for AI agent memory](docs/reference/go-sdk.md): The Go SDK stores and retrieves agent memory from a running Loom server over HTTP. -- [HTTP API reference](docs/reference/http-api.md): Every Loom operation is one HTTP endpoint, `POST /v1/`, generated from the operation registry in `server/operations/` (`server/transport/http.py`, `build_router`). -- [MCP reference](docs/reference/mcp.md): Loom serves its operations as MCP tools at `/mcp`. -- [Operations reference](docs/reference/operations.md): An operation (op) is one named unit of work on the Loom wire, such as `memory.set` or `code.search`. -- [Python SDK reference](docs/reference/python-sdk.md): The Python SDK (`clickhouse-loom`, source in `sdk/python/loom/`) is an async client over the HTTP API. -- [Rust SDK](docs/reference/rust-sdk.md): The `clickhouse-loom` crate provides typed async and blocking calls for every registered Loom operation. -- [Schema reference](docs/reference/schema.md): Loom keeps its ClickHouse state in the `loom` and `loom_telemetry` databases. -- [SQL surface](docs/reference/sql-surface.md): The SQL surface is a set of read-only ClickHouse views over a tenant's memories, memory history, conversations and request ledger. -- [Status of Loom's surfaces](docs/reference/status.md): This page counts each op group's stable ops, names its experimental ones, and lists every boolean setting that loads false, so a caller can tell, before relying on an op or a switch, whether it is stable and whether it is on by default. -- [TypeScript SDK reference](docs/reference/typescript-sdk.md): The TypeScript SDK (`@clickhouse/loom`, source in `sdk/typescript/src/`) is a typed client over the HTTP API. -- [Workers reference](docs/reference/workers.md): A worker is a supervised background loop: one pass function run on an interval by the worker supervisor. - -## Architecture - -- [Microsoft Agent Framework context provider](docs/architecture/agent-framework-adapter.md): `LoomContextProvider` implements the framework's context-provider interface over the asynchronous Python SDK. -- [Agno user-memory database](docs/architecture/agno-adapter.md): The Agno adapter implements the user-memory methods of its 3.2 `BaseDb` interface through the synchronous Loom SDK. -- [Assistant design](docs/architecture/assistant.md): Loom's native assistant answers namespace questions through bounded model turns and read-only operations, under the caller's identity. -- [Cells](docs/architecture/cells.md): A deployment's memory can outgrow one Postgres primary and one ClickHouse service, and an org may want its memory in services of its own. -- [Claude API memory file tree](docs/architecture/claude-memory-adapter.md): The Claude API memory adapter implements the framework's Python memory-tool bases and TypeScript memory handlers through Loom knowledge documents. -- [ClickHouse](docs/architecture/clickhouse.md): Durable Loom state lives in ClickHouse, except document bytes in an optional S3-compatible bucket and, under the Postgres memory authority, the Postgres tables: live memory, knowledge state and the records beside them. -- [Code index architecture](docs/architecture/code-index-architecture.md): This page is the inside view of the code index: how files become chunks, symbols and edges, and how the two tiers stay current. -- [Cost budgets](docs/architecture/cost-budgets.md): Namespace and named-user caps use the rolling 24-hour cost ledger in `agent_events`. -- [Definition drafts](docs/architecture/definition-drafts.md): Needs `knowledge_gaps_enabled` for gap drafts or `knowledge_query_history_enabled` for query history. -- [Dify tools adapter](docs/architecture/dify-adapter.md): The Dify plugin calls Loom through the Python SDK and stores no content locally. -- [Document extraction](docs/architecture/document-extraction.md): An uploaded original is parsed into one shape, the extraction artifact, by an extractor service: a separate process with its own dependencies, never the Loom server. -- [Document sources](docs/architecture/document-sources.md): A document source pulls files from a document store (a shared-folder store, a page store, a project tracker, a meeting store) into a namespace's documents and keeps them in step, on any shared namespace or collection. -- [Documentation translation requests](docs/architecture/documentation-translation.md): The translation generator splits prepared English text into bounded requests, then checks the assembled translation before writing it. -- [Failure and recovery](docs/architecture/failure-and-recovery.md): The primary write and every access decision fail closed. -- [GitHub tracker feed](docs/architecture/github-feed.md): The GitHub feed maintains a team's tracker record in the team's ClickHouse database. -- [Google ADK memory service](docs/architecture/google-adk-adapter.md): The Google ADK adapter implements the framework's memory service through Loom's Python and TypeScript SDKs. -- [Haystack document store and retriever](docs/architecture/haystack-adapter.md): The optional Haystack 3.5 adapter implements its document-store protocol and a native retrieval component through the synchronous Loom SDK. -- [Knowledge gaps](docs/architecture/knowledge-gaps.md): Loom records the searches that found nothing a caller could use and groups them, once a day, into knowledge gaps: the questions several people asked that the namespace's memory and documents do not answer. -- [Live connected-source search](docs/architecture/live-source-search.md): `search.query(live=true)` adds an ephemeral section from the asker's own connected Drive and Notion registrations. -- [LLM and embedding architecture](docs/architecture/llm-architecture.md): Loom uses pluggable embedders and model clients configured through server settings. -- [Memory architecture](docs/architecture/memory-architecture.md): The memory plane stores facts in `loom.memory`, makes them searchable through `loom.memory_embeddings`, and derives evidence, chunks, graph rows and statistics from them. -- [Memory consent and derived text](docs/architecture/memory-consent.md): A deletion contracts memory and records content refusal before its tombstone commits. -- [n8n adapter](docs/architecture/n8n-adapter.md): The n8n community package stores conversation history and durable facts in a Loom deployment through the TypeScript SDK. -- [OpenAI Agents conversation sessions](docs/architecture/openai-agents-sessions.md): `LoomSession` implements the native Python and TypeScript session interfaces over Loom episodic memories. -- [Pipecat demonstration recording](docs/architecture/pipecat-demo-recording.md): The optional `pipecat-demo.yml` workflow renders a timestamped execution visualization of an authenticated native Pipecat text-memory check. -- [Provider reconfiguration](docs/architecture/provider-reconfiguration.md): Loom stores dashboard model configuration as encrypted, versioned rows in `loom.provider_configuration`. -- [Rolling upgrades: builds N-1 and N side by side](docs/architecture/rolling-upgrades.md): Every Loom process is a full replica behind one URL, and an upgrade replaces them one at a time. -- [Security](docs/architecture/security.md): Loom separates tenants by columns: every row carries the identity tuple, and every read filters on it. -- [Server layout](docs/architecture/server-layout.md): `server/` is organised by domain. -- [Sharing knowledge](docs/architecture/sharing.md): A collection is a namespace that only grants open. -- [Document source push notifications](docs/architecture/source-push.md): Needs `LOOM_KNOWLEDGE_SOURCE_PUSH_ENABLED=true` to request document source syncs from provider notifications. -- [Storage authority: Postgres for live memory, ClickHouse for search](docs/architecture/storage-authority.md): Loom runs with one of two memory authorities, chosen per deployment by `LOOM_STORAGE_AUTHORITY`. -- [Storage layout: which store holds each table, and why](docs/architecture/storage-layout.md): Each Loom table belongs in Postgres or ClickHouse by how it is read and written; this page places every table, with the wave that moves it. -- [System overview](docs/architecture/system-overview.md): Loom is a Python server (a FastAPI application plus a supervisor of background workers) and ClickHouse, with Postgres as an option for live memory and knowledge state. - -## Benchmarks - -- [Benchmarks overview](docs/benchmarks/overview.md): Ranking levers, similarity gates, cache thresholds and extraction prompts change behaviour that a unit test cannot judge. -- [Adding a benchmark case, dataset or suite](docs/benchmarks/adding-a-case.md): The committed sets are small (set sizes), so a new case is the cheapest way to improve the suite. -- [Benchmark coverage](docs/benchmarks/coverage.md): This matrix shows which parts of Loom's memory, knowledge and code flows have a reproducible public measurement. -- [Benchmark methodology](docs/benchmarks/methodology.md): This page covers what the harnesses compute, how a delta is judged against noise, when two numbers compare, and where the numbers are biased. -- [Benchmark results](docs/benchmarks/results.md): This page lists only numbers that a committed file reproduces. -- [Running the benchmarks](docs/benchmarks/running.md): Run every command from the repository root with the checkout's interpreter and the root first on `PYTHONPATH`: -- [SDK issue resolution](docs/benchmarks/sdk-issue-resolution.md): The SDK issue harness measures proposed patches with and without Loom code lookup. -- [Skill eval](docs/benchmarks/skill-eval.md): The skill eval grades the `loom-memory` skill by the namespace an agent leaves behind. -- [Proposed software factory pilot](docs/benchmarks/software-factory-pilot.md): This draft measures whether application-owned context retrieval changes objective resolution, total calls, tokens, cost per successful resolution and elapsed time. - -## Optional - -- [Add a ClickHouse table or column](docs/development/adding-a-table.md): Loom's ClickHouse state is tables in the `loom` and `loom_telemetry` databases; under the Postgres memory authority, live memory, knowledge state and the records beside them are in Postgres. -- [Add a background worker](docs/development/adding-a-worker.md): A worker is a row in `server/workers/registry.py` (`_WORKERS`) plus a module with one pass function. -- [Add an operation](docs/development/adding-an-operation.md): An operation is declared once, in the registry. -- [Add language support to the code index](docs/development/adding-language-support.md): The code index reads a repository in two tiers: -- [Code generation](docs/development/code-generation.md): Several files in the repository are derived from the code: the SDKs' operation tables and wire types, the reference pages, the Codex plugin's copies, the op reach manifest, the schema dump. -- [Curation loop design](docs/development/curation-loop-design.md): This page is the design of the curation loop, which turns what people ask into definitions an organization stands behind. -- [Dashboard design](docs/development/dashboard-design.md): The dashboard at `/` is built on ClickHouse's design system, Click UI, in its dark theme. -- [Documentation style guide](docs/development/documentation-style.md): How to place a new page in the right section, write it in the house style, and pass the documentation checks on the first push. -- [Extend Loom](docs/development/extending-loom.md): Loom has one registry per kind of thing: operations, workers, settings, providers, language lanes, extraction steps and tracker sources. -- [Local development](docs/development/local-development.md): This page sets up a checkout for working on Loom's code. -- [Migrations](docs/development/migrations.md): This page holds the rules for writing a migration. -- [Release process](docs/development/release-process.md): Loom follows SemVer: the server, both SDKs, the web app, the root skills (`loom-code`, `loom`), the Cursor plugin and the Agent Plugins package that ship them, and the Gemini CLI extension share one version `X.Y.Z`. -- [Repository guide](docs/development/repository-guide.md): What every top-level directory holds, where a concern lives inside `server/`, the order to read the code in, and the conventions a pull request fails without. -- [Testing](docs/development/testing.md): Which suite a test belongs in, what each suite needs to run, how tests skip when their environment is missing, which gates CI enforces, and how to regenerate what they pin. diff --git a/scripts/codegen/docs_reference.py b/scripts/codegen/docs_reference.py index 09233e504e..82829cdc0c 100644 --- a/scripts/codegen/docs_reference.py +++ b/scripts/codegen/docs_reference.py @@ -19,8 +19,7 @@ - `status_ops`, `status_switches`: each op group's stable and experimental ops (op `maturity`), and every boolean setting in `server/settings/catalog.py` that loads false -It also writes `llms.txt` at the repository root (every doc page with its outcome line, for -agents), and one fully generated page per op group, `docs/reference/operations/.md`, +It also writes one fully generated page per op group, `docs/reference/operations/.md`, with every op's input and output fields (type, default, and the comment written above the field in its model). @@ -47,12 +46,7 @@ sys.path.insert(0, str(ROOT)) from scripts.codegen.common import write_atomic # noqa: E402 -from scripts.codegen.page_summary import ( # noqa: E402 - SECTIONS, - first_sentence, - page_key, - page_summary, -) +from scripts.codegen.page_summary import first_sentence # noqa: E402 from scripts.codegen.sdk_py_admin_gen import render_admin_routes_table # noqa: E402 from server.core.errors import ( # noqa: E402 CLASS_BY_CODE, @@ -391,83 +385,6 @@ def render_group_pages() -> dict[str, str]: return {f"{g}.md": render_group(g, ops) for g, ops in _op_groups().items()} -# --- llms.txt ----------------------------------------------------------------- - -LLMS_TXT = ROOT / "llms.txt" -_AGENT_SETUP_TXT = "https://github.com/ClickHouse/loom/releases/latest/download/agent-setup.txt" - - -# llms.txt's sections in order: what Loom is for and how to use it first ("faq" is the FAQ and -# glossary block), then operations and reference; Development is last, as the Optional section -# the llms.txt format lets a reader skip. -_LLMS_ORDER = ( - "getting-started", - "use-cases", - "faq", - "concepts", - "features", - "guides", - "operations", - "reference", - "architecture", - "benchmarks", - "development", -) - - -def render_llms_txt() -> str: - """The llms.txt index agents read: every doc page, grouped, with its outcome line.""" - docs = ROOT / "docs" - out = [ - "# ClickHouse Loom", - "", - "> Loom is a self-hosted MCP server that gives AI agents shared long-term memory, " - "document search with citations and a code index. It keeps its data in ClickHouse, " - "with Postgres as an option for live memory and knowledge state, and serves it over " - "MCP, HTTP and the Python and TypeScript SDKs.", - "", - "Start with [the docs map](docs/index.md). To install Loom, a coding agent reads " - "[agent setup](docs/getting-started/agent-setup.md) and follows " - f"[agent-setup.txt]({_AGENT_SETUP_TXT}), " - "which each release attaches with its pins filled in; for Cline or another MCP " - "client, it follows [llms-install.md](llms-install.md). To connect to a running " - "server: [connect a coding agent](docs/getting-started/connect-a-coding-agent.md). " - "To decide whether Loom fits: [the overview](docs/getting-started/overview.md); for " - "one need, [use cases](docs/use-cases/index.md). Every operation's fields are in " - "[operations](docs/reference/operations.md) and the pages it links.", - "", - ] - - def entry(path: Path) -> str: - title, outcome = page_summary(path) - rel = path.relative_to(ROOT).as_posix() - return f"- [{title}]({rel})" + (f": {outcome}" if outcome else "") - - titles = {sub: heading for heading, sub in SECTIONS} - if sorted(_LLMS_ORDER) != sorted([*titles, "faq"]): - raise ValueError("_LLMS_ORDER must name every section in SECTIONS once") - for sub in _LLMS_ORDER: - if sub == "faq": - out.append("## FAQ and glossary\n") - out += [entry(docs / "faq.md"), entry(docs / "glossary.md"), ""] - continue - # In the sidebar's order (page_key); the per-group operation pages are reached through - # docs/reference/operations.md. - pages = sorted( - (p for p in (docs / sub).rglob("*.md") if p.parent != GROUP_DIR), - key=lambda p: page_key(p.relative_to(docs).as_posix()), - ) - if not pages: - continue - out.append(f"## {'Optional' if sub == 'development' else titles[sub]}\n") - out += [entry(p) for p in pages] - if sub == "getting-started": - # The other install route, for clients without a Loom plugin, closes the section. - out.append(entry(ROOT / "llms-install.md")) - out.append("") - return "\n".join(out).rstrip("\n") + "\n" - - # --- workers ------------------------------------------------------------------ @@ -780,23 +697,9 @@ def main(argv: list[str] | None = None) -> int: else: print(f"{rel} is current") stale |= _sync_group_pages(check=args.check) - stale |= _sync_file(LLMS_TXT, render_llms_txt(), check=args.check) return stale -def _sync_file(path: Path, text: str, *, check: bool) -> int: - rel = path.relative_to(ROOT).as_posix() - current = path.read_text(encoding="utf-8") if path.exists() else None - if check: - if current != text: - print(f"{rel} is stale: run {COMMAND}", file=sys.stderr) - return 1 - return 0 - if write_atomic(path, text.encode("utf-8")): - print(f"wrote {rel}") - return 0 - - def _sync_group_pages(*, check: bool) -> int: pages = render_group_pages() stale = 0 diff --git a/scripts/codegen/page_summary.py b/scripts/codegen/page_summary.py index 2732b59dfb..d3b7f3bfb1 100644 --- a/scripts/codegen/page_summary.py +++ b/scripts/codegen/page_summary.py @@ -1,9 +1,8 @@ """A documentation page's title and the first sentence of its opening paragraph. -`llms.txt` (scripts/codegen/docs_reference.py) lists this sentence for every page, and the -documentation site (scripts/docs_site/hooks.py) uses it as the page's meta description, -cut to the length a search engine shows, so both start with the same answer. Standard -library only: the site build imports it without the server's dependencies. +The documentation site uses this sentence as the page's meta description, cut to the +length a search engine shows. Standard library only: the site build imports it without the +server's dependencies. """ from __future__ import annotations @@ -11,8 +10,7 @@ import re from pathlib import Path -# The docs sections, as (title, folder under docs/), in the documentation site's sidebar -# order; llms.txt picks its own lead order from them (scripts/codegen/docs_reference.py). +# The docs sections, as (title, folder under docs/), in the documentation site's sidebar order. SECTIONS = ( ("Getting started", "getting-started"), ("Use cases", "use-cases"), @@ -27,7 +25,7 @@ ) # The pages that open their section right after its index page (Getting started's is its -# overview.md): llms.txt and the documentation site's sidebar list them in this order. +# overview.md): the documentation site's sidebar lists them in this order. LEAD_PAGES = ("getting-started/quickstart.md",) diff --git a/tests/unit/test_docs_reference.py b/tests/unit/test_docs_reference.py index 209adeea47..26d0204080 100644 --- a/tests/unit/test_docs_reference.py +++ b/tests/unit/test_docs_reference.py @@ -40,12 +40,6 @@ def test_every_group_field_page_is_current() -> None: assert not stale, f"stale field pages {stale}: run {gen.COMMAND}" -def test_llms_txt_is_current() -> None: - assert gen.LLMS_TXT.read_text(encoding="utf-8") == gen.render_llms_txt(), ( - f"llms.txt is stale: run {gen.COMMAND}" - ) - - def test_listed_under_all_column_matches_the_mcp_listing(monkeypatch) -> None: from server.operations import registry from server.operations.toolsets import _MCP_HIDDEN_OPS, SYNTHETIC_TOOL_OPS @@ -99,23 +93,3 @@ def test_status_ops_lists_each_experimental_op_once_and_counts_the_rest() -> Non listed = [name for _, names in rows.values() for name in names] assert sum(stable for stable, _ in rows.values()) + len(listed) == total assert rendered[0] == f"{total} operations, {len(listed)} of them experimental." - - -def test_llms_txt_puts_install_faq_and_contributor_pages_where_readers_expect() -> None: - text = gen.render_llms_txt() - sections = [line for line in text.splitlines() if line.startswith("## ")] - # Contributor pages are last, in the section the llms.txt format lets a reader skip. - assert sections[-1] == "## Optional" - # What Loom is for leads: an agent that cuts the file short still reads it. - assert sections[:4] == [ - "## Getting started", - "## Use cases", - "## FAQ and glossary", - "## Concepts", - ] - assert "## Development" not in sections - getting_started = text.split("## Getting started\n", 1)[1].split("\n## ", 1)[0] - entries = [line for line in getting_started.splitlines() if line.startswith("- [")] - # The plugin-free install route closes Getting started, after the section's own pages. - assert entries[-1].startswith("- [Install Loom as an MCP server](llms-install.md): ") - assert "docs/development/" in text.split("## Optional\n", 1)[1] From 897714fa9d256baca6c56afc16daacd4aa5cbb2d Mon Sep 17 00:00:00 2001 From: Shaun Struwig <41984034+Blargian@users.noreply.github.com> Date: Tue, 24 Nov 2026 15:16:12 +0100 Subject: [PATCH 05/16] Point locale LLM links at the documentation site Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com> --- docs/development/documentation-style.md | 2 +- i18n/es/docs/development/documentation-style.md | 6 +++--- i18n/ja/docs/index.md | 2 +- i18n/ko/docs/index.md | 2 +- i18n/pt-BR/docs/index.md | 2 +- i18n/zh-CN/docs/index.md | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/development/documentation-style.md b/docs/development/documentation-style.md index 8bc7124b47..6979b7386d 100644 --- a/docs/development/documentation-style.md +++ b/docs/development/documentation-style.md @@ -97,7 +97,7 @@ These pages are generated from the code or documentation source. Edit the source | [reference/schema.md](../reference/schema.md) | `schemas/schema.sql` | `python scripts/codegen/docs_reference.py` | On the documentation site, Blume serves each page's Markdown copy beside the page and -publishes `llms.txt`, `llms-full.txt`, and the repository's `llms-install.md`. +publishes `llms.txt` and `llms-full.txt`. `llms-install.md` remains in the repository. The site publishes generated pages from `i18n//docs/` under `//`. English is the canonical default. Each page keeps its docs-relative path under `//`, so the homepage and use-case index have distinct routes. The English homepage links to each available translated homepage, or to its translated use-case index when the homepage is unavailable. Each translated page links to its English source and to the available equivalent translations. A notice marks translations whose source blob differs from the current English page. Translation generation stays in `scripts/i18n/translate.py`; the site build does not call a translation provider. diff --git a/i18n/es/docs/development/documentation-style.md b/i18n/es/docs/development/documentation-style.md index f806e9c72d..3374a27e8a 100644 --- a/i18n/es/docs/development/documentation-style.md +++ b/i18n/es/docs/development/documentation-style.md @@ -43,7 +43,7 @@ nothing is close enough. This page explains each leg, how the rank is computed, which settings move it. ``` -`llms.txt` lista la primera oración de ese párrafo para la página, y el sitio de documentación la usa como descripción de búsqueda de la página. Después, donde correspondan: el comportamiento visible para el usuario, las interfaces (operaciones, CLI, ajustes), cómo funciona, límites y modos de fallo, y enlaces a "Related". Las páginas de arquitectura añaden **Source entry points** (rutas y símbolos) e **Invariants**. +El sitio de documentación usa la primera oración de ese párrafo como descripción de búsqueda de la página y genera `llms.txt` a partir de ella. Después, donde correspondan: el comportamiento visible para el usuario, las interfaces (operaciones, CLI, ajustes), cómo funciona, límites y modos de fallo, y enlaces a "Related". Las páginas de arquitectura añaden **Source entry points** (rutas y símbolos) e **Invariants**. @@ -108,7 +108,7 @@ Estas páginas se generan a partir del código. Edita la fuente y luego ejecuta | ------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | ---------------------------------------------- | | [reference/configuration.md](https://github.com/ClickHouse/loom/blob/main/docs/reference/configuration.md) | comentarios sobre los campos en `server/settings/` | `python scripts/codegen/settings_reference.py` | | [reference/operations.md](https://github.com/ClickHouse/loom/blob/main/docs/reference/operations.md) | `server.operations.registry.ALL_OPERATIONS` | `python scripts/codegen/docs_reference.py` | -| [`llms.txt`](https://github.com/ClickHouse/loom/blob/main/llms.txt) (raíz del repositorio) | el título de cada página y la primera frase de su párrafo inicial | `python scripts/codegen/docs_reference.py` | +| `llms.txt` (sitio de documentación) | los títulos de las páginas de documentación y los párrafos iniciales | compilación del sitio Blume | | `reference/operations/.md` (uno por grupo) | los modelos de entrada y salida de las ops y los comentarios sobre sus campos | `python scripts/codegen/docs_reference.py` | | [reference/workers.md](https://github.com/ClickHouse/loom/blob/main/docs/reference/workers.md) | `server/workers/registry.py` (`_WORKERS`) | `python scripts/codegen/docs_reference.py` | | [reference/cli.md](../reference/cli.md) | la instantánea del analizador de `loom` `tests/unit/snapshots/cli_tree.json` | `python scripts/codegen/docs_reference.py` | @@ -116,7 +116,7 @@ Estas páginas se generan a partir del código. Edita la fuente y luego ejecuta | [reference/status.md](https://github.com/ClickHouse/loom/blob/main/docs/reference/status.md) | la `maturity` de las ops y los ajustes booleanos de `server/settings/catalog.py` que se cargan como false | `python scripts/codegen/docs_reference.py` | | [reference/schema.md](https://github.com/ClickHouse/loom/blob/main/docs/reference/schema.md) | `schemas/schema.sql` | `python scripts/codegen/docs_reference.py` | -En el sitio de documentación, `scripts/docs_site/hooks.py` sirve la copia en Markdown de cada página junto a la propia página, en su URL más `index.html.md` y, para el índice de una sección, en `.md`, indicada mediante una etiqueta `` en la página; `llms.txt` con sus enlaces apuntando a esas copias; `llms-full.txt` (las páginas que explican qué es Loom y cómo empezar); y el `llms-install.md` del repositorio. +En el sitio de documentación, Blume publica `llms.txt` y `llms-full.txt`. `llms-install.md` permanece en el repositorio. El sitio publica las páginas generadas desde `i18n//docs/` bajo `//`. El inglés es el idioma predeterminado y canónico. Cada página conserva su ruta relativa a docs bajo `//`, de modo que la página de inicio y el índice de casos de uso tienen rutas distintas. La página de inicio en inglés enlaza a cada página de inicio traducida disponible, o a su índice de casos de uso traducido cuando la página de inicio no está disponible. Cada página traducida enlaza a su fuente en inglés y a las traducciones equivalentes disponibles. Un aviso marca las traducciones cuyo blob de origen difiere de la página actual en inglés. La generación de traducciones permanece en `scripts/i18n/translate.py`; la compilación del sitio no llama a ningún proveedor de traducción. diff --git a/i18n/ja/docs/index.md b/i18n/ja/docs/index.md index c525d2adc8..e5572013c1 100644 --- a/i18n/ja/docs/index.md +++ b/i18n/ja/docs/index.md @@ -211,4 +211,4 @@ Loom は、AI エージェント向けのメモリ、ドキュメント、コー ## 関連ページ -[用語集](glossary.md):Loom の用語を一か所にまとめて定義しています。[よくある質問](faq.md):最初に出てくる質問に、それぞれ一段落で答えます。[`llms.txt`](https://github.com/ClickHouse/loom/blob/main/llms.txt):エージェント向けに生成されたドキュメントの索引です。[`llms-full.txt`](https://loom.clickhouse.com/docs/llms-full.txt) には、Loom とは何か、どう始めるかを説明するページが 1 つのファイルにまとめられています。 +[用語集](glossary.md):Loom の用語を一か所にまとめて定義しています。[よくある質問](faq.md):最初に出てくる質問に、それぞれ一段落で答えます。[`llms.txt`](https://loom.clickhouse.com/docs/llms.txt):エージェント向けに生成されたドキュメントの索引です。[`llms-full.txt`](https://loom.clickhouse.com/docs/llms-full.txt) には、Loom とは何か、どう始めるかを説明するページが 1 つのファイルにまとめられています。 diff --git a/i18n/ko/docs/index.md b/i18n/ko/docs/index.md index 065336b048..398770ac10 100644 --- a/i18n/ko/docs/index.md +++ b/i18n/ko/docs/index.md @@ -228,4 +228,4 @@ TypeScript SDK, 그리고 대시보드를 통해 Loom에 접근합니다. 이 ## 함께 보기 -[용어집](glossary.md): Loom의 용어를 한곳에 정리했습니다. [자주 묻는 질문](faq.md): 가장 먼저 나오는 질문과 한 단락짜리 답변입니다. [`llms.txt`](https://github.com/ClickHouse/loom/blob/main/llms.txt): 에이전트를 위해 생성한 문서 색인입니다. [`llms-full.txt`](https://loom.clickhouse.com/docs/llms-full.txt)에는 Loom이 무엇인지, 어떻게 시작하는지를 설명하는 페이지가 하나의 파일에 담겨 있습니다. +[용어집](glossary.md): Loom의 용어를 한곳에 정리했습니다. [자주 묻는 질문](faq.md): 가장 먼저 나오는 질문과 한 단락짜리 답변입니다. [`llms.txt`](https://loom.clickhouse.com/docs/llms.txt): 에이전트를 위해 생성한 문서 색인입니다. [`llms-full.txt`](https://loom.clickhouse.com/docs/llms-full.txt)에는 Loom이 무엇인지, 어떻게 시작하는지를 설명하는 페이지가 하나의 파일에 담겨 있습니다. diff --git a/i18n/pt-BR/docs/index.md b/i18n/pt-BR/docs/index.md index 6a7bc4868c..40394218c7 100644 --- a/i18n/pt-BR/docs/index.md +++ b/i18n/pt-BR/docs/index.md @@ -228,6 +228,6 @@ O [CONTRIBUTING.md](https://github.com/ClickHouse/loom/blob/main/CONTRIBUTING.md ## Veja também [Glossário](https://github.com/ClickHouse/loom/blob/main/docs/glossary.md): os termos do Loom, definidos uma única vez. [Perguntas frequentes](faq.md): as primeiras perguntas, um -parágrafo para cada. [`llms.txt`](https://github.com/ClickHouse/loom/blob/main/llms.txt): um índice gerado da documentação para agentes; +parágrafo para cada. [`llms.txt`](https://loom.clickhouse.com/docs/llms.txt): um índice gerado da documentação para agentes; [`llms-full.txt`](https://loom.clickhouse.com/docs/llms-full.txt) reúne, em um único arquivo, as páginas que explicam o que é o Loom e como começar. diff --git a/i18n/zh-CN/docs/index.md b/i18n/zh-CN/docs/index.md index 7a789a2ac6..526c7257f8 100644 --- a/i18n/zh-CN/docs/index.md +++ b/i18n/zh-CN/docs/index.md @@ -211,4 +211,4 @@ Loom 是面向 AI agent 的记忆、文档和代码索引服务器,数据存 ## 另请参阅 -[术语表](https://github.com/ClickHouse/loom/blob/main/docs/glossary.md):Loom 的术语,每个只定义一次。[常见问题](faq.md):最先会遇到的问题,每个问题一段回答。[`llms.txt`](https://github.com/ClickHouse/loom/blob/main/llms.txt):为 agent 生成的文档索引;[`llms-full.txt`](https://loom.clickhouse.com/docs/llms-full.txt) 将说明 Loom 是什么以及如何开始使用的页面合并在一个文件中。 +[术语表](https://github.com/ClickHouse/loom/blob/main/docs/glossary.md):Loom 的术语,每个只定义一次。[常见问题](faq.md):最先会遇到的问题,每个问题一段回答。[`llms.txt`](https://loom.clickhouse.com/docs/llms.txt):为 agent 生成的文档索引;[`llms-full.txt`](https://loom.clickhouse.com/docs/llms-full.txt) 将说明 Loom 是什么以及如何开始使用的页面合并在一个文件中。 From a0a253f84f2d5ba248c78b9130e01c93ca362511 Mon Sep 17 00:00:00 2001 From: Shaun Struwig <41984034+Blargian@users.noreply.github.com> Date: Tue, 24 Nov 2026 15:23:28 +0100 Subject: [PATCH 06/16] Remove retired publisher from locale docs Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com> --- i18n/ja/docs/development/repository-guide.md | 2 +- i18n/ja/docs/development/testing.md | 2 +- i18n/ko/docs/development/testing.md | 2 +- i18n/pt-BR/docs/development/repository-guide.md | 2 +- i18n/pt-BR/docs/development/testing.md | 8 ++------ i18n/zh-CN/docs/development/repository-guide.md | 2 +- i18n/zh-CN/docs/development/testing.md | 2 +- 7 files changed, 8 insertions(+), 12 deletions(-) diff --git a/i18n/ja/docs/development/repository-guide.md b/i18n/ja/docs/development/repository-guide.md index 0b75c3a08e..69370b9688 100644 --- a/i18n/ja/docs/development/repository-guide.md +++ b/i18n/ja/docs/development/repository-guide.md @@ -29,7 +29,7 @@ | `tests/` | `unit/`、`integration/`、`analyzer/`、`code_lanes/`、`fixtures/`(後述) | | `examples/` | 実行可能な統合例(`claude_agent_loop.py`、`ledger_run.py`、`log_conversation.py`、`onboarding_walkthrough.py`)と、教師が自分のリポジトリにコピーするコースのスターター(`course-starter/`、[教育](../guides/teaching.md#hand-out-the-labs-as-an-assignment)) | | `i18n/` | README、クイックスタート、ユースケースページの機械翻訳。`LANGUAGES` の言語ごとに 1 フォルダー。`scripts/i18n/translate.py`(`.github/workflows/i18n.yml`)で生成され、手動では編集しない | -| `docs/` | このドキュメント。`mkdocs.yml` と `scripts/docs_site/` がドキュメントサイトとしてビルドする(`.github/workflows/docs-site.yml`) | +| `docs/` | このドキュメントと、`https://loom.clickhouse.com/docs/` で公開する Blume 設定 | | `.github/` | CI、リリース、スキャンのワークフロー(`workflows/`)、issue とプルリクエストのテンプレート、`social-preview.png`(Settings → General → Social preview でアップロードする画像。GitHub はアップロードされたコピーのみを読む) | | `.devcontainer/` | GitHub Codespaces のお試し環境:インストーラーで最新リリースをインストールし Claude Code を接続する dev container。開発環境ではない([クイックスタート](../getting-started/quickstart.md#try-it-in-github-codespaces)) | | `Dockerfile`, `Makefile`, `redeploy.sh`, `pyproject.toml`, `uv.lock` | サーバーのイメージ、タスクランナー、ブルー/グリーンのデプロイスクリプト、サーバーパッケージとそのロックファイル | diff --git a/i18n/ja/docs/development/testing.md b/i18n/ja/docs/development/testing.md index 8ac686ac80..387fcd3d2e 100644 --- a/i18n/ja/docs/development/testing.md +++ b/i18n/ja/docs/development/testing.md @@ -165,7 +165,7 @@ python scripts/gates/mypy_gate.py --update `.github/workflows/scorecard.yml` は、`main` へのプッシュ、毎週、および手動で OpenSSF Scorecard のチェックを実行します。README のバッジに表示されるスコアを公開し、検出結果をコードスキャンに追加します。プルリクエストでは実行されず、マージもブロックしません。 -`.github/workflows/docs-site.yml` は、`docs/`、`mkdocs.yml`、`llms.txt`、`llms-install.md`、`scripts/docs_site/`、`scripts/codegen/page_summary.py`、またはこのワークフロー自体に触れる `main` へのプルリクエストと、`main` へのすべてのプッシュで `mkdocs build --strict` によりドキュメントサイトをビルドします。そのため、壊れたリンクやアンカーは `docs site / build` チェックで失敗します。リポジトリ変数 `DOCS_SITE_ENABLED` が `true` の間だけ、`main` から GitHub Pages にサイトを公開します。 +`npm --prefix docs run build` は `docs/` パッケージからドキュメントサイトをビルドします。デプロイ設定は結果を `https://loom.clickhouse.com/docs/` で公開します。 別のブランチに積み重ねたプルリクエストは、`main` または `release/X.Y` ラインに付け替えるまでチェックが実行されません。マージコンフリクトのあるプルリクエストも同様です。プッシュ後に「no checks reported」と表示されたら、たいていはこのどちらかが原因です。 diff --git a/i18n/ko/docs/development/testing.md b/i18n/ko/docs/development/testing.md index 1e317abf80..3b10e50b42 100644 --- a/i18n/ko/docs/development/testing.md +++ b/i18n/ko/docs/development/testing.md @@ -173,7 +173,7 @@ python scripts/gates/mypy_gate.py --update `.github/workflows/scorecard.yml`은 `main`에 대한 푸시, 매주, 그리고 요청 시 OpenSSF Scorecard 검사를 실행합니다. README 배지에 표시되는 점수를 게시하고 결과를 코드 스캐닝에 추가하며, 풀 리퀘스트에서는 실행되지 않고 머지를 막지 않습니다. -`.github/workflows/docs-site.yml`은 `docs/`, `mkdocs.yml`, `llms.txt`, `llms-install.md`, `scripts/docs_site/`, `scripts/codegen/page_summary.py` 또는 워크플로 자체를 건드리는 `main`으로의 풀 리퀘스트와 `main`에 대한 모든 푸시에서 `mkdocs build --strict`로 문서 사이트를 빌드하므로, 깨진 링크나 앵커는 `docs site / build` 체크를 실패시킵니다. 저장소 변수 `DOCS_SITE_ENABLED`가 `true`인 동안에만 `main`에서 사이트를 GitHub Pages에 게시합니다. +`npm --prefix docs run build`는 `docs/` 패키지에서 문서 사이트를 빌드합니다. 배포 설정은 결과를 `https://loom.clickhouse.com/docs/`에 게시합니다. 다른 브랜치 위에 쌓인 풀 리퀘스트는 `main` 또는 `release/X.Y` 라인으로 대상을 변경하기 전까지 체크가 실행되지 않으며, 머지 충돌이 있는 풀 리퀘스트도 마찬가지입니다. 푸시 후 "no checks reported"가 보인다면 대개 둘 중 하나가 원인입니다. diff --git a/i18n/pt-BR/docs/development/repository-guide.md b/i18n/pt-BR/docs/development/repository-guide.md index e7f6c724c8..b8eb6f36dd 100644 --- a/i18n/pt-BR/docs/development/repository-guide.md +++ b/i18n/pt-BR/docs/development/repository-guide.md @@ -29,7 +29,7 @@ O que cada diretório de nível superior contém, onde cada responsabilidade fic | `tests/` | `unit/`, `integration/`, `analyzer/`, `code_lanes/`, `fixtures/` (abaixo) | | `examples/` | exemplos de integração executáveis (`claude_agent_loop.py`, `ledger_run.py`, `log_conversation.py`, `onboarding_walkthrough.py`) e o starter de curso que um professor copia para um repositório próprio (`course-starter/`, [ensino](https://github.com/ClickHouse/loom/blob/main/docs/guides/teaching.md#hand-out-the-labs-as-an-assignment)) | | `i18n/` | traduções automáticas do README, do quickstart e das páginas de casos de uso, uma pasta por idioma em `LANGUAGES`; geradas por `scripts/i18n/translate.py` (`.github/workflows/i18n.yml`), nunca editadas manualmente | -| `docs/` | esta documentação; `mkdocs.yml` e `scripts/docs_site/` a compilam como o site de documentação (`.github/workflows/docs-site.yml`) | +| `docs/` | esta documentação e a configuração do Blume que a publica em `https://loom.clickhouse.com/docs/` | | `.github/` | workflows de CI, release e varredura (`workflows/`), templates de issues e pull requests, e `social-preview.png`, a imagem enviada em Settings → General → Social preview (o GitHub lê apenas a cópia enviada) | | `.devcontainer/` | o teste no GitHub Codespaces: um dev container que instala a última versão com o instalador e conecta o Claude Code; não é um ambiente de desenvolvimento ([guia de início rápido](../getting-started/quickstart.md#try-it-in-github-codespaces)) | | `Dockerfile`, `Makefile`, `redeploy.sh`, `pyproject.toml`, `uv.lock` | a imagem do servidor, o executor de tarefas, o script de deploy blue/green, o pacote do servidor e seu arquivo de lock | diff --git a/i18n/pt-BR/docs/development/testing.md b/i18n/pt-BR/docs/development/testing.md index f80aaa05da..c67c6034cd 100644 --- a/i18n/pt-BR/docs/development/testing.md +++ b/i18n/pt-BR/docs/development/testing.md @@ -214,12 +214,8 @@ O `.github/workflows/scorecard.yml` executa as verificações do OpenSSF Scoreca semanalmente e sob demanda. Ele publica a pontuação que o badge do README mostra e adiciona os achados ao code scanning; não é executado em pull requests e não bloqueia nenhum merge. -O `.github/workflows/docs-site.yml` compila o site de documentação com `mkdocs build --strict` -em pull requests para `main` que tocam `docs/`, `mkdocs.yml`, `llms.txt`, -`llms-install.md`, `scripts/docs_site/`, `scripts/codegen/page_summary.py` ou o próprio -workflow, e em todo push para `main`, de modo que um link ou âncora quebrado faz a verificação -`docs site / build` falhar. Ele publica o site no GitHub Pages somente a partir de `main` e somente enquanto a -variável de repositório `DOCS_SITE_ENABLED` for `true`. +`npm --prefix docs run build` compila o site de documentação a partir do pacote `docs/`. A +configuração de deploy publica o resultado em `https://loom.clickhouse.com/docs/`. Um pull request empilhado sobre outra branch não recebe verificações até ser redirecionado para `main` ou uma linha `release/X.Y`, e um pull request com conflito de merge também não recebe nenhuma: "no checks diff --git a/i18n/zh-CN/docs/development/repository-guide.md b/i18n/zh-CN/docs/development/repository-guide.md index f0c7512b6f..d7a4e0ed49 100644 --- a/i18n/zh-CN/docs/development/repository-guide.md +++ b/i18n/zh-CN/docs/development/repository-guide.md @@ -29,7 +29,7 @@ | `tests/` | `unit/`、`integration/`、`analyzer/`、`code_lanes/`、`fixtures/`(见下文) | | `examples/` | 可运行的集成示例(`claude_agent_loop.py`、`ledger_run.py`、`log_conversation.py`、`onboarding_walkthrough.py`),以及教师复制到自己仓库中的课程起始模板(`course-starter/`,[教学](https://github.com/ClickHouse/loom/blob/main/docs/guides/teaching.md#hand-out-the-labs-as-an-assignment)) | | `i18n/` | README、快速开始和用例页面的机器翻译,`LANGUAGES` 中每种语言一个文件夹;由 `scripts/i18n/translate.py` 生成(`.github/workflows/i18n.yml`),从不手动编辑 | -| `docs/` | 本文档;`mkdocs.yml` 和 `scripts/docs_site/` 将其构建为文档站点(`.github/workflows/docs-site.yml`) | +| `docs/` | 本文档以及在 `https://loom.clickhouse.com/docs/` 发布它的 Blume 配置 | | `.github/` | CI、发布和扫描工作流(`workflows/`)、issue 和 pull request 模板,以及 `social-preview.png`,即在 Settings → General → Social preview 中上传的图片(GitHub 只读取上传的副本) | | `.devcontainer/` | GitHub Codespaces 试用环境:一个使用安装程序安装最新版本并连接 Claude Code 的 dev container;不是开发环境([快速开始](../getting-started/quickstart.md#try-it-in-github-codespaces)) | | `Dockerfile`, `Makefile`, `redeploy.sh`, `pyproject.toml`, `uv.lock` | 服务器的镜像、任务运行器、蓝绿部署脚本、服务器包及其锁文件 | diff --git a/i18n/zh-CN/docs/development/testing.md b/i18n/zh-CN/docs/development/testing.md index a28be2f49c..952bcb32cf 100644 --- a/i18n/zh-CN/docs/development/testing.md +++ b/i18n/zh-CN/docs/development/testing.md @@ -165,7 +165,7 @@ python scripts/gates/mypy_gate.py --update `.github/workflows/scorecard.yml` 在推送到 `main` 时、每周以及按需运行 OpenSSF Scorecard 检查。它发布 README 徽章所显示的分数,并把发现的问题加入代码扫描;它不在拉取请求上运行,也不阻塞合并。 -`.github/workflows/docs-site.yml` 在目标为 `main` 且改动了 `docs/`、`mkdocs.yml`、`llms.txt`、`llms-install.md`、`scripts/docs_site/`、`scripts/codegen/page_summary.py` 或该工作流本身的拉取请求上,以及每次推送到 `main` 时,用 `mkdocs build --strict` 构建文档站点,因此失效的链接或锚点会使 `docs site / build` 检查失败。仅当仓库变量 `DOCS_SITE_ENABLED` 为 `true` 时,它才会从 `main` 将站点发布到 GitHub Pages。 +`npm --prefix docs run build` 从 `docs/` 包构建文档站点。部署配置在 `https://loom.clickhouse.com/docs/` 发布结果。 堆叠在另一个分支上的拉取请求,在重新指向 `main` 或 `release/X.Y` 分支线之前不会运行任何检查;存在合并冲突的拉取请求同样不会运行检查:推送后出现“no checks reported”通常就是这两种情况之一。 From e6f38b151ea884057398895148ceb270d92b2b46 Mon Sep 17 00:00:00 2001 From: Shaun Struwig <41984034+Blargian@users.noreply.github.com> Date: Tue, 24 Nov 2026 17:38:37 +0100 Subject: [PATCH 07/16] Remove retired documentation publisher hooks The remaining hooks read the retired root index during a MkDocs build. Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com> --- .github/workflows/i18n.yml | 3 - docs/development/repository-guide.md | 2 +- i18n/es/README.md | 8 +- .../docs/development/documentation-style.md | 6 +- i18n/ja/README.md | 8 +- i18n/ja/docs/development/repository-guide.md | 2 +- i18n/ja/docs/development/testing.md | 2 +- i18n/ja/docs/index.md | 2 +- i18n/ko/README.md | 8 +- i18n/ko/docs/development/testing.md | 2 +- i18n/ko/docs/index.md | 2 +- i18n/pt-BR/README.md | 8 +- .../docs/development/repository-guide.md | 2 +- i18n/pt-BR/docs/development/testing.md | 8 +- i18n/pt-BR/docs/index.md | 4 +- i18n/zh-CN/README.md | 8 +- .../docs/development/repository-guide.md | 2 +- i18n/zh-CN/docs/development/testing.md | 2 +- i18n/zh-CN/docs/index.md | 2 +- scripts/__init__.py | 3 +- scripts/docs_site/hooks.py | 378 --------- scripts/docs_site/indexnow.py | 53 +- scripts/docs_site/locales.py | 364 --------- scripts/docs_site/messages.py | 199 ----- .../overrides/partials/language.html | 4 - .../overrides/partials/locales-head.html | 8 - .../overrides/partials/locales-switch.html | 14 - scripts/docs_site/overrides/sitemap.xml | 14 - scripts/docs_site/video_labels.py | 73 -- scripts/{docs_site/paths.py => i18n/site.py} | 14 +- scripts/i18n/translate.py | 8 +- tests/unit/test_docs_site_hooks.py | 492 ------------ tests/unit/test_docs_site_indexnow.py | 17 +- tests/unit/test_docs_site_locales.py | 737 ------------------ tests/unit/test_docs_site_video_labels.py | 76 -- tests/unit/test_i18n.py | 27 +- tests/unit/test_i18n_lifecycle.py | 10 +- 37 files changed, 108 insertions(+), 2464 deletions(-) delete mode 100644 scripts/docs_site/hooks.py delete mode 100644 scripts/docs_site/locales.py delete mode 100644 scripts/docs_site/messages.py delete mode 100644 scripts/docs_site/overrides/partials/language.html delete mode 100644 scripts/docs_site/overrides/partials/locales-head.html delete mode 100644 scripts/docs_site/overrides/partials/locales-switch.html delete mode 100644 scripts/docs_site/overrides/sitemap.xml delete mode 100644 scripts/docs_site/video_labels.py rename scripts/{docs_site/paths.py => i18n/site.py} (60%) delete mode 100644 tests/unit/test_docs_site_hooks.py delete mode 100644 tests/unit/test_docs_site_locales.py delete mode 100644 tests/unit/test_docs_site_video_labels.py diff --git a/.github/workflows/i18n.yml b/.github/workflows/i18n.yml index da645e912a..6ff9f4874e 100644 --- a/.github/workflows/i18n.yml +++ b/.github/workflows/i18n.yml @@ -9,9 +9,6 @@ on: - "README.md" - "docs/**" - "scripts/i18n/**" - - "scripts/docs_site/messages.py" - - "scripts/docs_site/indexnow.py" - - "scripts/docs_site/paths.py" - ".github/workflows/i18n.yml" schedule: - cron: "37 */6 * * *" diff --git a/docs/development/repository-guide.md b/docs/development/repository-guide.md index a0634450b7..301d03f6d9 100644 --- a/docs/development/repository-guide.md +++ b/docs/development/repository-guide.md @@ -17,7 +17,7 @@ What every top-level directory holds, where a concern lives inside `server/`, th | `bench/` | benchmark harnesses and gates, their fixtures (`fixtures/`), datasets, rubrics, acceptance and skill evals; see [benchmarks](../benchmarks/overview.md) | | `integrations/` | client integrations: the Claude Code and Codex plugins, the Cline hooks, the grep shim, Cursor and generic transcript hooks, the OKF CI gate | | `skills/` | the standalone Agent Skills: `loom-code`, and `loom` (the agent guide the server image ships and `mentor.guide` serves) | -| `scripts/` | `codegen/` (generators), `gates/` (CI ratchets and guards), `ops/` (operator tools), `scip_harness/` (compiler-tier producers), `docs_site/` (the documentation site's hook, theme override, pinned builder and IndexNow submission), `i18n/` (the translation generator and its freshness check) | +| `scripts/` | `codegen/` (generators), `gates/` (CI ratchets and guards), `ops/` (operator tools), `scip_harness/` (compiler-tier producers), `docs_site/` (pinned packages for the translation parser), `i18n/` (the translation generator and its freshness check) | | `tests/` | `unit/`, `integration/`, `analyzer/`, `code_lanes/`, `fixtures/` (below) | | `examples/` | runnable integration examples (`claude_agent_loop.py`, `ledger_run.py`, `log_conversation.py`, `onboarding_walkthrough.py`), and the course starter a teacher copies into a repository of their own (`course-starter/`, [teaching](../guides/teaching.md#hand-out-the-labs-as-an-assignment)) | | `i18n/` | machine translations of the README, the quickstart and the use-case pages, one folder per language in `LANGUAGES`; generated by `scripts/i18n/translate.py` (`.github/workflows/i18n.yml`), never edited by hand | diff --git a/i18n/es/README.md b/i18n/es/README.md index 7fb3f4e9fc..ecd4408206 100644 --- a/i18n/es/README.md +++ b/i18n/es/README.md @@ -32,7 +32,7 @@ Primeros pasos · Capacidades · Integraciones · - Documentación + Documentación

@@ -316,12 +316,12 @@ y los protocolos completos, los modelos y los artefactos. ## Documentación y contribución Para contexto compartido entre agentes, inteligencia de código y recuperación con permisos, empieza por la -[documentación](https://loom.clickhouse.com/docs/). Para conocer los requisitos de despliegue, consulta los +[documentación](https://clickhouse.github.io/loom/). Para conocer los requisitos de despliegue, consulta los [requisitos previos](https://github.com/ClickHouse/loom/blob/main/docs/getting-started/overview.md#prerequisites). [Despliegue](https://github.com/ClickHouse/loom/blob/main/docs/operations/deployment.md) · [Preguntas frecuentes](https://github.com/ClickHouse/loom/blob/main/docs/faq.md) · [Cómo contribuir](https://github.com/ClickHouse/loom/blob/main/CONTRIBUTING.md) · [Reporte de seguridad](https://github.com/ClickHouse/loom/blob/main/SECURITY.md) · -[`llms.txt`](https://loom.clickhouse.com/docs/llms.txt) · -[`llms-full.txt`](https://loom.clickhouse.com/docs/llms-full.txt) +[`llms.txt`](https://clickhouse.github.io/loom/llms.txt) · +[`llms-full.txt`](https://clickhouse.github.io/loom/llms-full.txt) Apache-2.0 · [Licencia](https://github.com/ClickHouse/loom/blob/main/LICENSE) · [Aviso](https://github.com/ClickHouse/loom/blob/main/NOTICE) diff --git a/i18n/es/docs/development/documentation-style.md b/i18n/es/docs/development/documentation-style.md index 3374a27e8a..f806e9c72d 100644 --- a/i18n/es/docs/development/documentation-style.md +++ b/i18n/es/docs/development/documentation-style.md @@ -43,7 +43,7 @@ nothing is close enough. This page explains each leg, how the rank is computed, which settings move it. ``` -El sitio de documentación usa la primera oración de ese párrafo como descripción de búsqueda de la página y genera `llms.txt` a partir de ella. Después, donde correspondan: el comportamiento visible para el usuario, las interfaces (operaciones, CLI, ajustes), cómo funciona, límites y modos de fallo, y enlaces a "Related". Las páginas de arquitectura añaden **Source entry points** (rutas y símbolos) e **Invariants**. +`llms.txt` lista la primera oración de ese párrafo para la página, y el sitio de documentación la usa como descripción de búsqueda de la página. Después, donde correspondan: el comportamiento visible para el usuario, las interfaces (operaciones, CLI, ajustes), cómo funciona, límites y modos de fallo, y enlaces a "Related". Las páginas de arquitectura añaden **Source entry points** (rutas y símbolos) e **Invariants**. @@ -108,7 +108,7 @@ Estas páginas se generan a partir del código. Edita la fuente y luego ejecuta | ------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | ---------------------------------------------- | | [reference/configuration.md](https://github.com/ClickHouse/loom/blob/main/docs/reference/configuration.md) | comentarios sobre los campos en `server/settings/` | `python scripts/codegen/settings_reference.py` | | [reference/operations.md](https://github.com/ClickHouse/loom/blob/main/docs/reference/operations.md) | `server.operations.registry.ALL_OPERATIONS` | `python scripts/codegen/docs_reference.py` | -| `llms.txt` (sitio de documentación) | los títulos de las páginas de documentación y los párrafos iniciales | compilación del sitio Blume | +| [`llms.txt`](https://github.com/ClickHouse/loom/blob/main/llms.txt) (raíz del repositorio) | el título de cada página y la primera frase de su párrafo inicial | `python scripts/codegen/docs_reference.py` | | `reference/operations/.md` (uno por grupo) | los modelos de entrada y salida de las ops y los comentarios sobre sus campos | `python scripts/codegen/docs_reference.py` | | [reference/workers.md](https://github.com/ClickHouse/loom/blob/main/docs/reference/workers.md) | `server/workers/registry.py` (`_WORKERS`) | `python scripts/codegen/docs_reference.py` | | [reference/cli.md](../reference/cli.md) | la instantánea del analizador de `loom` `tests/unit/snapshots/cli_tree.json` | `python scripts/codegen/docs_reference.py` | @@ -116,7 +116,7 @@ Estas páginas se generan a partir del código. Edita la fuente y luego ejecuta | [reference/status.md](https://github.com/ClickHouse/loom/blob/main/docs/reference/status.md) | la `maturity` de las ops y los ajustes booleanos de `server/settings/catalog.py` que se cargan como false | `python scripts/codegen/docs_reference.py` | | [reference/schema.md](https://github.com/ClickHouse/loom/blob/main/docs/reference/schema.md) | `schemas/schema.sql` | `python scripts/codegen/docs_reference.py` | -En el sitio de documentación, Blume publica `llms.txt` y `llms-full.txt`. `llms-install.md` permanece en el repositorio. +En el sitio de documentación, `scripts/docs_site/hooks.py` sirve la copia en Markdown de cada página junto a la propia página, en su URL más `index.html.md` y, para el índice de una sección, en `.md`, indicada mediante una etiqueta `` en la página; `llms.txt` con sus enlaces apuntando a esas copias; `llms-full.txt` (las páginas que explican qué es Loom y cómo empezar); y el `llms-install.md` del repositorio. El sitio publica las páginas generadas desde `i18n//docs/` bajo `//`. El inglés es el idioma predeterminado y canónico. Cada página conserva su ruta relativa a docs bajo `//`, de modo que la página de inicio y el índice de casos de uso tienen rutas distintas. La página de inicio en inglés enlaza a cada página de inicio traducida disponible, o a su índice de casos de uso traducido cuando la página de inicio no está disponible. Cada página traducida enlaza a su fuente en inglés y a las traducciones equivalentes disponibles. Un aviso marca las traducciones cuyo blob de origen difiere de la página actual en inglés. La generación de traducciones permanece en `scripts/i18n/translate.py`; la compilación del sitio no llama a ningún proveedor de traducción. diff --git a/i18n/ja/README.md b/i18n/ja/README.md index 87819fc631..219e5c1ffd 100644 --- a/i18n/ja/README.md +++ b/i18n/ja/README.md @@ -32,7 +32,7 @@ はじめに · 機能 · 連携 · - ドキュメント + ドキュメント

@@ -234,11 +234,11 @@ Langfuse と ClickStack はオプションのインテグレーションであ ## ドキュメントとコントリビューション -共有エージェントコンテキスト、コードインテリジェンス、権限付きリトリーバルについては、まず[ドキュメント](https://loom.clickhouse.com/docs/)を参照してください。デプロイの要件については、[前提条件](https://github.com/ClickHouse/loom/blob/main/docs/getting-started/overview.md#prerequisites)を参照してください。 +共有エージェントコンテキスト、コードインテリジェンス、権限付きリトリーバルについては、まず[ドキュメント](https://clickhouse.github.io/loom/)を参照してください。デプロイの要件については、[前提条件](https://github.com/ClickHouse/loom/blob/main/docs/getting-started/overview.md#prerequisites)を参照してください。 [デプロイ](https://github.com/ClickHouse/loom/blob/main/docs/operations/deployment.md) · [よくある質問](https://github.com/ClickHouse/loom/blob/main/docs/faq.md) · [コントリビューション](https://github.com/ClickHouse/loom/blob/main/CONTRIBUTING.md) · [セキュリティの報告](https://github.com/ClickHouse/loom/blob/main/SECURITY.md) · -[`llms.txt`](https://loom.clickhouse.com/docs/llms.txt) · -[`llms-full.txt`](https://loom.clickhouse.com/docs/llms-full.txt) +[`llms.txt`](https://clickhouse.github.io/loom/llms.txt) · +[`llms-full.txt`](https://clickhouse.github.io/loom/llms-full.txt) Apache-2.0 · [ライセンス](https://github.com/ClickHouse/loom/blob/main/LICENSE) · [NOTICE](https://github.com/ClickHouse/loom/blob/main/NOTICE) diff --git a/i18n/ja/docs/development/repository-guide.md b/i18n/ja/docs/development/repository-guide.md index 69370b9688..0b75c3a08e 100644 --- a/i18n/ja/docs/development/repository-guide.md +++ b/i18n/ja/docs/development/repository-guide.md @@ -29,7 +29,7 @@ | `tests/` | `unit/`、`integration/`、`analyzer/`、`code_lanes/`、`fixtures/`(後述) | | `examples/` | 実行可能な統合例(`claude_agent_loop.py`、`ledger_run.py`、`log_conversation.py`、`onboarding_walkthrough.py`)と、教師が自分のリポジトリにコピーするコースのスターター(`course-starter/`、[教育](../guides/teaching.md#hand-out-the-labs-as-an-assignment)) | | `i18n/` | README、クイックスタート、ユースケースページの機械翻訳。`LANGUAGES` の言語ごとに 1 フォルダー。`scripts/i18n/translate.py`(`.github/workflows/i18n.yml`)で生成され、手動では編集しない | -| `docs/` | このドキュメントと、`https://loom.clickhouse.com/docs/` で公開する Blume 設定 | +| `docs/` | このドキュメント。`mkdocs.yml` と `scripts/docs_site/` がドキュメントサイトとしてビルドする(`.github/workflows/docs-site.yml`) | | `.github/` | CI、リリース、スキャンのワークフロー(`workflows/`)、issue とプルリクエストのテンプレート、`social-preview.png`(Settings → General → Social preview でアップロードする画像。GitHub はアップロードされたコピーのみを読む) | | `.devcontainer/` | GitHub Codespaces のお試し環境:インストーラーで最新リリースをインストールし Claude Code を接続する dev container。開発環境ではない([クイックスタート](../getting-started/quickstart.md#try-it-in-github-codespaces)) | | `Dockerfile`, `Makefile`, `redeploy.sh`, `pyproject.toml`, `uv.lock` | サーバーのイメージ、タスクランナー、ブルー/グリーンのデプロイスクリプト、サーバーパッケージとそのロックファイル | diff --git a/i18n/ja/docs/development/testing.md b/i18n/ja/docs/development/testing.md index 387fcd3d2e..8ac686ac80 100644 --- a/i18n/ja/docs/development/testing.md +++ b/i18n/ja/docs/development/testing.md @@ -165,7 +165,7 @@ python scripts/gates/mypy_gate.py --update `.github/workflows/scorecard.yml` は、`main` へのプッシュ、毎週、および手動で OpenSSF Scorecard のチェックを実行します。README のバッジに表示されるスコアを公開し、検出結果をコードスキャンに追加します。プルリクエストでは実行されず、マージもブロックしません。 -`npm --prefix docs run build` は `docs/` パッケージからドキュメントサイトをビルドします。デプロイ設定は結果を `https://loom.clickhouse.com/docs/` で公開します。 +`.github/workflows/docs-site.yml` は、`docs/`、`mkdocs.yml`、`llms.txt`、`llms-install.md`、`scripts/docs_site/`、`scripts/codegen/page_summary.py`、またはこのワークフロー自体に触れる `main` へのプルリクエストと、`main` へのすべてのプッシュで `mkdocs build --strict` によりドキュメントサイトをビルドします。そのため、壊れたリンクやアンカーは `docs site / build` チェックで失敗します。リポジトリ変数 `DOCS_SITE_ENABLED` が `true` の間だけ、`main` から GitHub Pages にサイトを公開します。 別のブランチに積み重ねたプルリクエストは、`main` または `release/X.Y` ラインに付け替えるまでチェックが実行されません。マージコンフリクトのあるプルリクエストも同様です。プッシュ後に「no checks reported」と表示されたら、たいていはこのどちらかが原因です。 diff --git a/i18n/ja/docs/index.md b/i18n/ja/docs/index.md index e5572013c1..3c324a3fd2 100644 --- a/i18n/ja/docs/index.md +++ b/i18n/ja/docs/index.md @@ -211,4 +211,4 @@ Loom は、AI エージェント向けのメモリ、ドキュメント、コー ## 関連ページ -[用語集](glossary.md):Loom の用語を一か所にまとめて定義しています。[よくある質問](faq.md):最初に出てくる質問に、それぞれ一段落で答えます。[`llms.txt`](https://loom.clickhouse.com/docs/llms.txt):エージェント向けに生成されたドキュメントの索引です。[`llms-full.txt`](https://loom.clickhouse.com/docs/llms-full.txt) には、Loom とは何か、どう始めるかを説明するページが 1 つのファイルにまとめられています。 +[用語集](glossary.md):Loom の用語を一か所にまとめて定義しています。[よくある質問](faq.md):最初に出てくる質問に、それぞれ一段落で答えます。[`llms.txt`](https://github.com/ClickHouse/loom/blob/main/llms.txt):エージェント向けに生成されたドキュメントの索引です。[`llms-full.txt`](https://clickhouse.github.io/loom/llms-full.txt) には、Loom とは何か、どう始めるかを説明するページが 1 つのファイルにまとめられています。 diff --git a/i18n/ko/README.md b/i18n/ko/README.md index a25e949f33..2689890636 100644 --- a/i18n/ko/README.md +++ b/i18n/ko/README.md @@ -32,7 +32,7 @@ 시작하기 · 기능 · 통합 · - 문서 + 문서

@@ -286,12 +286,12 @@ Langfuse와 ClickStack은 선택적 통합이며, Docker 스택에 포함된 서 ## 문서 및 기여 공유 에이전트 컨텍스트, 코드 인텔리전스, 권한 기반 검색을 시작하려면 -[문서](https://loom.clickhouse.com/docs/)를 참고하세요. 배포 요구 사항은 +[문서](https://clickhouse.github.io/loom/)를 참고하세요. 배포 요구 사항은 [사전 요구 사항](https://github.com/ClickHouse/loom/blob/main/docs/getting-started/overview.md#prerequisites)을 참고하세요. [배포](https://github.com/ClickHouse/loom/blob/main/docs/operations/deployment.md) · [자주 묻는 질문](https://github.com/ClickHouse/loom/blob/main/docs/faq.md) · [기여하기](https://github.com/ClickHouse/loom/blob/main/CONTRIBUTING.md) · [보안 문제 신고](https://github.com/ClickHouse/loom/blob/main/SECURITY.md) · -[`llms.txt`](https://loom.clickhouse.com/docs/llms.txt) · -[`llms-full.txt`](https://loom.clickhouse.com/docs/llms-full.txt) +[`llms.txt`](https://clickhouse.github.io/loom/llms.txt) · +[`llms-full.txt`](https://clickhouse.github.io/loom/llms-full.txt) Apache-2.0 · [라이선스](https://github.com/ClickHouse/loom/blob/main/LICENSE) · [고지 사항](https://github.com/ClickHouse/loom/blob/main/NOTICE) diff --git a/i18n/ko/docs/development/testing.md b/i18n/ko/docs/development/testing.md index 3b10e50b42..1e317abf80 100644 --- a/i18n/ko/docs/development/testing.md +++ b/i18n/ko/docs/development/testing.md @@ -173,7 +173,7 @@ python scripts/gates/mypy_gate.py --update `.github/workflows/scorecard.yml`은 `main`에 대한 푸시, 매주, 그리고 요청 시 OpenSSF Scorecard 검사를 실행합니다. README 배지에 표시되는 점수를 게시하고 결과를 코드 스캐닝에 추가하며, 풀 리퀘스트에서는 실행되지 않고 머지를 막지 않습니다. -`npm --prefix docs run build`는 `docs/` 패키지에서 문서 사이트를 빌드합니다. 배포 설정은 결과를 `https://loom.clickhouse.com/docs/`에 게시합니다. +`.github/workflows/docs-site.yml`은 `docs/`, `mkdocs.yml`, `llms.txt`, `llms-install.md`, `scripts/docs_site/`, `scripts/codegen/page_summary.py` 또는 워크플로 자체를 건드리는 `main`으로의 풀 리퀘스트와 `main`에 대한 모든 푸시에서 `mkdocs build --strict`로 문서 사이트를 빌드하므로, 깨진 링크나 앵커는 `docs site / build` 체크를 실패시킵니다. 저장소 변수 `DOCS_SITE_ENABLED`가 `true`인 동안에만 `main`에서 사이트를 GitHub Pages에 게시합니다. 다른 브랜치 위에 쌓인 풀 리퀘스트는 `main` 또는 `release/X.Y` 라인으로 대상을 변경하기 전까지 체크가 실행되지 않으며, 머지 충돌이 있는 풀 리퀘스트도 마찬가지입니다. 푸시 후 "no checks reported"가 보인다면 대개 둘 중 하나가 원인입니다. diff --git a/i18n/ko/docs/index.md b/i18n/ko/docs/index.md index 398770ac10..fef2f5b584 100644 --- a/i18n/ko/docs/index.md +++ b/i18n/ko/docs/index.md @@ -228,4 +228,4 @@ TypeScript SDK, 그리고 대시보드를 통해 Loom에 접근합니다. 이 ## 함께 보기 -[용어집](glossary.md): Loom의 용어를 한곳에 정리했습니다. [자주 묻는 질문](faq.md): 가장 먼저 나오는 질문과 한 단락짜리 답변입니다. [`llms.txt`](https://loom.clickhouse.com/docs/llms.txt): 에이전트를 위해 생성한 문서 색인입니다. [`llms-full.txt`](https://loom.clickhouse.com/docs/llms-full.txt)에는 Loom이 무엇인지, 어떻게 시작하는지를 설명하는 페이지가 하나의 파일에 담겨 있습니다. +[용어집](glossary.md): Loom의 용어를 한곳에 정리했습니다. [자주 묻는 질문](faq.md): 가장 먼저 나오는 질문과 한 단락짜리 답변입니다. [`llms.txt`](https://github.com/ClickHouse/loom/blob/main/llms.txt): 에이전트를 위해 생성한 문서 색인입니다. [`llms-full.txt`](https://clickhouse.github.io/loom/llms-full.txt)에는 Loom이 무엇인지, 어떻게 시작하는지를 설명하는 페이지가 하나의 파일에 담겨 있습니다. diff --git a/i18n/pt-BR/README.md b/i18n/pt-BR/README.md index d7e52b3bb1..e65c7c7a62 100644 --- a/i18n/pt-BR/README.md +++ b/i18n/pt-BR/README.md @@ -32,7 +32,7 @@ Primeiros passos · Recursos · Integrações · - Documentação + Documentação

@@ -321,12 +321,12 @@ além dos protocolos completos, modelos e artefatos. ## Documentação e contribuição Para contexto compartilhado de agentes, inteligência de código e recuperação com controle de permissões, comece pela -[documentação](https://loom.clickhouse.com/docs/). Para os requisitos de implantação, consulte os +[documentação](https://clickhouse.github.io/loom/). Para os requisitos de implantação, consulte os [pré-requisitos](https://github.com/ClickHouse/loom/blob/main/docs/getting-started/overview.md#prerequisites). [Implantação](https://github.com/ClickHouse/loom/blob/main/docs/operations/deployment.md) · [Perguntas frequentes](https://github.com/ClickHouse/loom/blob/main/docs/faq.md) · [Como contribuir](https://github.com/ClickHouse/loom/blob/main/CONTRIBUTING.md) · [Reporte de segurança](https://github.com/ClickHouse/loom/blob/main/SECURITY.md) · -[`llms.txt`](https://loom.clickhouse.com/docs/llms.txt) · -[`llms-full.txt`](https://loom.clickhouse.com/docs/llms-full.txt) +[`llms.txt`](https://clickhouse.github.io/loom/llms.txt) · +[`llms-full.txt`](https://clickhouse.github.io/loom/llms-full.txt) Apache-2.0 · [Licença](https://github.com/ClickHouse/loom/blob/main/LICENSE) · [Aviso](https://github.com/ClickHouse/loom/blob/main/NOTICE) diff --git a/i18n/pt-BR/docs/development/repository-guide.md b/i18n/pt-BR/docs/development/repository-guide.md index b8eb6f36dd..e7f6c724c8 100644 --- a/i18n/pt-BR/docs/development/repository-guide.md +++ b/i18n/pt-BR/docs/development/repository-guide.md @@ -29,7 +29,7 @@ O que cada diretório de nível superior contém, onde cada responsabilidade fic | `tests/` | `unit/`, `integration/`, `analyzer/`, `code_lanes/`, `fixtures/` (abaixo) | | `examples/` | exemplos de integração executáveis (`claude_agent_loop.py`, `ledger_run.py`, `log_conversation.py`, `onboarding_walkthrough.py`) e o starter de curso que um professor copia para um repositório próprio (`course-starter/`, [ensino](https://github.com/ClickHouse/loom/blob/main/docs/guides/teaching.md#hand-out-the-labs-as-an-assignment)) | | `i18n/` | traduções automáticas do README, do quickstart e das páginas de casos de uso, uma pasta por idioma em `LANGUAGES`; geradas por `scripts/i18n/translate.py` (`.github/workflows/i18n.yml`), nunca editadas manualmente | -| `docs/` | esta documentação e a configuração do Blume que a publica em `https://loom.clickhouse.com/docs/` | +| `docs/` | esta documentação; `mkdocs.yml` e `scripts/docs_site/` a compilam como o site de documentação (`.github/workflows/docs-site.yml`) | | `.github/` | workflows de CI, release e varredura (`workflows/`), templates de issues e pull requests, e `social-preview.png`, a imagem enviada em Settings → General → Social preview (o GitHub lê apenas a cópia enviada) | | `.devcontainer/` | o teste no GitHub Codespaces: um dev container que instala a última versão com o instalador e conecta o Claude Code; não é um ambiente de desenvolvimento ([guia de início rápido](../getting-started/quickstart.md#try-it-in-github-codespaces)) | | `Dockerfile`, `Makefile`, `redeploy.sh`, `pyproject.toml`, `uv.lock` | a imagem do servidor, o executor de tarefas, o script de deploy blue/green, o pacote do servidor e seu arquivo de lock | diff --git a/i18n/pt-BR/docs/development/testing.md b/i18n/pt-BR/docs/development/testing.md index c67c6034cd..f80aaa05da 100644 --- a/i18n/pt-BR/docs/development/testing.md +++ b/i18n/pt-BR/docs/development/testing.md @@ -214,8 +214,12 @@ O `.github/workflows/scorecard.yml` executa as verificações do OpenSSF Scoreca semanalmente e sob demanda. Ele publica a pontuação que o badge do README mostra e adiciona os achados ao code scanning; não é executado em pull requests e não bloqueia nenhum merge. -`npm --prefix docs run build` compila o site de documentação a partir do pacote `docs/`. A -configuração de deploy publica o resultado em `https://loom.clickhouse.com/docs/`. +O `.github/workflows/docs-site.yml` compila o site de documentação com `mkdocs build --strict` +em pull requests para `main` que tocam `docs/`, `mkdocs.yml`, `llms.txt`, +`llms-install.md`, `scripts/docs_site/`, `scripts/codegen/page_summary.py` ou o próprio +workflow, e em todo push para `main`, de modo que um link ou âncora quebrado faz a verificação +`docs site / build` falhar. Ele publica o site no GitHub Pages somente a partir de `main` e somente enquanto a +variável de repositório `DOCS_SITE_ENABLED` for `true`. Um pull request empilhado sobre outra branch não recebe verificações até ser redirecionado para `main` ou uma linha `release/X.Y`, e um pull request com conflito de merge também não recebe nenhuma: "no checks diff --git a/i18n/pt-BR/docs/index.md b/i18n/pt-BR/docs/index.md index 40394218c7..44a1e6f784 100644 --- a/i18n/pt-BR/docs/index.md +++ b/i18n/pt-BR/docs/index.md @@ -228,6 +228,6 @@ O [CONTRIBUTING.md](https://github.com/ClickHouse/loom/blob/main/CONTRIBUTING.md ## Veja também [Glossário](https://github.com/ClickHouse/loom/blob/main/docs/glossary.md): os termos do Loom, definidos uma única vez. [Perguntas frequentes](faq.md): as primeiras perguntas, um -parágrafo para cada. [`llms.txt`](https://loom.clickhouse.com/docs/llms.txt): um índice gerado da documentação para agentes; -[`llms-full.txt`](https://loom.clickhouse.com/docs/llms-full.txt) reúne, em um único arquivo, as +parágrafo para cada. [`llms.txt`](https://github.com/ClickHouse/loom/blob/main/llms.txt): um índice gerado da documentação para agentes; +[`llms-full.txt`](https://clickhouse.github.io/loom/llms-full.txt) reúne, em um único arquivo, as páginas que explicam o que é o Loom e como começar. diff --git a/i18n/zh-CN/README.md b/i18n/zh-CN/README.md index b05af350e9..52cea519d7 100644 --- a/i18n/zh-CN/README.md +++ b/i18n/zh-CN/README.md @@ -32,7 +32,7 @@ 快速开始 · 功能 · 集成 · - 文档 + 文档

@@ -234,11 +234,11 @@ Langfuse 和 ClickStack 是可选集成,不是 Docker 技术栈中自带的服 ## 文档与贡献 -如需了解共享 agent 上下文、代码智能和带权限的检索,请从[文档](https://loom.clickhouse.com/docs/)开始。有关部署要求,请参阅[前提条件](https://github.com/ClickHouse/loom/blob/main/docs/getting-started/overview.md#prerequisites)。 +如需了解共享 agent 上下文、代码智能和带权限的检索,请从[文档](https://clickhouse.github.io/loom/)开始。有关部署要求,请参阅[前提条件](https://github.com/ClickHouse/loom/blob/main/docs/getting-started/overview.md#prerequisites)。 [部署](https://github.com/ClickHouse/loom/blob/main/docs/operations/deployment.md) · [常见问题](https://github.com/ClickHouse/loom/blob/main/docs/faq.md) · [参与贡献](https://github.com/ClickHouse/loom/blob/main/CONTRIBUTING.md) · [安全问题报告](https://github.com/ClickHouse/loom/blob/main/SECURITY.md) · -[`llms.txt`](https://loom.clickhouse.com/docs/llms.txt) · -[`llms-full.txt`](https://loom.clickhouse.com/docs/llms-full.txt) +[`llms.txt`](https://clickhouse.github.io/loom/llms.txt) · +[`llms-full.txt`](https://clickhouse.github.io/loom/llms-full.txt) Apache-2.0 · [许可证](https://github.com/ClickHouse/loom/blob/main/LICENSE) · [声明](https://github.com/ClickHouse/loom/blob/main/NOTICE) diff --git a/i18n/zh-CN/docs/development/repository-guide.md b/i18n/zh-CN/docs/development/repository-guide.md index d7a4e0ed49..f0c7512b6f 100644 --- a/i18n/zh-CN/docs/development/repository-guide.md +++ b/i18n/zh-CN/docs/development/repository-guide.md @@ -29,7 +29,7 @@ | `tests/` | `unit/`、`integration/`、`analyzer/`、`code_lanes/`、`fixtures/`(见下文) | | `examples/` | 可运行的集成示例(`claude_agent_loop.py`、`ledger_run.py`、`log_conversation.py`、`onboarding_walkthrough.py`),以及教师复制到自己仓库中的课程起始模板(`course-starter/`,[教学](https://github.com/ClickHouse/loom/blob/main/docs/guides/teaching.md#hand-out-the-labs-as-an-assignment)) | | `i18n/` | README、快速开始和用例页面的机器翻译,`LANGUAGES` 中每种语言一个文件夹;由 `scripts/i18n/translate.py` 生成(`.github/workflows/i18n.yml`),从不手动编辑 | -| `docs/` | 本文档以及在 `https://loom.clickhouse.com/docs/` 发布它的 Blume 配置 | +| `docs/` | 本文档;`mkdocs.yml` 和 `scripts/docs_site/` 将其构建为文档站点(`.github/workflows/docs-site.yml`) | | `.github/` | CI、发布和扫描工作流(`workflows/`)、issue 和 pull request 模板,以及 `social-preview.png`,即在 Settings → General → Social preview 中上传的图片(GitHub 只读取上传的副本) | | `.devcontainer/` | GitHub Codespaces 试用环境:一个使用安装程序安装最新版本并连接 Claude Code 的 dev container;不是开发环境([快速开始](../getting-started/quickstart.md#try-it-in-github-codespaces)) | | `Dockerfile`, `Makefile`, `redeploy.sh`, `pyproject.toml`, `uv.lock` | 服务器的镜像、任务运行器、蓝绿部署脚本、服务器包及其锁文件 | diff --git a/i18n/zh-CN/docs/development/testing.md b/i18n/zh-CN/docs/development/testing.md index 952bcb32cf..a28be2f49c 100644 --- a/i18n/zh-CN/docs/development/testing.md +++ b/i18n/zh-CN/docs/development/testing.md @@ -165,7 +165,7 @@ python scripts/gates/mypy_gate.py --update `.github/workflows/scorecard.yml` 在推送到 `main` 时、每周以及按需运行 OpenSSF Scorecard 检查。它发布 README 徽章所显示的分数,并把发现的问题加入代码扫描;它不在拉取请求上运行,也不阻塞合并。 -`npm --prefix docs run build` 从 `docs/` 包构建文档站点。部署配置在 `https://loom.clickhouse.com/docs/` 发布结果。 +`.github/workflows/docs-site.yml` 在目标为 `main` 且改动了 `docs/`、`mkdocs.yml`、`llms.txt`、`llms-install.md`、`scripts/docs_site/`、`scripts/codegen/page_summary.py` 或该工作流本身的拉取请求上,以及每次推送到 `main` 时,用 `mkdocs build --strict` 构建文档站点,因此失效的链接或锚点会使 `docs site / build` 检查失败。仅当仓库变量 `DOCS_SITE_ENABLED` 为 `true` 时,它才会从 `main` 将站点发布到 GitHub Pages。 堆叠在另一个分支上的拉取请求,在重新指向 `main` 或 `release/X.Y` 分支线之前不会运行任何检查;存在合并冲突的拉取请求同样不会运行检查:推送后出现“no checks reported”通常就是这两种情况之一。 diff --git a/i18n/zh-CN/docs/index.md b/i18n/zh-CN/docs/index.md index 526c7257f8..4fb87be6d7 100644 --- a/i18n/zh-CN/docs/index.md +++ b/i18n/zh-CN/docs/index.md @@ -211,4 +211,4 @@ Loom 是面向 AI agent 的记忆、文档和代码索引服务器,数据存 ## 另请参阅 -[术语表](https://github.com/ClickHouse/loom/blob/main/docs/glossary.md):Loom 的术语,每个只定义一次。[常见问题](faq.md):最先会遇到的问题,每个问题一段回答。[`llms.txt`](https://loom.clickhouse.com/docs/llms.txt):为 agent 生成的文档索引;[`llms-full.txt`](https://loom.clickhouse.com/docs/llms-full.txt) 将说明 Loom 是什么以及如何开始使用的页面合并在一个文件中。 +[术语表](https://github.com/ClickHouse/loom/blob/main/docs/glossary.md):Loom 的术语,每个只定义一次。[常见问题](faq.md):最先会遇到的问题,每个问题一段回答。[`llms.txt`](https://github.com/ClickHouse/loom/blob/main/llms.txt):为 agent 生成的文档索引;[`llms-full.txt`](https://clickhouse.github.io/loom/llms-full.txt) 将说明 Loom 是什么以及如何开始使用的页面合并在一个文件中。 diff --git a/scripts/__init__.py b/scripts/__init__.py index 28d55ec6f0..a50df12c7f 100644 --- a/scripts/__init__.py +++ b/scripts/__init__.py @@ -10,6 +10,5 @@ dump that writes `schemas/schema.sql`, the load benchmark, table rebuilds, the call-graph edge audit, the backup drill and the code-intel bootstrap. - `scip_harness/`: compiler-tier index producers; server workers call them by path. -- `docs_site/`: the documentation site's MkDocs hook, theme override, pinned builder and - IndexNow submission. +- `docs_site/`: pinned packages for the translation parser. """ diff --git a/scripts/docs_site/hooks.py b/scripts/docs_site/hooks.py deleted file mode 100644 index e455d95fff..0000000000 --- a/scripts/docs_site/hooks.py +++ /dev/null @@ -1,378 +0,0 @@ -"""MkDocs hooks for the documentation site built from docs/. - -Each page's meta description is its first sentence, the line llms.txt lists for it, cut to -160 characters, so a search result shows the answer the page opens with. An inline -Markdown link or image that leaves docs/ (source files, the README) points at the file on -GitHub instead of a missing page, except the root files the site serves itself (`llms.txt`, -`llms-install.md`), which point at the site; links in code blocks and code spans are left -as written, and reference-style links are not rewritten (the docs use inline links). The -sidebar follows the sections' order in `SECTIONS`, the FAQ and glossary last; within a -folder its index page (`index.md`, or `overview.md` without one) comes first, then -Quickstart in Getting started; a generated page gets no edit button (its source is the -generator, not the page). - -After the build, the site also serves what agents fetch instead of HTML: each page's -Markdown beside it (`use-cases/agent-memory.md`) and at the page URL plus `index.html.md` (a -section index also at `.md`, such as `use-cases.md`), `llms.txt` with its links -pointing at those files, `llms-full.txt` with the full text of the pages that say what Loom -is and how to start (the whole docs are several megabytes), and the repository's -`llms-install.md`. -""" - -from __future__ import annotations - -import html -import posixpath -import re -import sys -from html.parser import HTMLParser -from pathlib import Path - -ROOT = Path(__file__).resolve().parents[2] -if str(ROOT) not in sys.path: - sys.path.insert(0, str(ROOT)) -from scripts.codegen.page_summary import SECTIONS, page_key, page_summary, shorten # noqa: E402 -from scripts.docs_site.paths import page_path # noqa: E402 - -BLOB = "https://github.com/ClickHouse/loom/blob/main/" -RAW = "https://raw.githubusercontent.com/ClickHouse/loom/main/" -# The generators' whole-page markers; a page with generated regions ("not this region") -# keeps its edit button. -_WHOLLY_GENERATED = re.compile( - r"") - - -def localized_uri(language: str, source: str) -> str: - """Preserve each source path under its language prefix.""" - return f"{language}/{source}" - - -def localized_page_path(path: str, *, languages: Iterable[str] | None = None) -> str | None: - """The site path for an existing or deleted repository translation.""" - parts = path.split("/", 3) - if ( - len(parts) != 4 - or parts[0] != "i18n" - or parts[1] not in LANGUAGES - or parts[1] not in (PUBLISHED_LANGUAGES if languages is None else languages) - or parts[2] != "docs" - or not parts[3].endswith(".md") - ): - return None - return quote(page_path(f"docs/{localized_uri(parts[1], parts[3])}")) - - -def translations(root: Path, *, languages: Iterable[str] | None = None) -> dict[str, dict]: - pages = {} - for language in PUBLISHED_LANGUAGES if languages is None else languages: - for path in sorted((root / "i18n" / language / "docs").rglob("*.md")): - source = path.relative_to(root / "i18n" / language / "docs").as_posix() - english = root / "docs" / source - stamp = _STAMP.match(path.read_text(encoding="utf-8")) - obsolete = not english.is_file() - if obsolete and (stamp is None or stamp.group(1) != f"docs/{source}"): - continue - blob = None - if not obsolete: - content = english.read_bytes() - blob = hashlib.sha1(f"blob {len(content)}\0".encode() + content).hexdigest() - pages[localized_uri(language, source)] = { - "language": language, - "source": source, - "path": str(path), - "obsolete": obsolete, - "stale": obsolete - or stamp is None - or stamp.group(1) != f"docs/{source}" - or stamp.group(2) != blob, - } - return pages - - -def on_files(files, config): - from mkdocs.structure.files import File, InclusionLevel - - pages = config.extra["locale_pages"] = translations(ROOT) - for uri, entry in pages.items(): - entry["title"] = page_summary(Path(entry["path"]))[0] - files.append( - File.generated( - config, - uri, - abs_src_path=entry["path"], - inclusion=InclusionLevel.NOT_IN_NAV, - ) - ) - return files - - -def alternates(source: str, pages: dict, site_url: str) -> list[dict[str, str]]: - available = [ - { - "lang": entry["language"], - "name": LANGUAGES[entry["language"]], - "url": site_url + quote(page_path(f"docs/{uri}")), - } - for uri, entry in pages.items() - if entry["source"] == source and not entry["obsolete"] - ] - if not available: - return [] - english = { - "lang": "en", - "name": "English", - "url": site_url + quote(page_path(f"docs/{source}")), - } - return [english, *available, {**english, "lang": "x-default"}] - - -def language_landings(pages: dict, site_url: str) -> list[dict[str, str]]: - landings = [] - for language, name in LANGUAGES.items(): - uri = landing_uri(language, pages) - if uri: - landings.append( - {"lang": language, "name": name, "url": site_url + quote(page_path(f"docs/{uri}"))} - ) - return landings - - -def landing_uri(language: str, pages: dict) -> str | None: - available = landing_sources( - uri.removeprefix(language + "/") - for uri, entry in pages.items() - if entry["language"] == language and not entry["obsolete"] - ) - return localized_uri(language, available[0]) if available else None - - -def language_choices(source: str, pages: dict, site_url: str) -> list[dict]: - """Offer an equivalent page or a named existing landing, never a missing URL.""" - choices = [ - { - "lang": "en", - "name": "English", - "url": site_url + quote(page_path(f"docs/{source}")), - "landing": "", - } - ] - for landing in language_landings(pages, site_url): - code, name = landing["lang"], landing["name"] - equivalent = localized_uri(code, source) - uri = ( - equivalent - if equivalent in pages and not pages[equivalent]["obsolete"] - else landing_uri(code, pages) - ) - if uri is None: - continue - entry = pages[uri] - choices.append( - { - "lang": code, - "name": name, - "url": site_url + quote(page_path(f"docs/{uri}")), - "landing": "" - if uri == equivalent - else entry.get("title") or page_summary(Path(entry["path"]))[0], - } - ) - return choices - - -def on_nav(nav, config, files): - config.extra["locale_nav_pages"] = { - file.src_uri: file.page for file in files if file.src_uri in config.extra["locale_pages"] - } - return nav - - -def localized_navigation(nav, page, config): - """Project the shared English navigation without changing any shared node.""" - language = page.meta["language"] - pages = config.extra["locale_pages"] - localized = config.extra["locale_nav_pages"] - projected = [] - has_fallback = False - - def item_view(item, parent=None): - nonlocal has_fallback - target = item - entry = None - if item.is_page: - uri = localized_uri(language, item.file.src_uri) - entry = pages.get(uri) - if entry and not entry["obsolete"]: - target = localized[uri] - else: - entry = None - has_fallback = True - view = copy(target) - view.parent = parent - if item.is_section: - view.children = [item_view(child, view) for child in item.children] - view.title = SECTION_TITLES[language].get( - item.title, f"{item.title} ({COPY[language]['english']})" - ) - view.active = any(child.active for child in view.children) - elif item.is_page: - view.typeset = None - view.title = ( - (entry.get("title") or page_summary(Path(entry["path"]))[0]) - if entry - else f"{item.title} ({COPY[language]['english']})" - ) - view.active = view.file.src_uri == page.file.src_uri - projected.append(view) - return view - - result = copy(nav) - result.items = [item_view(item) for item in nav.items] - result.pages = projected - for index, item in enumerate(projected): - item.previous_page = projected[index - 1] if index else None - item.next_page = projected[index + 1] if index + 1 < len(projected) else None - home = landing_uri(language, pages) - if home: - result.homepage = localized[home] - return result, has_fallback - - -def on_page_context(context, page, config, nav): - if page.meta.get("language", "en") == "en": - return context - projected, fallback = localized_navigation(nav, page, config) - context["nav"] = projected - context["locale_has_english_fallback"] = fallback - current = next( - (item for item in projected.pages if item.file.src_uri == page.file.src_uri), None - ) - if current: - context["page"] = current - return context - - -def _link_target(target: str, entry: dict, pages: dict, site_url: str, *, banner: bool) -> str: - language = entry["language"] - if target.startswith(BLOB + "docs/"): - if not banner: - # The producer chooses English when a translated anchor is absent. - return target - source = unquote(target[len(BLOB + "docs/") :]) - elif target.startswith(BLOB + "i18n/"): - parts = unquote(target[len(BLOB + "i18n/") :]).split("/", 2) - if len(parts) != 3 or parts[1] != "docs": - return target - language, _, source = parts - elif target and not re.match(r"(?:[a-zA-Z][\w+.-]*:|/)", target): - source = posixpath.normpath( - posixpath.join(posixpath.dirname(entry["source"]), unquote(target)) - ) - if source.startswith("../"): - repository = posixpath.normpath(posixpath.join("docs", source)) - translated = f"i18n/{language}/{repository}" - return BLOB + quote(translated if (ROOT / translated).is_file() else repository) - else: - return target - uri = localized_uri(language, source) - if not banner and uri in pages: - return site_url + quote(page_path(f"docs/{uri}")) - if not (ROOT / "docs" / source).is_file(): - return target - if not source.endswith(".md"): - return site_url + quote(source) - if banner or uri not in pages: - uri = source - return site_url + quote(page_path(f"docs/{uri}")) - - -def translated_markdown(markdown: str, entry: dict, pages: dict, site_url: str) -> str: - # Explicit English fallbacks retain the producer's anchor-safety decision. - header, separator, body = markdown.partition("\n\n") - if entry.get("obsolete"): - if not separator: - header, _, body = markdown.partition("\n") - separator = "\n\n" - header = header.split("\n", 1)[0] - ui = COPY[entry["language"]] - body = ( - f'

{ui["retained_before"]}' - f'{ui["english_documentation"]}' - f"{ui['retained_after']}

\n\n{body}" - ) - - def rewrite(text: str, *, banner: bool) -> str: - def replace(match: re.Match[str]) -> str: - if not match.group("link") or not match.group("target"): - return match.group(0) - target = _link_target(match.group("target"), entry, pages, site_url, banner=banner) - return ( - f"{match.group('bang')}{match.group('text')}{target}" - f"{match.group('anchor') or ''}{match.group('tail')}" - ) - - return _TOKEN.sub(replace, text) - - return rewrite(header, banner=True) + separator + rewrite(body, banner=False) - - -def on_page_markdown(markdown, page, config, files): - pages = config.extra["locale_pages"] - uri = page.file.src_uri - entry = pages.get(uri) - source = entry["source"] if entry else uri - page.meta["language"] = entry["language"] if entry else "en" - page.meta["locale_ui"] = COPY[page.meta["language"]] - page.meta["theme_language"] = {"zh-CN": "zh"}.get(page.meta["language"], page.meta["language"]) - page.meta["og_locale"] = _OG_LOCALES.get(page.meta["language"]) - page.meta["alternates"] = alternates(source, pages, config.site_url) - choice_source = "index.md" if entry and entry["obsolete"] else source - choices = page.meta["language_choices"] = language_choices( - choice_source, pages, config.site_url - ) - current_url = config.site_url + quote(page_path(f"docs/{uri}")) - for choice in choices: - choice["current"] = choice["url"] == current_url - if not entry: - return markdown - page.edit_url = None - page.meta["title"] = page.title = page_summary(Path(entry["path"]))[0] - page.meta["translation_stale"] = entry["stale"] - page.meta["translation_obsolete"] = entry["obsolete"] - return translated_markdown(markdown, entry, pages, config.site_url) - - -def on_post_page(output, page, config): - language = html.escape(page.meta.get("language", "en"), quote=True) - if language != "en": - output = translated_video_labels(output) - return re.sub(r'(]*\blang=")[^"]*(")', rf"\g<1>{language}\2", output, count=1) - - -def on_post_build(config): - site = Path(config.site_dir) - pages = config.extra["locale_pages"] - for uri, entry in pages.items(): - body = translated_markdown( - Path(entry["path"]).read_text(encoding="utf-8"), entry, pages, config.site_url - ) - if entry["stale"] and not entry["obsolete"]: - source_url = config.site_url + quote(page_path(f"docs/{entry['source']}")) - ui = COPY[entry["language"]] - body = ( - f"> {ui['stale_before']}[{ui['english_page']}]({source_url})" - f"{ui['stale_after']}\n\n{body}" - ) - text = _with_source(body, config.site_url, quote(uri)) - places = [site / uri, site / page_path(f"docs/{uri}") / "index.html.md"] - if uri.endswith("/index.md"): - places.append(site / f"{uri[: -len('/index.md')]}.md") - for out in places: - out.parent.mkdir(parents=True, exist_ok=True) - out.write_text(text, encoding="utf-8") diff --git a/scripts/docs_site/messages.py b/scripts/docs_site/messages.py deleted file mode 100644 index 687608d237..0000000000 --- a/scripts/docs_site/messages.py +++ /dev/null @@ -1,199 +0,0 @@ -"""Interface copy for language navigation and translation status.""" - -COPY = { - "en": { - "language": "Language", - "documentation": "Documentation", - "english": "English", - "fallback": "Pages without a translation open in English and are labelled English.", - "stale_before": "The English source has changed since this machine translation. Read the ", - "english_page": "English page", - "stale_after": " for the current instructions.", - "retained_before": ( - "This machine translation is retained. Its English source is no longer available. " - "See the " - ), - "english_documentation": "English documentation", - "retained_after": " for current instructions.", - }, - "zh-CN": { - "language": "语言", - "documentation": "文档", - "english": "英语", - "fallback": "尚无译文的页面会以英语打开,并标注为英语。", - "stale_before": "此机器翻译生成后,英文原文已更新。请阅读", - "english_page": "英文页面", - "stale_after": "以获取当前说明。", - "retained_before": "此机器译文予以保留,但其英文原文已不可用。最新说明请参阅", - "english_documentation": "英文文档", - "retained_after": "。", - }, - "ja": { - "language": "言語", - "documentation": "ドキュメント", - "english": "英語", - "fallback": "未翻訳のページは英語で開き、英語と表示されます。", - "stale_before": "この機械翻訳の作成後に英語の原文が更新されています。最新の手順は", - "english_page": "英語のページ", - "stale_after": "を参照してください。", - "retained_before": ( - "この機械翻訳は保持されていますが、英語の原文は利用できなくなっています。最新の手順は" - ), - "english_documentation": "英語のドキュメント", - "retained_after": "を参照してください。", - }, - "ko": { - "language": "언어", - "documentation": "문서", - "english": "영어", - "fallback": "번역되지 않은 페이지는 영어로 열리며 영어로 표시됩니다.", - "stale_before": "이 기계 번역이 생성된 뒤 영어 원문이 변경되었습니다. 최신 지침은 ", - "english_page": "영어 페이지", - "stale_after": "를 확인하세요.", - "retained_before": ( - "이 기계 번역은 보존되어 있지만 영어 원문은 더 이상 제공되지 않습니다. 최신 지침은 " - ), - "english_documentation": "영어 문서", - "retained_after": "를 확인하세요.", - }, - "pt-BR": { - "language": "Idioma", - "documentation": "Documentação", - "english": "Inglês", - "fallback": "As páginas sem tradução abrem em inglês e são identificadas como inglês.", - "stale_before": "O original em inglês mudou desde esta tradução automática. Consulte a ", - "english_page": "página em inglês", - "stale_after": " para ver as instruções atuais.", - "retained_before": ( - "Esta tradução automática foi preservada, mas o original em inglês não está mais " - "disponível. Consulte a " - ), - "english_documentation": "documentação em inglês", - "retained_after": " para ver as instruções atuais.", - }, - "es": { - "language": "Idioma", - "documentation": "Documentación", - "english": "Inglés", - "fallback": "Las páginas sin traducir se abren en inglés y se indican como inglés.", - "stale_before": ( - "El original en inglés ha cambiado desde esta traducción automática. Consulta la " - ), - "english_page": "página en inglés", - "stale_after": " para ver las instrucciones actuales.", - "retained_before": ( - "Esta traducción automática se conserva, pero el original en inglés ya no está " - "disponible. Consulta la " - ), - "english_documentation": "documentación en inglés", - "retained_after": " para ver las instrucciones actuales.", - }, -} - -_SECTION_NAMES = ( - "Getting started", - "Use cases", - "Operations", - "Features", - "Reference", - "Concepts", - "Guides", - "Architecture", - "Benchmarks", - "Development", - "Code index", - "Integrations", - "Memory", - "Observability", - "Tracker", -) -SECTION_TITLES = { - code: dict(zip(_SECTION_NAMES, names, strict=True)) - for code, names in { - "zh-CN": ( - "入门指南", - "使用场景", - "操作", - "功能", - "参考", - "概念", - "指南", - "架构", - "基准测试", - "开发", - "代码索引", - "集成", - "记忆", - "可观测性", - "问题跟踪", - ), - "ja": ( - "入門", - "ユースケース", - "操作", - "機能", - "リファレンス", - "概念", - "ガイド", - "アーキテクチャ", - "ベンチマーク", - "開発", - "コードインデックス", - "連携", - "メモリ", - "可観測性", - "トラッカー", - ), - "ko": ( - "시작하기", - "사용 사례", - "작업", - "기능", - "참조", - "개념", - "가이드", - "아키텍처", - "벤치마크", - "개발", - "코드 인덱스", - "통합", - "메모리", - "관측 가능성", - "트래커", - ), - "pt-BR": ( - "Primeiros passos", - "Casos de uso", - "Operações", - "Recursos", - "Referência", - "Conceitos", - "Guias", - "Arquitetura", - "Benchmarks", - "Desenvolvimento", - "Índice de código", - "Integrações", - "Memória", - "Observabilidade", - "Rastreador", - ), - "es": ( - "Primeros pasos", - "Casos de uso", - "Operaciones", - "Funciones", - "Referencia", - "Conceptos", - "Guías", - "Arquitectura", - "Pruebas de rendimiento", - "Desarrollo", - "Índice de código", - "Integraciones", - "Memoria", - "Observabilidad", - "Seguimiento", - ), - }.items() -} diff --git a/scripts/docs_site/overrides/partials/language.html b/scripts/docs_site/overrides/partials/language.html deleted file mode 100644 index 26c60682c5..0000000000 --- a/scripts/docs_site/overrides/partials/language.html +++ /dev/null @@ -1,4 +0,0 @@ -{% set language = page.meta.theme_language if page and page.meta.theme_language else config.theme.language %} -{% import "partials/languages/" ~ language ~ ".html" as localized %} -{% import "partials/languages/en.html" as fallback %} -{% macro t(key) %}{{ localized.t(key) or fallback.t(key) or key }}{% endmacro %} diff --git a/scripts/docs_site/overrides/partials/locales-head.html b/scripts/docs_site/overrides/partials/locales-head.html deleted file mode 100644 index ff2e85c88f..0000000000 --- a/scripts/docs_site/overrides/partials/locales-head.html +++ /dev/null @@ -1,8 +0,0 @@ -{% if page %} - {% if page.meta.og_locale %} - - {% endif %} - {% for alternate in page.meta.alternates %} - - {% endfor %} -{% endif %} diff --git a/scripts/docs_site/overrides/partials/locales-switch.html b/scripts/docs_site/overrides/partials/locales-switch.html deleted file mode 100644 index 0280a794d8..0000000000 --- a/scripts/docs_site/overrides/partials/locales-switch.html +++ /dev/null @@ -1,14 +0,0 @@ -{% if page and page.meta.language_choices | length > 1 %} - -{% endif %} -{% if locale_has_english_fallback %} -

{{ page.meta.locale_ui.fallback }}

-{% endif %} -{% if page and page.meta.translation_stale and not page.meta.translation_obsolete %} -

{{ page.meta.locale_ui.stale_before }}{{ page.meta.locale_ui.english_page }}{{ page.meta.locale_ui.stale_after }}

-{% endif %} diff --git a/scripts/docs_site/overrides/sitemap.xml b/scripts/docs_site/overrides/sitemap.xml deleted file mode 100644 index 22b9e6759b..0000000000 --- a/scripts/docs_site/overrides/sitemap.xml +++ /dev/null @@ -1,14 +0,0 @@ - -{# The legacy site serves redirects. MkDocs supplies a build date for update_date. #} - -{% for file in pages %} -{% if not file.page.is_link and (file.page.abs_url or file.page.canonical_url) %} - - {{ (file.page.canonical_url or file.page.abs_url) | e }} - {% for alternate in file.page.meta.alternates %} - - {% endfor %} - -{% endif %} -{% endfor %} - diff --git a/scripts/docs_site/video_labels.py b/scripts/docs_site/video_labels.py deleted file mode 100644 index 1581092442..0000000000 --- a/scripts/docs_site/video_labels.py +++ /dev/null @@ -1,73 +0,0 @@ -"""Use a translated video's fallback text as its accessible label.""" - -from __future__ import annotations - -import html -from html.parser import HTMLParser -from itertools import accumulate - - -class _VideoLabels(HTMLParser): - def __init__(self, content: str): - super().__init__(convert_charrefs=True) - self.offsets = list(accumulate([0, *(len(line) + 1 for line in content.split("\n"))])) - self.video: tuple[int, str, list[tuple[str, str | None]]] | None = None - self.caption: list[str] = [] - self.link_depth = 0 - self.raw_text: str | None = None - self.replacements: list[tuple[int, int, str]] = [] - - def handle_starttag(self, tag, attrs): - if self.raw_text is not None: - return - if tag in {"textarea", "title", "script", "style"}: - self.raw_text = tag - return - if tag == "video" and self.video is None: - line, column = self.getpos() - opening = self.get_starttag_text() - assert opening is not None - self.video = (self.offsets[line - 1] + column, opening, attrs) - self.caption = [] - elif tag == "a" and self.video is not None: - self.link_depth += 1 - elif tag == "br" and self.link_depth: - self.caption.append(" ") - - def handle_data(self, data): - if self.video is not None and self.link_depth and self.raw_text is None: - self.caption.append(data) - - def handle_endtag(self, tag): - if self.raw_text is not None: - if tag == self.raw_text: - self.raw_text = None - return - if tag == "a" and self.link_depth: - self.link_depth -= 1 - elif tag == "video" and self.video is not None: - start, opening, attrs = self.video - label = " ".join("".join(self.caption).split()) - if label and any(name == "aria-label" for name, _value in attrs): - attributes = [] - for name, value in attrs: - if name == "aria-label": - value = label - attributes.append( - name if value is None else f'{name}="{html.escape(value, quote=True)}"' - ) - self.replacements.append( - (start, start + len(opening), f"' in output - - -@pytest.mark.parametrize( - ("language", "body"), - [ - ("en", ''), - ("ja", ''), - ("ja", ''), - ("ja", ""), - ("ja", '
<video aria-label="Example">
'), - ("ja", ''), - ("ja", '<video aria-label="Example"><a>Literal</a></video>'), - ("ja", ""), - ], -) -def test_video_label_projection_leaves_other_content(language, body): - text = f'{body}' - assert locales.on_post_page(text, SimpleNamespace(meta={"language": language}), None) == text - - -def test_each_video_keeps_its_own_fallback_and_escaped_label(): - text = ( - '\n' - '' - ) - output = locales.on_post_page(text, SimpleNamespace(meta={"language": "ja"}), None) - assert [attrs["aria-label"] for attrs in _Videos(output).attributes] == [ - '最初 "引用"', - "次の <例>", - ] diff --git a/tests/unit/test_i18n.py b/tests/unit/test_i18n.py index f6aae60bf3..30c943ce66 100644 --- a/tests/unit/test_i18n.py +++ b/tests/unit/test_i18n.py @@ -471,10 +471,10 @@ def test_a_new_language_is_linked_from_every_readme_without_translating( def test_translated_readme_links_to_its_existing_site_landing(tmp_path, monkeypatch) -> None: - from scripts.docs_site import indexnow + from scripts.i18n import site monkeypatch.setattr(t, "ROOT", tmp_path) - monkeypatch.setattr(indexnow, "SITE", "https://example.com/docs/") + monkeypatch.setattr(site, "SITE", "https://example.com/docs/") for source in ("README.md", "docs/index.md", "docs/use-cases/index.md"): path = tmp_path / source path.parent.mkdir(parents=True, exist_ok=True) @@ -501,15 +501,13 @@ def test_translated_readme_links_to_its_existing_site_landing(tmp_path, monkeypa assert "https://example.com" not in t.language_line("i18n/es/README.md") -def test_generated_readme_uses_the_mkdocs_default_site_base() -> None: - import yaml +def test_generated_readme_uses_the_documentation_site_base() -> None: + from scripts.i18n import site - from scripts.docs_site import indexnow - - config = yaml.compose((ROOT / "mkdocs.yml").read_text()) - site_url = next(value for key, value in config.value if key.value == "site_url") - assert site_url.tag == "!ENV" - assert [item.value for item in site_url.value] == ["LOOM_LEGACY_DOCS_URL", indexnow.SITE] + config = (ROOT / "docs/blume.config.ts").read_text() + assert 'site: new URL(siteUrl).origin' in config + assert 'base: "/docs"' in config + assert site.SITE == "https://loom.clickhouse.com/docs/" @pytest.mark.parametrize( @@ -530,11 +528,11 @@ def test_readme_keeps_a_native_site_link_without_a_translated_index( ) -> None: from html.parser import HTMLParser - from scripts.docs_site import indexnow, locales + from scripts.i18n import site class Links(HTMLParser): def handle_starttag(self, tag, attrs): - if tag == "a" and dict(attrs).get("href", "").startswith(indexnow.SITE): + if tag == "a" and dict(attrs).get("href", "").startswith(site.SITE): links.append(dict(attrs)) monkeypatch.setattr(t, "ROOT", tmp_path) @@ -546,11 +544,10 @@ def handle_starttag(self, tag, attrs): target = tmp_path / t.target_path(language.code, source) target.parent.mkdir(parents=True, exist_ok=True) target.write_text(t.header(source, language, t.DEFAULT_MODEL, t.blob(source)) + "# Loom\n") - uri = locales.landing_uri(language.code, locales.translations(tmp_path)) - assert uri == language.code + "/" + expected + assert site.landing_sources(sources)[0] == expected links = [] Links().feed(t.language_line("i18n/ja/README.md")) - assert links == [{"href": indexnow.SITE + "ja/" + route}] + assert links == [{"href": site.SITE + "ja/" + route}] def _translations() -> list[tuple[str, t.Language]]: diff --git a/tests/unit/test_i18n_lifecycle.py b/tests/unit/test_i18n_lifecycle.py index 6162dedfd1..f31af2bc71 100644 --- a/tests/unit/test_i18n_lifecycle.py +++ b/tests/unit/test_i18n_lifecycle.py @@ -62,8 +62,6 @@ def publish(root: pathlib.Path, source: str) -> None: def test_subset_retires_its_landing_and_preserves_other_readme_navigation( repo: pathlib.Path, monkeypatch: pytest.MonkeyPatch, preferred: str ) -> None: - from scripts.docs_site import locales - put(repo, "README.md", "# Loom\n\n\n\n") landings = {preferred, "docs/use-cases/index.md"} for source in landings: @@ -106,8 +104,6 @@ def translate(source, lang, client, spend): assert calls == [("docs/extra.md", "ja")] assert not (repo / t.target_path("ja", preferred)).exists() assert (repo / t.target_path("es", preferred)).is_file() - retained_uri = locales.localized_uri("es", preferred.removeprefix("docs/")) - assert locales.translations(repo)[retained_uri]["obsolete"] assert spanish.read_bytes() == retained assert not t.language_lines_differ() assert t.check(skip_stale=True) == 0 @@ -119,7 +115,7 @@ def translate(source, lang, client, spend): def test_retiring_the_last_native_landing_removes_the_readme_site_link(repo: pathlib.Path) -> None: - from scripts.docs_site import indexnow + from scripts.i18n import site put(repo, "README.md", "# Loom\n\n\n\n") put(repo, "docs/index.md", "# Alpha\n") @@ -127,10 +123,10 @@ def test_retiring_the_last_native_landing_removes_the_readme_site_link(repo: pat for source in ("README.md", "docs/index.md"): publish(repo, source) t.write_language_lines() - assert indexnow.SITE in t.language_line("i18n/ja/README.md") + assert site.SITE in t.language_line("i18n/ja/README.md") (repo / "docs/index.md").unlink() assert lc.retire_obsolete(["ja"]) == (1, 0) - assert indexnow.SITE not in (repo / "i18n/ja/README.md").read_text() + assert site.SITE not in (repo / "i18n/ja/README.md").read_text() assert not t.language_lines_differ() assert t.check(skip_stale=True) == 0 From 09af6145644848f1c33f1957f32022973810c5f2 Mon Sep 17 00:00:00 2001 From: Shaun Struwig <41984034+Blargian@users.noreply.github.com> Date: Tue, 24 Nov 2026 18:21:07 +0100 Subject: [PATCH 08/16] Format repository guide table The documentation formatter removes the extra alignment space. Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com> --- docs/development/repository-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/development/repository-guide.md b/docs/development/repository-guide.md index 301d03f6d9..970edc74f2 100644 --- a/docs/development/repository-guide.md +++ b/docs/development/repository-guide.md @@ -17,7 +17,7 @@ What every top-level directory holds, where a concern lives inside `server/`, th | `bench/` | benchmark harnesses and gates, their fixtures (`fixtures/`), datasets, rubrics, acceptance and skill evals; see [benchmarks](../benchmarks/overview.md) | | `integrations/` | client integrations: the Claude Code and Codex plugins, the Cline hooks, the grep shim, Cursor and generic transcript hooks, the OKF CI gate | | `skills/` | the standalone Agent Skills: `loom-code`, and `loom` (the agent guide the server image ships and `mentor.guide` serves) | -| `scripts/` | `codegen/` (generators), `gates/` (CI ratchets and guards), `ops/` (operator tools), `scip_harness/` (compiler-tier producers), `docs_site/` (pinned packages for the translation parser), `i18n/` (the translation generator and its freshness check) | +| `scripts/` | `codegen/` (generators), `gates/` (CI ratchets and guards), `ops/` (operator tools), `scip_harness/` (compiler-tier producers), `docs_site/` (pinned packages for the translation parser), `i18n/` (the translation generator and its freshness check) | | `tests/` | `unit/`, `integration/`, `analyzer/`, `code_lanes/`, `fixtures/` (below) | | `examples/` | runnable integration examples (`claude_agent_loop.py`, `ledger_run.py`, `log_conversation.py`, `onboarding_walkthrough.py`), and the course starter a teacher copies into a repository of their own (`course-starter/`, [teaching](../guides/teaching.md#hand-out-the-labs-as-an-assignment)) | | `i18n/` | machine translations of the README, the quickstart and the use-case pages, one folder per language in `LANGUAGES`; generated by `scripts/i18n/translate.py` (`.github/workflows/i18n.yml`), never edited by hand | From 92d357679170b4dee576efa71fbef34bbe358afc Mon Sep 17 00:00:00 2001 From: Shaun Struwig <41984034+Blargian@users.noreply.github.com> Date: Tue, 24 Nov 2026 18:54:58 +0100 Subject: [PATCH 09/16] Render procedure docs with Steps Numbered procedure headings bypassed the site component and did not share its visual treatment. Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com> --- .claude/rules/workers.md | 2 +- README.md | 2 +- docs/benchmarks/methodology.md | 2 +- docs/benchmarks/running.md | 16 ++++++-- docs/development/adding-a-table.md | 20 ++++++++-- docs/development/adding-a-worker.md | 32 ++++++++++++---- docs/development/adding-an-operation.md | 36 +++++++++++++----- docs/development/adding-language-support.md | 24 +++++++++--- docs/development/extending-loom.md | 2 +- .../integrations/agent-instructions.md | 2 +- docs/features/integrations/agent-substrate.md | 22 ++++++++--- docs/getting-started/agent-setup.md | 22 ++++++++--- .../getting-started/connect-a-coding-agent.md | 2 +- docs/getting-started/evaluate.md | 20 +++++++--- docs/getting-started/first-agent.md | 38 +++++++++++++++---- docs/getting-started/quickstart.md | 38 ++++++++++++++----- docs/guides/agent-integration.md | 32 ++++++++++++---- docs/guides/debugging.md | 24 ++++++++++-- docs/guides/headless-bots.md | 26 ++++++++++--- docs/guides/importing-clickgap-memory.md | 20 ++++++++-- docs/guides/optimize-namespace.md | 28 +++++++++++--- docs/guides/query-from-postgres.md | 24 +++++++++--- docs/index.md | 32 +++++++++++++--- docs/operations/deployment.md | 2 +- docs/operations/troubleshooting.md | 2 +- docs/scripts/prepare-content.mjs | 37 +++++++++++++++++- docs/theme.css | 14 +++++++ docs/use-cases/agent-memory.md | 2 +- 28 files changed, 414 insertions(+), 109 deletions(-) diff --git a/.claude/rules/workers.md b/.claude/rules/workers.md index 5688b42a39..2d7d6af341 100644 --- a/.claude/rules/workers.md +++ b/.claude/rules/workers.md @@ -11,5 +11,5 @@ paths: - A pass that reaches ClickHouse retries a transient failure within its pass budget rather than waiting for the next interval. - A worker whose written orgs come only from a log table (`LOG_TABLES` in `server/cli/cell_scan.py`) writes a log table too: its table joins `LOG_TABLES`, so the first attach never places an org a caller only typed. - An intended change to the enabled set, order, cadence or deadline updates the snapshot: `LOOM_UPDATE_WORKER_SNAPSHOT=1 .venv/bin/python -m pytest tests/unit/test_worker_registry_snapshot.py`. -- Two copies can briefly overlap (a lease handover, an `on` process, two colours during a deploy): a pass is harmless when it runs twice at once — idempotent writes, leased claims, cursors in the store ([where it runs](../../docs/development/adding-a-worker.md#5-understand-where-it-runs)). +- Two copies can briefly overlap (a lease handover, an `on` process, two colours during a deploy): a pass is harmless when it runs twice at once — idempotent writes, leased claims, cursors in the store ([where it runs](../../docs/development/adding-a-worker.md)). - Guide: [adding-a-worker](../../docs/development/adding-a-worker.md). diff --git a/README.md b/README.md index 6e69f4bdbf..a1611489ba 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ Results are specific to the tested workloads. Both modes support the same Loom features, including configured LLMs and embeddings. Single-user is not a reduced-feature edition. You can also -[switch an existing installation without deleting its data](./docs/getting-started/quickstart.md#2-open-the-dashboard); +[switch an existing installation without deleting its data](./docs/getting-started/quickstart.md); grant new accounts access to the existing namespaces. To try it with nothing installed, open it in a codespace: diff --git a/docs/benchmarks/methodology.md b/docs/benchmarks/methodology.md index 0e0708fc62..acccee6212 100644 --- a/docs/benchmarks/methodology.md +++ b/docs/benchmarks/methodology.md @@ -262,7 +262,7 @@ key-less provider makes `/v1/health` report `degraded` before you spend a run. | Evaluation reads | `measurement_fields()` sends `auto_touch: false` / `reinforce: false`; `--credit` opts in; on a namespace read before, pass `reinforcement_weight: 0` or use fresh rows | | Fresh namespaces | One throwaway namespace per item or conversation, erased at the end | | Warm-up | `search_latency.py --warm 1` discards the first call per query, so embedding-cache misses do not count as retrieval | -| Token lifetime | Mint a token that outlives the run ([running](./running.md#2-mint-a-token-that-outlives-the-run)) | +| Token lifetime | Mint a token that outlives the run ([running](./running.md)) | ### Bench namespaces diff --git a/docs/benchmarks/running.md b/docs/benchmarks/running.md index 7680141a64..f090bac16a 100644 --- a/docs/benchmarks/running.md +++ b/docs/benchmarks/running.md @@ -12,7 +12,9 @@ virtualenv on the path, the harness silently runs that checkout's code. The `mak targets set `PYTHONPATH` this way (`BENCH_PYTHON` in the `Makefile`), and the commands below assume it is exported. `python bench/.py --help` lists a harness's flags. -## 1. Prepare a server with real providers + + + A bench on fake providers measures nothing ([why](./methodology.md#fake-providers-make-scores-meaningless)). The stock `.env` pins @@ -41,7 +43,9 @@ a shared one: its queue depth is part of what they measure. No harness records h For latency numbers, write down the host, the ClickHouse deployment (OSS single node or Cloud) and `build_commit` yourself. -## 2. Mint a token that outlives the run + + + A token that expires mid-run turns later calls into errors, which show up as 429s on the shared limiter rather than a clear failure. Long runs take hours, so mint with days of @@ -68,7 +72,9 @@ Judged benches also need `OPENAI_API_KEY` in the bench process for the pinned re judge. `OPENAI_BASE_URL` points them at a compatible gateway; `BENCH_READER_MODEL` / `BENCH_JUDGE_MODEL` override them and mark the run non-comparable. -## 3. Run a target + + + ### Offline (no server, no spend) @@ -188,6 +194,10 @@ Every other harness is `python bench/.py --base-url … --token …` plus flag. [`bench/README.md`](../../bench/README.md) lists them by area with a "when to run what" table. + + + + ## Datasets The repository commits only data written for it: one synthetic memory QA set, fixtures diff --git a/docs/development/adding-a-table.md b/docs/development/adding-a-table.md index d8af79bee1..d3846642d6 100644 --- a/docs/development/adding-a-table.md +++ b/docs/development/adding-a-table.md @@ -14,7 +14,9 @@ flowchart TD H -->|yes| I["row builders + memory_versions mirror"] ``` -## 1. Write the migration and regenerate the schema + + + [Migrations](migrations.md) owns the rules: numbering, what counts as additive, runner directives, sort-key rebuilds, and `make schema-dump` / `make schema-check` against the pinned ClickHouse. In short: @@ -25,7 +27,9 @@ flowchart TD Until a deployment applies the migration, the client's schema guard refuses a read or write naming a table a pending migration would create, with `SCHEMA_PENDING`. -## 2. Mirror every column on ReplacingMergeTree write paths + + + `loom.memory`, `loom.shared` and `loom.memory_embeddings` are `ReplacingMergeTree(version)` tables read with `FINAL`. Every handler that writes a new version row (set, tombstone, restore, touch, `update_by_id`, `bulk_set`, promote, demote) carries **every** persisted column forward. A column omitted on a later version row reads as zero under `FINAL`. @@ -44,7 +48,9 @@ When you add a column to one of these tables: Any new write path sets the server-stamped `actor` and `source_class` (`server.memory.domain.provenance`), never values from the request body. -## 3. Classify the table for erasure + + + Erasure is a saga (`server/erasure/app/saga.py`). Its last step is a residue census over every table the read paths touch; any live row in scope fails the saga closed. `tests/unit/test_every_table_is_classified.py` fails for any `CREATE TABLE` in `schema.sql` that is not in exactly one of three lists in `server/erasure/store/census.py`: @@ -72,12 +78,18 @@ For a `_CENSUS` table: Test the step's statement shape with a stub client, as `tests/unit/test_erasure_repo.py` and `tests/unit/test_erasure_late_steps.py` do. -## 4. Classify any mutation + + + An `ALTER TABLE loom. UPDATE|DELETE` is a ClickHouse mutation: it rewrites parts asynchronously and is not transactional. `tests/unit/test_clickhouse_mutation_inventory.py` counts every visible one under `server/` against `_EXPECTED_MUTATIONS`. A new one fails until you add it there with a comment saying why. Prefer a new version row on a `ReplacingMergeTree`, a tombstone column, or a lightweight `DELETE FROM`. Never use a mutation as a claim or lock a request waits on; the task inbox claims through a `KeeperMap` lease table instead. + + + + ## Checklist - [ ] New `schemas/migrations/_.sql`, additive, idempotent; no merged file edited. diff --git a/docs/development/adding-a-worker.md b/docs/development/adding-a-worker.md index caf48d881a..9b5e46a794 100644 --- a/docs/development/adding-a-worker.md +++ b/docs/development/adding-a-worker.md @@ -12,7 +12,9 @@ flowchart LR V --> W["loom.worker_status
/v1/admin/workers.status"] ``` -## 1. Write the pass + + + Create `server//workers/.py` with an `async def run_pass()`. The supervisor calls it once per interval and discards the return value. A small example is `server/tasks/workers/lease_sweep.py`: @@ -45,7 +47,9 @@ The pass contract: - **Cursor.** A paging worker reads `pass_context.resume_cursor()` and calls `pass_context.set_cursor(value)` where it stopped. The cursor is stored on the pass's `loom.worker_status` row, so a restarted process resumes. - **A broad `except` says why:** `# noqa: BLE001 — `. -## 2. Attribute its queries + + + The supervisor tags every pass: @@ -62,7 +66,9 @@ from server.core.ch import set_query_tag set_query_tag("worker.my_loop") ``` -## 3. Add its settings + + + Add the switch and the cadence to the area's section of `server/settings/catalog.py` (`Memory`, `Code`, `Tracker`, …). Each comment becomes the row's text in the generated [configuration reference](../reference/configuration.md). @@ -78,7 +84,9 @@ Add the switch and the cadence to the area's section of `server/settings/catalog Default a worker **off** when it needs credentials, spends on a provider, or serves a plane an operator opts into. Default-on workers run on every stack, including a laptop. -## 4. Add the registry row + + + ```python ( @@ -118,7 +126,9 @@ def due_scope() -> list[tuple[str, str]]: ... # the (org, namespace) pairs this That is `server/tracker/workers/embed.py`'s declaration. The check is one statement per table, bounded by `FIRST_PASS_DUE_TIMEOUT_SECONDS`. An unreadable table reads as due. -## 5. Understand where it runs + + + **One supervisor per deployment.** `server/workers/leader.py` elects one process across every container and host through ClickHouse: the `workers_supervisor` key in the Keeper lock table `loom._migration_lock`. The holder renews every `LOOM_SUPERVISOR_LEASE_TTL_S / 6`; a holder that loses the lease stops its workers; when the holder dies, another process takes over after `LOOM_SUPERVISOR_LEASE_TTL_S` (default 30 s). @@ -136,7 +146,9 @@ Run every replica in `auto`: any of them may become the leader. A `make server` **Rolling upgrades.** An older build leaves the lease to a live newer build (see [Failure and recovery](../architecture/failure-and-recovery.md#background-workers)). The old leader releases the lease when it stops, and a newer process takes it on its next round, within seconds. -## 6. Pin it in tests + + + - **Registry snapshot.** `tests/unit/test_worker_registry_snapshot.py` builds the worker list under three settings profiles (`defaults`, `all_on`, `production`) and compares every `WorkerSpec` field with `tests/unit/snapshots/worker_registry.json`. Regenerate it for an intended change only: @@ -151,12 +163,18 @@ Run every replica in `auto`: any of them may become the leader. A `make server` - **Generated docs.** `python scripts/codegen/docs_reference.py` regenerates the [workers reference](../reference/workers.md); `make lint` fails while it is stale. -## 7. Check it runs + + + - `/v1/admin/workers.status` merges this process's registry with the latest `loom.worker_status` row per worker, so the web tier shows workers running in the workers container. - `/v1/health?include=workers` reports per-worker status and `workers_leader`: whether the answering process holds the lock, and why. - Alert on `loom.worker.consecutive_failures{worker}` and `loom.worker.partial_failures{worker}` ([monitoring](../operations/monitoring.md)). + + + + ## Related - [Extending Loom](extending-loom.md) diff --git a/docs/development/adding-an-operation.md b/docs/development/adding-an-operation.md index c2639c6bcc..933a0b36d5 100644 --- a/docs/development/adding-an-operation.md +++ b/docs/development/adding-an-operation.md @@ -14,7 +14,9 @@ flowchart LR The example is `calibration.get`, one of the smallest ops: `server/memory/api/models_calibration.py`, `server/memory/api/ops_calibration.py` and `server/memory/app/calibration.py`. -## 1. Define the input and output models + + + Put them in the group's models module, `server//api/models_.py`. A models module holds Pydantic wire models only: it imports no handler. @@ -43,7 +45,9 @@ Rules for the models: - **No model-level "one of A or B" validators** on read inputs. The transport validates the body before authorization, so a raising `@model_validator` describes the op to a principal the namespace gate would refuse. Put the rule in the handler and raise `server.core.errors.ValidationError`. `tests/unit/test_op_inputs_after_gate.py` checks every registered op. - **To retire a field**, delete it. A client that still sends it is served, with the field named in `ignored_args` ([unknown and removed fields](../reference/http-api.md#unknown-and-removed-fields)). -## 2. Write the handler + + + One handler module per group, under `server//app/`. A handler is `async`, takes the input model and returns the output model. It imports the wire models at module top; the models never import a handler, so the import is acyclic: @@ -64,7 +68,7 @@ async def handle_calibration_get(input: CalibrationGetInput) -> CalibrationGetOu - The transport tags ClickHouse queries with `log_comment`; a handler does nothing. - Read settings as `settings.`, never `getattr(settings, ...)`. - If the op writes `loom.memory` or `loom.shared`, build rows with the builders in - `server/memory/store/rows.py` ([adding a table](adding-a-table.md#2-mirror-every-column-on-replacingmergetree-write-paths)). + `server/memory/store/rows.py` ([adding a table](adding-a-table.md)). ### Ops addressed by an org-wide id @@ -84,7 +88,9 @@ if row is None: Answer as for a missing row, never 403: a 403 confirms the id exists in another tenant. Pass `Role.WRITER` and `strong=True` to `namespace_for_id` for a write, so the holders are read current. An op that must read the row first, such as `memory.redact`, checks it with `authz.row_in_scope` after the fetch ([row-scoped operations](../architecture/security.md#row-scoped-operations)). -## 3. Declare the operation + + + ```python from server.operations.base import Operation, Role @@ -116,14 +122,16 @@ The declaration lives in the group's ops module, `server//api/ops_ + + `server/operations/toolsets.py` decides where the op is listed: @@ -134,7 +142,9 @@ The op is **read-only** (MCP `readOnlyHint`, the `readonly` toolset) exactly whe A listed op needs its description in `server/transport/mcp_descriptions.py` (`TOOL_DESCRIPTIONS`). Write it for the model: when to call the tool, what it returns, what not to use it for. A description about a changed fact interpolates `revision_policy()` from the same module instead of stating its own. Name another op by its dotted op name; each listing renames a listed op to its tool and marks an unlisted one ([MCP reference](../reference/mcp.md#tool-list)). Never write an op as a call (`op(args)`), inside a longer code span, or with a hand-written "(via loom_op)". An op name given as a field's example value goes in single quotes (`'memory.ask'`), which the listing leaves as written. -## 5. Check reach and maturity + + + An op's **reach** is derived (`Operation.reach`, `server/operations/reach.py`): its MCP roster membership plus a committed scan of the SDKs, `examples/`, `dev/` and `scripts/`, the plugin hooks, and the dashboard's `"/v1/"` call sites. `{"http_only"}` means only a raw `/v1/*` POST reaches it. @@ -144,7 +154,9 @@ Every op is on every surface or says why not in code. HTTP serves every op in th - A `stable` op is [listed under the MCP `all` toolset](../reference/operations.md#mcp-all-listing), or, if hidden from MCP, has another reach path, and is meant to have production callers; `python scripts/codegen/op_reach_census.py --call-counts --days 30` shows whether it has them. Declare a new op `experimental` unless it replaces a stable one. - Refresh the manifest: `python scripts/codegen/op_reach_census.py --write-manifest` (writes `server/operations/reach_manifest.py`). -## 6. Write the tests + + + | Test | What it asks of your op | | -------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -157,7 +169,9 @@ Every op is on every surface or says why not in code. HTTP serves every op in th If the leakage suite cannot synthesize a body for your op, it reports it; add a hint instead of skipping. An op that mutates the caller's own namespace goes in the suite's `_SKIP_OPS`, with the writer gate covered elsewhere. Integration tests need a running server (`LOOM_BASE_URL`) and skip without one. Mint tokens with the suite's helpers, not self-signup, which CI does not enable. -## 7. Regenerate and run the gates + + + ```bash python scripts/codegen/sdk_py_gen.py # sdk/python/loom/ops.py @@ -178,6 +192,10 @@ CI fails when a generated file is stale. The generated SDK files give every clie `python scripts/codegen/wire_changelog.py ` prints what changed for clients between two revisions. The release notes are built from it. + + + + ## Before you open the PR - [ ] Models, handler, declaration, `OPERATIONS` entry (and `_OPERATION_MODULES` for a new group). diff --git a/docs/development/adding-language-support.md b/docs/development/adding-language-support.md index ec1c13b9b1..52e63ffbe6 100644 --- a/docs/development/adding-language-support.md +++ b/docs/development/adding-language-support.md @@ -31,7 +31,9 @@ Languages `lang_for_path` does not name are detected in `lang_detect.py`, so add Every module under `server/code/domain/extract/` is either in a stage of `STAGE_MODULES` or named, with a reason, in `NON_EXTRACTOR_MODULES` in `tests/unit/test_code_extractor_stamp.py`. Put a new lane module in `NON_EXTRACTOR_MODULES`, or that test fails. -## 1. Choose the lane's shape + + + | Shape | Examples | You provide | | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -43,7 +45,9 @@ Every module under `server/code/domain/extract/` is either in a stage of `STAGE_ A grammar lane's grammar is **not** in `STAMPED_GRAMMARS`, so upgrading it moves no stamp. The lane owns re-deriving its rows. -## 2. Write the parser + + + `parse_(path: str, source: bytes) -> ParsedFile` returns the language tag, the symbols (`treesitter.Symbol`: qualified name, kind, span, signature), the includes and what the edge stage needs. Follow the nearest existing lane: @@ -71,7 +75,9 @@ _PARSERS = { and add the extension to `LANG_BY_EXTENSION` (`".rs": "rust"`). The wrapper imports the lane lazily, so an optional grammar stays optional. A new tree-sitter grammar also goes in `bounded_parse._LOADERS`, which every parse runs through first. -## 3. Test the lane + + + - **A lane test**, `tests/unit/test_code_lang_.py`, parses small inline sources and asserts names, kinds, spans, includes and edges. Skip when the grammar is absent: `pytest.importorskip("tree_sitter_rust")`. `test_code_lang_rust.py` and `test_code_lang_typescript.py` are the models. - **The lanes corpus.** Add fixtures under `tests/fixtures/code_lanes//`: synthetic, or open-source excerpts under their own licence, listed in `tests/fixtures/code_lanes/NOTICE.md`. `tests/unit/test_code_lanes_corpus.py` derives languages, symbols, facets, includes and edges from every fixture and compares them with `tests/fixtures/code_lanes/expected.json`. Regenerate and review the diff: @@ -88,7 +94,9 @@ and add the extension to `LANG_BY_EXTENSION` (`".rs": "rust"`). The wrapper impo `NON_EXTRACTOR_MODULES`. - **Retrieval.** For a lane that should answer `code.search` or `code.symbol` well, run the code-intelligence gate before and after. `make bench-code-intel-dry` checks the question set offline; `make bench-code-intel` runs it against a server with a real embedder, never the fake one ([running benchmarks](../benchmarks/running.md)). -## 4. Bring existing namespaces up to date + + + A lane outside the stamp changes nothing already indexed. New commits use the lane; old files keep their previous rows (often chunk-only). Re-derive them with a targeted backfill: @@ -101,7 +109,9 @@ loom code backfill --org --namespace --paths-file rust-pa > **Warning:** if a change must touch a stamped module (a `chunker.py` fix, a `treesitter.py` extension), say so in the PR. Every deployment that takes it re-derives the moved stages for every file of the affected families in every namespace. A `chunker.py` change moves only `chunk`; an `edges_treesitter.py` change moves `edge`, `chunk` and `guard`; a parser change moves every stage. -## 5. Add a compiler tier (optional) + + + A compiler tier pays off when fast-tier edges are ambiguous (overloads, dynamic dispatch, re-exports) and a SCIP indexer exists. `TIERS` in `server/code/domain/index/compiler_tiers.py` lists the tiers. Each `TierSpec` names the indexer (`scip-clang`, `scip-typescript`, `scip-go`, `scip-python`), its `code_index_state` watermark key (`scip_commit`, `scip_commit_ts`, `scip_commit_go`, `scip_commit_py`) and the workers that move it. A new tier needs: @@ -121,6 +131,10 @@ A compiler tier pays off when fast-tier edges are ambiguous (overloads, dynamic Compiler-tier rows carry `tier='scip'`. Reads merge them with the fast tier by qualified name, preferring the compiler tier. Files the indexer skips, and commits before their delta lands, still read from the fast tier. + + + + ## Related - [Code index overview](../features/code-index/overview.md) diff --git a/docs/development/extending-loom.md b/docs/development/extending-loom.md index 73da8dff0c..636430b89e 100644 --- a/docs/development/extending-loom.md +++ b/docs/development/extending-loom.md @@ -44,7 +44,7 @@ flowchart LR - **The code is the registry.** Transports iterate `ALL_OPERATIONS`, the supervisor iterates `_WORKERS`, and the settings reference is generated from `server/settings/`. Each registry has a snapshot or census test that fails until you regenerate it. - **Generated files.** `make lint` runs every generator with `--check`: the SDK op tables (`scripts/codegen/sdk_py_gen.py`, `sdk_ts_gen.py`), the reach manifest (`op_reach_census.py`), the reference pages (`docs_reference.py`, `settings_reference.py`) and the Codex plugin copies (`agent_plugin_sync.py`). See [code generation](code-generation.md). -- **Maturity.** A new op declares `maturity="experimental"` unless it replaces a stable one ([adding an operation](adding-an-operation.md#5-check-reach-and-maturity)). +- **Maturity.** A new op declares `maturity="experimental"` unless it replaces a stable one ([adding an operation](adding-an-operation.md)). - **Measurement.** A change to ranking, extraction or a provider default runs the relevant bench before and after ([performance tuning](../guides/performance-tuning.md#measure-first)). - **Foundational shapes are not extension points.** The engine (ClickHouse), the identity tuple, per-row content-hash audit and the five belief-revision operations change only with a design rationale in the PR and in the architecture docs ([system overview](../architecture/system-overview.md)). diff --git a/docs/features/integrations/agent-instructions.md b/docs/features/integrations/agent-instructions.md index 66910fd5b5..33a5dd40f3 100644 --- a/docs/features/integrations/agent-instructions.md +++ b/docs/features/integrations/agent-instructions.md @@ -147,7 +147,7 @@ Each line is the short form of what the plugins teach, or of what Loom's answers The block's last memory line stands for the end-of-task review; to spell it out, copy its questions from the [agent-integration -guide](../../guides/agent-integration.md#7-follow-the-memory-skills-review) under the +guide](../../guides/agent-integration.md) under the block. The skills carry the detail the block leaves out: the receipt fields, documents versus memories, the stop rules. The `loom` and `loom-code` skills can be installed beside the block for that detail ([coding agents](index.md#coding-agents)); `loom` diff --git a/docs/features/integrations/agent-substrate.md b/docs/features/integrations/agent-substrate.md index 3054a7336b..1a76a17f26 100644 --- a/docs/features/integrations/agent-substrate.md +++ b/docs/features/integrations/agent-substrate.md @@ -26,7 +26,9 @@ connections from the gateway pods, not from the actors. Each row records the tok subject, which tells the actors apart; the row's `agent` is the MCP client's name, which actors running the same client share. -## 1. Install Loom in the cluster + + + Install the chart as [Kubernetes](../../operations/kubernetes.md) describes, in namespace `loom` with release name `loom`, which names the Service `loom`. The agents need no @@ -49,7 +51,9 @@ networkPolicy: app: atenet-egress ``` -## 2. A token per agent + + + Give each agent its own token, with a service-account subject named for the atespace and the Substrate actor. Loom records that subject on each row the agent writes, and the token's @@ -105,7 +109,9 @@ kubectl -n loom-tokens-research create secret generic research-agent \ --from-literal=token="$TOKEN" --dry-run=client -o yaml | kubectl apply -f - ``` -## 3. Configure the agent and create its actor + + + Substrate's documentation describes no MCP configuration for actors: configure the agent's MCP client in its image or as literal environment values in the actor template. The server @@ -139,7 +145,9 @@ kubectl ate create actor-template -f template.yaml kubectl ate create actor research-agent --template=research-agent -a research ``` -## 4. Allow the actor to reach Loom, with its token + + + An actor has one egress policy. This one, for the actor created above, allows HTTP to Loom's Service and replaces the `Authorization` header the agent sends with @@ -188,6 +196,10 @@ With the policy in place, start the actor: kubectl ate resume actor research-agent -a research ``` + + + + ## Several agents - Agents in one Loom namespace share everything they write. A sub-agent that should read @@ -195,7 +207,7 @@ kubectl ate resume actor research-agent -a research (`--namespace-role team=viewer --namespace-role research=writer`; [mint a token](../../guides/tokens-and-grants.md#mint-a-token)). - Each actor gets its own token, Secret and egress policy; an actor in another atespace gets - that atespace's own token namespace and grant ([step 2](#2-a-token-per-agent)). + that atespace's own token namespace and grant. - Hand work between agents with the [task inbox](../tasks-and-decisions.md#task-inbox). ## Related diff --git a/docs/getting-started/agent-setup.md b/docs/getting-started/agent-setup.md index eb3a5968c0..77b3b590ba 100644 --- a/docs/getting-started/agent-setup.md +++ b/docs/getting-started/agent-setup.md @@ -44,7 +44,9 @@ This copy names no release, so its commands do not run as they are. Follow the what a check expects, or report `PASS` for a step that did not run. A `FAIL` line is a correct report. -## 1. Install the release + + + ```sh mkdir -p ~/loom-agent-setup @@ -55,10 +57,12 @@ curl -fsSL "https://github.com/ClickHouse/loom/releases/download/v/inst The installer verifies the bundle's SHA-256, installs under `~/.loom`, starts the stack and waits for the server's `/v1/health`. If the command fails, the report is its `install` -line alone; do not go on. The [quickstart](quickstart.md#1-boot-the-stack) says what the +line alone; do not go on. The [quickstart](quickstart.md) says what the installer does in full. -## 2. Install the plugin + + + The plugin comes from the same release's source, so it matches the server: @@ -86,7 +90,9 @@ with no token. **The person** now starts a new session of the agent (Codex: an i `codex` run, where they also approve the plugin's hooks), gives it this text again and says "continue at step 3". Steps 3 and 4 run in that session. -## 3. Run the check + + + Save this script as `loom-setup-check.py` and run `python3 loom-setup-check.py`. It uses only the Python standard library and talks to Loom over HTTP. It writes into the namespace @@ -237,7 +243,9 @@ What each check must see: When `server` fails, the script writes nothing and runs no other check. -## 4. Check the agent's connection + + + Call your `loom_search` tool once, with the query `agent setup check`, and run `claude plugin list` (or `codex plugin list`). The line is @@ -245,6 +253,10 @@ Call your `loom_search` tool once, with the query `agent setup check`, and run shows `loom@loom` enabled, otherwise `[FAIL] agent `. + + + + ## Report Give the script's lines, then the `agent` line, then one summary that counts the `agent` diff --git a/docs/getting-started/connect-a-coding-agent.md b/docs/getting-started/connect-a-coding-agent.md index 39efbf5b5b..623d2974a3 100644 --- a/docs/getting-started/connect-a-coding-agent.md +++ b/docs/getting-started/connect-a-coding-agent.md @@ -126,7 +126,7 @@ with `loom install`) so the tools the block names are listed. ## Share a team namespace with separate credentials -Use an [authenticated multi-user deployment](quickstart.md#2-open-the-dashboard) +Use an [authenticated multi-user deployment](quickstart.md) with TLS for remote clients. Single-user mode does not enforce team access boundaries. The server must support create-if-absent memory writes through `if_match_sha256: "absent"`, and its session-protection policy must admit the write. diff --git a/docs/getting-started/evaluate.md b/docs/getting-started/evaluate.md index 061ab54196..25d863e8e3 100644 --- a/docs/getting-started/evaluate.md +++ b/docs/getting-started/evaluate.md @@ -43,14 +43,16 @@ Pre-registering the gates prevents a convenient metric or slice from becoming th after the run. Keep failures and abstentions visible; report request errors separately instead of silently counting or discarding them as retrieval misses. -## 1. Product smoke test + + + This takes about 15 minutes and proves wiring, persistence and visibility—not semantic quality. -1. [Boot the local stack](quickstart.md#1-boot-the-stack) and confirm `/v1/health` reports +1. [Boot the local stack](quickstart.md) and confirm `/v1/health` reports `status: ok`. -2. [Write and search a fact](quickstart.md#4-first-memory-over-http). +2. [Write and search a fact](quickstart.md). 3. [Connect a coding agent](connect-a-coding-agent.md), tell it a durable preference, open a fresh session and ask for that preference. 4. Correct the fact, then confirm the dashboard shows its source and version history. @@ -62,7 +64,9 @@ answer, an unrelated question abstains, and the dashboard shows the writer and h The result says nothing about production recall while health reports `fake_embedding` or `fake_llm`. -## 2. Evaluate your workload + + + Configure [real providers](../operations/deployment.md#providers), reset or re-embed data if the vector width changed, and record the resolved models from `/v1/health`. Use an @@ -233,7 +237,9 @@ it defers MCP tool definitions. slice to a general claim. - Save per-question outputs, including errors and misses—not only aggregate scores. -## 3. Audit or reproduce published results + + + The README is a scorecard, not the evidence ledger. For every published number: @@ -249,6 +255,10 @@ license are listed under [datasets](../benchmarks/running.md#datasets). Full pub can take hours and incur provider charges; start with the documented smoke slice, then run the complete protocol before publishing a comparison. + + + + ## What to publish Publish a result in the README only when it is representative, understandable in one row, diff --git a/docs/getting-started/first-agent.md b/docs/getting-started/first-agent.md index 14e5d0a9cc..a1d4b7c989 100644 --- a/docs/getting-started/first-agent.md +++ b/docs/getting-started/first-agent.md @@ -8,13 +8,15 @@ seo: This tutorial builds a small agent with the Python SDK. It continues from the [quickstart](./quickstart.md): the stack runs on `http://localhost:7777` and the Python -SDK is installed ([quickstart step 5](./quickstart.md#5-first-memory-from-python)). Every +SDK is installed ([quickstart step 5](./quickstart.md)). Every step runs on the stock stack. Meaningful extraction and grounded `memory.ask` answers need a configured real LLM; ranking is meaningful on the released stack's local embedder, not on a checkout's fake one ([providers](../operations/deployment.md#providers)). -## 1. Give the agent an identity + + + Every row Loom stores carries the identity tuple `(org, namespace, agent, user_id, session_id)`. The `Agent` binds the first three; `user_id` and `session_id` travel per @@ -55,7 +57,9 @@ facts, and one namespace shared by several agents must still say who wrote what. [identities and namespaces](../concepts/identities-and-namespaces.md) page explains the model. -## 2. Store facts and handle abstain + + + ```python async def remember_and_recall(a: Agent) -> None: @@ -102,7 +106,9 @@ does the user prefer?", user_id=USER)` returns `answer`, `abstain` and the `memo it cited. Grounded answers need a configured real LLM; the fake one can return deterministic output for development and tests. -## 3. Hold a conversation as a session + + + A `Session` is what an agent loop keeps between turns and across restarts. It binds one `(user_id, session_id)` scope and four verbs to it: @@ -138,7 +144,9 @@ SDK logs a warning) and extraction still runs. [Conversations and sessions](../features/conversations-and-sessions.md) covers threads, digests and session briefs. -## 4. Load context at session start + + + Outside a session, one call assembles the bounded block an agent wants before its first turn: working memory first, then the profile, relevant memories, matching procedures and @@ -159,7 +167,9 @@ instead of failing the pack. Working memory is scratchpad state, not retrieval m is loaded first and never embedded or ranked ([Working memory and profiles](../features/memory/working-memory-and-profiles.md)). -## 5. Record a task as a run + + + A run is one agent execution: what it was asked, what it relied on and how it ended. Naming the memories a run relied on is the feedback loop: those keys are credited in @@ -199,7 +209,9 @@ The same two calls are available directly as `a.run.begin(goal=...)` and stored as a `reflection` memory. `a.run.get(run_id)` replays a run with what it wrote, recalled and cost. [Runs](../features/runs.md) covers reflections, retention and grades. -## 6. Put it together + + + ```python async def main() -> None: @@ -218,6 +230,10 @@ agent, `/runs` for the run, and `/conversations` for the thread. Blocking code u `loom.SyncAgent`, which takes the same arguments and exposes every method as a blocking call. + + + + ## The same agent in TypeScript The TypeScript SDK (`@clickhouse/loom`; @@ -270,13 +286,19 @@ await bot.call( `memory.ask`. The [TypeScript SDK reference](../reference/typescript-sdk.md) covers the full surface. -## 7. Connect a coding agent + + + A coding agent reads the same namespace through MCP tools. What you stored from Python is visible to it when its token reads that namespace. [Connect a coding agent](./connect-a-coding-agent.md) covers the plugins and `loom install`. + + + + ## Next - [Memory](../concepts/memory.md): what happens between the write and the read. diff --git a/docs/getting-started/quickstart.md b/docs/getting-started/quickstart.md index c534527d9e..d7b906187a 100644 --- a/docs/getting-started/quickstart.md +++ b/docs/getting-started/quickstart.md @@ -14,7 +14,9 @@ Run Loom locally with Docker. The default install listens only on localhost and Use Docker Desktop or Docker Engine with Compose 2.20 or later. Leave port `7777` free for Loom. On Windows, run the installer in a WSL 2 terminal where `docker` works. -## 1. Boot the stack + + + ### Fast path: released image, no clone @@ -210,8 +212,8 @@ to localhost. Before sharing it with a team, configure [operator access](../oper and [TLS](../operations/deployment.md#proxy-and-tls). Configure [real models and API keys](./models-and-keys.md) as well; selecting multi-user mode does not replace the fake LLM. -For an already running single-user stack, follow the [switching instructions](#2-open-the-dashboard) -instead; container recreation preserves the existing data volumes. +For an already running single-user stack, follow the switching instructions below instead; +container recreation preserves the existing data volumes. ### Contributor path: build a checkout @@ -319,7 +321,9 @@ docker compose --project-directory "$HOME/.loom" exec loom loom doctor - `loom doctor` prints one line per server-side check. `--json` gives JSON. From a source checkout stack, run `docker compose --env-file .env -f compose.yaml -f dev/docker-compose.dev.yml exec loom loom doctor`. -## 2. Open the dashboard + + + `http://localhost:7777/` opens straight into the dashboard in `single-user` mode; in multi-user mode, sign up or sign in first. In `single-user` mode @@ -356,7 +360,9 @@ so anyone who reaches the port can then sign up. Before making the server reacha team, follow the [deployment guide](../operations/deployment.md#identity-modes) for operator access and [TLS](../operations/deployment.md#proxy-and-tls). -## 3. Get a token + + + In single-user mode a token is optional. Minting one anyway keeps your scripts working when auth is turned on, as long as they name their `org` (or send it blank), `namespace` @@ -396,7 +402,9 @@ export LOOM_API_KEY="" Claims, roles and grants are in [Tokens and grants](../guides/tokens-and-grants.md). -## 4. First memory over HTTP + + + Every operation is a `POST /v1/` with a JSON body. A fresh install with the stock `.env`, from the installer or a checkout, is single-user: no token, and an everyday memory @@ -428,7 +436,9 @@ agent's memories in the namespace, including those added in the dashboard; name `GET /v1/operations` lists every operation, and lets you try each one from the browser. Shapes are in the [HTTP API reference](../reference/http-api.md). -## 5. First memory from Python + + + ```bash pip install clickhouse-loom # or, from a clone: pip install ./sdk/python @@ -484,7 +494,9 @@ The client surfaces are in the [Python SDK](../reference/python-sdk.md) and [TypeScript SDK](../reference/typescript-sdk.md) references, and the [Rust SDK usage](https://github.com/ClickHouse/loom/blob/main/sdk/rust/README.md#use). -## 6. First memory from a coding agent + + + If the installer connected your agent, skip to the last paragraph of this section. @@ -532,7 +544,9 @@ Start a new session and say _"Remember that I never deploy on Friday."_ The agen `loom_search` and answers from the stored fact. The model decides when to save and search from the tool descriptions; there are no trigger words. -## 7. See it in the dashboard + + + | Page | Shows | | ----------------- | ------------------------------------------------- | @@ -542,6 +556,10 @@ search from the tool descriptions; there are no trigger words. The rest is in [Dashboard](../features/dashboard.md). + + + + ## Optional: index a repository on the released stack Adding a repository from the dashboard is refused on this stack with `SANDBOX_UNAVAILABLE`: @@ -620,7 +638,7 @@ the answer and the chunks it cited. With the fake LLM it prints the top | ----------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `set_from_messages` writes no facts | An empty result can be valid when the text contains nothing memorable. Check the provider configuration in [Models and keys](./models-and-keys.md); meaningful extraction needs a real LLM. | | Search results look arbitrary | The embedder is a fake one (`fake-ngram-*` in `.env`). Switch it as [Models and keys](./models-and-keys.md) says, which re-embeds what is stored. Do not delete your volumes to change models. | -| 401 `AUTH_INVALID` after turning auth on | No token, or one signed with another `LOOM_JWT_SECRET`. Re-mint with the Compose command in [Get a token](#3-get-a-token). | +| 401 `AUTH_INVALID` after turning auth on | No token, or one signed with another `LOOM_JWT_SECRET`. Re-mint with the Compose command in the token step above. | | The dashboard returns 503 | The server runs from source (`make server`) without a built frontend. Run `make frontend-build`. | | Released stack does not become healthy | Run `docker compose --project-directory "$HOME/.loom" logs --tail 100 loom clickhouse`. See [Troubleshooting](../operations/troubleshooting.md). | | Adding a repository answers `SANDBOX_UNAVAILABLE` | The stack runs without the repository-job sandbox. Index the repository through `LOOM_CODE_REPOS_JSON` ([Index a repository](#optional-index-a-repository-on-the-released-stack)). | diff --git a/docs/guides/agent-integration.md b/docs/guides/agent-integration.md index 1f08b50364..043a4486ff 100644 --- a/docs/guides/agent-integration.md +++ b/docs/guides/agent-integration.md @@ -20,7 +20,9 @@ system_prompt = "You triage support tickets.\n\n" + await agent.guide() Over MCP the primer names the call; an Agent-Skills client installs it with `npx skills add ClickHouse/loom --skill loom`. -## 1. Choose the client surface + + + | Surface | Use it when | What you get | | ------------------------------------------------------------ | ----------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -67,7 +69,9 @@ ID, outcome and latency, and confirm which evidence reached the model. SDK Keep startup metadata, context retrieval, investigative lookups, checks and recording separate when reporting tool adoption and cost. -## 2. Choose the identity + + + Every row carries the identity tuple `(org, namespace, agent, user_id, session_id)`, plus `run_id`. The token fixes `org` and the namespaces; the rest travels per call. @@ -88,7 +92,9 @@ Every row carries the identity tuple `(org, namespace, agent, user_id, session_i See [namespace access](tokens-and-grants.md#namespace-access). - **No secret or personal identifier in `agent`:** it is stamped on every ledger row. -## 3. Decide what to write + + + Pick the plane first. Durable memory is embedded, ranked, conflict-checked and versioned. Working memory is read by key and never ranked. Knowledge holds chunked documents. @@ -129,7 +135,9 @@ that works cases; [trace and resume](trace-and-resume.md) covers checkpoints. A statement from the user ("we deploy Tuesdays") is the trigger to write. Do not search first; the server handles duplicates and conflicts. -## 4. Read the write's answer + + + A `memory.set` reply is a receipt. Read it: @@ -144,7 +152,9 @@ A `memory.set` reply is a receipt. Read it: Pass `if_match_sha256` (from a `memory.get`) when two writers may race on one key; a stale hash is refused instead of overwriting. -## 5. Read with one call per question + + + 1. **Load context once per task.** `context.pack` returns a token-budgeted bundle: profile sections, working memory, the memories relevant to `query`, procedures, and optionally @@ -177,7 +187,9 @@ else: reply = hits[0].content_excerpt ``` -## 6. Record runs + + + A run is one execution of a task: its goal, what it recalled and relied on, what it wrote and its outcome. Recorded runs let ranking learn which memories help ([runs](../features/runs.md)). @@ -199,7 +211,9 @@ An agent outside the plugins should also hand the finished transcript to `memory.set_from_messages` (or close an `agent.session(...)`), so the server extracts what was durable. -## 7. Follow the memory skill's review + + + The plugins ship a `loom-memory` skill (`integrations/claude-code-plugin/skills/loom-memory/`, generated into the Codex plugin) @@ -224,6 +238,10 @@ skills cover code questions (`loom-code`, also at `skills/loom-code/` for any cl reworking a namespace (`loom-optimize`), session restore (`loom-session`) and client health (`loom-status`). + + + + ## Mistakes to avoid `namespace.audit` detects each of these; [optimize a namespace](optimize-namespace.md) turns diff --git a/docs/guides/debugging.md b/docs/guides/debugging.md index bee14c366c..260fa80a9e 100644 --- a/docs/guides/debugging.md +++ b/docs/guides/debugging.md @@ -16,7 +16,9 @@ flowchart TD G["memory.search explain=true
per-component scores"] -.-> B ``` -## 1. Capture the request's ids + + + Every HTTP response carries: @@ -38,7 +40,9 @@ curl -si "$LOOM_BASE_URL/v1/memory.search" -H "Authorization: Bearer $LOOM_API_K points at the query. A large `app` with a small `ch` points at a provider call (embedding, rerank, LLM). -## 2. Join the request across systems + + + The same id is in `loom.agent_events.request_id`, the Langfuse trace metadata, and the span attribute `loom.request_id` in `default.otel_traces`. @@ -70,7 +74,9 @@ Spans go to `default.otel_traces` (in `LOOM_CLICKSTACK_DATABASE` when it is set) > free-text argument with a `sha256:<16 hex>/` shape. To see what was asked, use > the search trace log below or your own client log. -## 3. Explain a search answer + + + **Why did this rank here?** `memory.search` with `explain=true` attaches `score_components` to each served hit: the ranking signals and, after a reranker, its move (`rerank_from`, @@ -116,6 +122,10 @@ per search: `returned_keys`, `returned_scores`, `abstain`, `retrieval_risk`, `latency_ms`, and the `query` when `LOOM_LANGFUSE_CAPTURE_IO_LEVEL` is not `off` (its default is `off`, so by default the rows carry keys and scores without the question). + + + + ## Diagnose coding-agent overhead Separate three clocks: the agent's model requests, its tool and local work, and the @@ -175,7 +185,9 @@ failed solutions, and keep setup and judging costs separate from coding costs. Record whether source and lessons were present before attributing a bad patch to retrieval. Successful delivery does not establish relevance or correct use. -## 4. Explain a write + + + - **The write's own answer.** `memory.set` returns `status`, `conflict_verdict`, `peers`, `duplicate_of`, `merged_into_key`, `noop` and `advisories`. A write that "disappeared" @@ -195,6 +207,10 @@ retrieval. Successful delivery does not establish relevance or correct use. - **A run's view.** `run.get(run_id)` returns what a run recalled (`recalled_keys`), what it wrote, its turns and its cost ([trace and resume](trace-and-resume.md)). + + + + ## Related - [Troubleshooting](../operations/troubleshooting.md) diff --git a/docs/guides/headless-bots.md b/docs/guides/headless-bots.md index 629759ccc1..96b0951e00 100644 --- a/docs/guides/headless-bots.md +++ b/docs/guides/headless-bots.md @@ -4,7 +4,9 @@ A headless bot runs with no person to paste a token, notice a silent failure or "remember this". This guide covers the bot's identity, a connection check, three runtimes, what the bot writes, and how to diagnose a bot that has gone quiet. -## 1. Give the bot an identity + + + The `loom` CLI ships in the server image and installs from a clone with `pip install -e .`. The SDK package (`clickhouse-loom`) has no CLI. @@ -51,7 +53,9 @@ loom mint-token --subject ci-reviewer --org --namespaces agent-ci --roles See [tokens and grants](tokens-and-grants.md) for roles, lifetimes and rotation. -## 2. Check the connection before the first run + + + ```bash LOOM_BASE_URL=https:// LOOM_API_KEY="$(cat token.txt)" loom doctor --client @@ -68,7 +72,9 @@ fix, and the exit code is non-zero, so the command works as a CI gate: `--json` emits the checks and the problem list as JSON for a pipeline that parses them. -## 3. Connect the runtime + + + ### Claude Agent SDK or `claude -p` @@ -151,15 +157,19 @@ async with Agent(org="acme", namespace="agent-nightly-triage", agent="nightly-tr See the [Python SDK reference](../reference/python-sdk.md) and [framework integrations](../features/integrations/frameworks.md). -## 4. Decide what the bot writes + + + The plugins capture a coding session on their own. A bot outside them decides what to write. In short: record decisions and failures, not transcripts; recall once before a task, not once per step; hand a finished run's transcript to `memory.set_from_messages`; and report what the run relied on with `run.complete(memories_used=[...])`. -[Agent integration](agent-integration.md#3-decide-what-to-write) covers each choice. +[Agent integration](agent-integration.md) covers each choice. -## 5. When the bot is quiet + + + Run `loom doctor --client` on the bot's machine. It reports each of the usual causes on its own line: @@ -171,6 +181,10 @@ own line: | 403 on every write | The token is a `viewer` on the namespace the bot writes to | | Captures never appear | A background flusher never delivered them: stranded `loom-flush-*.json` files in the temp directory | + + + + ## Related - [Tokens and grants](tokens-and-grants.md) diff --git a/docs/guides/importing-clickgap-memory.md b/docs/guides/importing-clickgap-memory.md index 5fff9080da..4ea00c48a9 100644 --- a/docs/guides/importing-clickgap-memory.md +++ b/docs/guides/importing-clickgap-memory.md @@ -34,7 +34,9 @@ Two commands do the work: `version`. A re-import supersedes under `ReplacingMergeTree(version)` and the row count stays the same. -## 1. Dry-run + + + No writes. The dry run checks that every timestamp parses, prints the kind → type and TTL crosstab and the category count, and probes the embedder so rows do not land unembedded. @@ -47,7 +49,9 @@ loom import-clickgap \ Confirm the crosstab matches the source and that the embedder is reachable. -## 2. Import + + + Use a **dedicated namespace** (`clickgap`) so rollback is a single `namespace.delete`. The export carries no vectors, so every row is embedded on import with the live @@ -74,6 +78,10 @@ analytics. > **Warning:** `--seed-recall-events` is additive and not idempotent: run it once, into a > fresh namespace. It **drops `pr_number`**, because Loom usage events have no PR column. + + + + ## Recall signal The importer mirrors `recall_count` onto `memory_embeddings.reinforcement_count` and @@ -89,7 +97,9 @@ reinforcement terms ([retrieval and ranking](../concepts/retrieval-and-ranking.m workload depends on recall-frequency ordering, validate that the resulting order is acceptable (the validator reports recall-order τ) before cutover. -## 3. Validate before cutover + + + The validator mints its own admin token with `server.auth.jwt.mint_token`, so it needs `LOOM_JWT_SECRET` and an explicit `LOOM_BASE_URL`: there is no default target. Its probes @@ -126,6 +136,10 @@ Summaries (`summary → episodic`) are excluded from probes, since they are non- design. `--seed` (default 42) makes the probe sample reproducible; `--concurrency` (default 8) bounds concurrent searches. + + + + ## Use suppression memories The `false_positive` lessons ("looks like a bug, do NOT re-raise") are the suppression diff --git a/docs/guides/optimize-namespace.md b/docs/guides/optimize-namespace.md index bcf139a5e9..c57d90c581 100644 --- a/docs/guides/optimize-namespace.md +++ b/docs/guides/optimize-namespace.md @@ -50,7 +50,9 @@ dry_run}`; a dry run adds `memory_type` and `value_preview`. After a move: - `memory.get(from_key, follow=true)` serves the new row; - `memory.search` and `memory.list` show only the new row. -## 1. Audit + + + ```bash loom audit-namespace --org --namespace --window-days 7 --samples 5 @@ -78,7 +80,9 @@ The dashboard's namespace audit panel shows the same audit. `context.pack` carri warnings among `exact_key_store`, `double_encoded_values`, `unembedded_rows` and `coordination_as_memory`), so an agent sees it at session start. -## 2. Plan + + + Write one section per finding. Only codes the audit returned get a section. @@ -112,13 +116,17 @@ Store the plan as a knowledge document at `loom:////_optimize/plan- + + The namespace owner approves in writing. A plan shown is not a plan approved. A partial approval applies the named sections only. If the owner's writer is running (the audit's `sets` in the window says so), tell them; the last hour of rows is out of scope either way. -## 4. Apply + + + Back up first if the namespace matters: `memory.list … fields=["value"]` to a JSONL file, `namespace.snapshot` (HTTP or SDK; it is not served over MCP), or on the server @@ -145,13 +153,17 @@ curl -s "$LOOM_BASE_URL/v1/memory.move" -H "Authorization: Bearer $LOOM_API_KEY" "dry_run": true}' ``` -## 5. Measure + + + Run the audit again over the same window and append a before/after table to the plan document (`knowledge.upsert` on the same `source_uri`). Give the owner the [writer rules](investigation-agent-memory.md#writer-rules). -## 6. Retire nothing + + + Old keys stay readable through the redirect for as long as the owner wants. Once the writer uses the new keys, the owner may tombstone the old ones with `memory.delete` (soft: @@ -161,6 +173,10 @@ uses the new keys, the owner may tombstone the old ones with `memory.delete` (so > answers `found: false`, a client may fall back to local state, and two stores then > disagree. The redirect exists to prevent that. + + + + ## Related - [Investigation agent memory](investigation-agent-memory.md): the target layout diff --git a/docs/guides/query-from-postgres.md b/docs/guides/query-from-postgres.md index c49542f7ff..61643cf0ed 100644 --- a/docs/guides/query-from-postgres.md +++ b/docs/guides/query-from-postgres.md @@ -17,7 +17,9 @@ extension. Use a separate database, or a separate service, from the one Loom's CI tests the release `LOOM_PGCH_VERSION` names in `.github/workflows/ci.yml` on Postgres 16 and 18 (`tests/integration/test_pg_clickhouse_live_ch.py`). -## 1. Make a SQL user for the tenant + + + On the Loom side, as an operator ([access](../reference/sql-surface.md#access)): @@ -27,7 +29,9 @@ loom sql-access grant --user acme_bi --org acme --namespaces support,research It prints the user's password once. -## 2. Install the extension + + + The extension is in the `ghcr.io/clickhouse/pg_clickhouse:-` images and on [PGXN](https://pgxn.org/dist/pg_clickhouse/), to build into a self-managed @@ -56,7 +60,9 @@ As the owner: CREATE ROLE app_reader LOGIN PASSWORD ''; ``` -## 3. Point it at the ClickHouse service + + + ```sql CREATE SERVER loom_ch FOREIGN DATA WRAPPER clickhouse_fdw @@ -89,7 +95,9 @@ These are the extension's defaults, written down so a later release's defaults c one. A session that sets another setting fails in ClickHouse with `READONLY`: the SQL user's profile refuses it ([access](../reference/sql-surface.md#access)), whatever the role says. -## 4. Import the views + + + ```sql CREATE SCHEMA loom; @@ -113,7 +121,9 @@ imported with, so to pick up new ones drop the schema (and any Postgres view bui tables) and run the import and the grants again: `DROP SCHEMA loom CASCADE; CREATE SCHEMA loom;`. -## 5. Query and join + + + ```sql -- The facts Loom holds about each account on the support team @@ -132,6 +142,10 @@ GROUP BY day ORDER BY day; `value` is NULL where Loom withholds it; `value_withheld` says why. + + + + ## Cost and scale - `EXPLAIN (VERBOSE)` shows which part of a query runs in ClickHouse. A join between a diff --git a/docs/index.md b/docs/index.md index 2f6a8c236e..1812692f8f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -35,31 +35,45 @@ or [casos de uso en español](https://loom.clickhouse.com/docs/es/use-cases). [Video demonstration of a cited answer](assets/screenshots/clip-assistant-answer.webm) -## 1. Getting started + + + Check [what Loom includes](getting-started/whats-included.md), run the [quickstart](getting-started/quickstart.md), and [configure models and API keys](getting-started/models-and-keys.md). -## 2. Install and run the server + + + Choose a [deployment](operations/deployment.md), configure [single sign-on](operations/sso.md), and use the [operations guides](operations/index.md) to run Loom day to day. -## 3. Connect agents + + + [Connect a coding agent](getting-started/connect-a-coding-agent.md) or choose an [integration](features/integrations/index.md) for your editor, MCP client, or framework. -## 4. SDK and API + + + Find client libraries, commands, and wire contracts in the [reference](reference/index.md). -## 5. Namespaces, access and the memory model + + + Read how Loom scopes [identities and namespaces](concepts/identities-and-namespaces.md), stores [agent memory](concepts/memory.md), and [ranks retrieval results](concepts/retrieval-and-ranking.md). Use [tokens and grants](guides/tokens-and-grants.md) to set access. + + + + ## Guides Use the [guides](guides/index.md) for tasks such as connecting an agent, comparing memory @@ -70,12 +84,18 @@ setups, and tracing a long run. The [features index](features/index.md) covers memory, documents, code, work records, and access and audit controls. -## 6. Code index + + + Start with the [code-index overview](features/code-index/overview.md), add a [repository](features/code-index/repositories.md), and check its [indexing status](features/code-index/freshness.md). + + + + ## Architecture Read the [system overview](architecture/system-overview.md), diff --git a/docs/operations/deployment.md b/docs/operations/deployment.md index 4d8b4ae0d1..21674f746b 100644 --- a/docs/operations/deployment.md +++ b/docs/operations/deployment.md @@ -883,7 +883,7 @@ LOOM_JWT_SECRET=<...> When switching an installed local stack, edit `~/.loom/.env` (or the checkout's `.env`) and keep its existing random `LOOM_JWT_SECRET`; replacing it would invalidate tokens and sealed credentials. Recreate the Loom container to load the changes, as shown in the -[quickstart](../getting-started/quickstart.md#2-open-the-dashboard). Preserve the data +[quickstart](../getting-started/quickstart.md). Preserve the data volumes. Signing up does not automatically give a new account access to existing local memories: provision the appropriate namespace grants through an operator. diff --git a/docs/operations/troubleshooting.md b/docs/operations/troubleshooting.md index 97ee2cc1c8..308787ea1b 100644 --- a/docs/operations/troubleshooting.md +++ b/docs/operations/troubleshooting.md @@ -539,7 +539,7 @@ each field means is in [monitoring](./monitoring.md#health-checks). or `IDENTITY_INCOMPLETE` from a scoped token with no namespace in the body, is authorization, not a bug ([tokens and grants](../guides/tokens-and-grants.md#namespace-access)). Stranded `loom-flush-*.json` files in the temp directory are plugin captures that never - reached the server ([headless bots](../guides/headless-bots.md#5-when-the-bot-is-quiet)). + reached the server ([headless bots](../guides/headless-bots.md)). - **An MCP tool is missing from the listing.** Listings vary by the MCP URL's `?toolset=`, never by caller, with one exception: a `coding` connection that the `X-Loom-Code-Scope` header binds to a repository lists the code tools alone when its diff --git a/docs/scripts/prepare-content.mjs b/docs/scripts/prepare-content.mjs index a20d729ab6..a5cee3226d 100644 --- a/docs/scripts/prepare-content.mjs +++ b/docs/scripts/prepare-content.mjs @@ -1,5 +1,5 @@ import { createHash } from "node:crypto"; -import { cpSync, existsSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs"; +import { cpSync, existsSync, mkdirSync, readdirSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs"; import { fileURLToPath } from "node:url"; import { dirname, join, normalize, relative, resolve, sep } from "node:path"; import { spawnSync } from "node:child_process"; @@ -352,6 +352,7 @@ async function prepareContent() { }); if (prepared !== text) writeFileSync(file, prepared); } + promoteComponentPages(); const packagePath = fileURLToPath(import.meta.resolve("blume/package.json")); const codemod = join(dirname(packagePath), "skills", "blume-migrate", "scripts", "mkdocs-codemod.mjs"); @@ -361,7 +362,9 @@ async function prepareContent() { }); if (result.status !== 0) process.exit(result.status ?? 1); - if (!existsSync(join(content, "index.md"))) process.exit("Blume content preparation produced no index page."); + if (!existsSync(join(content, "index.md")) && !existsSync(join(content, "index.mdx"))) { + process.exit("Blume content preparation produced no index page."); + } for (const file of contentFiles(content)) { let text = readFileSync(file, "utf8") @@ -482,6 +485,36 @@ export function prepareTranslatedMarkup(text, englishSources) { return written + text.slice(cursor); } +/** Blume content components are available in MDX pages, not Markdown pages. */ +function promoteComponentPages() { + for (const file of contentFiles(content)) { + if (!file.endsWith(".md")) continue; + const text = readFileSync(file, "utf8"); + if (!/<\/?(?:Steps|Step)(?:\s|>)/.test(text)) continue; + writeFileSync(file, escapeMdxPlaceholders(text)); + renameSync(file, `${file.slice(0, -3)}.mdx`); + } +} + +/** Escape Markdown placeholders that MDX would otherwise parse as JSX tags. */ +function escapeMdxPlaceholders(text) { + let fenced = false; + return text + .split("\n") + .map((line) => { + if (/^\s*(```|~~~)/.test(line)) fenced = !fenced; + if (fenced) return line; + return line + .split(/(`[^`]*`)/) + .map((part, index) => { + if (index % 2) return part; + return part.replace(/<(?!\/?(?:Steps|Step)(?:\s|>))([A-Za-z][A-Za-z0-9_-]*)>/g, "<$1>"); + }) + .join(""); + }) + .join("\n"); +} + /** Move a generated translation's title into front matter for Blume to render once. */ export function normalizeTranslatedTitle(text, seo = {}) { if (!text.startsWith("|yes| I["row builders + memory_versions mirror"] ``` - - - +## 1. Write the migration and regenerate the schema [Migrations](migrations.md) owns the rules: numbering, what counts as additive, runner directives, sort-key rebuilds, and `make schema-dump` / `make schema-check` against the pinned ClickHouse. In short: @@ -27,9 +25,7 @@ flowchart TD Until a deployment applies the migration, the client's schema guard refuses a read or write naming a table a pending migration would create, with `SCHEMA_PENDING`. - - - +## 2. Mirror every column on ReplacingMergeTree write paths `loom.memory`, `loom.shared` and `loom.memory_embeddings` are `ReplacingMergeTree(version)` tables read with `FINAL`. Every handler that writes a new version row (set, tombstone, restore, touch, `update_by_id`, `bulk_set`, promote, demote) carries **every** persisted column forward. A column omitted on a later version row reads as zero under `FINAL`. @@ -48,9 +44,7 @@ When you add a column to one of these tables: Any new write path sets the server-stamped `actor` and `source_class` (`server.memory.domain.provenance`), never values from the request body. - - - +## 3. Classify the table for erasure Erasure is a saga (`server/erasure/app/saga.py`). Its last step is a residue census over every table the read paths touch; any live row in scope fails the saga closed. `tests/unit/test_every_table_is_classified.py` fails for any `CREATE TABLE` in `schema.sql` that is not in exactly one of three lists in `server/erasure/store/census.py`: @@ -78,18 +72,12 @@ For a `_CENSUS` table: Test the step's statement shape with a stub client, as `tests/unit/test_erasure_repo.py` and `tests/unit/test_erasure_late_steps.py` do. - - - +## 4. Classify any mutation An `ALTER TABLE loom. UPDATE|DELETE` is a ClickHouse mutation: it rewrites parts asynchronously and is not transactional. `tests/unit/test_clickhouse_mutation_inventory.py` counts every visible one under `server/` against `_EXPECTED_MUTATIONS`. A new one fails until you add it there with a comment saying why. Prefer a new version row on a `ReplacingMergeTree`, a tombstone column, or a lightweight `DELETE FROM`. Never use a mutation as a claim or lock a request waits on; the task inbox claims through a `KeeperMap` lease table instead. - - - - ## Checklist - [ ] New `schemas/migrations/_.sql`, additive, idempotent; no merged file edited. diff --git a/docs/development/adding-a-worker.md b/docs/development/adding-a-worker.md index 9b5e46a794..caf48d881a 100644 --- a/docs/development/adding-a-worker.md +++ b/docs/development/adding-a-worker.md @@ -12,9 +12,7 @@ flowchart LR V --> W["loom.worker_status
/v1/admin/workers.status"] ``` - - - +## 1. Write the pass Create `server//workers/.py` with an `async def run_pass()`. The supervisor calls it once per interval and discards the return value. A small example is `server/tasks/workers/lease_sweep.py`: @@ -47,9 +45,7 @@ The pass contract: - **Cursor.** A paging worker reads `pass_context.resume_cursor()` and calls `pass_context.set_cursor(value)` where it stopped. The cursor is stored on the pass's `loom.worker_status` row, so a restarted process resumes. - **A broad `except` says why:** `# noqa: BLE001 — `. - - - +## 2. Attribute its queries The supervisor tags every pass: @@ -66,9 +62,7 @@ from server.core.ch import set_query_tag set_query_tag("worker.my_loop") ``` - - - +## 3. Add its settings Add the switch and the cadence to the area's section of `server/settings/catalog.py` (`Memory`, `Code`, `Tracker`, …). Each comment becomes the row's text in the generated [configuration reference](../reference/configuration.md). @@ -84,9 +78,7 @@ Add the switch and the cadence to the area's section of `server/settings/catalog Default a worker **off** when it needs credentials, spends on a provider, or serves a plane an operator opts into. Default-on workers run on every stack, including a laptop. - - - +## 4. Add the registry row ```python ( @@ -126,9 +118,7 @@ def due_scope() -> list[tuple[str, str]]: ... # the (org, namespace) pairs this That is `server/tracker/workers/embed.py`'s declaration. The check is one statement per table, bounded by `FIRST_PASS_DUE_TIMEOUT_SECONDS`. An unreadable table reads as due. - - - +## 5. Understand where it runs **One supervisor per deployment.** `server/workers/leader.py` elects one process across every container and host through ClickHouse: the `workers_supervisor` key in the Keeper lock table `loom._migration_lock`. The holder renews every `LOOM_SUPERVISOR_LEASE_TTL_S / 6`; a holder that loses the lease stops its workers; when the holder dies, another process takes over after `LOOM_SUPERVISOR_LEASE_TTL_S` (default 30 s). @@ -146,9 +136,7 @@ Run every replica in `auto`: any of them may become the leader. A `make server` **Rolling upgrades.** An older build leaves the lease to a live newer build (see [Failure and recovery](../architecture/failure-and-recovery.md#background-workers)). The old leader releases the lease when it stops, and a newer process takes it on its next round, within seconds. - - - +## 6. Pin it in tests - **Registry snapshot.** `tests/unit/test_worker_registry_snapshot.py` builds the worker list under three settings profiles (`defaults`, `all_on`, `production`) and compares every `WorkerSpec` field with `tests/unit/snapshots/worker_registry.json`. Regenerate it for an intended change only: @@ -163,18 +151,12 @@ Run every replica in `auto`: any of them may become the leader. A `make server` - **Generated docs.** `python scripts/codegen/docs_reference.py` regenerates the [workers reference](../reference/workers.md); `make lint` fails while it is stale. - - - +## 7. Check it runs - `/v1/admin/workers.status` merges this process's registry with the latest `loom.worker_status` row per worker, so the web tier shows workers running in the workers container. - `/v1/health?include=workers` reports per-worker status and `workers_leader`: whether the answering process holds the lock, and why. - Alert on `loom.worker.consecutive_failures{worker}` and `loom.worker.partial_failures{worker}` ([monitoring](../operations/monitoring.md)). - - - - ## Related - [Extending Loom](extending-loom.md) diff --git a/docs/development/adding-an-operation.md b/docs/development/adding-an-operation.md index 933a0b36d5..c2639c6bcc 100644 --- a/docs/development/adding-an-operation.md +++ b/docs/development/adding-an-operation.md @@ -14,9 +14,7 @@ flowchart LR The example is `calibration.get`, one of the smallest ops: `server/memory/api/models_calibration.py`, `server/memory/api/ops_calibration.py` and `server/memory/app/calibration.py`. - - - +## 1. Define the input and output models Put them in the group's models module, `server//api/models_.py`. A models module holds Pydantic wire models only: it imports no handler. @@ -45,9 +43,7 @@ Rules for the models: - **No model-level "one of A or B" validators** on read inputs. The transport validates the body before authorization, so a raising `@model_validator` describes the op to a principal the namespace gate would refuse. Put the rule in the handler and raise `server.core.errors.ValidationError`. `tests/unit/test_op_inputs_after_gate.py` checks every registered op. - **To retire a field**, delete it. A client that still sends it is served, with the field named in `ignored_args` ([unknown and removed fields](../reference/http-api.md#unknown-and-removed-fields)). - - - +## 2. Write the handler One handler module per group, under `server//app/`. A handler is `async`, takes the input model and returns the output model. It imports the wire models at module top; the models never import a handler, so the import is acyclic: @@ -68,7 +64,7 @@ async def handle_calibration_get(input: CalibrationGetInput) -> CalibrationGetOu - The transport tags ClickHouse queries with `log_comment`; a handler does nothing. - Read settings as `settings.`, never `getattr(settings, ...)`. - If the op writes `loom.memory` or `loom.shared`, build rows with the builders in - `server/memory/store/rows.py` ([adding a table](adding-a-table.md)). + `server/memory/store/rows.py` ([adding a table](adding-a-table.md#2-mirror-every-column-on-replacingmergetree-write-paths)). ### Ops addressed by an org-wide id @@ -88,9 +84,7 @@ if row is None: Answer as for a missing row, never 403: a 403 confirms the id exists in another tenant. Pass `Role.WRITER` and `strong=True` to `namespace_for_id` for a write, so the holders are read current. An op that must read the row first, such as `memory.redact`, checks it with `authz.row_in_scope` after the fetch ([row-scoped operations](../architecture/security.md#row-scoped-operations)). - - - +## 3. Declare the operation ```python from server.operations.base import Operation, Role @@ -122,16 +116,14 @@ The declaration lives in the group's ops module, `server//api/ops_ - - +## 4. Decide MCP visibility `server/operations/toolsets.py` decides where the op is listed: @@ -142,9 +134,7 @@ The op is **read-only** (MCP `readOnlyHint`, the `readonly` toolset) exactly whe A listed op needs its description in `server/transport/mcp_descriptions.py` (`TOOL_DESCRIPTIONS`). Write it for the model: when to call the tool, what it returns, what not to use it for. A description about a changed fact interpolates `revision_policy()` from the same module instead of stating its own. Name another op by its dotted op name; each listing renames a listed op to its tool and marks an unlisted one ([MCP reference](../reference/mcp.md#tool-list)). Never write an op as a call (`op(args)`), inside a longer code span, or with a hand-written "(via loom_op)". An op name given as a field's example value goes in single quotes (`'memory.ask'`), which the listing leaves as written. - - - +## 5. Check reach and maturity An op's **reach** is derived (`Operation.reach`, `server/operations/reach.py`): its MCP roster membership plus a committed scan of the SDKs, `examples/`, `dev/` and `scripts/`, the plugin hooks, and the dashboard's `"/v1/"` call sites. `{"http_only"}` means only a raw `/v1/*` POST reaches it. @@ -154,9 +144,7 @@ Every op is on every surface or says why not in code. HTTP serves every op in th - A `stable` op is [listed under the MCP `all` toolset](../reference/operations.md#mcp-all-listing), or, if hidden from MCP, has another reach path, and is meant to have production callers; `python scripts/codegen/op_reach_census.py --call-counts --days 30` shows whether it has them. Declare a new op `experimental` unless it replaces a stable one. - Refresh the manifest: `python scripts/codegen/op_reach_census.py --write-manifest` (writes `server/operations/reach_manifest.py`). - - - +## 6. Write the tests | Test | What it asks of your op | | -------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -169,9 +157,7 @@ Every op is on every surface or says why not in code. HTTP serves every op in th If the leakage suite cannot synthesize a body for your op, it reports it; add a hint instead of skipping. An op that mutates the caller's own namespace goes in the suite's `_SKIP_OPS`, with the writer gate covered elsewhere. Integration tests need a running server (`LOOM_BASE_URL`) and skip without one. Mint tokens with the suite's helpers, not self-signup, which CI does not enable. - - - +## 7. Regenerate and run the gates ```bash python scripts/codegen/sdk_py_gen.py # sdk/python/loom/ops.py @@ -192,10 +178,6 @@ CI fails when a generated file is stale. The generated SDK files give every clie `python scripts/codegen/wire_changelog.py ` prints what changed for clients between two revisions. The release notes are built from it. - - - - ## Before you open the PR - [ ] Models, handler, declaration, `OPERATIONS` entry (and `_OPERATION_MODULES` for a new group). diff --git a/docs/development/adding-language-support.md b/docs/development/adding-language-support.md index 52e63ffbe6..ec1c13b9b1 100644 --- a/docs/development/adding-language-support.md +++ b/docs/development/adding-language-support.md @@ -31,9 +31,7 @@ Languages `lang_for_path` does not name are detected in `lang_detect.py`, so add Every module under `server/code/domain/extract/` is either in a stage of `STAGE_MODULES` or named, with a reason, in `NON_EXTRACTOR_MODULES` in `tests/unit/test_code_extractor_stamp.py`. Put a new lane module in `NON_EXTRACTOR_MODULES`, or that test fails. - - - +## 1. Choose the lane's shape | Shape | Examples | You provide | | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -45,9 +43,7 @@ Every module under `server/code/domain/extract/` is either in a stage of `STAGE_ A grammar lane's grammar is **not** in `STAMPED_GRAMMARS`, so upgrading it moves no stamp. The lane owns re-deriving its rows. - - - +## 2. Write the parser `parse_(path: str, source: bytes) -> ParsedFile` returns the language tag, the symbols (`treesitter.Symbol`: qualified name, kind, span, signature), the includes and what the edge stage needs. Follow the nearest existing lane: @@ -75,9 +71,7 @@ _PARSERS = { and add the extension to `LANG_BY_EXTENSION` (`".rs": "rust"`). The wrapper imports the lane lazily, so an optional grammar stays optional. A new tree-sitter grammar also goes in `bounded_parse._LOADERS`, which every parse runs through first. - - - +## 3. Test the lane - **A lane test**, `tests/unit/test_code_lang_.py`, parses small inline sources and asserts names, kinds, spans, includes and edges. Skip when the grammar is absent: `pytest.importorskip("tree_sitter_rust")`. `test_code_lang_rust.py` and `test_code_lang_typescript.py` are the models. - **The lanes corpus.** Add fixtures under `tests/fixtures/code_lanes//`: synthetic, or open-source excerpts under their own licence, listed in `tests/fixtures/code_lanes/NOTICE.md`. `tests/unit/test_code_lanes_corpus.py` derives languages, symbols, facets, includes and edges from every fixture and compares them with `tests/fixtures/code_lanes/expected.json`. Regenerate and review the diff: @@ -94,9 +88,7 @@ and add the extension to `LANG_BY_EXTENSION` (`".rs": "rust"`). The wrapper impo `NON_EXTRACTOR_MODULES`. - **Retrieval.** For a lane that should answer `code.search` or `code.symbol` well, run the code-intelligence gate before and after. `make bench-code-intel-dry` checks the question set offline; `make bench-code-intel` runs it against a server with a real embedder, never the fake one ([running benchmarks](../benchmarks/running.md)). - - - +## 4. Bring existing namespaces up to date A lane outside the stamp changes nothing already indexed. New commits use the lane; old files keep their previous rows (often chunk-only). Re-derive them with a targeted backfill: @@ -109,9 +101,7 @@ loom code backfill --org --namespace --paths-file rust-pa > **Warning:** if a change must touch a stamped module (a `chunker.py` fix, a `treesitter.py` extension), say so in the PR. Every deployment that takes it re-derives the moved stages for every file of the affected families in every namespace. A `chunker.py` change moves only `chunk`; an `edges_treesitter.py` change moves `edge`, `chunk` and `guard`; a parser change moves every stage. - - - +## 5. Add a compiler tier (optional) A compiler tier pays off when fast-tier edges are ambiguous (overloads, dynamic dispatch, re-exports) and a SCIP indexer exists. `TIERS` in `server/code/domain/index/compiler_tiers.py` lists the tiers. Each `TierSpec` names the indexer (`scip-clang`, `scip-typescript`, `scip-go`, `scip-python`), its `code_index_state` watermark key (`scip_commit`, `scip_commit_ts`, `scip_commit_go`, `scip_commit_py`) and the workers that move it. A new tier needs: @@ -131,10 +121,6 @@ A compiler tier pays off when fast-tier edges are ambiguous (overloads, dynamic Compiler-tier rows carry `tier='scip'`. Reads merge them with the fast tier by qualified name, preferring the compiler tier. Files the indexer skips, and commits before their delta lands, still read from the fast tier. - - - - ## Related - [Code index overview](../features/code-index/overview.md) diff --git a/docs/features/integrations/agent-substrate.md b/docs/features/integrations/agent-substrate.md index 1a76a17f26..3054a7336b 100644 --- a/docs/features/integrations/agent-substrate.md +++ b/docs/features/integrations/agent-substrate.md @@ -26,9 +26,7 @@ connections from the gateway pods, not from the actors. Each row records the tok subject, which tells the actors apart; the row's `agent` is the MCP client's name, which actors running the same client share. - - - +## 1. Install Loom in the cluster Install the chart as [Kubernetes](../../operations/kubernetes.md) describes, in namespace `loom` with release name `loom`, which names the Service `loom`. The agents need no @@ -51,9 +49,7 @@ networkPolicy: app: atenet-egress ``` - - - +## 2. A token per agent Give each agent its own token, with a service-account subject named for the atespace and the Substrate actor. Loom records that subject on each row the agent writes, and the token's @@ -109,9 +105,7 @@ kubectl -n loom-tokens-research create secret generic research-agent \ --from-literal=token="$TOKEN" --dry-run=client -o yaml | kubectl apply -f - ``` - - - +## 3. Configure the agent and create its actor Substrate's documentation describes no MCP configuration for actors: configure the agent's MCP client in its image or as literal environment values in the actor template. The server @@ -145,9 +139,7 @@ kubectl ate create actor-template -f template.yaml kubectl ate create actor research-agent --template=research-agent -a research ``` - - - +## 4. Allow the actor to reach Loom, with its token An actor has one egress policy. This one, for the actor created above, allows HTTP to Loom's Service and replaces the `Authorization` header the agent sends with @@ -196,10 +188,6 @@ With the policy in place, start the actor: kubectl ate resume actor research-agent -a research ``` - - - - ## Several agents - Agents in one Loom namespace share everything they write. A sub-agent that should read @@ -207,7 +195,7 @@ kubectl ate resume actor research-agent -a research (`--namespace-role team=viewer --namespace-role research=writer`; [mint a token](../../guides/tokens-and-grants.md#mint-a-token)). - Each actor gets its own token, Secret and egress policy; an actor in another atespace gets - that atespace's own token namespace and grant. + that atespace's own token namespace and grant ([step 2](#2-a-token-per-agent)). - Hand work between agents with the [task inbox](../tasks-and-decisions.md#task-inbox). ## Related diff --git a/docs/getting-started/agent-setup.md b/docs/getting-started/agent-setup.md index 77b3b590ba..eb3a5968c0 100644 --- a/docs/getting-started/agent-setup.md +++ b/docs/getting-started/agent-setup.md @@ -44,9 +44,7 @@ This copy names no release, so its commands do not run as they are. Follow the what a check expects, or report `PASS` for a step that did not run. A `FAIL` line is a correct report. - - - +## 1. Install the release ```sh mkdir -p ~/loom-agent-setup @@ -57,12 +55,10 @@ curl -fsSL "https://github.com/ClickHouse/loom/releases/download/v/inst The installer verifies the bundle's SHA-256, installs under `~/.loom`, starts the stack and waits for the server's `/v1/health`. If the command fails, the report is its `install` -line alone; do not go on. The [quickstart](quickstart.md) says what the +line alone; do not go on. The [quickstart](quickstart.md#1-boot-the-stack) says what the installer does in full. - - - +## 2. Install the plugin The plugin comes from the same release's source, so it matches the server: @@ -90,9 +86,7 @@ with no token. **The person** now starts a new session of the agent (Codex: an i `codex` run, where they also approve the plugin's hooks), gives it this text again and says "continue at step 3". Steps 3 and 4 run in that session. - - - +## 3. Run the check Save this script as `loom-setup-check.py` and run `python3 loom-setup-check.py`. It uses only the Python standard library and talks to Loom over HTTP. It writes into the namespace @@ -243,9 +237,7 @@ What each check must see: When `server` fails, the script writes nothing and runs no other check. - - - +## 4. Check the agent's connection Call your `loom_search` tool once, with the query `agent setup check`, and run `claude plugin list` (or `codex plugin list`). The line is @@ -253,10 +245,6 @@ Call your `loom_search` tool once, with the query `agent setup check`, and run shows `loom@loom` enabled, otherwise `[FAIL] agent `. - - - - ## Report Give the script's lines, then the `agent` line, then one summary that counts the `agent` diff --git a/docs/getting-started/evaluate.md b/docs/getting-started/evaluate.md index 25d863e8e3..061ab54196 100644 --- a/docs/getting-started/evaluate.md +++ b/docs/getting-started/evaluate.md @@ -43,16 +43,14 @@ Pre-registering the gates prevents a convenient metric or slice from becoming th after the run. Keep failures and abstentions visible; report request errors separately instead of silently counting or discarding them as retrieval misses. - - - +## 1. Product smoke test This takes about 15 minutes and proves wiring, persistence and visibility—not semantic quality. -1. [Boot the local stack](quickstart.md) and confirm `/v1/health` reports +1. [Boot the local stack](quickstart.md#1-boot-the-stack) and confirm `/v1/health` reports `status: ok`. -2. [Write and search a fact](quickstart.md). +2. [Write and search a fact](quickstart.md#4-first-memory-over-http). 3. [Connect a coding agent](connect-a-coding-agent.md), tell it a durable preference, open a fresh session and ask for that preference. 4. Correct the fact, then confirm the dashboard shows its source and version history. @@ -64,9 +62,7 @@ answer, an unrelated question abstains, and the dashboard shows the writer and h The result says nothing about production recall while health reports `fake_embedding` or `fake_llm`. - - - +## 2. Evaluate your workload Configure [real providers](../operations/deployment.md#providers), reset or re-embed data if the vector width changed, and record the resolved models from `/v1/health`. Use an @@ -237,9 +233,7 @@ it defers MCP tool definitions. slice to a general claim. - Save per-question outputs, including errors and misses—not only aggregate scores. - - - +## 3. Audit or reproduce published results The README is a scorecard, not the evidence ledger. For every published number: @@ -255,10 +249,6 @@ license are listed under [datasets](../benchmarks/running.md#datasets). Full pub can take hours and incur provider charges; start with the documented smoke slice, then run the complete protocol before publishing a comparison. - - - - ## What to publish Publish a result in the README only when it is representative, understandable in one row, diff --git a/docs/getting-started/first-agent.md b/docs/getting-started/first-agent.md index a1d4b7c989..14e5d0a9cc 100644 --- a/docs/getting-started/first-agent.md +++ b/docs/getting-started/first-agent.md @@ -8,15 +8,13 @@ seo: This tutorial builds a small agent with the Python SDK. It continues from the [quickstart](./quickstart.md): the stack runs on `http://localhost:7777` and the Python -SDK is installed ([quickstart step 5](./quickstart.md)). Every +SDK is installed ([quickstart step 5](./quickstart.md#5-first-memory-from-python)). Every step runs on the stock stack. Meaningful extraction and grounded `memory.ask` answers need a configured real LLM; ranking is meaningful on the released stack's local embedder, not on a checkout's fake one ([providers](../operations/deployment.md#providers)). - - - +## 1. Give the agent an identity Every row Loom stores carries the identity tuple `(org, namespace, agent, user_id, session_id)`. The `Agent` binds the first three; `user_id` and `session_id` travel per @@ -57,9 +55,7 @@ facts, and one namespace shared by several agents must still say who wrote what. [identities and namespaces](../concepts/identities-and-namespaces.md) page explains the model. - - - +## 2. Store facts and handle abstain ```python async def remember_and_recall(a: Agent) -> None: @@ -106,9 +102,7 @@ does the user prefer?", user_id=USER)` returns `answer`, `abstain` and the `memo it cited. Grounded answers need a configured real LLM; the fake one can return deterministic output for development and tests. - - - +## 3. Hold a conversation as a session A `Session` is what an agent loop keeps between turns and across restarts. It binds one `(user_id, session_id)` scope and four verbs to it: @@ -144,9 +138,7 @@ SDK logs a warning) and extraction still runs. [Conversations and sessions](../features/conversations-and-sessions.md) covers threads, digests and session briefs. - - - +## 4. Load context at session start Outside a session, one call assembles the bounded block an agent wants before its first turn: working memory first, then the profile, relevant memories, matching procedures and @@ -167,9 +159,7 @@ instead of failing the pack. Working memory is scratchpad state, not retrieval m is loaded first and never embedded or ranked ([Working memory and profiles](../features/memory/working-memory-and-profiles.md)). - - - +## 5. Record a task as a run A run is one agent execution: what it was asked, what it relied on and how it ended. Naming the memories a run relied on is the feedback loop: those keys are credited in @@ -209,9 +199,7 @@ The same two calls are available directly as `a.run.begin(goal=...)` and stored as a `reflection` memory. `a.run.get(run_id)` replays a run with what it wrote, recalled and cost. [Runs](../features/runs.md) covers reflections, retention and grades. - - - +## 6. Put it together ```python async def main() -> None: @@ -230,10 +218,6 @@ agent, `/runs` for the run, and `/conversations` for the thread. Blocking code u `loom.SyncAgent`, which takes the same arguments and exposes every method as a blocking call. - - - - ## The same agent in TypeScript The TypeScript SDK (`@clickhouse/loom`; @@ -286,19 +270,13 @@ await bot.call( `memory.ask`. The [TypeScript SDK reference](../reference/typescript-sdk.md) covers the full surface. - - - +## 7. Connect a coding agent A coding agent reads the same namespace through MCP tools. What you stored from Python is visible to it when its token reads that namespace. [Connect a coding agent](./connect-a-coding-agent.md) covers the plugins and `loom install`. - - - - ## Next - [Memory](../concepts/memory.md): what happens between the write and the read. diff --git a/docs/getting-started/quickstart.md b/docs/getting-started/quickstart.md index d7b906187a..c534527d9e 100644 --- a/docs/getting-started/quickstart.md +++ b/docs/getting-started/quickstart.md @@ -14,9 +14,7 @@ Run Loom locally with Docker. The default install listens only on localhost and Use Docker Desktop or Docker Engine with Compose 2.20 or later. Leave port `7777` free for Loom. On Windows, run the installer in a WSL 2 terminal where `docker` works. - - - +## 1. Boot the stack ### Fast path: released image, no clone @@ -212,8 +210,8 @@ to localhost. Before sharing it with a team, configure [operator access](../oper and [TLS](../operations/deployment.md#proxy-and-tls). Configure [real models and API keys](./models-and-keys.md) as well; selecting multi-user mode does not replace the fake LLM. -For an already running single-user stack, follow the switching instructions below instead; -container recreation preserves the existing data volumes. +For an already running single-user stack, follow the [switching instructions](#2-open-the-dashboard) +instead; container recreation preserves the existing data volumes. ### Contributor path: build a checkout @@ -321,9 +319,7 @@ docker compose --project-directory "$HOME/.loom" exec loom loom doctor - `loom doctor` prints one line per server-side check. `--json` gives JSON. From a source checkout stack, run `docker compose --env-file .env -f compose.yaml -f dev/docker-compose.dev.yml exec loom loom doctor`. - - - +## 2. Open the dashboard `http://localhost:7777/` opens straight into the dashboard in `single-user` mode; in multi-user mode, sign up or sign in first. In `single-user` mode @@ -360,9 +356,7 @@ so anyone who reaches the port can then sign up. Before making the server reacha team, follow the [deployment guide](../operations/deployment.md#identity-modes) for operator access and [TLS](../operations/deployment.md#proxy-and-tls). - - - +## 3. Get a token In single-user mode a token is optional. Minting one anyway keeps your scripts working when auth is turned on, as long as they name their `org` (or send it blank), `namespace` @@ -402,9 +396,7 @@ export LOOM_API_KEY="" Claims, roles and grants are in [Tokens and grants](../guides/tokens-and-grants.md). - - - +## 4. First memory over HTTP Every operation is a `POST /v1/` with a JSON body. A fresh install with the stock `.env`, from the installer or a checkout, is single-user: no token, and an everyday memory @@ -436,9 +428,7 @@ agent's memories in the namespace, including those added in the dashboard; name `GET /v1/operations` lists every operation, and lets you try each one from the browser. Shapes are in the [HTTP API reference](../reference/http-api.md). - - - +## 5. First memory from Python ```bash pip install clickhouse-loom # or, from a clone: pip install ./sdk/python @@ -494,9 +484,7 @@ The client surfaces are in the [Python SDK](../reference/python-sdk.md) and [TypeScript SDK](../reference/typescript-sdk.md) references, and the [Rust SDK usage](https://github.com/ClickHouse/loom/blob/main/sdk/rust/README.md#use). - - - +## 6. First memory from a coding agent If the installer connected your agent, skip to the last paragraph of this section. @@ -544,9 +532,7 @@ Start a new session and say _"Remember that I never deploy on Friday."_ The agen `loom_search` and answers from the stored fact. The model decides when to save and search from the tool descriptions; there are no trigger words. - - - +## 7. See it in the dashboard | Page | Shows | | ----------------- | ------------------------------------------------- | @@ -556,10 +542,6 @@ search from the tool descriptions; there are no trigger words. The rest is in [Dashboard](../features/dashboard.md). - - - - ## Optional: index a repository on the released stack Adding a repository from the dashboard is refused on this stack with `SANDBOX_UNAVAILABLE`: @@ -638,7 +620,7 @@ the answer and the chunks it cited. With the fake LLM it prints the top | ----------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `set_from_messages` writes no facts | An empty result can be valid when the text contains nothing memorable. Check the provider configuration in [Models and keys](./models-and-keys.md); meaningful extraction needs a real LLM. | | Search results look arbitrary | The embedder is a fake one (`fake-ngram-*` in `.env`). Switch it as [Models and keys](./models-and-keys.md) says, which re-embeds what is stored. Do not delete your volumes to change models. | -| 401 `AUTH_INVALID` after turning auth on | No token, or one signed with another `LOOM_JWT_SECRET`. Re-mint with the Compose command in the token step above. | +| 401 `AUTH_INVALID` after turning auth on | No token, or one signed with another `LOOM_JWT_SECRET`. Re-mint with the Compose command in [Get a token](#3-get-a-token). | | The dashboard returns 503 | The server runs from source (`make server`) without a built frontend. Run `make frontend-build`. | | Released stack does not become healthy | Run `docker compose --project-directory "$HOME/.loom" logs --tail 100 loom clickhouse`. See [Troubleshooting](../operations/troubleshooting.md). | | Adding a repository answers `SANDBOX_UNAVAILABLE` | The stack runs without the repository-job sandbox. Index the repository through `LOOM_CODE_REPOS_JSON` ([Index a repository](#optional-index-a-repository-on-the-released-stack)). | diff --git a/docs/guides/agent-integration.md b/docs/guides/agent-integration.md index 043a4486ff..1f08b50364 100644 --- a/docs/guides/agent-integration.md +++ b/docs/guides/agent-integration.md @@ -20,9 +20,7 @@ system_prompt = "You triage support tickets.\n\n" + await agent.guide() Over MCP the primer names the call; an Agent-Skills client installs it with `npx skills add ClickHouse/loom --skill loom`. - - - +## 1. Choose the client surface | Surface | Use it when | What you get | | ------------------------------------------------------------ | ----------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -69,9 +67,7 @@ ID, outcome and latency, and confirm which evidence reached the model. SDK Keep startup metadata, context retrieval, investigative lookups, checks and recording separate when reporting tool adoption and cost. - - - +## 2. Choose the identity Every row carries the identity tuple `(org, namespace, agent, user_id, session_id)`, plus `run_id`. The token fixes `org` and the namespaces; the rest travels per call. @@ -92,9 +88,7 @@ Every row carries the identity tuple `(org, namespace, agent, user_id, session_i See [namespace access](tokens-and-grants.md#namespace-access). - **No secret or personal identifier in `agent`:** it is stamped on every ledger row. - - - +## 3. Decide what to write Pick the plane first. Durable memory is embedded, ranked, conflict-checked and versioned. Working memory is read by key and never ranked. Knowledge holds chunked documents. @@ -135,9 +129,7 @@ that works cases; [trace and resume](trace-and-resume.md) covers checkpoints. A statement from the user ("we deploy Tuesdays") is the trigger to write. Do not search first; the server handles duplicates and conflicts. - - - +## 4. Read the write's answer A `memory.set` reply is a receipt. Read it: @@ -152,9 +144,7 @@ A `memory.set` reply is a receipt. Read it: Pass `if_match_sha256` (from a `memory.get`) when two writers may race on one key; a stale hash is refused instead of overwriting. - - - +## 5. Read with one call per question 1. **Load context once per task.** `context.pack` returns a token-budgeted bundle: profile sections, working memory, the memories relevant to `query`, procedures, and optionally @@ -187,9 +177,7 @@ else: reply = hits[0].content_excerpt ``` - - - +## 6. Record runs A run is one execution of a task: its goal, what it recalled and relied on, what it wrote and its outcome. Recorded runs let ranking learn which memories help ([runs](../features/runs.md)). @@ -211,9 +199,7 @@ An agent outside the plugins should also hand the finished transcript to `memory.set_from_messages` (or close an `agent.session(...)`), so the server extracts what was durable. - - - +## 7. Follow the memory skill's review The plugins ship a `loom-memory` skill (`integrations/claude-code-plugin/skills/loom-memory/`, generated into the Codex plugin) @@ -238,10 +224,6 @@ skills cover code questions (`loom-code`, also at `skills/loom-code/` for any cl reworking a namespace (`loom-optimize`), session restore (`loom-session`) and client health (`loom-status`). - - - - ## Mistakes to avoid `namespace.audit` detects each of these; [optimize a namespace](optimize-namespace.md) turns diff --git a/docs/guides/debugging.md b/docs/guides/debugging.md index 260fa80a9e..bee14c366c 100644 --- a/docs/guides/debugging.md +++ b/docs/guides/debugging.md @@ -16,9 +16,7 @@ flowchart TD G["memory.search explain=true
per-component scores"] -.-> B ``` - - - +## 1. Capture the request's ids Every HTTP response carries: @@ -40,9 +38,7 @@ curl -si "$LOOM_BASE_URL/v1/memory.search" -H "Authorization: Bearer $LOOM_API_K points at the query. A large `app` with a small `ch` points at a provider call (embedding, rerank, LLM). - - - +## 2. Join the request across systems The same id is in `loom.agent_events.request_id`, the Langfuse trace metadata, and the span attribute `loom.request_id` in `default.otel_traces`. @@ -74,9 +70,7 @@ Spans go to `default.otel_traces` (in `LOOM_CLICKSTACK_DATABASE` when it is set) > free-text argument with a `sha256:<16 hex>/` shape. To see what was asked, use > the search trace log below or your own client log. - - - +## 3. Explain a search answer **Why did this rank here?** `memory.search` with `explain=true` attaches `score_components` to each served hit: the ranking signals and, after a reranker, its move (`rerank_from`, @@ -122,10 +116,6 @@ per search: `returned_keys`, `returned_scores`, `abstain`, `retrieval_risk`, `latency_ms`, and the `query` when `LOOM_LANGFUSE_CAPTURE_IO_LEVEL` is not `off` (its default is `off`, so by default the rows carry keys and scores without the question). - - - - ## Diagnose coding-agent overhead Separate three clocks: the agent's model requests, its tool and local work, and the @@ -185,9 +175,7 @@ failed solutions, and keep setup and judging costs separate from coding costs. Record whether source and lessons were present before attributing a bad patch to retrieval. Successful delivery does not establish relevance or correct use. - - - +## 4. Explain a write - **The write's own answer.** `memory.set` returns `status`, `conflict_verdict`, `peers`, `duplicate_of`, `merged_into_key`, `noop` and `advisories`. A write that "disappeared" @@ -207,10 +195,6 @@ retrieval. Successful delivery does not establish relevance or correct use. - **A run's view.** `run.get(run_id)` returns what a run recalled (`recalled_keys`), what it wrote, its turns and its cost ([trace and resume](trace-and-resume.md)). - - - - ## Related - [Troubleshooting](../operations/troubleshooting.md) diff --git a/docs/guides/headless-bots.md b/docs/guides/headless-bots.md index 96b0951e00..629759ccc1 100644 --- a/docs/guides/headless-bots.md +++ b/docs/guides/headless-bots.md @@ -4,9 +4,7 @@ A headless bot runs with no person to paste a token, notice a silent failure or "remember this". This guide covers the bot's identity, a connection check, three runtimes, what the bot writes, and how to diagnose a bot that has gone quiet. - - - +## 1. Give the bot an identity The `loom` CLI ships in the server image and installs from a clone with `pip install -e .`. The SDK package (`clickhouse-loom`) has no CLI. @@ -53,9 +51,7 @@ loom mint-token --subject ci-reviewer --org --namespaces agent-ci --roles See [tokens and grants](tokens-and-grants.md) for roles, lifetimes and rotation. - - - +## 2. Check the connection before the first run ```bash LOOM_BASE_URL=https:// LOOM_API_KEY="$(cat token.txt)" loom doctor --client @@ -72,9 +68,7 @@ fix, and the exit code is non-zero, so the command works as a CI gate: `--json` emits the checks and the problem list as JSON for a pipeline that parses them. - - - +## 3. Connect the runtime ### Claude Agent SDK or `claude -p` @@ -157,19 +151,15 @@ async with Agent(org="acme", namespace="agent-nightly-triage", agent="nightly-tr See the [Python SDK reference](../reference/python-sdk.md) and [framework integrations](../features/integrations/frameworks.md). - - - +## 4. Decide what the bot writes The plugins capture a coding session on their own. A bot outside them decides what to write. In short: record decisions and failures, not transcripts; recall once before a task, not once per step; hand a finished run's transcript to `memory.set_from_messages`; and report what the run relied on with `run.complete(memories_used=[...])`. -[Agent integration](agent-integration.md) covers each choice. +[Agent integration](agent-integration.md#3-decide-what-to-write) covers each choice. - - - +## 5. When the bot is quiet Run `loom doctor --client` on the bot's machine. It reports each of the usual causes on its own line: @@ -181,10 +171,6 @@ own line: | 403 on every write | The token is a `viewer` on the namespace the bot writes to | | Captures never appear | A background flusher never delivered them: stranded `loom-flush-*.json` files in the temp directory | - - - - ## Related - [Tokens and grants](tokens-and-grants.md) diff --git a/docs/guides/importing-clickgap-memory.md b/docs/guides/importing-clickgap-memory.md index 4ea00c48a9..5fff9080da 100644 --- a/docs/guides/importing-clickgap-memory.md +++ b/docs/guides/importing-clickgap-memory.md @@ -34,9 +34,7 @@ Two commands do the work: `version`. A re-import supersedes under `ReplacingMergeTree(version)` and the row count stays the same. - - - +## 1. Dry-run No writes. The dry run checks that every timestamp parses, prints the kind → type and TTL crosstab and the category count, and probes the embedder so rows do not land unembedded. @@ -49,9 +47,7 @@ loom import-clickgap \ Confirm the crosstab matches the source and that the embedder is reachable. - - - +## 2. Import Use a **dedicated namespace** (`clickgap`) so rollback is a single `namespace.delete`. The export carries no vectors, so every row is embedded on import with the live @@ -78,10 +74,6 @@ analytics. > **Warning:** `--seed-recall-events` is additive and not idempotent: run it once, into a > fresh namespace. It **drops `pr_number`**, because Loom usage events have no PR column. - - - - ## Recall signal The importer mirrors `recall_count` onto `memory_embeddings.reinforcement_count` and @@ -97,9 +89,7 @@ reinforcement terms ([retrieval and ranking](../concepts/retrieval-and-ranking.m workload depends on recall-frequency ordering, validate that the resulting order is acceptable (the validator reports recall-order τ) before cutover. - - - +## 3. Validate before cutover The validator mints its own admin token with `server.auth.jwt.mint_token`, so it needs `LOOM_JWT_SECRET` and an explicit `LOOM_BASE_URL`: there is no default target. Its probes @@ -136,10 +126,6 @@ Summaries (`summary → episodic`) are excluded from probes, since they are non- design. `--seed` (default 42) makes the probe sample reproducible; `--concurrency` (default 8) bounds concurrent searches. - - - - ## Use suppression memories The `false_positive` lessons ("looks like a bug, do NOT re-raise") are the suppression diff --git a/docs/guides/optimize-namespace.md b/docs/guides/optimize-namespace.md index c57d90c581..bcf139a5e9 100644 --- a/docs/guides/optimize-namespace.md +++ b/docs/guides/optimize-namespace.md @@ -50,9 +50,7 @@ dry_run}`; a dry run adds `memory_type` and `value_preview`. After a move: - `memory.get(from_key, follow=true)` serves the new row; - `memory.search` and `memory.list` show only the new row. - - - +## 1. Audit ```bash loom audit-namespace --org --namespace --window-days 7 --samples 5 @@ -80,9 +78,7 @@ The dashboard's namespace audit panel shows the same audit. `context.pack` carri warnings among `exact_key_store`, `double_encoded_values`, `unembedded_rows` and `coordination_as_memory`), so an agent sees it at session start. - - - +## 2. Plan Write one section per finding. Only codes the audit returned get a section. @@ -116,17 +112,13 @@ Store the plan as a knowledge document at `loom:////_optimize/plan- - - +## 3. Get approval The namespace owner approves in writing. A plan shown is not a plan approved. A partial approval applies the named sections only. If the owner's writer is running (the audit's `sets` in the window says so), tell them; the last hour of rows is out of scope either way. - - - +## 4. Apply Back up first if the namespace matters: `memory.list … fields=["value"]` to a JSONL file, `namespace.snapshot` (HTTP or SDK; it is not served over MCP), or on the server @@ -153,17 +145,13 @@ curl -s "$LOOM_BASE_URL/v1/memory.move" -H "Authorization: Bearer $LOOM_API_KEY" "dry_run": true}' ``` - - - +## 5. Measure Run the audit again over the same window and append a before/after table to the plan document (`knowledge.upsert` on the same `source_uri`). Give the owner the [writer rules](investigation-agent-memory.md#writer-rules). - - - +## 6. Retire nothing Old keys stay readable through the redirect for as long as the owner wants. Once the writer uses the new keys, the owner may tombstone the old ones with `memory.delete` (soft: @@ -173,10 +161,6 @@ uses the new keys, the owner may tombstone the old ones with `memory.delete` (so > answers `found: false`, a client may fall back to local state, and two stores then > disagree. The redirect exists to prevent that. - - - - ## Related - [Investigation agent memory](investigation-agent-memory.md): the target layout diff --git a/docs/guides/query-from-postgres.md b/docs/guides/query-from-postgres.md index 61643cf0ed..c49542f7ff 100644 --- a/docs/guides/query-from-postgres.md +++ b/docs/guides/query-from-postgres.md @@ -17,9 +17,7 @@ extension. Use a separate database, or a separate service, from the one Loom's CI tests the release `LOOM_PGCH_VERSION` names in `.github/workflows/ci.yml` on Postgres 16 and 18 (`tests/integration/test_pg_clickhouse_live_ch.py`). - - - +## 1. Make a SQL user for the tenant On the Loom side, as an operator ([access](../reference/sql-surface.md#access)): @@ -29,9 +27,7 @@ loom sql-access grant --user acme_bi --org acme --namespaces support,research It prints the user's password once. - - - +## 2. Install the extension The extension is in the `ghcr.io/clickhouse/pg_clickhouse:-` images and on [PGXN](https://pgxn.org/dist/pg_clickhouse/), to build into a self-managed @@ -60,9 +56,7 @@ As the owner: CREATE ROLE app_reader LOGIN PASSWORD ''; ``` - - - +## 3. Point it at the ClickHouse service ```sql CREATE SERVER loom_ch FOREIGN DATA WRAPPER clickhouse_fdw @@ -95,9 +89,7 @@ These are the extension's defaults, written down so a later release's defaults c one. A session that sets another setting fails in ClickHouse with `READONLY`: the SQL user's profile refuses it ([access](../reference/sql-surface.md#access)), whatever the role says. - - - +## 4. Import the views ```sql CREATE SCHEMA loom; @@ -121,9 +113,7 @@ imported with, so to pick up new ones drop the schema (and any Postgres view bui tables) and run the import and the grants again: `DROP SCHEMA loom CASCADE; CREATE SCHEMA loom;`. - - - +## 5. Query and join ```sql -- The facts Loom holds about each account on the support team @@ -142,10 +132,6 @@ GROUP BY day ORDER BY day; `value` is NULL where Loom withholds it; `value_withheld` says why. - - - - ## Cost and scale - `EXPLAIN (VERBOSE)` shows which part of a query runs in ClickHouse. A join between a diff --git a/docs/index.md b/docs/index.md index 1812692f8f..2f6a8c236e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -35,45 +35,31 @@ or [casos de uso en español](https://loom.clickhouse.com/docs/es/use-cases). [Video demonstration of a cited answer](assets/screenshots/clip-assistant-answer.webm) - - - +## 1. Getting started Check [what Loom includes](getting-started/whats-included.md), run the [quickstart](getting-started/quickstart.md), and [configure models and API keys](getting-started/models-and-keys.md). - - - +## 2. Install and run the server Choose a [deployment](operations/deployment.md), configure [single sign-on](operations/sso.md), and use the [operations guides](operations/index.md) to run Loom day to day. - - - +## 3. Connect agents [Connect a coding agent](getting-started/connect-a-coding-agent.md) or choose an [integration](features/integrations/index.md) for your editor, MCP client, or framework. - - - +## 4. SDK and API Find client libraries, commands, and wire contracts in the [reference](reference/index.md). - - - +## 5. Namespaces, access and the memory model Read how Loom scopes [identities and namespaces](concepts/identities-and-namespaces.md), stores [agent memory](concepts/memory.md), and [ranks retrieval results](concepts/retrieval-and-ranking.md). Use [tokens and grants](guides/tokens-and-grants.md) to set access. - - - - ## Guides Use the [guides](guides/index.md) for tasks such as connecting an agent, comparing memory @@ -84,18 +70,12 @@ setups, and tracing a long run. The [features index](features/index.md) covers memory, documents, code, work records, and access and audit controls. - - - +## 6. Code index Start with the [code-index overview](features/code-index/overview.md), add a [repository](features/code-index/repositories.md), and check its [indexing status](features/code-index/freshness.md). - - - - ## Architecture Read the [system overview](architecture/system-overview.md), diff --git a/docs/scripts/prepare-content.mjs b/docs/scripts/prepare-content.mjs index 3100d0c615..a97b183c4f 100644 --- a/docs/scripts/prepare-content.mjs +++ b/docs/scripts/prepare-content.mjs @@ -346,20 +346,31 @@ async function prepareContent() { const linked = localized ? prepareTranslatedMarkup(text, englishSources) : text; const rendered = localized && sourcePath === "index.md" ? prepareLocalizedLandingDemo(linked) : linked; const original = localized ? `i18n/${locale}/docs/${sourcePath}` : `docs/${preparedPath}`; - const prepared = withContentMetadata(normalizeTranslatedTitle(rendered, localizedSeo[sourcePath]?.[locale]), { + let prepared = withContentMetadata(normalizeTranslatedTitle(rendered, localizedSeo[sourcePath]?.[locale]), { date: contentDates.get(original), locale: localized ? locale : "en", }); + prepared = staleTranslationNotice( + prepared, + sourceForTranslation(relative(content, file)), + englishRoute(relative(content, file)), + ); if (prepared !== text) writeFileSync(file, prepared); } - promoteComponentPages(); + promoteProcedurePages(); const packagePath = fileURLToPath(import.meta.resolve("blume/package.json")); const codemod = join(dirname(packagePath), "skills", "blume-migrate", "scripts", "mkdocs-codemod.mjs"); - const result = spawnSync(process.execPath, [codemod, "--write", content], { - cwd: dirname(root), - stdio: "inherit", - }); + const stagedLocales = stageLocales(); + let result; + try { + result = spawnSync(process.execPath, [codemod, "--write", content], { + cwd: dirname(root), + stdio: "inherit", + }); + } finally { + restoreLocales(stagedLocales); + } if (result.status !== 0) process.exit(result.status ?? 1); if (!existsSync(join(content, "index.md")) && !existsSync(join(content, "index.mdx"))) { @@ -426,6 +437,27 @@ export function prepareLocalizedLandingDemo(text) { }); } +/** Keep generated locale pages as inert Markdown while the English codemod runs. */ +function stageLocales() { + const staging = join(root, ".blume-locales"); + rmSync(staging, { recursive: true, force: true }); + mkdirSync(staging); + const staged = []; + for (const locale of locales) { + const source = join(content, locale); + if (!existsSync(source)) continue; + const destination = join(staging, locale); + renameSync(source, destination); + staged.push([source, destination]); + } + return staged; +} + +function restoreLocales(staged) { + for (const [source, destination] of staged) renameSync(destination, source); + rmSync(join(root, ".blume-locales"), { recursive: true, force: true }); +} + function contentFiles(directory) { return readdirSync(directory).flatMap((name) => { const path = join(directory, name); @@ -486,16 +518,38 @@ export function prepareTranslatedMarkup(text, englishSources) { } /** Blume content components are available in MDX pages, not Markdown pages. */ -function promoteComponentPages() { +function promoteProcedurePages() { for (const file of contentFiles(content)) { if (!file.endsWith(".md")) continue; const text = readFileSync(file, "utf8"); - if (!/<\/?(?:Steps|Step)(?:\s|>)/.test(text)) continue; - writeFileSync(file, escapeMdxPlaceholders(text)); + if (locales.includes(relative(content, file).split("/", 1)[0])) continue; + const prepared = procedureMdx(text); + if (prepared === text) continue; + writeFileSync(file, escapeMdxPlaceholders(prepared)); renameSync(file, `${file.slice(0, -3)}.mdx`); } } +/** Render one contiguous numbered procedure as Blume's Steps component. */ +export function procedureMdx(text) { + const headings = [...text.matchAll(/^## (?:(\d+)\. (.+)|.*)$/gm)]; + const first = headings.findIndex((heading) => heading[1]); + if (first === -1) return text; + + let last = first; + while (last + 1 < headings.length && headings[last + 1][1]) last += 1; + const procedure = headings.slice(first, last + 1); + const end = headings[last + 1]?.index ?? text.length; + let result = `${text.slice(0, procedure[0].index)}\n\n`; + for (let index = 0; index < procedure.length; index += 1) { + const heading = procedure[index]; + const bodyStart = heading.index + heading[0].length; + const bodyEnd = procedure[index + 1]?.index ?? end; + result += `${text.slice(bodyStart, bodyEnd)}\n\n`; + } + return `${result}\n\n${text.slice(end)}`; +} + /** Escape uppercase Markdown placeholders that MDX would otherwise parse as JSX tags. */ export function escapeMdxPlaceholders(text) { let fenced = false; @@ -533,6 +587,38 @@ export function normalizeTranslatedTitle(text, seo = {}) { return `---\ntitle: ${JSON.stringify(title)}${searchMetadata}\n---\n\n${lines.join("\n")}`; } +const STAMP = //; + +function sourceForTranslation(from) { + const [locale, ...source] = from.split("/"); + if (!locales.includes(locale)) return null; + const path = source.join("/"); + const english = join(root, path); + return existsSync(english) ? readFileSync(english, "utf8") : null; +} + +function englishRoute(from) { + const [locale, ...source] = from.split("/"); + if (!locales.includes(locale)) return ""; + return `/docs/${source.join("/").replace(/\.md$/, "/")}`; +} + +function gitBlob(text) { + return createHash("sha1") + .update(`blob ${Buffer.byteLength(text)}\0`) + .update(text) + .digest("hex"); +} + +/** Mark published translations whose stamped English source differs from this build's source. */ +export function staleTranslationNotice(text, english, url) { + if (english === null) return text; + const stamp = text.match(STAMP); + if (!stamp || stamp[2] === gitBlob(english)) return text; + const notice = "> **Translation notice:** The English source has changed. Read the [English page](" + url + ")."; + return text.replace(stamp[0], `${stamp[0]}\n\n${notice}\n`); +} + export function rewriteSourceLinks(text, from) { const [locale, ...sourceParts] = from.split("/"); const sourceFrom = locales.includes(locale) ? sourceParts.join("/") : from; @@ -543,6 +629,11 @@ export function rewriteSourceLinks(text, from) { if (/^\s*(```|~~~)/.test(line)) fenced = !fenced; if (fenced) return line; return line.replace(/(!?\[[^\]]*\]\()([^\s)]+)(\))/g, (whole, prefix, target, suffix) => { + const generated = { + "https://github.com/ClickHouse/loom/blob/main/llms.txt": "/docs/llms.txt", + "https://github.com/ClickHouse/loom/blob/main/llms-full.txt": "/docs/llms-full.txt", + }[target]; + if (generated) return `${prefix}${generated}${suffix}`; if (/^(?:[a-z]+:|\/|#)/i.test(target)) return whole; const [path, anchor] = target.split("#", 2); const resolved = normalize(join(dirname(sourceFrom), decodeURIComponent(path))).replaceAll("\\", "/"); diff --git a/docs/scripts/prepare-content.test.mjs b/docs/scripts/prepare-content.test.mjs index dc708c2380..ab1a5404f0 100644 --- a/docs/scripts/prepare-content.test.mjs +++ b/docs/scripts/prepare-content.test.mjs @@ -8,7 +8,9 @@ import { normalizeTranslatedTitle, prepareLocalizedLandingDemo, prepareTranslatedMarkup, + procedureMdx, rewriteSourceLinks, + staleTranslationNotice, } from "./prepare-content.mjs"; test("defers the localized landing demo and uses the published media file", () => { @@ -158,6 +160,28 @@ test("escapes uppercase placeholders without rewriting HTML", () => { assert.equal(escapeMdxPlaceholders(source), expected); }); +test("renders numbered source sections as Steps only in prepared content", () => { + const source = + "# Quickstart\n\nIntro.\n\n## 1. Boot the stack\n\nRun it.\n\n## 2. Open the dashboard\n\nOpen it.\n\n## Optional\n\nMore.\n"; + const expected = + '# Quickstart\n\nIntro.\n\n\n\n\n\nRun it.\n\n\n\n\n\nOpen it.\n\n\n\n\n\n## Optional\n\nMore.\n'; + + assert.equal(procedureMdx(source), expected); +}); + +test("marks a stale translation after its stamped source comment", () => { + const source = "# Quickstart\n"; + const translation = + "\n" + + "# Inicio rápido\n"; + + assert.equal( + staleTranslationNotice(translation, source, "/docs/getting-started/quickstart/"), + "\n\n" + + "> **Translation notice:** The English source has changed. Read the [English page](/docs/getting-started/quickstart/).\n\n# Inicio rápido\n", + ); +}); + test("keeps translated repository links outside the docs site", () => { const source = "[README](../../README.md)\n"; const expected = "[README](https://github.com/ClickHouse/loom/blob/main/README.md)\n"; @@ -203,3 +227,33 @@ test("keeps a translated multiline code span on one line for link validation", ( const expected = 'Some HTML syntax `

` and `# `.\n\nParagraph.'; assert.equal(prepareTranslatedMarkup(source, new Set()), expected); }); + +test("renders numbered source sections as Steps only in prepared content", () => { + const source = + "# Quickstart\n\nIntro.\n\n## 1. Boot the stack\n\nRun it.\n\n## 2. Open the dashboard\n\nOpen it.\n\n## Optional\n\nMore.\n"; + const expected = + '# Quickstart\n\nIntro.\n\n\n\n\n\nRun it.\n\n\n\n\n\nOpen it.\n\n\n\n\n\n## Optional\n\nMore.\n'; + + assert.equal(procedureMdx(source), expected); +}); + +test("marks a stale translation after its stamped source comment", () => { + const source = "# Quickstart\n"; + const translation = + "\n" + + "# Inicio rápido\n"; + + assert.equal( + staleTranslationNotice(translation, source, "/docs/getting-started/quickstart/"), + "\n\n" + + "> **Translation notice:** The English source has changed. Read the [English page](/docs/getting-started/quickstart/).\n\n# Inicio rápido\n", + ); +}); + +test("rewrites retired repository llms links to the generated site files", () => { + const source = + "[index](https://github.com/ClickHouse/loom/blob/main/llms.txt) [full](https://github.com/ClickHouse/loom/blob/main/llms-full.txt)\n"; + const expected = "[index](/docs/llms.txt) [full](/docs/llms-full.txt)\n"; + + assert.equal(rewriteSourceLinks(source, "ja/index.md"), expected); +}); diff --git a/scripts/i18n/automation.py b/scripts/i18n/automation.py index 1026dd2646..0c133f04ff 100644 --- a/scripts/i18n/automation.py +++ b/scripts/i18n/automation.py @@ -26,9 +26,9 @@ SHA = re.compile(r"[0-9a-f]{40}\Z") -def command(*args: str, input_text: str | None = None) -> str: +def command(*args: str, input_text: str | None = None, env: dict[str, str] | None = None) -> str: return subprocess.run( - args, cwd=t.ROOT, input=input_text, check=True, capture_output=True, text=True + args, cwd=t.ROOT, input=input_text, check=True, capture_output=True, text=True, env=env ).stdout.strip() @@ -470,7 +470,10 @@ def finalize() -> None: git("restore", "--source", sha, "--worktree", "--", "README.md", "i18n") if t.check(skip_stale=True): raise ValueError("translation validation failed before merge") - command("npm", "--prefix", "docs", "run", "build") + build_env = { + key: value for key, value in os.environ.items() if key not in {"GH_TOKEN", "GITHUB_TOKEN"} + } + command("npm", "--prefix", "docs", "run", "build", env=build_env) command("gh", "pr", "merge", str(pr["number"]), "--squash", "--match-head-commit", sha) merged = api(f"repos/{repository}/pulls/{pr['number']}") if not merged["merged"] or merged["head"]["sha"] != sha: diff --git a/tests/unit/test_i18n_automation.py b/tests/unit/test_i18n_automation.py index 2df9cdc6d8..36769ba185 100644 --- a/tests/unit/test_i18n_automation.py +++ b/tests/unit/test_i18n_automation.py @@ -409,11 +409,13 @@ def api(path: str) -> Any: monkeypatch.setattr(a, "api", api) calls: list[tuple[str, ...]] = [] + build_environments: list[dict[str, str] | None] = [] actual = a.command def command(*args: str, **kwargs: Any) -> str: if args[0] == "npm": calls.append(args) + build_environments.append(kwargs.get("env")) if site_raises: raise RuntimeError("documentation build failed") return "" @@ -446,6 +448,13 @@ def command(*args: str, **kwargs: Any) -> str: assert merge_calls[0][-2:] == ("--match-head-commit", sha) assert "--admin" not in merge_calls[0] and "--auto" not in merge_calls[0] assert calls[-1] == merge_calls[0] + assert build_environments == [ + { + key: value + for key, value in os.environ.items() + if key not in {"GH_TOKEN", "GITHUB_TOKEN"} + } + ] else: assert merge_calls == [] assert not any(call[1:3] == ("workflow", "run") for call in calls) From ffc94ee545ee2d9e7401b88f0d4511672d737f78 Mon Sep 17 00:00:00 2001 From: Shaun Struwig <41984034+Blargian@users.noreply.github.com> Date: Tue, 24 Nov 2026 20:09:59 +0100 Subject: [PATCH 12/16] Link stale translated indexes to their routes Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com> --- docs/scripts/prepare-content.mjs | 6 ++++-- docs/scripts/prepare-content.test.mjs | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/scripts/prepare-content.mjs b/docs/scripts/prepare-content.mjs index a97b183c4f..a3777d9022 100644 --- a/docs/scripts/prepare-content.mjs +++ b/docs/scripts/prepare-content.mjs @@ -597,10 +597,12 @@ function sourceForTranslation(from) { return existsSync(english) ? readFileSync(english, "utf8") : null; } -function englishRoute(from) { +export function englishRoute(from) { const [locale, ...source] = from.split("/"); if (!locales.includes(locale)) return ""; - return `/docs/${source.join("/").replace(/\.md$/, "/")}`; + const path = source.join("/"); + const route = path === "index.md" ? "" : path.replace(/index\.md$|\.md$/, ""); + return `/docs/${route}`; } function gitBlob(text) { diff --git a/docs/scripts/prepare-content.test.mjs b/docs/scripts/prepare-content.test.mjs index ab1a5404f0..19ac1cef8a 100644 --- a/docs/scripts/prepare-content.test.mjs +++ b/docs/scripts/prepare-content.test.mjs @@ -5,6 +5,7 @@ import { load } from "js-yaml"; import { withContentMetadata } from "./content-metadata.mjs"; import { escapeMdxPlaceholders, + englishRoute, normalizeTranslatedTitle, prepareLocalizedLandingDemo, prepareTranslatedMarkup, @@ -182,6 +183,11 @@ test("marks a stale translation after its stamped source comment", () => { ); }); +test("links stale translated index pages to their directory routes", () => { + assert.equal(englishRoute("ja/index.md"), "/docs/"); + assert.equal(englishRoute("ja/guides/index.md"), "/docs/guides/"); +}); + test("keeps translated repository links outside the docs site", () => { const source = "[README](../../README.md)\n"; const expected = "[README](https://github.com/ClickHouse/loom/blob/main/README.md)\n"; From 80726a2f2fd53ef68c2158b709360dfc8b8abc20 Mon Sep 17 00:00:00 2001 From: Shaun Struwig <41984034+Blargian@users.noreply.github.com> Date: Wed, 25 Nov 2026 13:54:39 +0100 Subject: [PATCH 13/16] Documentation keeps step anchors and removed-source notices Converted procedures retain their source fragments, and stamped translations describe removed sources without linking to them. Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com> --- docs/scripts/prepare-content.mjs | 18 ++++++++++++++++-- docs/scripts/prepare-content.test.mjs | 22 +++++++++++++++++++++- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/docs/scripts/prepare-content.mjs b/docs/scripts/prepare-content.mjs index a3777d9022..f68cea62b7 100644 --- a/docs/scripts/prepare-content.mjs +++ b/docs/scripts/prepare-content.mjs @@ -545,11 +545,21 @@ export function procedureMdx(text) { const heading = procedure[index]; const bodyStart = heading.index + heading[0].length; const bodyEnd = procedure[index + 1]?.index ?? end; + result += `\n`; result += `${text.slice(bodyStart, bodyEnd)}\n\n`; } return `${result}\n\n${text.slice(end)}`; } +function procedureHeadingId(number, title) { + return `${number}-${title}` + .toLowerCase() + .replace(/[`*_~]/g, "") + .replace(/[^\p{L}\p{N}\s-]/gu, "") + .trim() + .replace(/\s+/g, "-"); +} + /** Escape uppercase Markdown placeholders that MDX would otherwise parse as JSX tags. */ export function escapeMdxPlaceholders(text) { let fenced = false; @@ -614,9 +624,13 @@ function gitBlob(text) { /** Mark published translations whose stamped English source differs from this build's source. */ export function staleTranslationNotice(text, english, url) { - if (english === null) return text; const stamp = text.match(STAMP); - if (!stamp || stamp[2] === gitBlob(english)) return text; + if (!stamp) return text; + if (english === null) { + const notice = "> **Translation notice:** The English source is no longer published."; + return text.replace(stamp[0], `${stamp[0]}\n\n${notice}\n`); + } + if (stamp[2] === gitBlob(english)) return text; const notice = "> **Translation notice:** The English source has changed. Read the [English page](" + url + ")."; return text.replace(stamp[0], `${stamp[0]}\n\n${notice}\n`); } diff --git a/docs/scripts/prepare-content.test.mjs b/docs/scripts/prepare-content.test.mjs index 19ac1cef8a..a18f38bb88 100644 --- a/docs/scripts/prepare-content.test.mjs +++ b/docs/scripts/prepare-content.test.mjs @@ -165,7 +165,15 @@ test("renders numbered source sections as Steps only in prepared content", () => const source = "# Quickstart\n\nIntro.\n\n## 1. Boot the stack\n\nRun it.\n\n## 2. Open the dashboard\n\nOpen it.\n\n## Optional\n\nMore.\n"; const expected = - '# Quickstart\n\nIntro.\n\n\n\n\n\nRun it.\n\n\n\n\n\nOpen it.\n\n\n\n\n\n## Optional\n\nMore.\n'; + '# Quickstart\n\nIntro.\n\n\n\n\n\n\nRun it.\n\n\n\n\n\n\nOpen it.\n\n\n\n\n\n## Optional\n\nMore.\n'; + + assert.equal(procedureMdx(source), expected); +}); + +test("preserves source heading anchors when rendering steps", () => { + const source = "## 1. Boot the stack\n\nRun it.\n"; + const expected = + '\n\n\n\n\nRun it.\n\n\n\n\n'; assert.equal(procedureMdx(source), expected); }); @@ -183,6 +191,18 @@ test("marks a stale translation after its stamped source comment", () => { ); }); +test("marks a translation whose English source was removed without linking to it", () => { + const translation = + "\n" + + "# Inicio rápido\n"; + + assert.equal( + staleTranslationNotice(translation, null, ""), + "\n\n" + + "> **Translation notice:** The English source is no longer published.\n\n# Inicio rápido\n", + ); +}); + test("links stale translated index pages to their directory routes", () => { assert.equal(englishRoute("ja/index.md"), "/docs/"); assert.equal(englishRoute("ja/guides/index.md"), "/docs/guides/"); From e2f6e419ff0bf0c944f09c04b7b2a24b6a495079 Mon Sep 17 00:00:00 2001 From: Shaun Struwig <41984034+Blargian@users.noreply.github.com> Date: Fri, 27 Nov 2026 17:26:58 +0100 Subject: [PATCH 14/16] Keep IndexNow after retiring the documentation publisher The production submission workflow still needs its route mapper after the legacy publisher and redirect assets are removed. Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com> --- docs/scripts/prepare-content.mjs | 15 +- docs/scripts/prepare-content.test.mjs | 2 +- scripts/docs_site/indexnow.py | 4 +- scripts/docs_site/legacy_fragments.json | 483 ------------------------ scripts/docs_site/redirect_pages.py | 131 ------- tests/unit/test_docs_site_indexnow.py | 6 +- tests/unit/test_i18n.py | 2 +- 7 files changed, 18 insertions(+), 625 deletions(-) delete mode 100644 scripts/docs_site/legacy_fragments.json delete mode 100644 scripts/docs_site/redirect_pages.py diff --git a/docs/scripts/prepare-content.mjs b/docs/scripts/prepare-content.mjs index f68cea62b7..3986250d33 100644 --- a/docs/scripts/prepare-content.mjs +++ b/docs/scripts/prepare-content.mjs @@ -1,5 +1,15 @@ import { createHash } from "node:crypto"; -import { cpSync, existsSync, mkdirSync, readdirSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs"; +import { + cpSync, + existsSync, + mkdirSync, + readdirSync, + readFileSync, + renameSync, + rmSync, + statSync, + writeFileSync, +} from "node:fs"; import { fileURLToPath } from "node:url"; import { dirname, join, normalize, relative, resolve, sep } from "node:path"; import { spawnSync } from "node:child_process"; @@ -389,7 +399,8 @@ async function prepareContent() { } async function prepareDocsLandingMedia() { - const landing = join(content, "index.md"); + const landing = [join(content, "index.md"), join(content, "index.mdx")].find(existsSync); + if (!landing) return; const text = readFileSync(landing, "utf8"); const screenshot = /^!\[([^\n]*)\]\(assets\/screenshots\/document-search\.webp\)$/m; const match = screenshot.exec(text); diff --git a/docs/scripts/prepare-content.test.mjs b/docs/scripts/prepare-content.test.mjs index a18f38bb88..3bd52729fe 100644 --- a/docs/scripts/prepare-content.test.mjs +++ b/docs/scripts/prepare-content.test.mjs @@ -258,7 +258,7 @@ test("renders numbered source sections as Steps only in prepared content", () => const source = "# Quickstart\n\nIntro.\n\n## 1. Boot the stack\n\nRun it.\n\n## 2. Open the dashboard\n\nOpen it.\n\n## Optional\n\nMore.\n"; const expected = - '# Quickstart\n\nIntro.\n\n\n\n\n\nRun it.\n\n\n\n\n\nOpen it.\n\n\n\n\n\n## Optional\n\nMore.\n'; + '# Quickstart\n\nIntro.\n\n\n\n\n\n\nRun it.\n\n\n\n\n\n\nOpen it.\n\n\n\n\n\n## Optional\n\nMore.\n'; assert.equal(procedureMdx(source), expected); }); diff --git a/scripts/docs_site/indexnow.py b/scripts/docs_site/indexnow.py index 209d12bb20..6b230b5ab3 100644 --- a/scripts/docs_site/indexnow.py +++ b/scripts/docs_site/indexnow.py @@ -149,8 +149,8 @@ def translated_page_paths() -> list[str]: return [ localized for language in LANGUAGES - for path in (ROOT / "i18n" / language / "docs").rglob("*.md") - if (localized := localized_page_path(path.relative_to(ROOT).as_posix())) is not None + for path in (DOCS.parent / "i18n" / language / "docs").rglob("*.md") + if (localized := localized_page_path(path.relative_to(DOCS.parent).as_posix())) is not None ] diff --git a/scripts/docs_site/legacy_fragments.json b/scripts/docs_site/legacy_fragments.json deleted file mode 100644 index 4b43c3b29b..0000000000 --- a/scripts/docs_site/legacy_fragments.json +++ /dev/null @@ -1,483 +0,0 @@ -{ - "/architecture/clickhouse": {"the-write-derive-loop": "the-write--derive-loop"}, - "/architecture/llm-architecture": {"selection_1": "selection-1"}, - "/es/architecture/agent-framework-adapter": {"proteccion-de-la-conversacion": "protección-de-la-conversación", "puntos-de-entrada-del-codigo-fuente": "puntos-de-entrada-del-código-fuente"}, - "/es/architecture/agno-adapter": {"puntos-de-entrada-del-codigo-fuente": "puntos-de-entrada-del-código-fuente"}, - "/es/architecture/cells": {"la-verificacion-de-tenencia-y-la-ubicacion": "la-verificación-de-tenencia-y-la-ubicación", "por-que-despliegues-completos": "por-qué-despliegues-completos", "puntos-de-entrada-del-codigo-fuente": "puntos-de-entrada-del-código-fuente", "que-ejecuta-cada-celda": "qué-ejecuta-cada-celda", "scim-e-inicio-de-sesion-entre-celdas": "scim-e-inicio-de-sesión-entre-celdas"}, - "/es/architecture/claude-memory-adapter": {"puntos-de-entrada-del-codigo-fuente": "puntos-de-entrada-del-código-fuente"}, - "/es/architecture/code-index-architecture": {"eleccion-de-un-parser": "elección-de-un-parser", "mirrors-de-git-en-cada-replica": "mirrors-de-git-en-cada-réplica", "nivel-rapido-code_ingest": "nivel-rápido-code_ingest", "puntos-de-entrada-del-codigo-fuente": "puntos-de-entrada-del-código-fuente", "reconciliacion": "reconciliación", "simbolos-y-aristas": "símbolos-y-aristas"}, - "/es/architecture/cost-budgets": {"activacion-y-reversion": "activación-y-reversión", "puntos-de-entrada-del-codigo-fuente": "puntos-de-entrada-del-código-fuente"}, - "/es/architecture/definition-drafts": {"borrado-auditoria-y-actualizaciones": "borrado-auditoría-y-actualizaciones", "puntos-de-entrada-del-codigo-fuente": "puntos-de-entrada-del-código-fuente", "revision-y-publicacion": "revisión-y-publicación"}, - "/es/architecture/dify-adapter": {"puntos-de-entrada-del-codigo-fuente": "puntos-de-entrada-del-código-fuente"}, - "/es/architecture/document-extraction": {"calificacion": "calificación", "el-limite-del-servicio": "el-límite-del-servicio", "puntos-de-entrada-del-codigo-fuente": "puntos-de-entrada-del-código-fuente", "umbrales-de-recuperacion": "umbrales-de-recuperación"}, - "/es/architecture/documentation-translation": {"contratos-de-ortografia-del-origen": "contratos-de-ortografía-del-origen", "planificacion-de-solicitudes": "planificación-de-solicitudes", "puntos-de-entrada-del-codigo-fuente": "puntos-de-entrada-del-código-fuente", "reconciliacion-de-unidades-originales": "reconciliación-de-unidades-originales", "validacion-del-ensamblado": "validación-del-ensamblado"}, - "/es/architecture/failure-and-recovery": {"clases-de-trafico": "clases-de-tráfico", "contrapresion": "contrapresión", "cuando-una-dependencia-esta-caida": "cuando-una-dependencia-está-caída", "limites-conocidos": "límites-conocidos", "limites-de-consistencia": "límites-de-consistencia", "limites-de-perdida-de-datos": "límites-de-pérdida-de-datos", "limites-de-tasa": "límites-de-tasa", "medicion": "medición", "puntos-de-entrada-del-codigo-fuente": "puntos-de-entrada-del-código-fuente", "que-escalar": "qué-escalar", "restauracion-de-conocimiento": "restauración-de-conocimiento", "supervision-de-workers": "supervisión-de-workers", "tamanos-de-lote-y-colas": "tamaños-de-lote-y-colas", "una-replica-que-muere-durante-una-migracion-o-una-reconfiguracion": "una-réplica-que-muere-durante-una-migración-o-una-reconfiguración", "workers-de-reparacion": "workers-de-reparación"}, - "/es/architecture/github-feed": {"puntos-de-entrada-del-codigo-fuente": "puntos-de-entrada-del-código-fuente", "validacion-y-despliegue": "validación-y-despliegue"}, - "/es/architecture/google-adk-adapter": {"puntos-de-entrada-del-codigo-fuente": "puntos-de-entrada-del-código-fuente"}, - "/es/architecture/haystack-adapter": {"puntos-de-entrada-del-codigo-fuente": "puntos-de-entrada-del-código-fuente"}, - "/es/architecture/n8n-adapter": {"puntos-de-entrada-del-codigo-fuente": "puntos-de-entrada-del-código-fuente"}, - "/es/architecture/openai-agents-sessions": {"puntos-de-entrada-del-codigo-fuente": "puntos-de-entrada-del-código-fuente"}, - "/es/architecture/provider-reconfiguration": {"activacion-y-admision": "activación-y-admisión", "limite-de-la-implementacion-actual": "límite-de-la-implementación-actual", "preparacion-de-la-reconstruccion": "preparación-de-la-reconstrucción", "primitivas-de-publicacion": "primitivas-de-publicación", "recuperacion-y-borrado": "recuperación-y-borrado", "verificacion-de-docker": "verificación-de-docker"}, - "/es/architecture/server-layout": {"agregar-un-modulo": "agregar-un-módulo", "modulos-del-extractor": "módulos-del-extractor"}, - "/es/architecture/source-push": {"cobertura-y-renovacion-de-drive": "cobertura-y-renovación-de-drive", "puntos-de-entrada-del-codigo-fuente": "puntos-de-entrada-del-código-fuente", "registro-y-autenticacion": "registro-y-autenticación"}, - "/es/architecture/storage-authority": {"admision-bajo-concurrencia": "admisión-bajo-concurrencia", "auditoria": "auditoría", "busqueda": "búsqueda", "busqueda-de-conocimiento": "búsqueda-de-conocimiento", "metadatos-de-revision": "metadatos-de-revisión", "por-que-dos-almacenes": "por-qué-dos-almacenes", "publicacion": "publicación", "ramificacion-de-postgres": "ramificación-de-postgres", "redaccion": "redacción"}, - "/es/benchmarks/adding-a-case": {"lecciones-del-agente-de-programacion-benchfixturescoding_agent_qajson": "lecciones-del-agente-de-programación-benchfixturescoding_agent_qajson", "qa-del-plano-de-codigo-benchfixturescode_intel_qajsonl": "qa-del-plano-de-código-benchfixturescode_intel_qajsonl", "regresiones-de-extraccion-y-de-grafo": "regresiones-de-extracción-y-de-grafo", "tareas-de-planificacion-de-ops-benchfixturesop_planning_tasksjsonl": "tareas-de-planificación-de-ops-benchfixturesop_planning_tasksjsonl"}, - "/es/benchmarks/coverage": {"backlog-de-publicacion": "backlog-de-publicación", "que-debe-incluirse-en-el-readme": "qué-debe-incluirse-en-el-readme"}, - "/es/benchmarks/methodology": {"bootstrap-pareado-y-por-clusteres": "bootstrap-pareado-y-por-clústeres", "calibracion-del-juez": "calibración-del-juez", "categorias-de-tareas": "categorías-de-tareas", "cuando-se-pueden-comparar-dos-numeros": "cuándo-se-pueden-comparar-dos-números", "estadisticas": "estadísticas", "lineas-base": "líneas-base", "metricas": "métricas", "politica-http": "política-http", "puntos-de-entrada-del-codigo-fuente": "puntos-de-entrada-del-código-fuente", "que-tan-ancho-es-el-intervalo": "qué-tan-ancho-es-el-intervalo", "tamanos-de-los-conjuntos": "tamaños-de-los-conjuntos"}, - "/es/benchmarks/overview": {"cobertura-y-que-deja-fuera": "cobertura-y-qué-deja-fuera", "como-se-diferencia-un-bench-de-un-llamador-en-produccion": "cómo-se-diferencia-un-bench-de-un-llamador-en-producción", "que-mide-la-suite": "qué-mide-la-suite", "que-no-demuestra-que-se-pase": "qué-no-demuestra-que-se-pase"}, - "/es/benchmarks/skill-eval": {"anadir-una-tarea": "añadir-una-tarea", "como-leer-un-fallo": "cómo-leer-un-fallo", "comparar-con-una-linea-base": "comparar-con-una-línea-base", "la-puntuacion": "la-puntuación", "la-suite-de-evaluacion-del-plugin": "la-suite-de-evaluación-del-plugin", "que-no-mide-esto": "qué-no-mide-esto", "replay-no-se-llama-a-ningun-modelo": "replay-no-se-llama-a-ningún-modelo"}, - "/es/concepts/retrieval-and-ranking": {"abstencion": "abstención", "fusion": "fusión", "la-expresion-de-ranking": "la-expresión-de-ranking", "las-etapas-de-recuperacion": "las-etapas-de-recuperación", "limites": "límites", "por-que-se-clasifico-aqui": "por-qué-se-clasificó-aquí"}, - "/es/development/adding-a-table": {"1-escribe-la-migracion-y-regenera-el-esquema": "1-escribe-la-migración-y-regenera-el-esquema", "4-clasificar-cualquier-mutacion": "4-clasificar-cualquier-mutación", "lista-de-verificacion": "lista-de-verificación"}, - "/es/development/adding-a-worker": {"4-anadir-la-fila-del-registro": "4-añadir-la-fila-del-registro", "5-entender-donde-se-ejecuta": "5-entender-dónde-se-ejecuta", "6-fijalo-en-las-pruebas": "6-fíjalo-en-las-pruebas"}, - "/es/development/adding-an-operation": {"3-declarar-la-operacion": "3-declarar-la-operación", "ops-direccionadas-por-un-id-a-nivel-de-organizacion": "ops-direccionadas-por-un-id-a-nivel-de-organización"}, - "/es/development/adding-language-support": {"5-anadir-un-nivel-del-compilador-opcional": "5-añadir-un-nivel-del-compilador-opcional"}, - "/es/development/code-generation": {"metodos-de-la-biblioteca-estandar-de-python": "métodos-de-la-biblioteca-estándar-de-python", "publicacion-de-prompts-en-langfuse": "publicación-de-prompts-en-langfuse", "sincronizacion-de-plugins-de-agentes": "sincronización-de-plugins-de-agentes"}, - "/es/development/documentation-style": {"donde-va-una-pagina": "dónde-va-una-página", "paginas-generadas": "páginas-generadas", "plantilla-de-pagina": "plantilla-de-página", "reglas-de-redaccion": "reglas-de-redacción", "terminologia": "terminología"}, - "/es/development/extending-loom": {"agregar-una-integracion": "agregar-una-integración", "anadir-un-proveedor": "añadir-un-proveedor", "anadir-una-configuracion": "añadir-una-configuración", "elegir-el-punto-de-extension": "elegir-el-punto-de-extensión"}, - "/es/development/release-process": {"despues-del-release": "después-del-release", "donde-reside-la-version": "dónde-reside-la-versión", "instalacion-desde-un-github-release": "instalación-desde-un-github-release", "notas-de-la-version": "notas-de-la-versión", "publicar-la-version": "publicar-la-versión", "que-hace-el-workflow-de-release": "qué-hace-el-workflow-de-release"}, - "/es/faq": {"algo-va-mal-por-donde-empiezo": "algo-va-mal-por-dónde-empiezo", "como-averiguo-por-que-un-resultado-quedo-en-esa-posicion-del-ranking": "cómo-averiguo-por-qué-un-resultado-quedó-en-esa-posición-del-ranking", "como-doy-acceso-a-otra-persona": "cómo-doy-acceso-a-otra-persona", "como-doy-memoria-a-largo-plazo-a-claude-code-codex-o-cursor": "cómo-doy-memoria-a-largo-plazo-a-claude-code-codex-o-cursor", "como-hago-que-loom-olvide-algo": "cómo-hago-que-loom-olvide-algo", "cual-es-la-forma-mas-rapida-de-probar-loom": "cuál-es-la-forma-más-rápida-de-probar-loom", "cuando-debo-usar-documentos-de-conocimiento-en-lugar-de-memorias": "cuándo-debo-usar-documentos-de-conocimiento-en-lugar-de-memorias", "en-que-se-diferencia-loom-de-poner-una-base-de-datos-vectorial-junto-a-mi-aplicacion": "en-qué-se-diferencia-loom-de-poner-una-base-de-datos-vectorial-junto-a-mi-aplicación", "por-que-falta-una-operacion-en-mi-lista-de-herramientas-mcp": "por-qué-falta-una-operación-en-mi-lista-de-herramientas-mcp", "por-que-memorysearch-responde-abstain-en-lugar-de-devolver-algo": "por-qué-memorysearch-responde-abstain-en-lugar-de-devolver-algo", "por-que-mi-agente-de-codigo-no-usa-el-indice-de-codigo": "por-qué-mi-agente-de-código-no-usa-el-índice-de-código", "por-que-mi-escritura-se-marco-como-conflicto-o-se-rechazo": "por-qué-mi-escritura-se-marcó-como-conflicto-o-se-rechazó", "por-que-mis-resultados-de-busqueda-no-tienen-sentido": "por-qué-mis-resultados-de-búsqueda-no-tienen-sentido", "puede-loom-responder-preguntas-sobre-mi-codigo": "puede-loom-responder-preguntas-sobre-mi-código", "puedo-usar-loom-solo-para-mi": "puedo-usar-loom-solo-para-mí", "que-tan-buena-es-la-recuperacion-y-como-se-sabe": "qué-tan-buena-es-la-recuperación-y-cómo-se-sabe"}, - "/es/features/code-index/freshness": {"configuracion": "configuración", "la-antiguedad-del-mirror": "la-antigüedad-del-mirror", "limites": "límites", "un-commit-esta-en-todos-los-niveles": "un-commit-está-en-todos-los-niveles"}, - "/es/features/code-index/history-and-prs": {"historial-de-un-simbolo-una-ruta-o-un-rango-de-lineas": "historial-de-un-símbolo-una-ruta-o-un-rango-de-líneas", "limites-y-modos-de-fallo": "límites-y-modos-de-fallo", "que-op-responde-a-cada-pregunta": "qué-op-responde-a-cada-pregunta", "resumenes-de-revision-y-convenciones": "resúmenes-de-revisión-y-convenciones", "verificacion-de-duplicados-antes-de-un-pr-codepr_check": "verificación-de-duplicados-antes-de-un-pr-codepr_check"}, - "/es/features/code-index/repositories": {"perfiles-de-repositorio-y-verificacion-previa-del-compilador": "perfiles-de-repositorio-y-verificación-previa-del-compilador", "quien-puede-leer": "quién-puede-leer"}, - "/es/features/entity-graph": {"como-se-construye-el-grafo": "cómo-se-construye-el-grafo", "configuracion": "configuración", "limites": "límites", "que-contiene-el-grafo": "qué-contiene-el-grafo"}, - "/es/features/integrations/agent-instructions": {"donde-lee-cada-cliente-el-bloque": "dónde-lee-cada-cliente-el-bloque", "por-que-estas-reglas": "por-qué-estas-reglas"}, - "/es/features/integrations/agent-substrate": {"1-instalar-loom-en-el-cluster": "1-instalar-loom-en-el-clúster", "como-encajan-las-piezas": "cómo-encajan-las-piezas"}, - "/es/features/integrations/clickstack": {"configuracion": "configuración", "elegir-la-ruta-de-exportacion": "elegir-la-ruta-de-exportación"}, - "/es/features/integrations/grep-shim": {"garantias": "garantías", "instalacion": "instalación", "limites": "límites"}, - "/es/features/integrations/langfuse": {"configuracion": "configuración", "que-texto-sale-de-loom": "qué-texto-sale-de-loom"}, - "/es/features/integrations/okf": {"exportacion": "exportación", "importacion": "importación", "limites": "límites", "validacion-lint": "validación-lint"}, - "/es/features/memory/history-and-provenance": {"atestacion-memoryverify": "atestación-memoryverify", "el-registro-de-auditoria": "el-registro-de-auditoría", "evidencia-de-que-turnos-proviene-un-hecho": "evidencia-de-qué-turnos-proviene-un-hecho", "limites": "límites", "quien-lo-escribio-actor-y-clase-de-fuente": "quién-lo-escribió-actor-y-clase-de-fuente"}, - "/es/features/memory/working-memory-and-profiles": {"como-los-carga-contextpack": "cómo-los-carga-contextpack", "configuracion": "configuración", "limites": "límites", "limites-de-tamano": "límites-de-tamaño"}, - "/es/features/observability/audit": {"borrado-y-el-registro-de-auditoria": "borrado-y-el-registro-de-auditoría", "configuracion": "configuración", "limites-y-modos-de-fallo": "límites-y-modos-de-fallo", "que-deja-una-fila-de-auditoria": "qué-deja-una-fila-de-auditoría", "verificacion-sin-conexion": "verificación-sin-conexión"}, - "/es/features/runs": {"configuracion": "configuración", "limites": "límites", "que-ocurre-con-las-filas-que-escribio-una-ejecucion": "qué-ocurre-con-las-filas-que-escribió-una-ejecución", "que-registra-una-ejecucion": "qué-registra-una-ejecución"}, - "/es/features/tracker/overview": {"anadir-un-tracker-desde-el-panel": "añadir-un-tracker-desde-el-panel", "biseccion": "bisección", "comprobacion-de-duplicados": "comprobación-de-duplicados", "limites-y-modos-de-fallo": "límites-y-modos-de-fallo", "vinculos-a-pr-que-corrigen": "vínculos-a-pr-que-corrigen"}, - "/es/features/tracker/record-contract": {"configuracion": "configuración", "publico-y-privado": "público-y-privado"}, - "/es/getting-started/agent-setup": {"3-ejecutar-la-comprobacion": "3-ejecutar-la-comprobación", "4-comprueba-la-conexion-del-agente": "4-comprueba-la-conexión-del-agente"}, - "/es/getting-started/connect-a-coding-agent": {"aun-sin-token": "aún-sin-token", "como-le-doy-a-claude-code-una-memoria-compartida": "cómo-le-doy-a-claude-code-una-memoria-compartida", "como-le-doy-a-codex-una-memoria-compartida": "cómo-le-doy-a-codex-una-memoria-compartida", "como-le-doy-memoria-compartida-a-cursor-u-otro-cliente-mcp": "cómo-le-doy-memoria-compartida-a-cursor-u-otro-cliente-mcp", "cuando-se-usa-el-indice-de-codigo": "cuándo-se-usa-el-índice-de-código", "que-necesitas": "qué-necesitas"}, - "/es/getting-started/evaluate": {"2-evalua-tu-carga-de-trabajo": "2-evalúa-tu-carga-de-trabajo", "elegir-una-evaluacion": "elegir-una-evaluación", "inteligencia-de-codigo": "inteligencia-de-código", "manten-la-comparacion-justa": "mantén-la-comparación-justa", "que-publicar": "qué-publicar"}, - "/es/getting-started/models-and-keys": {"a-traves-de-un-gateway-de-inferencia": "a-través-de-un-gateway-de-inferencia", "elegir-una-configuracion": "elegir-una-configuración", "que-funciona-sin-claves-de-proveedor": "qué-funciona-sin-claves-de-proveedor", "un-servidor-de-modelos-en-tu-maquina-sin-clave-de-api": "un-servidor-de-modelos-en-tu-máquina-sin-clave-de-api"}, - "/es/getting-started/overview": {"cuando-encaja-loom": "cuándo-encaja-loom", "cuando-no-encaja": "cuándo-no-encaja", "donde-encajan-los-espacios-de-nombres": "dónde-encajan-los-espacios-de-nombres", "lista-de-verificacion-para-decidir": "lista-de-verificación-para-decidir", "que-hace": "qué-hace"}, - "/es/getting-started/quickstart": {"6-primera-memoria-desde-un-agente-de-codigo": "6-primera-memoria-desde-un-agente-de-código", "camino-rapido-imagen-publicada-sin-clonar": "camino-rápido-imagen-publicada-sin-clonar", "pruebalo-en-github-codespaces": "pruébalo-en-github-codespaces", "que-arranca-el-env-por-defecto": "qué-arranca-el-env-por-defecto"}, - "/es/getting-started/whats-included": {"documentos-codigo-y-registros-de-trabajo": "documentos-código-y-registros-de-trabajo"}, - "/es/guides/agent-integration": {"3-decide-que-escribir": "3-decide-qué-escribir", "7-sigue-la-revision-de-la-skill-de-memoria": "7-sigue-la-revisión-de-la-skill-de-memoria"}, - "/es/guides/debugging": {"3-explicar-una-respuesta-de-busqueda": "3-explicar-una-respuesta-de-búsqueda"}, - "/es/guides/extraction-pipeline": {"ejecutar-un-pipeline-mas-corto": "ejecutar-un-pipeline-más-corto", "limites": "límites"}, - "/es/guides/headless-bots": {"2-comprobar-la-conexion-antes-de-la-primera-ejecucion": "2-comprobar-la-conexión-antes-de-la-primera-ejecución", "4-decide-que-escribe-el-bot": "4-decide-qué-escribe-el-bot", "5-cuando-el-bot-esta-en-silencio": "5-cuando-el-bot-está-en-silencio", "claude-agent-sdk-o-claude-p": "claude-agent-sdk-o-claude--p"}, - "/es/guides/importing-clickgap-memory": {"1-ejecucion-de-prueba": "1-ejecución-de-prueba", "consolidar-opcional-despues-de-la-validacion": "consolidar-opcional-después-de-la-validación", "que-conserva-el-importador": "qué-conserva-el-importador", "senal-de-recuperacion": "señal-de-recuperación", "usar-memorias-de-supresion": "usar-memorias-de-supresión"}, - "/es/guides/performance-tuning": {"eleccion-del-embedder": "elección-del-embedder"}, - "/es/guides/query-from-postgres": {"2-instalar-la-extension": "2-instalar-la-extensión"}, - "/es/guides/teaching": {"configuracion": "configuración", "lab-2-busqueda-de-documentos-con-citas": "lab-2-búsqueda-de-documentos-con-citas", "laboratorio-3-un-indice-de-codigo": "laboratorio-3-un-índice-de-código", "que-laboratorios-corresponden-a-cada-curso": "qué-laboratorios-corresponden-a-cada-curso"}, - "/es/guides/trace-and-resume": {"el-patron": "el-patrón", "por-que-funciona": "por-qué-funciona", "que-plano-guarda-un-checkpoint": "qué-plano-guarda-un-checkpoint", "rastrear-lo-que-hizo-la-ejecucion": "rastrear-lo-que-hizo-la-ejecución"}, - "/es/guides/without-the-dashboard": {"iniciar-sesion": "iniciar-sesión", "vista-del-dashboard-comando-y-llamada-del-sdk": "vista-del-dashboard--comando-y-llamada-del-sdk"}, - "/es/operations/clickhouse-cloud": {"despues-de-la-instalacion": "después-de-la-instalación", "instalacion": "instalación", "rotar-la-contrasena-y-la-ca": "rotar-la-contraseña-y-la-ca"}, - "/es/operations/replicas": {"deriva-de-configuracion": "deriva-de-configuración", "detener-una-replica": "detener-una-réplica", "limites-de-tasa": "límites-de-tasa", "repositorios-de-codigo": "repositorios-de-código"}, - "/es/operations/runtime-settings": {"durante-una-actualizacion-progresiva": "durante-una-actualización-progresiva", "ver-que-esta-en-vigor": "ver-qué-está-en-vigor"}, - "/es/operations/supported-versions": {"artefactos-de-la-version": "artefactos-de-la-versión", "lineas-de-versiones": "líneas-de-versiones", "plugins-de-agentes-de-programacion": "plugins-de-agentes-de-programación"}, - "/es/reference": {"generado-a-partir-del-codigo": "generado-a-partir-del-código", "que-pagina-responde": "qué-página-responde"}, - "/es/reference/cli": {"como-leer-la-tabla": "cómo-leer-la-tabla", "donde-se-ejecuta": "dónde-se-ejecuta"}, - "/es/reference/extractor-contract": {"puntos-de-conexion": "puntos-de-conexión"}, - "/es/reference/sql-surface": {"actualizacion-de-los-datos": "actualización-de-los-datos", "que-cuesta-una-lectura": "qué-cuesta-una-lectura", "version-y-compatibilidad": "versión-y-compatibilidad"}, - "/es/use-cases/agent-memory": {"medicion": "medición", "que-obtienes": "qué-obtienes", "un-asistente-de-investigacion-que-recuerda-tus-preferencias-de-lectura": "un-asistente-de-investigación-que-recuerda-tus-preferencias-de-lectura"}, - "/es/use-cases/autonomous-agents": {"que-obtienes": "qué-obtienes"}, - "/es/use-cases/code-intelligence": {"medicion": "medición", "que-obtienes": "qué-obtienes", "un-agente-de-programacion-que-lee-la-definicion-que-necesita": "un-agente-de-programación-que-lee-la-definición-que-necesita"}, - "/es/use-cases/code-intelligence-by-language": {"infraestructura-como-codigo": "infraestructura-como-código"}, - "/es/use-cases/coding-agent-cost": {"como-esta-disenado-el-plugin-para-ahorrar": "cómo-está-diseñado-el-plugin-para-ahorrar", "que-se-midio": "qué-se-midió"}, - "/es/use-cases/document-search": {"medicion": "medición", "que-obtienes": "qué-obtienes"}, - "/es/use-cases/memory-linked-to-code": {"que-obtienes": "qué-obtienes"}, - "/es/use-cases/multi-agent": {"dos-agentes-que-comparten-una-nota-de-investigacion": "dos-agentes-que-comparten-una-nota-de-investigación", "que-obtienes": "qué-obtienes"}, - "/es/use-cases/runs-and-pr-history": {"medicion": "medición", "que-obtienes": "qué-obtienes"}, - "/es/use-cases/self-hosted-clickhouse": {"que-obtienes": "qué-obtienes"}, - "/guides/headless-bots": {"claude-agent-sdk-or-claude-p": "claude-agent-sdk-or-claude--p"}, - "/guides/without-the-dashboard": {"dashboard-view-command-and-sdk-call": "dashboard-view--command-and-sdk-call"}, - "/ja": {"1": "1-はじめに", "2": "2-サーバーのインストールと実行", "3": "3-エージェントを接続する", "4-sdk-api": "4-sdk-と-api", "5": "5-名前空間アクセスメモリモデル", "6": "6-コードインデックス", "_1": "はじめに", "_2": "ユースケース", "_3": "ガイド", "_4": "機能", "_5": "アーキテクチャ", "_6": "ベンチマーク", "_7": "開発", "_8": "関連ページ"}, - "/ja/architecture/agent-framework-adapter": {"_1": "不変条件", "_2": "会話の保護", "_3": "ソースのエントリーポイント"}, - "/ja/architecture/agno-adapter": {"_1": "不変条件", "_2": "ソースのエントリポイント"}, - "/ja/architecture/claude-memory-adapter": {"_1": "ソースのエントリポイント", "_2": "不変条件"}, - "/ja/architecture/code-index-architecture": {"11": "1つの名前空間1つのブランチ", "_10": "ウォーターマークとカバレッジ", "_11": "ストレージ", "_12": "クエリパターン", "_13": "不変条件", "_14": "ソースのエントリポイント", "_15": "関連ドキュメント", "_2": "目標と非目標", "_3": "コンポーネント", "_4": "パーサーの選択", "_5": "チャンク", "_6": "シンボルとエッジ", "_7": "埋め込みとベクトルテーブル", "_8": "エクストラクタースタンプ", "_9": "照合", "code_ingest": "高速ティアcode_ingest", "git": "すべてのレプリカにある-git-ミラー", "pr": "pr-履歴バックポートトラッカーリンク", "scip": "コンパイラティア-scip"}, - "/ja/architecture/cost-budgets": {"_2": "有効化とロールバック", "_3": "ソースのエントリポイント", "_4": "不変条件"}, - "/ja/architecture/definition-drafts": {"1": "モデルの-1-回の試行", "_2": "根拠とアクセス", "_3": "レビューと公開", "_4": "消去監査アップグレード", "_5": "ソースのエントリポイント", "_6": "不変条件"}, - "/ja/architecture/dify-adapter": {"_1": "不変条件", "_2": "ソースのエントリーポイント"}, - "/ja/architecture/documentation-translation": {"_2": "リクエストの計画", "_3": "元の単位の照合", "_4": "組み立て後の検証", "_5": "ソースの綴りに関する契約", "_6": "不変条件", "_7": "ソースのエントリポイント"}, - "/ja/architecture/failure-and-recovery": {"_10": "データ損失の境界", "_11": "キャパシティ", "_12": "トラフィッククラス", "_13": "レート制限", "_14": "バックグラウンドワーカー", "_15": "バッチサイズとキュー", "_16": "ベクトルのコスト", "_17": "計測", "_18": "スケール対象の判断", "_19": "既知の制限", "_2": "エラーリトライ冪等性", "_20": "ナレッジの復元", "_21": "ナレッジの移動", "_22": "不変条件", "_23": "ソースのエントリポイント", "_24": "関連ドキュメント", "_3": "整合性の境界", "_4": "バックプレッシャー", "_5": "ワーカーの監視", "_6": "修復ワーカー", "_7": "フェイルクローズの選択", "_8": "依存先が停止したとき", "_9": "移行中または再構成中にレプリカが停止した場合", "bluegreen": "bluegreen-ロールバック", "clickhouse": "clickhouse-クライアント", "web": "web-ティア"}, - "/ja/architecture/github-feed": {"_1": "所有権と認証情報", "_2": "レコードと進捗", "_3": "検証とロールアウト", "_4": "ソースのエントリポイント", "_5": "不変条件"}, - "/ja/architecture/google-adk-adapter": {"_1": "ソースのエントリーポイント", "_2": "不変条件"}, - "/ja/architecture/haystack-adapter": {"_1": "不変条件", "_2": "ソースのエントリーポイント"}, - "/ja/architecture/n8n-adapter": {"_1": "インターフェースとストレージ", "_2": "パッケージング", "_3": "不変条件", "_4": "ソースのエントリーポイント"}, - "/ja/architecture/openai-agents-sessions": {"_1": "ソースのエントリポイント", "_2": "不変条件"}, - "/ja/architecture/provider-reconfiguration": {"_2": "アクティベーションとアドミッション", "_3": "リビルドのステージング", "_4": "公開プリミティブ", "_5": "復旧と消去", "_6": "現在の実装の境界", "docker": "docker-検証"}, - "/ja/architecture/server-layout": {"_2": "パッケージ", "_3": "レイヤー", "_4": "インポートの規約", "_5": "モジュールの追加", "_6": "関連情報", "extractor": "extractor-モジュール"}, - "/ja/architecture/source-push": {"_2": "ソースのエントリポイント", "_3": "不変条件", "_4": "登録と認証", "_5": "ライフサイクルとストレージ", "_6": "代替案", "_7": "プロバイダーの仕様", "drive": "drive-の対象範囲と更新"}, - "/ja/architecture/storage-authority": {"2": "2つのストアを使う理由", "_1": "テーブル", "_10": "検索", "_11": "デリバリー", "_12": "永続化されたリビジョンだけが公開される", "_13": "冪等性", "_14": "消去", "_15": "リダクション", "_16": "ナレッジドキュメント", "_17": "ナレッジ検索", "_18": "取り込みジョブ", "_19": "データセット", "_2": "リビジョンのメタデータ", "_20": "障害", "_21": "記録されたストレージオーソリティ", "_22": "マイグレーション", "_23": "デプロイメントプロファイル", "_24": "セル", "_25": "リリースゲート", "_3": "ペイロードのクリア", "_4": "却下したレイアウト", "_5": "テナントごとのデータベース", "_6": "書き込みパス", "_7": "公開", "_8": "監査", "_9": "並行書き込み下での受け入れ判定", "postgres": "postgres-ブランチング"}, - "/ja/benchmarks/adding-a-case": {"_2": "既存のセットにケースを追加する", "_3": "抽出とグラフのリグレッション", "_4": "スキル評価タスク", "_5": "新しいデータセットを組み込む", "_6": "新しいハーネスを書く", "_7": "関連ドキュメント", "benchfixturescoding_agent_qajson": "コーディングエージェントのレッスンbenchfixturescoding_agent_qajson", "op-benchfixturesop_planning_tasksjsonl": "op-プランニングタスクbenchfixturesop_planning_tasksjsonl", "qabenchdatasetssynthetic_memory_qajson": "メモリ-qabenchdatasetssynthetic_memory_qajson", "qabenchfixturescode_intel_qajsonl": "コードプレーン-qabenchfixturescode_intel_qajsonl"}, - "/ja/benchmarks/coverage": {"_2": "ステータス", "_3": "フルフローマトリクス", "_4": "公開予定の項目", "_5": "関連ドキュメント", "readme": "readme-に掲載する内容"}, - "/ja/benchmarks/methodology": {"2": "2つの数値を比較できる条件", "_10": "反復と多数決ラベル", "_11": "判定", "_12": "区間の幅", "_13": "セットのサイズ", "_14": "判定器のキャリブレーション", "_15": "フェイクプロバイダではスコアが意味をなさない", "_16": "再現性の制御", "_17": "ベンチマーク用の名前空間", "_18": "バイアスの要因", "_19": "ソースのエントリポイント", "_2": "再現率と回答精度は別の軸", "_20": "関連ページ", "_3": "タスクカテゴリ", "_4": "正解データ", "_5": "ジャッジ", "_6": "メトリクス", "_7": "ベースライン", "_8": "統計", "_9": "対応ありのクラスタブートストラップ", "http": "http-ポリシー"}, - "/ja/benchmarks/overview": {"_2": "スイートが測定するもの", "_3": "エントリポイント", "_4": "ベンチと本番の呼び出し元の違い", "_5": "カバレッジと対象外の範囲", "_6": "合格が証明しないこと", "_7": "関連ページ"}, - "/ja/benchmarks/skill-eval": {"_10": "失敗の読み方", "_11": "タスクの追加", "_12": "このベンチマークが測定しないもの", "_13": "関連情報", "_2": "構成要素", "_3": "スコア", "_4": "実行する", "_5": "リプレイモデルは呼び出されません", "_6": "スキルを読み込んだ実エージェント", "_7": "その他のエージェント", "_8": "ベースラインと比較する", "_9": "出力", "eval": "プラグイン-eval-スイート"}, - "/ja/concepts/identities-and-namespaces": {"_10": "名前空間内の読み取りスコープ", "_11": "エージェントが書き込んだ行と共有レイヤー", "_12": "コレクション", "_13": "関連ドキュメント", "_2": "名前空間の位置づけ", "_3": "アイデンティティタプル", "_4": "サーバーが付与するもの", "_5": "組織と名前空間", "_6": "可視性参加制限", "_7": "ロール", "_8": "誰が何を呼び出せるか", "_9": "複数の名前空間の読み取り", "definition": "検索における管理下の-definition", "id": "id-モード"}, - "/ja/development/adding-a-table": {"1": "1-マイグレーションを書いてスキーマを再生成する", "2-replacingmergetree": "2-replacingmergetree-の書き込みパスですべてのカラムを引き継ぐ", "3": "3-消去のためにテーブルを分類する", "4": "4-ミューテーションを分類する", "_1": "チェックリスト", "_2": "関連ドキュメント"}, - "/ja/development/adding-a-worker": {"1": "1-パスを書く", "2": "2-クエリを帰属させる", "3": "3-設定を追加する", "4": "4-レジストリ行を追加する", "5": "5-実行場所を理解する", "6": "6-テストで固定する", "7": "7-動作を確認する", "_2": "関連情報"}, - "/ja/development/adding-an-operation": {"1": "1-入力モデルと出力モデルを定義する", "2": "2-ハンドラを書く", "3": "3-オペレーションを宣言する", "4-mcp": "4-mcp-での公開範囲を決める", "5": "5-リーチと成熟度を確認する", "6": "6-テストを書く", "7": "7-再生成とゲートの実行", "_2": "関連ドキュメント", "id-op": "組織全体の-id-で指定される-op", "pr": "pr-を開く前に"}, - "/ja/development/adding-language-support": {"1": "1-レーンの形を選ぶ", "2": "2-パーサーを書く", "3": "3-レーンをテストする", "4": "4-既存の名前空間を最新の状態にする", "5": "5-コンパイラティアを追加する任意", "_2": "唯一のルールエクストラクタスタンプに触れない", "_3": "関連情報"}, - "/ja/development/code-generation": {"_2": "ジェネレータ", "_3": "ワイヤー変更履歴", "_4": "スキーマダンプ", "_5": "スナップショットはジェネレーターではなくテストである", "_6": "プッシュする前に", "_7": "関連ドキュメント", "agent_plugin_sync": "agent_plugin_syncプラグインの同期", "gen_py_library_methods": "gen_py_library_methods標準ライブラリのメソッド一覧の生成", "op_reach_censusop": "op_reach_censusop-の到達経路の集計", "push_langfuse_promptslangfuse": "push_langfuse_promptslangfuse-へのプロンプトのプッシュ", "sdk_py_gen-sdk_ts_gen": "sdk_py_gen-と-sdk_ts_gen"}, - "/ja/development/extending-loom": {"_1": "拡張ポイントを選ぶ", "_2": "すべての拡張に共通すること", "_3": "プロバイダを追加する", "_4": "設定を追加する", "_5": "インテグレーションを追加する", "_6": "関連情報"}, - "/ja/development/migrations": {"_2": "ジャーナルと台帳", "_3": "採番", "_4": "マイグレーションを書くときのルール", "_5": "ランナーディレクティブ", "_6": "ソートキーまたはパーティションキーの変更", "_7": "スキーマのダンプと検証", "_8": "チェックリスト", "_9": "関連ドキュメント", "postgres": "postgres-マイグレーション"}, - "/ja/development/repository-guide": {"_2": "トップレベルの構成", "_3": "新しいコントリビューター向けの読む順序", "_4": "自明ではない規約", "_5": "関連ドキュメント", "server": "server-の内部", "tests": "tests-の内容"}, - "/ja/development/testing": {"_2": "スイート", "_3": "ユニットテスト", "_4": "統合テスト", "_5": "フレームワークアダプター", "_6": "テストをスキップする条件", "_7": "アナライザのステートメントコーパス", "_8": "関連情報", "ci": "ci-ゲート", "ci_1": "ci-ワークフロー"}, - "/ja/faq": {"2": "2-つのエージェントは互いのメモリを見られますか", "_10": "問題が発生しましたどこから始めればよいですか", "_11": "プロジェクト", "_12": "検索の品質はどの程度でどのように確認できますか", "_2": "使い方", "_3": "検索結果が的外れなのはなぜですか", "_4": "書き込みが競合としてフラグ付けされたり拒否されたりしたのはなぜですか", "_5": "メモリではなくナレッジドキュメントを使うのはどんなときですか", "_6": "結果がその順位になった理由を調べるにはどうすればよいですか", "_7": "コーディングエージェントがコードインデックスを使わないのはなぜですか", "_8": "実行について", "_9": "他のユーザーにアクセス権を付与するには", "anthropic-gemini": "anthropic-や-gemini-のモデルは使えますか", "claude-codecodexcursor": "claude-codecodexcursor-に長期メモリを持たせるにはどうすればよいですか", "clickhouse-cloud": "clickhouse-cloud-は必要ですか", "loom": "loom-を最も早く試す方法は何ですか", "loom_1": "loom-を自分だけで使えますか", "loom_2": "loom-に何かを忘れさせるにはどうすればよいですか", "loom_3": "loom-は自分のコードに関する質問に答えられますか", "loom_4": "loom-はアプリの隣にベクトルデータベースを置く構成とどう違いますか", "mcp": "mcp-ツール一覧に操作が表示されないのはなぜですか", "memorysearch-abstain": "memorysearch-が結果を返さず-abstain-と答えるのはなぜですか"}, - "/ja/features/code-index/freshness": {"1": "1-つのコミットはすべてのティアに反映されているか", "_2": "ミラー自体の経過時間", "_3": "ポーリングせずにカバレッジを待つ", "_4": "設定", "_5": "制限事項", "_6": "関連ドキュメント", "as_of": "as_of-ブロック", "ci": "ci-から鮮度をプッシュする"}, - "/ja/features/code-index/history-and-prs": {"_1": "シンボルパス行範囲の履歴", "_2": "レビューブリーフと規約", "_3": "バックポートの欠落", "_4": "最初のビルド", "_5": "制限と障害モード", "_6": "関連ドキュメント", "bisect-codebisect_candidates": "bisect-候補-codebisect_candidates", "op": "どの-op-がどの質問に答えるか", "pr-codepr_check": "pr-作成前の重複チェックcodepr_check", "pr_1": "pr-プレーン", "pr_2": "pr-とトラッカーのプレーン"}, - "/ja/features/code-index/repositories": {"_2": "セルフサービスリポジトリ", "_3": "リポジトリプロファイルとコンパイラのプリフライト", "_4": "オペレーターが設定するリポジトリ", "_5": "閲覧できるユーザー", "_6": "障害モード", "_7": "関連ドキュメント"}, - "/ja/features/conversations-and-sessions": {"_10": "セッションブリーフ", "_11": "例", "_12": "設定", "_13": "制限事項", "_14": "関連ドキュメント", "_2": "会話", "_3": "記録するかどうかはオーナーが決める", "_4": "ターンの書き込み", "_5": "単一メッセージの保存", "_6": "読み取りと検索", "_7": "コンパクションと削除", "_8": "スレッドのタイトル", "_9": "クライアントからのセッションのキャプチャ"}, - "/ja/features/entity-graph": {"_2": "グラフが保持するもの", "_3": "グラフの構築方法", "_4": "オペレーション", "_5": "例", "_6": "グラフの保守", "_7": "設定", "_8": "制限事項", "_9": "関連項目"}, - "/ja/features/integrations/agent-instructions": {"_2": "ブロック", "_3": "各クライアントが読み込む場所", "_4": "これらのルールの理由", "_5": "関連ドキュメント"}, - "/ja/features/integrations/agent-substrate": {"1-loom": "1-クラスタに-loom-をインストールする", "2": "2-エージェントごとのトークン", "3": "3-エージェントを設定してそのアクターを作成する", "4-loom": "4-トークンを使ってアクターが-loom-に到達できるようにする", "_1": "構成要素の連携", "_2": "複数のエージェント", "_3": "関連情報"}, - "/ja/features/integrations/clickstack": {"_1": "エクスポート経路の選択", "_2": "ダッシュボードとアラート", "_3": "消去", "_4": "設定", "_5": "関連ドキュメント", "hyperdx": "hyperdx-をテーブルに向ける"}, - "/ja/features/integrations/codex": {"_1": "インストール", "_10": "関連項目", "_2": "フックの承認", "_3": "トークン", "_4": "サーバー", "_5": "各ファイルの場所", "_6": "スキル", "_7": "ヘッドレス", "_8": "動作の確認", "_9": "トラブルシューティング", "agentsmd": "プラグインなしの-agentsmd", "claude-code": "claude-code-との違い"}, - "/ja/features/integrations/cursor": {"_1": "プラグイン", "_2": "トランスクリプトのキャプチャ", "_3": "インストール", "_4": "フックが読み取るもの", "_5": "キャプチャの範囲", "_6": "動作", "_7": "制限事項", "_8": "関連情報", "mcp": "mcp-ツール"}, - "/ja/features/integrations/grep-shim": {"_1": "インストール", "_2": "保証", "_3": "依存グラフブロック", "_4": "スイッチ", "_5": "制限", "_6": "関連項目", "codeenclosing": "サーバー側codeenclosing"}, - "/ja/features/integrations/langfuse": {"_1": "セットアップ", "_2": "トレース", "_3": "スコア", "_4": "プロンプトのバージョン", "_5": "消去", "_6": "リクエストの突き合わせ", "_7": "関連項目", "loom": "loom-から外部に出るテキスト"}, - "/ja/features/integrations/okf": {"_1": "エクスポート", "_2": "リント", "_3": "インポート", "_4": "ゲートをローカルで実行する", "_5": "制限事項", "_6": "関連情報", "ci": "ci-ゲート"}, - "/ja/features/integrations/vscode": {"_1": "ローカルのシングルユーザーサーバー", "_2": "その他のサーバー", "_3": "エージェント向け指示", "_4": "関連項目"}, - "/ja/features/memory/history-and-provenance": {"_2": "操作", "_3": "エビデンス事実の出どころとなったターン", "_4": "系譜", "_5": "監査ログ", "_6": "制限事項", "_7": "関連ドキュメント", "actor-source-class": "誰が書いたかactor-と-source-class", "memoryhistory": "バージョン-memoryhistory", "memoryredact": "履歴の消去memoryredact", "memoryverify": "証明memoryverify", "namespacerollback": "名前空間のロールバックnamespacerollback", "namespacesnapshot-namespacerestore": "スナップショットnamespacesnapshot-と-namespacerestore"}, - "/ja/features/memory/working-memory-and-profiles": {"_2": "ワーキングメモリ", "_3": "サイズ制限", "_4": "プロファイル", "_5": "構造化プロファイル", "_6": "設定", "_7": "制限", "_8": "関連ドキュメント", "contextpack": "contextpack-によるロード方法"}, - "/ja/features/observability/audit": {"_10": "制限と障害モード", "_11": "関連ドキュメント", "_2": "監査行を残すもの", "_3": "行の構造", "_4": "行ごとのハッシュとチェックポイント", "_5": "チェックポイントラグ", "_6": "監査証跡の読み取り", "_7": "オフラインでの検証", "_8": "消去と監査ログ", "_9": "設定", "verifier": "verifier-ワーカー"}, - "/ja/features/observability/telemetry": {"_10": "バックログとプロセスの状態", "_11": "整合性の不変条件", "_12": "コードプレーン", "_13": "推奨アラート", "_14": "関連情報", "_2": "台帳", "_3": "トレースとログ", "_4": "エクスポーター", "_5": "メトリクス", "_6": "リクエストとコスト", "_7": "エージェントトラスト", "_8": "検索品質", "_9": "メモリの書き込み", "clickhouse": "clickhouse-でのクエリ帰属", "observe": "テレメトリではないobserve-オペレーション", "postgres": "postgres-パブリケーションパイプライン"}, - "/ja/features/runs": {"_1": "予算", "_2": "取得されたことは依拠されたことを意味しない", "_3": "リフレクション", "_4": "実行が書き込んだ行はどうなるか", "_5": "オペレーション", "_6": "例", "_7": "設定", "_8": "制限", "_9": "関連ドキュメント", "run": "run-が記録する内容", "run_1": "評価付きの-run"}, - "/ja/features/tracker/github-feed": {"_1": "レコードの準備", "_2": "リポジトリの設定とスケジュール", "_3": "可視性と消去"}, - "/ja/features/tracker/overview": {"_1": "移植性とレコードタイプ", "_10": "関連ドキュメント", "_2": "トラッカー名前空間", "_3": "操作", "_4": "重複チェック", "_5": "バイセクト", "_6": "トラッカーをリポジトリにリンクする", "_7": "ダッシュボードからトラッカーを追加する", "_8": "動作を変える設定", "_9": "制限と障害モード", "ci": "ci-テスト履歴", "pr": "バグドラフトから候補-pr-まで", "pr_1": "修正-pr-へのリンク"}, - "/ja/features/tracker/record-contract": {"_10": "エイリアス", "_11": "マッピングモード", "_12": "ソースの確認", "_13": "関連ドキュメント", "_2": "トラッカーソースの追加", "_3": "設定", "_4": "ソースエントリのオプション", "_5": "公開と非公開", "_6": "契約", "_7": "必須テーブル", "_8": "任意テーブル", "_9": "機能カラム"}, - "/ja/getting-started/agent-setup": {"1": "1-リリースのインストール", "2": "2-プラグインをインストールする", "3": "3-チェックを実行する", "4": "4-エージェントの接続を確認する", "_1": "ピン", "_2": "ルール", "_3": "レポート"}, - "/ja/getting-started/connect-a-coding-agent": {"_1": "必要なもの", "_2": "動作を確認する", "_3": "コードインデックスが使われる場合", "_4": "トークンがまだない場合", "_5": "次のステップ", "claude-code": "claude-code-に共有メモリを持たせるには", "codex": "codex-に共有メモリを持たせるには", "cursor-mcp": "cursor-などの-mcp-クライアントにメモリを共有させるには"}, - "/ja/getting-started/evaluate": {"1": "1-プロダクトのスモークテスト", "2": "2-ワークロードを評価する", "3": "3-公開された結果の監査と再現", "_1": "評価を選ぶ", "_2": "実行前に", "_3": "コードインテリジェンス", "_4": "比較を公平に保つ", "_5": "公開する内容", "_6": "次のステップ", "rag": "メモリと-rag"}, - "/ja/getting-started/overview": {"_2": "できること", "_3": "名前空間の位置づけ", "_4": "適合しない場合", "_5": "各特性のコスト", "_6": "判断チェックリスト", "_7": "前提条件", "_8": "次のステップ", "loom": "loom-が適しているケース"}, - "/ja/getting-started/quickstart": {"1": "1-スタックを起動する", "2": "2-ダッシュボードを開く", "3": "3-トークンを取得する", "4-http": "4-http-での最初のメモリ", "5-python": "5-python-からの最初のメモリ", "6": "6-コーディングエージェントでの最初のメモリ", "7": "7-ダッシュボードで確認する", "_2": "前提条件", "_3": "マルチユーザーモードで起動する", "_4": "コントリビューター向けチェックアウトをビルドする", "_5": "スタックを確認する", "_6": "オプションリリース済みスタックでリポジトリをインデックスする", "_7": "オプションドキュメントに質問する", "_8": "よくある問題", "_9": "次のステップ", "clone": "最短手順リリース済みイメージを使うclone-不要", "env": "標準の-env-で起動するもの", "github-codespaces": "github-codespaces-で試す"}, - "/ja/getting-started/whats-included": {"_2": "メモリ", "_3": "ドキュメントコード作業記録", "_4": "アクセスガバナンス運用", "_5": "接続方法"}, - "/ja/guides/agent-integration": {"1": "1-クライアントサーフェスを選ぶ", "2": "2-アイデンティティを選ぶ", "3": "3-何を書き込むかを決める", "4": "4-書き込みの応答を読む", "5-1": "5-質問ごとに1回の呼び出しで読み取る", "6": "6-実行を記録する", "7": "7-メモリスキルのレビューに従う", "_1": "避けるべき間違い", "_2": "関連ドキュメント"}, - "/ja/guides/debugging": {"1-id": "1-リクエストの-id-を取得する", "2": "2-システム間でリクエストを結合する", "3": "3-検索結果を説明する", "4": "4-書き込みを説明する", "_2": "関連ドキュメント"}, - "/ja/guides/extraction-pipeline": {"_2": "デフォルトのパイプライン", "_3": "より短いパイプラインを実行する", "_4": "ステップの動作", "_5": "インプロセスのステップを登録する", "_6": "制限", "_7": "関連項目"}, - "/ja/guides/headless-bots": {"1": "1-ボットにアイデンティティを与える", "2": "2-初回実行の前に接続を確認する", "3": "3-ランタイムを接続する", "4": "4-ボットが書き込む内容を決める", "5": "5-ボットが反応しないとき", "_2": "関連ドキュメント", "claude-agent-sdk-claude-p": "claude-agent-sdk-または-claude--p", "sdk": "ボット自身のプロセス内で-sdk-を使う"}, - "/ja/guides/importing-clickgap-memory": {"1": "1-ドライラン", "2": "2-インポート", "3": "3-切り替え前の検証", "_1": "インポーターが保持するもの", "_2": "リコールシグナル", "_3": "抑制メモリを使う", "_4": "ロールバック", "_5": "統合任意検証後", "_6": "関連項目"}, - "/ja/guides/optimize-namespace": {"1": "1-監査", "2": "2つの操作", "2_1": "2-計画", "3": "3-承認を得る", "4": "4-適用", "5": "5-計測", "6": "6-何も廃止しない", "_2": "関連ドキュメント"}, - "/ja/guides/performance-tuning": {"_1": "まず計測する", "_2": "ランキングとしきい値", "_3": "ベクトル読み取り", "_4": "プロバイダー", "_5": "エンベッダーの選択", "_6": "ワーカーとバッチ", "_7": "クライアント側の調整項目", "_8": "関連項目", "clickhouse": "clickhouse-の接続とデッドライン"}, - "/ja/guides/query-from-postgres": {"1-sql": "1-テナント用の-sql-ユーザーを作成する", "2": "2-拡張機能をインストールする", "3-clickhouse": "3-clickhouse-サービスを指定する", "4": "4-ビューをインポートする", "5": "5-クエリと結合", "_1": "コストとスケール", "_2": "コピーと消去", "_3": "取り消し"}, - "/ja/guides/teaching": {"1": "ラボ-1-記憶するエージェント", "_1": "セットアップ", "_2": "ラボを課題として配布する", "_3": "コースごとに適したラボ", "lab-2": "lab-2-引用付きドキュメント検索", "lab-3": "lab-3-コードインデックス", "lab-4": "lab-4-データベースとしてのメモリ"}, - "/ja/guides/trace-and-resume": {"_2": "パターン", "_3": "チェックポイントを保持するプレーン", "_4": "実行内容のトレース", "_5": "仕組み", "_6": "関連項目", "mcp": "mcp-の場合", "python-sdk": "python-sdk-の場合"}, - "/ja/guides/without-the-dashboard": {"_1": "サインイン", "ci": "ボットと-ci-ジョブ", "loom-call-api": "loom-call-api-全体を呼び出す", "sdk": "ダッシュボードのビューとコマンドsdk-呼び出しの対応"}, - "/ja/operations/analytics-export": {"_2": "ファイル", "_3": "ハッシュ化された名前", "_4": "認証情報", "kubernetes": "kubernetes-上での運用", "loom": "loom-の外に出ないもの"}, - "/ja/operations/clickhouse-cloud": {"_1": "サービス", "_2": "シークレット", "_3": "インストール", "_4": "接続", "_5": "インストール後", "_6": "サービスの復元", "_7": "関連ドキュメント", "ca": "パスワードと-ca-のローテーション", "sql": "sql-サーフェスのユーザー"}, - "/ja/operations/code-index-operations": {"_10": "別のブランチ", "_11": "修復", "_12": "メンテナンスコマンド", "_13": "ロールアウトとシャットダウン", "_14": "ティアが失敗したとき", "_15": "障害モデル", "_16": "関連ドキュメント", "_2": "前提条件", "_3": "エントリを設定する", "_4": "最初のインデックス", "_5": "定常運用", "_6": "コンパイラティア", "_7": "リポジトリジョブのサンドボックス", "_8": "ミラーのハウスキーピング", "_9": "計測されたカバレッジ"}, - "/ja/operations/maintenance": {"_10": "ディスク逼迫への対策", "_11": "関連ドキュメント", "_2": "書き込みを実行する前に", "_3": "再埋め込みと再抽出", "_4": "バックフィルと修復", "_5": "メモリ取り込みのドロップ", "_6": "エンティティグラフのメンテナンス", "_7": "消去", "_8": "保持期間", "_9": "スワップ後のチェックで見つかること", "clickstack": "clickstack-消去インデックス", "optimize": "コンパクションと-optimize"}, - "/ja/operations/monitoring": {"_10": "ログトレースクエリの帰属", "_11": "レート制限とトラフィッククラス", "_12": "関連ドキュメント", "_2": "オペレーターコマンドの実行", "_3": "ヘルスチェック", "_4": "スモークテスト", "_5": "ワーカーのステータス", "_6": "アラートの対象", "_7": "整合性の不変条件", "_8": "メトリクス", "_9": "ダッシュボード", "loom-doctor": "loom-doctor-コマンド", "opshealth": "opshealth-オペレーション", "slo": "パイプラインの-slo", "v1health": "v1health-エンドポイント"}, - "/ja/operations/okf-sync": {"_1": "実行時の書き込み内容", "_2": "ガード", "_3": "実行のコスト", "_4": "トークン", "_5": "コピーされた名前空間は公開される", "_6": "ネットワーク", "_7": "関連項目"}, - "/ja/operations/replicas": {"_1": "設定のドリフト", "_2": "レート制限", "_3": "コードリポジトリ", "_4": "レプリカの停止", "env": "すべてのレプリカで同じ-env-を使う"}, - "/ja/operations/runtime-settings": {"_2": "有効な設定を確認する", "_3": "過去の変更を確認して元に戻す", "_4": "ローリングアップグレード中の動作", "live": "live-設定をオーバーライドする"}, - "/ja/operations/sso": {"_1": "スコープとクレーム", "_2": "アカウント", "_3": "セッションとログアウト", "_4": "人物のメールアドレスの変更", "_5": "プロキシの背後で運用する場合", "_6": "このビルドへのアップグレード", "_7": "緊急時のアクセス", "_8": "その他のプロバイダー", "ci": "ボットと-ci", "clickhouse-keeper": "clickhouse-keeper-について", "okta": "okta-のセットアップ", "scim": "scim-によるデプロビジョニング", "scim_1": "scim-を使わないデプロビジョニング", "sso": "sso-を使わない場合のサインインの仕組み", "sso_1": "sso-をオフにする"}, - "/ja/operations/supported-versions": {"_2": "リリースライン", "_3": "コーディングエージェント用プラグイン", "_4": "削除について", "_5": "リリース成果物", "sdk": "sdk-とサーバー"}, - "/ja/operations/troubleshooting": {"401-auth_invalid-503-auth_unavailable": "リクエストが-401-auth_invalid-または-503-auth_unavailable-で失敗する", "503-embed_timeout": "検索が-503-embed_timeout-で失敗する", "503-schema_pending": "リクエストが-503-schema_pending-で失敗する", "_10": "セル", "_11": "セルではないデプロイメントで書き込みが遅いまたはスクリプトが拒否される", "_12": "ワーカー", "_13": "ワーカーが毎回のパスで失敗する", "_14": "ワーカーがまったく動かない", "_15": "ホスト", "_16": "ローカルスタック", "_17": "バグの報告", "_2": "はじめに", "_3": "プロバイダーと検索品質", "_4": "検索が無関係な結果を返すまたは抽出が何も書き込まない", "_5": "埋め込みモデルの変更後に検索品質が低下した", "_6": "書き込みが検索に出てこないまたは保存されなかった", "_7": "認証とトークン", "_8": "スキーマとアップグレード", "_9": "マイグレーションの保留またはチェックサムのずれ", "backend_timeout-overloaded": "リクエストが-backend_timeout-または-overloaded-で失敗する", "cell-triggers-not-applied": "起動時にcell-triggers-not-appliedがログに出力される", "cell_marker": "cell_marker-のレディネスチェックがテナンシーマーカーを示す", "clickhouse": "サーバーと-clickhouse", "clickhouse-cloud": "clickhouse-cloud-のレプリカ再起動後に書き込みに数秒かかる", "clickhouse_1": "ホストまたは-clickhouse-のディスクが不足する", "function-loomtenancy_refuse_-does-not-exist": "起動がfunction-loomtenancy_refuse_-does-not-existで失敗する", "id": "存在するはずの-id-が存在しないものとして読み取られる", "loom-up": "loom-up-がタイムアウトするまたはコンテナーが起動時に終了する", "loom_cell": "loom_cell-が未設定のプロセスはゲートされる", "loom_cell-cli-org": "loom_cell-を設定した-cli-がorg-を指定せずに書き込むコマンドを拒否する", "mcp": "クライアントプラグインmcp", "too_many_parts": "書き込みが-too_many_parts-で失敗するまたはマージが失敗している", "v1health-503": "すべての操作が失敗しv1health-が-503-を返す"}, - "/ja/reference": {"_2": "コードから生成されるページ", "_3": "手書きのページ", "_4": "どのページが答えるか"}, - "/ja/reference/environment": {"_2": "サーバー", "_3": "コーディングエージェントのプラグインとフックスクリプト", "_4": "オペレーター用スクリプト", "_5": "関連ドキュメント", "compose": "compose-ファイル", "uvicorn": "コンテナイメージと-uvicorn"}, - "/ja/reference/extractor-contract": {"_2": "サーバーの設定", "_3": "エンドポイント", "_4": "アーティファクト"}, - "/ja/reference/mcp": {"_1": "エンドポイント", "_2": "認証", "_3": "ツール一覧", "_4": "ツールセット", "_5": "結果", "_6": "エラー", "_7": "セキュリティ", "_8": "アクションスキーマのエクスポート", "_9": "関連情報", "assistant": "assistant-ツールセット", "id": "セッションと-id"}, - "/ja/reference/sql-surface": {"_1": "バージョンと互換性", "_2": "ビュー", "_3": "読み取りのコスト", "_4": "ビューが決して表示しないもの", "_5": "鮮度", "_6": "アクセス", "_7": "クエリ"}, - "/ja/reference/workers": {"_2": "ワーカーの実行方法", "_3": "ワーカーを実行するプロセス", "_4": "ワーカーのオンオフの切り替え", "_5": "ワーカーの動作を確認する", "_6": "表の読み方", "_7": "ワーカー構成を固定するテスト", "_8": "ワーカー", "_9": "関連ドキュメント"}, - "/ja/use-cases/agent-memory": {"_1": "利用できる機能", "_2": "計測結果", "_3": "閲覧の好みを覚えているリサーチアシスタント", "_4": "始める"}, - "/ja/use-cases/autonomous-agents": {"_2": "提供される機能"}, - "/ja/use-cases/code-intelligence": {"_2": "得られるもの", "_3": "計測結果", "_4": "必要な定義を読み取るコーディングエージェント", "_5": "開始する"}, - "/ja/use-cases/code-intelligence-by-language": {"_1": "はじめに", "_2": "関連ドキュメント", "c-c": "c-と-c", "rust-java": "rust-と-java", "sql": "sql-とマイグレーション", "typescript-javascript": "typescript-と-javascript"}, - "/ja/use-cases/coding-agent-cost": {"_2": "測定内容", "_3": "プラグインがコストを削減する仕組み"}, - "/ja/use-cases/document-search": {"_1": "利用できる機能", "_2": "計測結果", "_3": "はじめに"}, - "/ja/use-cases/memory-linked-to-code": {"_2": "できること", "_3": "はじめに"}, - "/ja/use-cases/multi-agent": {"_2": "提供される機能", "_3": "二つのエージェントで調査メモを共有する", "_4": "始める"}, - "/ja/use-cases/runs-and-pr-history": {"_1": "提供される機能", "_2": "計測結果", "_3": "はじめに"}, - "/ja/use-cases/self-hosted-clickhouse": {"_1": "提供される機能", "_2": "計測結果", "_3": "はじめに"}, - "/ko": {"1": "1-시작하기", "2": "2-서버-설치-및-실행", "3": "3-에이전트-연결", "4-sdk-api": "4-sdk와-api", "5": "5-네임스페이스-접근-권한-메모리-모델", "6": "6-코드-인덱스", "_1": "시작하기", "_2": "사용-사례", "_3": "가이드", "_4": "기능", "_5": "아키텍처", "_6": "벤치마크", "_7": "개발", "_8": "함께-보기"}, - "/ko/architecture/agent-framework-adapter": {"_1": "불변-조건", "_2": "대화-보호", "_3": "소스-진입점"}, - "/ko/architecture/agno-adapter": {"_1": "불변-조건", "_2": "소스-진입점"}, - "/ko/architecture/cells": {"_10": "운영", "_11": "장애-유형", "_12": "롤링-업그레이드", "_13": "불변-조건", "_14": "소스-진입점", "_15": "기각된-안", "_16": "테스트", "_2": "배포-전체를-셀로-나누는-이유", "_3": "라우터", "_4": "셀-준비", "_5": "셀-자체의-행", "_6": "하트비트의-키", "_7": "테넌시-검사와-배치", "_8": "셀-연결하기", "_9": "각-셀이-실행하는-것", "scim": "셀-간-scim과-로그인"}, - "/ko/architecture/claude-memory-adapter": {"_1": "소스-진입점", "_2": "불변-조건"}, - "/ko/architecture/clickhouse": {"_1": "목표와-비목표", "_10": "머티리얼라이즈드-뷰", "_11": "벡터-저장소", "_12": "벡터-인덱스가-없는-이유", "_13": "텍스트-인덱스와-어휘-검색", "_14": "삭제와-뮤테이션", "_15": "쿼리-귀속", "_16": "구문-클래스-데드라인-트래픽-클래스", "_17": "쓰기-후-읽기-일관성", "_18": "마이그레이션", "_19": "불변-조건", "_2": "테이블-계열", "_20": "소스-진입점", "_21": "관련-문서", "_3": "모든-테이블이-따르는-규칙", "_4": "배치-삽입", "_5": "엔진과-선택-이유", "_6": "콘텐츠-해시", "_7": "정렬-키", "_8": "머지와-스킵-인덱스", "_9": "쓰기--파생-루프", "clickhouse_1": "제한된-clickhouse-설정", "cloud": "cloud와-자체-호스팅의-차이", "final": "final-쓰기-규칙", "memory_versions": "memory_versions-미러", "ttl": "파티셔닝과-ttl"}, - "/ko/architecture/code-index-architecture": {"_10": "워터마크와-커버리지", "_11": "스토리지", "_12": "쿼리-패턴", "_13": "불변-조건", "_14": "소스-진입점", "_15": "관련-문서", "_2": "목표와-비목표", "_3": "하나의-네임스페이스-하나의-브랜치", "_4": "구성-요소", "_5": "파서-선택", "_6": "청크", "_7": "심볼과-엣지", "_8": "임베딩과-벡터-테이블", "_9": "익스트랙터-스탬프", "code_ingest": "빠른-티어-code_ingest", "git": "모든-레플리카의-git-미러", "pr": "pr-기록-백포트-트래커-링크", "reconciliation": "조정reconciliation", "scip": "컴파일러-티어-scip"}, - "/ko/architecture/cost-budgets": {"_2": "활성화-및-롤백", "_3": "소스-진입점", "_4": "불변-조건"}, - "/ko/architecture/definition-drafts": {"_2": "근거와-접근", "_3": "한-번의-모델-시도", "_4": "검토와-게시", "_5": "삭제-감사-업그레이드", "_6": "소스-진입점", "_7": "불변-조건"}, - "/ko/architecture/dify-adapter": {"_1": "불변-조건", "_2": "소스-진입점"}, - "/ko/architecture/document-extraction": {"_10": "서비스-수준", "_11": "데이터셋", "_12": "쿼리", "_13": "의존성", "_14": "불변-조건", "_15": "소스-진입점", "_2": "서비스-경계", "_3": "아티팩트", "_4": "참조-추출기의-형식", "_5": "적격성-검증", "_6": "검색-하한선", "_7": "구조-기반-청크", "_8": "수집", "_9": "장애"}, - "/ko/architecture/documentation-translation": {"_2": "요청-계획", "_3": "원본-단위-조정", "_4": "조립-후-검증", "_5": "소스-철자-규약", "_6": "불변-조건", "_7": "소스-진입점"}, - "/ko/architecture/failure-and-recovery": {"_10": "용량", "_11": "웹-티어", "_12": "트래픽-클래스", "_13": "속도-제한", "_14": "백그라운드-워커", "_15": "배치-크기와-큐", "_16": "벡터-비용", "_17": "측정", "_18": "무엇을-확장할-것인가", "_19": "알려진-제한", "_2": "오류-재시도-멱등성", "_20": "지식-복원", "_21": "지식-이동", "_22": "불변-조건", "_23": "소스-진입점", "_24": "관련-문서", "_3": "일관성-경계", "_4": "백프레셔", "_5": "워커-감독", "_6": "복구-워커", "_7": "실패-시-차단하는-선택", "_8": "의존성이-중단되었을-때", "_9": "데이터-손실-경계", "bluegreen": "bluegreen-롤백", "clickhouse": "clickhouse-클라이언트", "replica": "마이그레이션-또는-재구성-도중에-replica가-죽는-경우"}, - "/ko/architecture/github-feed": {"_1": "소유권과-자격-증명", "_2": "기록과-진행-상황", "_3": "검증과-롤아웃", "_4": "소스-진입점", "_5": "불변-조건"}, - "/ko/architecture/google-adk-adapter": {"_1": "소스-진입점", "_2": "불변-조건"}, - "/ko/architecture/haystack-adapter": {"_1": "불변-조건", "_2": "소스-진입점"}, - "/ko/architecture/llm-architecture": {"_1": "목표와-비목표", "_10": "재시도-타임아웃-폴백", "_11": "응답-캐시", "_12": "모델-호출의-고객", "_13": "신원-헤더", "_14": "가짜-프로바이더", "_15": "프롬프트", "_16": "비용-집계", "_17": "기본값-변경하기", "_18": "불변-조건", "_19": "소스-진입점", "_2": "임베더", "_20": "관련-문서", "_3": "선택", "_4": "프로토콜과-경로", "_5": "제공자-호출", "_6": "임베더-변경", "_7": "적응형-임계값", "_8": "선택-1", "_9": "프로토콜", "llm_1": "llm-클라이언트", "llm_2": "llm-기반-부분과-결정적-부분", "llm_3": "llm-없는-읽기"}, - "/ko/architecture/n8n-adapter": {"_1": "인터페이스와-스토리지", "_2": "패키징", "_3": "불변-조건", "_4": "소스-진입점"}, - "/ko/architecture/openai-agents-sessions": {"_1": "소스-진입점", "_2": "불변-조건"}, - "/ko/architecture/provider-reconfiguration": {"_2": "활성화와-허용", "_3": "리빌드-스테이징", "_4": "게시-프리미티브", "_5": "복구와-삭제", "_6": "현재-구현-범위의-한계", "docker": "docker-검증"}, - "/ko/architecture/server-layout": {"_2": "패키지", "_3": "레이어", "_4": "모듈-추가하기", "_5": "관련-문서", "extractor": "extractor-모듈", "import": "import-계약"}, - "/ko/architecture/source-push": {"_2": "소스-진입점", "_3": "불변-조건", "_4": "등록-및-인증", "_5": "수명-주기와-저장", "_6": "대안", "_7": "제공자-규약", "drive": "drive-범위와-갱신"}, - "/ko/benchmarks/adding-a-case": {"_2": "기존-세트에-케이스-추가", "_3": "추출-및-그래프-회귀", "_4": "스킬-평가-작업", "_5": "새-데이터셋-연결하기", "_6": "새-하네스-작성하기", "_7": "관련-문서", "benchfixturescoding_agent_qajson": "코딩-에이전트-교훈-benchfixturescoding_agent_qajson", "op-planning-benchfixturesop_planning_tasksjsonl": "op-planning-작업-benchfixturesop_planning_tasksjsonl", "qa-benchdatasetssynthetic_memory_qajson": "메모리-qa-benchdatasetssynthetic_memory_qajson", "qa-benchfixturescode_intel_qajsonl": "코드-플레인-qa-benchfixturescode_intel_qajsonl"}, - "/ko/benchmarks/coverage": {"_2": "상태", "_3": "전체-흐름-매트릭스", "_4": "게시-백로그", "_5": "관련-문서", "readme": "readme에-포함할-내용"}, - "/ko/benchmarks/methodology": {"_10": "반복-실행과-다수결-레이블", "_11": "판정", "_12": "구간의-폭", "_13": "세트-크기", "_14": "판정자-보정", "_15": "두-숫자를-비교할-수-있는-경우", "_16": "가짜-프로바이더는-점수를-무의미하게-만듭니다", "_17": "재현성-제어", "_18": "벤치-네임스페이스", "_19": "편향의-원인", "_2": "재현율과-답변-정확도는-별개의-축입니다", "_20": "소스-진입점", "_21": "관련-문서", "_3": "작업-카테고리", "_4": "정답-기준", "_5": "판정-모델", "_6": "지표", "_7": "기준선", "_8": "통계", "_9": "쌍체-클러스터-부트스트랩", "http": "http-정책"}, - "/ko/benchmarks/overview": {"_2": "스위트가-측정하는-것", "_3": "진입점", "_4": "벤치가-프로덕션-호출자와-다른-점", "_5": "커버리지와-다루지-않는-범위", "_6": "통과가-증명하지-않는-것", "_7": "관련-문서"}, - "/ko/benchmarks/skill-eval": {"_10": "플러그인-평가-스위트", "_11": "실패-읽기", "_12": "작업-추가하기", "_13": "이-벤치마크가-측정하지-않는-것", "_14": "관련-문서", "_2": "구성-요소", "_3": "점수", "_4": "실행하기", "_5": "리플레이-모델을-호출하지-않음", "_6": "스킬을-로드한-실제-에이전트", "_7": "그-밖의-에이전트", "_8": "베이스라인과-비교하기", "_9": "출력"}, - "/ko/concepts/identities-and-namespaces": {"_10": "네임스페이스-내부의-읽기-범위", "_11": "에이전트가-쓴-행과-공유-레이어", "_12": "검색에서의-관리되는-정의", "_13": "컬렉션", "_14": "관련-문서", "_2": "네임스페이스의-위치", "_3": "아이덴티티-튜플", "_4": "서버가-기록하는-값", "_5": "조직과-네임스페이스", "_6": "공개-범위-가입-제한", "_7": "역할", "_8": "누가-무엇을-호출할-수-있는가", "_9": "여러-네임스페이스-읽기", "id": "id-모드"}, - "/ko/concepts/retrieval-and-ranking": {"_2": "검색-레그", "_3": "퓨전", "_4": "랭크-표현식", "_5": "기권", "_6": "왜-이-순위가-나왔는가", "_7": "제한-사항", "_8": "관련-문서"}, - "/ko/development/adding-a-table": {"1": "1-마이그레이션을-작성하고-스키마를-다시-생성하기", "2-replacingmergetree": "2-replacingmergetree-쓰기-경로에서-모든-컬럼-미러링하기", "3": "3-삭제를-위해-테이블-분류하기", "4": "4-모든-뮤테이션-분류하기", "_1": "체크리스트", "_2": "관련-문서"}, - "/ko/development/adding-a-worker": {"1": "1-패스-작성하기", "2": "2-쿼리-출처-지정하기", "3": "3-설정-추가하기", "4": "4-레지스트리-행-추가", "5": "5-실행-위치-이해하기", "6": "6-테스트에-고정하기", "7": "7-실행-확인", "_2": "관련-문서"}, - "/ko/development/adding-an-operation": {"1": "1-입력-및-출력-모델-정의", "2": "2-핸들러-작성", "3": "3-오퍼레이션-선언하기", "4-mcp": "4-mcp-노출-범위-결정", "5": "5-도달-범위와-성숙도-확인", "6": "6-테스트-작성", "7": "7-재생성하고-게이트-실행하기", "_2": "관련-문서", "id-op": "조직-전체-id로-지정하는-op", "pr": "pr을-열기-전에"}, - "/ko/development/adding-language-support": {"1": "1-레인의-형태-선택", "2": "2-파서-작성", "3": "3-레인-테스트", "4": "4-기존-네임스페이스-최신-상태로-갱신하기", "5": "5-컴파일러-티어-추가하기-선택-사항", "_2": "관련-문서", "extractor-stamp": "단-하나의-규칙-extractor-stamp를-건드리지-않는다"}, - "/ko/development/code-generation": {"_2": "생성기", "_3": "에이전트-플러그인-동기화", "_4": "와이어-변경-내역", "_5": "스키마-덤프", "_6": "생성기가-아니라-테스트인-스냅샷", "_7": "푸시하기-전에", "_8": "관련-문서", "langfuse": "langfuse-프롬프트-푸시", "op": "op-도달-범위-조사", "python": "python-라이브러리-메서드-생성", "sdk_py_gen-sdk_ts_gen": "sdk_py_gen과-sdk_ts_gen"}, - "/ko/development/dashboard-design": {"_2": "컴포넌트냐-디자인-값이냐", "_3": "스타일", "_4": "변경-사항을-검토하는-규칙", "_5": "목록-로딩-탐색", "_6": "변경을-리뷰에-올리기-전에", "_7": "점검", "click-ui": "click-ui는-컴포넌트-라이브러리입니다", "click-ui_1": "click-ui에서-포함되는-것", "click-ui_2": "click-ui-릴리스-따라가기"}, - "/ko/development/extending-loom": {"_1": "확장-지점-선택", "_2": "모든-확장이-공통으로-따르는-것", "_3": "프로바이더-추가", "_4": "설정-추가하기", "_5": "통합-추가", "_6": "관련-문서"}, - "/ko/development/migrations": {"_2": "저널과-원장", "_3": "번호-부여", "_4": "마이그레이션-작성-규칙", "_5": "정렬-키-또는-파티션-키-변경", "_6": "스키마-덤프와-검사", "_7": "체크리스트", "_8": "관련-문서", "postgres": "postgres-마이그레이션", "runner": "runner-지시문"}, - "/ko/development/release-process": {"_10": "릴리스-이후", "_11": "관련-문서", "_2": "버전이-위치한-곳", "_3": "릴리스-노트", "_4": "릴리스-만들기", "_5": "릴리스-리허설", "_6": "첫-릴리스-전에", "_7": "릴리스-워크플로가-하는-일", "_8": "실패한-태그-또는-서명", "_9": "목록", "clickhouse": "clickhouse-잡이-중단되었을-때", "github-release": "github-release에서-설치하기"}, - "/ko/development/testing": {"_2": "테스트-스위트", "_3": "단위-테스트", "_4": "통합-테스트", "_5": "프레임워크-어댑터", "_6": "테스트가-건너뛰는-방식", "_7": "애널라이저-구문-코퍼스", "_8": "관련-문서", "ci": "ci-게이트", "ci_1": "ci-워크플로"}, - "/ko/faq": {"_10": "다른-사람에게-접근-권한을-주려면-어떻게-하나요", "_11": "문제가-생겼습니다-어디서부터-확인해야-하나요", "_12": "프로젝트", "_13": "검색-품질은-어느-정도이며-어떻게-알-수-있나요", "_2": "사용하기", "_3": "검색-결과가-엉뚱하게-나오는-이유는-무엇인가요", "_4": "내가-쓴-내용이-충돌로-표시되거나-거부된-이유는-무엇인가요", "_5": "두-에이전트가-서로의-메모리를-볼-수-있나요", "_6": "메모리-대신-지식-문서를-써야-하는-경우는-언제인가요", "_7": "결과가-왜-그-순위가-되었는지-확인하려면-어떻게-하나요", "_8": "코딩-에이전트가-코드-인덱스를-사용하지-않는-이유는-무엇인가요", "_9": "실행하기", "anthropic-gemini": "anthropic이나-gemini-모델을-사용할-수-있나요", "claude-code-codex-cursor": "claude-code-codex-cursor에-장기-메모리를-부여하려면-어떻게-하나요", "clickhouse-cloud": "clickhouse-cloud가-필요한가요", "loom": "loom을-가장-빠르게-사용해-보는-방법은-무엇인가요", "loom_1": "loom을-혼자서만-사용할-수-있나요", "loom_2": "loom이-어떤-내용을-잊게-하려면-어떻게-하나요", "loom_3": "loom이-내-코드에-대한-질문에-답할-수-있나요", "loom_4": "loom은-앱-옆에-벡터-데이터베이스를-두는-방식과-어떻게-다른가요", "mcp-op": "mcp-도구-목록에서-op가-빠져-있는-이유는-무엇인가요", "memorysearch-abstain": "memorysearch가-결과를-반환하지-않고-abstain이라고-답하는-이유는-무엇인가요"}, - "/ko/features/code-index/freshness": {"_2": "미러-자체의-경과-시간", "_3": "하나의-커밋이-모든-티어에-있는가", "_4": "폴링-없이-커버리지-기다리기", "_5": "설정", "_6": "제한-사항", "_7": "관련-문서", "as_of": "as_of-블록", "ci": "ci에서-최신-상태-푸시하기"}, - "/ko/features/code-index/history-and-prs": {"_1": "심볼-경로-라인-범위의-이력", "_2": "리뷰-브리프와-컨벤션", "_3": "백포트-누락", "_4": "첫-빌드", "_5": "한계와-실패-모드", "_6": "관련-문서", "bisect-codebisect_candidates": "bisect-후보-codebisect_candidates", "op": "어떤-op가-어떤-질문에-답하는가", "pr-codepr_check": "pr-전-중복-확인-codepr_check", "pr_1": "pr-플레인", "pr_2": "pr-및-트래커-플레인"}, - "/ko/features/code-index/operations": {"_2": "찾기", "_3": "구조와-변경", "_4": "상태-및-관리", "_5": "관련-문서", "op": "코드-op-호출하기", "pr": "히스토리-pr-릴리스"}, - "/ko/features/code-index/repositories": {"_2": "셀프-서비스-저장소", "_3": "리포지토리-프로필과-컴파일러-사전-점검", "_4": "운영자가-구성한-리포지토리", "_5": "읽을-수-있는-사용자", "_6": "장애-유형", "_7": "관련-문서"}, - "/ko/features/conversations-and-sessions": {"_10": "세션-브리프", "_11": "예시", "_12": "설정", "_13": "제한-사항", "_14": "관련-문서", "_2": "대화", "_3": "기록은-소유자가-선택합니다", "_4": "턴-쓰기", "_5": "개별-메시지-저장", "_6": "읽기와-검색", "_7": "압축과-삭제", "_8": "스레드-제목", "_9": "클라이언트에서-세션-캡처하기"}, - "/ko/features/entity-graph": {"_2": "그래프가-담고-있는-것", "_3": "그래프가-만들어지는-방식", "_4": "작업", "_5": "예시", "_6": "그래프-유지-관리", "_7": "설정", "_8": "제한-사항", "_9": "관련-문서"}, - "/ko/features/integrations/agent-instructions": {"_2": "블록", "_3": "각-클라이언트가-읽는-위치", "_4": "이-규칙이-필요한-이유", "_5": "관련-문서"}, - "/ko/features/integrations/agent-substrate": {"1-loom": "1-클러스터에-loom-설치", "2": "2-에이전트별-토큰", "3": "3-에이전트를-구성하고-액터-만들기", "4-loom": "4-액터가-토큰으로-loom에-접근하도록-허용", "_2": "구성-요소가-맞물리는-방식", "_3": "여러-에이전트", "_4": "관련-문서"}, - "/ko/features/integrations/clickstack": {"_1": "내보내기-경로-선택", "_2": "대시보드와-알림", "_3": "삭제", "_4": "설정", "_5": "관련-문서", "hyperdx": "hyperdx를-테이블에-연결하기"}, - "/ko/features/integrations/cursor": {"_1": "플러그인", "_2": "기록-캡처", "_3": "설치", "_4": "훅이-읽는-내용", "_5": "캡처-범위", "_6": "동작", "_7": "제한-사항", "_8": "관련-문서", "mcp": "mcp-도구"}, - "/ko/features/integrations/grep-shim": {"_1": "설치", "_2": "보장-사항", "_3": "의존성-그래프-블록", "_4": "스위치", "_5": "제한-사항", "_6": "관련-문서", "codeenclosing": "서버-측-codeenclosing"}, - "/ko/features/integrations/langfuse": {"_1": "설정", "_2": "트레이스", "_3": "점수", "_4": "프롬프트-버전", "_5": "삭제", "_6": "요청-연결하기", "_7": "관련-문서", "loom": "loom에서-나가는-텍스트"}, - "/ko/features/integrations/librechat": {"_2": "테넌트-경계", "_3": "도구-오류-스트리밍-취소", "_4": "검증", "_5": "문서-질문", "_6": "사용-사례", "_7": "배포된-어시스턴트", "librechat": "librechat이-저장하는-데이터", "loom": "호출이-loom에-도달하는-방식"}, - "/ko/features/integrations/okf": {"_1": "내보내기", "_2": "린트", "_3": "가져오기", "_4": "게이트를-로컬에서-실행하기", "_5": "제한-사항", "_6": "관련-문서", "ci": "ci-게이트"}, - "/ko/features/integrations/vscode": {"_1": "로컬-단일-사용자-서버", "_2": "그-외의-서버", "_3": "에이전트-지침", "_4": "관련-문서"}, - "/ko/features/memory/history-and-provenance": {"_2": "작업", "_3": "근거-사실이-어떤-턴에서-나왔는가", "_4": "계보", "_5": "감사-로그", "_6": "제한-사항", "_7": "관련-문서", "actor-source-class": "작성자-actor와-source-class", "memoryhistory": "버전-memoryhistory", "memoryredact": "기록-지우기-memoryredact", "memoryverify": "증명-memoryverify", "namespacerollback": "네임스페이스-되돌리기-namespacerollback", "namespacesnapshot-namespacerestore": "스냅샷-namespacesnapshot-및-namespacerestore"}, - "/ko/features/memory/working-memory-and-profiles": {"_2": "작업-메모리", "_3": "크기-제한", "_4": "프로필", "_5": "구조화된-프로필", "_6": "설정", "_7": "제한-사항", "_8": "관련-문서", "contextpack": "contextpack이-이를-불러오는-방식"}, - "/ko/features/namespaces-and-sharing": {"_10": "멘토", "_11": "일회용-네임스페이스", "_12": "설정", "_13": "제한-사항", "_14": "관련-문서", "_2": "네임스페이스-등록", "_3": "멤버십과-권한-부여", "_4": "에이전트와-네임스페이스-간-사실-공유", "_5": "네임스페이스-상태-읽기", "_6": "사용자-에이전트-또는-세션-하나-살펴보기", "_7": "메모리가-만들어지는-방식에-대한-변경안-작성", "_8": "문서-변경안", "_9": "네임스페이스-가이드"}, - "/ko/features/observability/audit": {"_10": "설정", "_11": "한계와-장애-모드", "_12": "관련-문서", "_2": "감사-행을-남기는-항목", "_3": "행", "_4": "행-단위-해시와-체크포인트", "_5": "검증-워커", "_6": "체크포인트-지연", "_7": "기록-읽기", "_8": "오프라인-검증", "_9": "삭제와-감사-로그"}, - "/ko/features/runs": {"_10": "설정", "_11": "제한", "_12": "관련-문서", "_2": "실행이-기록하는-내용", "_3": "예산", "_4": "불러왔다고-해서-의존한-것은-아니다", "_5": "회고", "_6": "실행이-기록한-행은-어떻게-되는가", "_7": "평가된-실행", "_8": "작업", "_9": "예시"}, - "/ko/features/tasks-and-decisions": {"_10": "문서에서-결정-추출하기", "_11": "기록-정책", "_12": "모드", "_13": "제한-사항", "_14": "관련-문서", "_2": "작업-인박스", "_3": "상태", "_4": "인박스-등록", "_5": "작업-게시", "_6": "가져오기-작업-완료", "_7": "결과-추적", "_8": "설정", "_9": "결정", "operations": "작업operations"}, - "/ko/features/tracker/github-feed": {"_1": "레코드-준비", "_2": "저장소-구성-및-스케줄링", "_3": "가시성과-삭제"}, - "/ko/features/tracker/record-contract": {"_10": "별칭", "_11": "매핑-모드", "_12": "소스-확인", "_13": "관련-문서", "_2": "트래커-소스-추가", "_3": "구성", "_4": "소스-항목-옵션", "_5": "공개와-비공개", "_6": "계약", "_7": "필수-테이블", "_8": "선택-테이블", "_9": "기능-컬럼"}, - "/ko/getting-started/agent-setup": {"1": "1-릴리스-설치", "2": "2-플러그인-설치", "3": "3-점검-실행", "4": "4-에이전트-연결-확인", "_1": "핀", "_2": "규칙", "_3": "보고"}, - "/ko/getting-started/connect-a-coding-agent": {"_1": "필요한-것", "_2": "정상-작동-확인", "_3": "코드-인덱스가-사용되는-경우", "_4": "아직-토큰이-없는-경우", "_5": "다음-단계", "claude-code": "claude-code에-공유-메모리를-제공하려면-어떻게-하나요", "codex": "codex에-공유-메모리를-제공하려면-어떻게-하나요", "cursor-mcp": "cursor나-다른-mcp-클라이언트에-공유-메모리를-어떻게-제공하나요"}, - "/ko/getting-started/evaluate": {"1": "1-제품-스모크-테스트", "2": "2-워크로드-평가", "3": "3-공개된-결과-감사-및-재현", "_1": "평가-방식-선택", "_2": "실행-전에", "_3": "코드-인텔리전스", "_4": "공정한-비교-유지하기", "_5": "게시할-내용", "_6": "다음-단계", "rag": "메모리와-rag"}, - "/ko/getting-started/models-and-keys": {"_1": "프로바이더-키-없이-무엇이-동작하나요", "_10": "변경-사항-적용-및-결과-확인", "_2": "설정-선택하기", "_3": "서버-구성-설정", "_4": "권장-대시보드-사용", "_5": "대안-환경-구성", "_6": "추론-게이트웨이를-통한-사용", "_7": "모든-호출에-고객-지정하기", "_8": "모든-호출에-에이전트-지정하기", "_9": "워크로드-토큰이-없는-경우", "api_1": "내-머신의-모델-서버-api-키-없음", "llm": "모든-llm-작업을-선택한-제공자에서-유지", "llm-claude": "llm에-claude-사용", "openai": "두-역할-모두에-openai-사용", "org": "org의-모델-호출-끄기"}, - "/ko/getting-started/overview": {"_2": "기능", "_3": "네임스페이스의-위치", "_4": "맞지-않는-경우", "_5": "각-속성의-비용", "_6": "결정-체크리스트", "_7": "사전-요구-사항", "_8": "다음-단계", "loom": "loom이-적합한-경우"}, - "/ko/getting-started/quickstart": {"1": "1-스택-부팅", "2": "2-대시보드-열기", "3": "3-토큰-발급받기", "4-http": "4-http로-첫-메모리-만들기", "5-python": "5-python으로-첫-메모리-만들기", "6": "6-코딩-에이전트로-첫-메모리-만들기", "7": "7-대시보드에서-확인하기", "_10": "다음-단계", "_2": "사전-요구-사항", "_3": "빠른-방법-릴리스된-이미지-클론-없음", "_4": "다중-사용자-모드로-시작", "_5": "기여자-방법-체크아웃-빌드", "_6": "스택-확인", "_7": "선택-사항-릴리스된-스택에서-리포지토리-인덱싱하기", "_8": "선택-사항-문서에-대해-질문하기", "_9": "자주-발생하는-문제", "env": "기본-env가-부팅하는-것", "github-codespaces": "github-codespaces에서-체험하기"}, - "/ko/getting-started/whats-included": {"_2": "메모리", "_3": "문서-코드-작업-기록", "_4": "접근-거버넌스-및-운영", "_5": "연결-방법"}, - "/ko/guides/agent-integration": {"1": "1-클라이언트-인터페이스-선택", "2": "2-아이덴티티-선택", "3": "3-무엇을-기록할지-결정하기", "4": "4-쓰기-응답-읽기", "5": "5-질문당-한-번의-호출로-읽기", "6": "6-실행-기록", "7": "7-메모리-스킬의-검토-따르기", "_1": "피해야-할-실수", "_2": "관련-문서"}, - "/ko/guides/debugging": {"1-id": "1-요청의-id-수집하기", "2": "2-시스템-간-요청-연결", "3": "3-검색-응답-설명하기", "4": "4-쓰기-설명하기", "_2": "관련-문서"}, - "/ko/guides/extraction-pipeline": {"_2": "기본-파이프라인", "_3": "더-짧은-파이프라인-실행", "_4": "단계-동작", "_5": "프로세스-내-단계-등록", "_6": "제한-사항", "_7": "관련-문서"}, - "/ko/guides/headless-bots": {"1-id": "1-봇에-id-부여하기", "2": "2-처음-실행하기-전에-연결-확인하기", "3": "3-런타임-연결", "4": "4-봇이-무엇을-기록할지-결정하기", "5": "5-봇이-응답하지-않을-때", "_2": "관련-문서", "claude-agent-sdk-claude-p": "claude-agent-sdk-또는-claude--p", "sdk": "봇의-자체-프로세스에서-사용하는-sdk"}, - "/ko/guides/importing-clickgap-memory": {"1": "1-드라이-런", "2": "2-가져오기", "3": "3-전환-전에-검증하기", "_1": "임포터가-보존하는-항목", "_2": "회상-신호", "_3": "억제-메모리-사용하기", "_4": "롤백", "_5": "통합선택-사항-검증-후", "_6": "관련-문서"}, - "/ko/guides/optimize-namespace": {"1": "1-감사", "2": "2-계획", "3": "3-승인-받기", "4": "4-적용", "5": "5-측정", "6": "6-아무것도-폐기하지-않기", "_2": "두-가지-작업", "_3": "관련-문서"}, - "/ko/guides/performance-tuning": {"_1": "먼저-측정하기", "_2": "랭킹과-임계값", "_3": "벡터-읽기", "_4": "프로바이더", "_5": "임베더-선택", "_6": "워커와-배치", "_7": "클라이언트-측-조절-방법", "_8": "관련-문서", "clickhouse": "clickhouse-연결과-데드라인"}, - "/ko/guides/query-from-postgres": {"1-sql": "1-테넌트용-sql-사용자-만들기", "2": "2-확장-설치하기", "3-clickhouse": "3-clickhouse-서비스-지정하기", "4": "4-뷰-가져오기", "5": "5-쿼리와-조인", "_1": "비용과-규모", "_2": "복사본과-삭제", "_3": "권한-해제"}, - "/ko/guides/teaching": {"4": "실습-4-데이터베이스로서의-메모리", "_1": "설정", "_2": "실습을-과제로-배포하기", "_3": "어떤-실습이-어떤-과정에-맞는가", "lab-1": "lab-1-기억하는-에이전트", "lab-2": "lab-2-인용이-포함된-문서-검색", "lab-3": "lab-3-코드-인덱스"}, - "/ko/guides/trace-and-resume": {"_2": "패턴", "_3": "체크포인트를-보관하는-영역", "_4": "실행이-한-일-추적", "_5": "동작하는-이유", "_6": "관련-문서", "mcp": "mcp-사용", "python-sdk": "python-sdk-사용"}, - "/ko/guides/without-the-dashboard": {"_1": "로그인", "ci": "봇과-ci-작업", "loom-call-api": "loom-call-전체-api", "sdk": "대시보드-보기--명령과-sdk-호출"}, - "/ko/operations/analytics-export": {"_2": "파일", "_3": "해시된-이름", "_4": "자격-증명", "kubernetes": "kubernetes에서", "loom": "loom-밖으로-나가지-않는-데이터"}, - "/ko/operations/backup-and-recovery": {"_10": "관련-문서", "_2": "백업-방식-선택", "_3": "이식-가능한-덤프", "_4": "복원-후-감사-로그-검증", "_5": "네임스페이스-내부의-변경-되돌리기", "_6": "저장소-하나-복구하기", "_7": "복구할-수-있는-것과-없는-것", "_8": "롤백-컬러", "_9": "배포-이전", "postgres": "postgres가-권위-저장소일-때", "postgres-clickhouse": "postgres-저널과-clickhouse-복원"}, - "/ko/operations/maintenance": {"_10": "디스크-압박-관리", "_11": "관련-문서", "_2": "쓰기를-실행하기-전에", "_3": "다시-임베딩-및-다시-추출", "_4": "백필과-복구", "_5": "메모리-수집-드롭", "_6": "엔티티-그래프-유지-관리", "_7": "삭제", "_8": "보존", "_9": "교체-후-검사가-찾아내는-항목", "clickstack": "clickstack-삭제-인덱스", "compaction-optimize": "compaction과-optimize"}, - "/ko/operations/monitoring": {"_10": "로그-트레이스-쿼리-귀속", "_11": "속도-제한과-트래픽-클래스", "_12": "관련-문서", "_2": "운영자-명령-실행", "_3": "상태-점검", "_4": "스모크-테스트", "_5": "워커-상태", "_6": "알림을-설정할-대상", "_7": "무결성-불변식", "_8": "메트릭", "_9": "대시보드", "loom-doctor": "loom-doctor-명령", "opshealth": "opshealth-작업", "slo": "파이프라인-slo", "v1health": "v1health-엔드포인트"}, - "/ko/operations/okf-sync": {"_1": "실행이-기록하는-내용", "_2": "보호-장치", "_3": "실행-비용", "_4": "토큰", "_5": "복사된-네임스페이스는-공개된다", "_6": "네트워크", "_7": "관련-문서"}, - "/ko/operations/replicas": {"_1": "구성-드리프트", "_2": "속도-제한", "_3": "코드-저장소", "_4": "레플리카-중지", "env": "모든-레플리카에-같은-env-사용"}, - "/ko/operations/runtime-settings": {"_2": "적용-중인-설정-확인", "_3": "과거-변경-확인-및-되돌리기", "_4": "롤링-업그레이드-중", "live": "live-설정-오버라이드"}, - "/ko/operations/supported-versions": {"_2": "릴리스-라인", "_3": "코딩-에이전트-플러그인", "_4": "제거-공지", "_5": "릴리스-아티팩트", "sdk": "sdk와-서버"}, - "/ko/operations/troubleshooting": {"401-auth_invalid-503-auth_unavailable": "요청이-401-auth_invalid-또는-503-auth_unavailable로-실패함", "503-embed_timeout": "검색이-503-embed_timeout으로-실패함", "503-schema_pending": "요청이-503-schema_pending으로-실패함", "_10": "셀", "_11": "셀이-아닌-배포에서-쓰기가-느리거나-스크립트가-거부된다", "_12": "워커", "_13": "워커가-매-패스마다-실패하는-경우", "_14": "어떤-워커도-실행되지-않는-경우", "_15": "호스트", "_16": "로컬-스택", "_17": "버그-제보하기", "_2": "시작하기", "_3": "프로바이더와-검색-품질", "_4": "검색이-임의의-결과를-반환하거나-추출이-아무것도-기록하지-않음", "_5": "임베더를-변경한-후-검색-품질이-떨어짐", "_6": "기록한-내용이-검색에-없거나-저장되지-않음", "_7": "인증과-토큰", "_8": "스키마와-업그레이드", "_9": "대기-중인-마이그레이션-또는-체크섬-불일치", "backend_timeout-overloaded": "요청이-backend_timeout-또는-overloaded로-실패함", "cell-triggers-not-applied": "부팅-시-cell-triggers-not-applied가-로그에-남는다", "cell_marker": "cell_marker-준비-상태-검사가-테넌시-마커를-언급한다", "clickhouse": "서버와-clickhouse", "clickhouse-cloud": "clickhouse-cloud-레플리카-재시작-후-쓰기에-몇-초가-걸림", "clickhouse_1": "호스트-또는-clickhouse의-디스크가-가득-찬-경우", "function-loomtenancy_refuse_-does-not-exist": "부팅이-function-loomtenancy_refuse_-does-not-exist로-실패한다", "id": "존재하는-것을-아는-id가-없는-것으로-조회됨", "loom-up": "loom-up이-시간-초과되거나-컨테이너가-부팅-중-종료됨", "loom_cell": "loom_cell이-설정되지-않은-프로세스는-차단된다", "loom_cell-cli": "loom_cell이-설정된-cli가-조직-없이-쓰는-명령을-거부한다", "mcp": "클라이언트-플러그인-mcp", "too_many_parts": "쓰기가-too_many_parts로-실패하거나-병합이-실패함", "v1health-503": "모든-작업이-실패하고-v1health가-503을-반환함"}, - "/ko/operations/upgrades": {"_2": "마이그레이션-실행-방식", "_3": "업그레이드-절차", "_4": "롤백", "_5": "설치-프로그램으로-설치한-환경-다운그레이드", "_6": "업그레이드-후에도-유지되는-것", "_7": "관련-문서"}, - "/ko/reference": {"_2": "코드에서-생성됨", "_3": "직접-작성한-문서", "_4": "어느-페이지가-답하나요"}, - "/ko/reference/environment": {"_2": "서버", "_3": "코딩-에이전트-플러그인과-훅-스크립트", "_4": "운영자-스크립트", "_5": "관련-문서", "compose": "compose-파일", "uvicorn": "컨테이너-이미지와-uvicorn"}, - "/ko/reference/extractor-contract": {"_2": "서버-설정", "_3": "엔드포인트", "_4": "아티팩트"}, - "/ko/reference/sql-surface": {"_1": "버전-및-호환성", "_2": "뷰", "_3": "읽기-비용", "_4": "뷰가-절대-보여-주지-않는-것", "_5": "최신성", "_6": "접근", "_7": "쿼리"}, - "/ko/reference/workers": {"_2": "워커-실행-방식", "_3": "어느-프로세스가-워커를-실행하는가", "_4": "워커-켜기와-끄기", "_5": "워커가-한-일-확인하기", "_6": "표-읽는-방법", "_7": "워커-집합을-고정하는-테스트", "_8": "워커", "_9": "관련-문서"}, - "/ko/use-cases/agent-memory": {"_1": "제공하는-기능", "_2": "측정-결과", "_3": "읽기-선호도를-기억하는-리서치-어시스턴트", "_4": "시작하기"}, - "/ko/use-cases/autonomous-agents": {"_2": "제공-기능"}, - "/ko/use-cases/code-intelligence": {"_2": "제공-기능", "_3": "측정-결과", "_4": "필요한-정의를-읽는-코딩-에이전트", "_5": "시작하기"}, - "/ko/use-cases/code-intelligence-by-language": {"_1": "코드형-인프라", "_2": "시작하기", "_3": "관련-문서", "c-c": "c-및-c", "rust-java": "rust-및-java", "sql": "sql-및-마이그레이션", "typescript-javascript": "typescript-및-javascript"}, - "/ko/use-cases/coding-agent-cost": {"_2": "측정-내용", "_3": "플러그인이-비용을-줄이도록-설계된-방식"}, - "/ko/use-cases/document-search": {"_1": "제공-기능", "_2": "측정-결과", "_3": "시작하기"}, - "/ko/use-cases/memory-linked-to-code": {"_2": "제공-기능", "_3": "시작하기"}, - "/ko/use-cases/multi-agent": {"_2": "제공-기능", "_3": "두-에이전트가-리서치-노트를-공유하기", "_4": "시작하기"}, - "/ko/use-cases/runs-and-pr-history": {"_1": "제공-기능", "_2": "측정-결과", "_3": "시작하기"}, - "/ko/use-cases/self-hosted-clickhouse": {"_1": "제공-기능", "_2": "측정-결과", "_3": "시작하기"}, - "/pt-BR": {"5-namespaces-acesso-e-o-modelo-de-memoria": "5-namespaces-acesso-e-o-modelo-de-memória", "6-indice-de-codigo": "6-índice-de-código", "veja-tambem": "veja-também"}, - "/pt-BR/architecture/agent-framework-adapter": {"pontos-de-entrada-no-codigo-fonte": "pontos-de-entrada-no-código-fonte", "protecao-da-conversa": "proteção-da-conversa"}, - "/pt-BR/architecture/agno-adapter": {"pontos-de-entrada-no-codigo-fonte": "pontos-de-entrada-no-código-fonte"}, - "/pt-BR/architecture/cells": {"a-linha-propria-da-celula": "a-linha-própria-da-célula", "a-verificacao-de-tenancy-e-o-posicionamento": "a-verificação-de-tenancy-e-o-posicionamento", "anexando-uma-celula": "anexando-uma-célula", "atualizacoes-graduais": "atualizações-graduais", "operacoes": "operações", "pontos-de-entrada-do-codigo-fonte": "pontos-de-entrada-do-código-fonte", "por-que-implantacoes-inteiras": "por-que-implantações-inteiras", "preparando-uma-celula": "preparando-uma-célula", "scim-e-login-entre-celulas": "scim-e-login-entre-células"}, - "/pt-BR/architecture/claude-memory-adapter": {"pontos-de-entrada-no-codigo-fonte": "pontos-de-entrada-no-código-fonte"}, - "/pt-BR/architecture/code-index-architecture": {"camada-rapida-code_ingest": "camada-rápida-code_ingest", "historico-de-prs-backports-e-links-de-trackers": "histórico-de-prs-backports-e-links-de-trackers", "marcas-dagua-e-cobertura": "marcas-dágua-e-cobertura", "mirrors-git-em-cada-replica": "mirrors-git-em-cada-réplica", "objetivos-e-nao-objetivos": "objetivos-e-não-objetivos", "padroes-de-consulta": "padrões-de-consulta", "pontos-de-entrada-no-codigo-fonte": "pontos-de-entrada-no-código-fonte", "reconciliacao": "reconciliação", "simbolos-e-arestas": "símbolos-e-arestas"}, - "/pt-BR/architecture/cost-budgets": {"ativacao-e-rollback": "ativação-e-rollback", "pontos-de-entrada-no-codigo-fonte": "pontos-de-entrada-no-código-fonte"}, - "/pt-BR/architecture/definition-drafts": {"evidencias-e-acesso": "evidências-e-acesso", "exclusao-auditoria-e-atualizacoes": "exclusão-auditoria-e-atualizações", "pontos-de-entrada-no-codigo-fonte": "pontos-de-entrada-no-código-fonte", "revisao-e-publicacao": "revisão-e-publicação"}, - "/pt-BR/architecture/dify-adapter": {"pontos-de-entrada-do-codigo-fonte": "pontos-de-entrada-do-código-fonte"}, - "/pt-BR/architecture/documentation-translation": {"planejamento-das-solicitacoes": "planejamento-das-solicitações", "pontos-de-entrada-no-codigo-fonte": "pontos-de-entrada-no-código-fonte", "reconciliacao-de-unidades-originais": "reconciliação-de-unidades-originais", "validacao-da-pagina-montada": "validação-da-página-montada"}, - "/pt-BR/architecture/failure-and-recovery": {"classes-de-trafego": "classes-de-tráfego", "contrapressao": "contrapressão", "erros-novas-tentativas-e-idempotencia": "erros-novas-tentativas-e-idempotência", "limites-de-consistencia": "limites-de-consistência", "medicao": "medição", "movimentacao-de-conhecimento": "movimentação-de-conhecimento", "pontos-de-entrada-no-codigo-fonte": "pontos-de-entrada-no-código-fonte", "quando-uma-dependencia-esta-fora-do-ar": "quando-uma-dependência-está-fora-do-ar", "restauracao-de-conhecimento": "restauração-de-conhecimento", "supervisao-de-workers": "supervisão-de-workers", "uma-replica-que-morre-durante-uma-migracao-ou-uma-reconfiguracao": "uma-réplica-que-morre-durante-uma-migração-ou-uma-reconfiguração"}, - "/pt-BR/architecture/github-feed": {"pontos-de-entrada-no-codigo-fonte": "pontos-de-entrada-no-código-fonte", "validacao-e-rollout": "validação-e-rollout"}, - "/pt-BR/architecture/google-adk-adapter": {"pontos-de-entrada-no-codigo-fonte": "pontos-de-entrada-no-código-fonte"}, - "/pt-BR/architecture/haystack-adapter": {"pontos-de-entrada-no-codigo-fonte": "pontos-de-entrada-no-código-fonte"}, - "/pt-BR/architecture/n8n-adapter": {"pontos-de-entrada-no-codigo-fonte": "pontos-de-entrada-no-código-fonte"}, - "/pt-BR/architecture/openai-agents-sessions": {"pontos-de-entrada-no-codigo-fonte": "pontos-de-entrada-no-código-fonte"}, - "/pt-BR/architecture/provider-reconfiguration": {"ativacao-e-admissao": "ativação-e-admissão", "limite-da-implementacao-atual": "limite-da-implementação-atual", "primitivas-de-publicacao": "primitivas-de-publicação", "recuperacao-e-exclusao": "recuperação-e-exclusão", "staging-da-reconstrucao": "staging-da-reconstrução", "verificacao-do-docker": "verificação-do-docker"}, - "/pt-BR/architecture/server-layout": {"adicionando-um-modulo": "adicionando-um-módulo", "modulos-do-extrator": "módulos-do-extrator"}, - "/pt-BR/architecture/source-push": {"cobertura-e-renovacao-do-drive": "cobertura-e-renovação-do-drive", "pontos-de-entrada-no-codigo": "pontos-de-entrada-no-código", "registro-e-autenticacao": "registro-e-autenticação"}, - "/pt-BR/architecture/storage-authority": {"admissao-sob-concorrencia": "admissão-sob-concorrência", "celulas": "células", "criterios-de-liberacao": "critérios-de-liberação", "idempotencia": "idempotência", "jobs-de-ingestao": "jobs-de-ingestão", "metadados-de-revisao": "metadados-de-revisão", "migracoes": "migrações", "perfis-de-implantacao": "perfis-de-implantação", "publicacao": "publicação", "redacao": "redação", "somente-revisoes-duraveis-sao-publicadas": "somente-revisões-duráveis-são-publicadas"}, - "/pt-BR/benchmarks/adding-a-case": {"licoes-do-agente-de-codigo-benchfixturescoding_agent_qajson": "lições-do-agente-de-código-benchfixturescoding_agent_qajson", "qa-de-memoria-benchdatasetssynthetic_memory_qajson": "qa-de-memória-benchdatasetssynthetic_memory_qajson", "qa-do-plano-de-codigo-benchfixturescode_intel_qajsonl": "qa-do-plano-de-código-benchfixturescode_intel_qajsonl", "regressoes-de-extracao-e-de-grafo": "regressões-de-extração-e-de-grafo", "tarefas-de-avaliacao-de-skill": "tarefas-de-avaliação-de-skill"}, - "/pt-BR/benchmarks/coverage": {"backlog-de-publicacao": "backlog-de-publicação", "situacao": "situação"}, - "/pt-BR/benchmarks/overview": {"como-um-bench-difere-de-um-chamador-em-producao": "como-um-bench-difere-de-um-chamador-em-produção", "o-que-a-suite-mede": "o-que-a-suíte-mede", "o-que-uma-aprovacao-nao-prova": "o-que-uma-aprovação-não-prova"}, - "/pt-BR/benchmarks/skill-eval": {"a-pontuacao": "a-pontuação", "a-suite-de-avaliacao-do-plugin": "a-suíte-de-avaliação-do-plugin", "as-pecas": "as-peças", "o-que-isto-nao-mede": "o-que-isto-não-mede", "replay-nenhum-modelo-e-chamado": "replay-nenhum-modelo-é-chamado", "saida": "saída"}, - "/pt-BR/concepts/identities-and-namespaces": {"colecoes": "coleções", "definicoes-governadas-na-busca": "definições-governadas-na-busca", "lendo-varios-namespaces": "lendo-vários-namespaces", "papeis": "papéis", "quem-pode-chamar-o-que": "quem-pode-chamar-o-quê", "visibilidade-entrada-e-restricao": "visibilidade-entrada-e-restrição"}, - "/pt-BR/concepts/memory": {"como-uma-escrita-e-julgada": "como-uma-escrita-é-julgada", "memorias-vinculadas-ao-codigo": "memórias-vinculadas-ao-código", "o-ciclo-de-escrita-derivacao-e-leitura": "o-ciclo-de-escrita-derivação-e-leitura", "o-ciclo-de-vida-de-uma-memoria": "o-ciclo-de-vida-de-uma-memória", "proveniencia": "proveniência", "retencao": "retenção", "situacao": "situação", "tipos-de-memoria": "tipos-de-memória", "versoes-e-historico": "versões-e-histórico"}, - "/pt-BR/concepts/retrieval-and-ranking": {"a-expressao-de-ranqueamento": "a-expressão-de-ranqueamento", "abstencao": "abstenção", "as-camadas-de-recuperacao": "as-camadas-de-recuperação", "fusao": "fusão", "por-que-isto-ficou-nesta-posicao": "por-que-isto-ficou-nesta-posição"}, - "/pt-BR/development/adding-a-table": {"lista-de-verificacao": "lista-de-verificação"}, - "/pt-BR/development/adding-a-worker": {"3-adicione-as-configuracoes": "3-adicione-as-configurações", "7-verifique-se-esta-funcionando": "7-verifique-se-está-funcionando"}, - "/pt-BR/development/adding-an-operation": {"1-defina-os-modelos-de-entrada-e-saida": "1-defina-os-modelos-de-entrada-e-saída", "3-declarar-a-operacao": "3-declarar-a-operação", "ops-enderecadas-por-um-id-de-toda-a-organizacao": "ops-endereçadas-por-um-id-de-toda-a-organização"}, - "/pt-BR/development/adding-language-support": {"a-regra-unica-fique-fora-do-extractor-stamp": "a-regra-única-fique-fora-do-extractor-stamp"}, - "/pt-BR/development/code-generation": {"metodos-da-biblioteca-python": "métodos-da-biblioteca-python", "sincronizacao-dos-plugins-de-agente": "sincronização-dos-plugins-de-agente", "snapshots-que-sao-testes-nao-geradores": "snapshots-que-são-testes-não-geradores"}, - "/pt-BR/development/dashboard-design": {"acompanhar-uma-versao-do-click-ui": "acompanhar-uma-versão-do-click-ui", "antes-de-uma-alteracao-ir-para-revisao": "antes-de-uma-alteração-ir-para-revisão", "click-ui-e-a-biblioteca-de-componentes": "click-ui-é-a-biblioteca-de-componentes", "listas-carregamento-e-navegacao": "listas-carregamento-e-navegação", "regras-em-relacao-as-quais-uma-mudanca-e-verificada": "regras-em-relação-às-quais-uma-mudança-é-verificada", "verificacoes": "verificações"}, - "/pt-BR/development/extending-loom": {"adicionar-uma-configuracao": "adicionar-uma-configuração", "adicionar-uma-integracao": "adicionar-uma-integração", "escolha-o-ponto-de-extensao": "escolha-o-ponto-de-extensão", "o-que-toda-extensao-compartilha": "o-que-toda-extensão-compartilha"}, - "/pt-BR/development/migrations": {"dump-e-verificacao-do-schema": "dump-e-verificação-do-schema", "lista-de-verificacao": "lista-de-verificação", "migracoes-do-postgres": "migrações-do-postgres", "numeracao": "numeração", "regras-para-escrever-uma-migracao": "regras-para-escrever-uma-migração"}, - "/pt-BR/development/release-process": {"apos-o-release": "após-o-release", "notas-de-versao": "notas-de-versão", "onde-a-versao-fica": "onde-a-versão-fica"}, - "/pt-BR/development/repository-guide": {"convencoes-que-nao-sao-obvias": "convenções-que-não-são-óbvias", "estrutura-de-nivel-superior": "estrutura-de-nível-superior", "ordem-de-leitura-para-quem-esta-comecando-a-contribuir": "ordem-de-leitura-para-quem-está-começando-a-contribuir"}, - "/pt-BR/development/testing": {"as-suites": "as-suítes", "como-os-testes-sao-ignorados": "como-os-testes-são-ignorados", "o-corpus-de-instrucoes-do-analisador": "o-corpus-de-instruções-do-analisador", "testes-de-integracao": "testes-de-integração", "testes-unitarios": "testes-unitários"}, - "/pt-BR/faq": {"algo-esta-errado-por-onde-comeco": "algo-está-errado-por-onde-começo", "como-descubro-por-que-um-resultado-ficou-na-posicao-em-que-ficou": "como-descubro-por-que-um-resultado-ficou-na-posição-em-que-ficou", "como-dou-acesso-a-alguem": "como-dou-acesso-a-alguém", "como-dou-memoria-de-longo-prazo-ao-claude-code-ao-codex-ou-ao-cursor": "como-dou-memória-de-longo-prazo-ao-claude-code-ao-codex-ou-ao-cursor", "como-faco-o-loom-esquecer-algo": "como-faço-o-loom-esquecer-algo", "dois-agentes-podem-ver-as-memorias-um-do-outro": "dois-agentes-podem-ver-as-memórias-um-do-outro", "em-que-o-loom-e-diferente-de-colocar-um-banco-de-dados-vetorial-ao-lado-do-meu-aplicativo": "em-que-o-loom-é-diferente-de-colocar-um-banco-de-dados-vetorial-ao-lado-do-meu-aplicativo", "o-loom-pode-responder-perguntas-sobre-o-meu-codigo": "o-loom-pode-responder-perguntas-sobre-o-meu-código", "por-que-meu-agente-de-codigo-nao-usa-o-indice-de-codigo": "por-que-meu-agente-de-código-não-usa-o-índice-de-código", "por-que-os-resultados-da-minha-busca-nao-fazem-sentido": "por-que-os-resultados-da-minha-busca-não-fazem-sentido", "por-que-uma-operacao-esta-faltando-na-minha-lista-de-ferramentas-do-mcp": "por-que-uma-operação-está-faltando-na-minha-lista-de-ferramentas-do-mcp", "posso-usar-o-loom-so-para-mim": "posso-usar-o-loom-só-para-mim", "qual-e-a-maneira-mais-rapida-de-experimentar-o-loom": "qual-é-a-maneira-mais-rápida-de-experimentar-o-loom", "qual-e-a-qualidade-da-recuperacao-e-como-voces-sabem": "qual-é-a-qualidade-da-recuperação-e-como-vocês-sabem", "quando-devo-usar-documentos-de-conhecimento-em-vez-de-memorias": "quando-devo-usar-documentos-de-conhecimento-em-vez-de-memórias"}, - "/pt-BR/features/code-index/freshness": {"a-idade-do-proprio-espelho": "a-idade-do-próprio-espelho", "configuracoes": "configurações", "enviando-atualizacoes-a-partir-do-ci": "enviando-atualizações-a-partir-do-ci", "um-commit-esta-em-todas-as-camadas": "um-commit-está-em-todas-as-camadas"}, - "/pt-BR/features/code-index/history-and-prs": {"historico-de-um-simbolo-de-um-caminho-ou-de-um-intervalo-de-linhas": "histórico-de-um-símbolo-de-um-caminho-ou-de-um-intervalo-de-linhas", "review-briefs-e-convencoes": "review-briefs-e-convenções", "verificacao-de-duplicatas-antes-do-pr-codepr_check": "verificação-de-duplicatas-antes-do-pr-codepr_check"}, - "/pt-BR/features/code-index/operations": {"chamando-uma-op-de-codigo": "chamando-uma-op-de-código", "estrutura-e-mudanca": "estrutura-e-mudança", "historico-prs-e-releases": "histórico-prs-e-releases", "status-e-administracao": "status-e-administração"}, - "/pt-BR/features/code-index/repositories": {"perfis-de-repositorio-e-preflight-do-compilador": "perfis-de-repositório-e-preflight-do-compilador", "repositorios-configurados-pelo-operador": "repositórios-configurados-pelo-operador", "repositorios-self-service": "repositórios-self-service"}, - "/pt-BR/features/conversations-and-sessions": {"a-gravacao-e-escolha-do-proprietario": "a-gravação-é-escolha-do-proprietário", "briefs-de-sessao": "briefs-de-sessão", "capturando-sessoes-a-partir-de-clientes": "capturando-sessões-a-partir-de-clientes", "compactacao-e-exclusao": "compactação-e-exclusão", "configuracoes": "configurações", "titulos-de-thread": "títulos-de-thread"}, - "/pt-BR/features/entity-graph": {"como-o-grafo-e-construido": "como-o-grafo-é-construído", "configuracoes": "configurações", "manutencao-do-grafo": "manutenção-do-grafo", "operacoes": "operações"}, - "/pt-BR/features/integrations/agent-instructions": {"onde-cada-cliente-le-o-bloco": "onde-cada-cliente-lê-o-bloco"}, - "/pt-BR/features/integrations/agent-substrate": {"como-as-pecas-se-encaixam": "como-as-peças-se-encaixam", "varios-agentes": "vários-agentes"}, - "/pt-BR/features/integrations/clickstack": {"configuracoes": "configurações", "escolha-o-caminho-de-exportacao": "escolha-o-caminho-de-exportação", "paineis-e-alertas": "painéis-e-alertas"}, - "/pt-BR/features/integrations/grep-shim": {"chaves-de-configuracao": "chaves-de-configuração", "instalacao": "instalação", "o-bloco-do-grafo-de-dependencias": "o-bloco-do-grafo-de-dependências"}, - "/pt-BR/features/integrations/okf": {"exportacao": "exportação", "importacao": "importação", "verificacao-lint": "verificação-lint"}, - "/pt-BR/features/integrations/vscode": {"instrucoes-para-o-agente": "instruções-para-o-agente", "servidor-local-de-usuario-unico": "servidor-local-de-usuário-único", "veja-tambem": "veja-também"}, - "/pt-BR/features/memory/history-and-provenance": {"apagando-o-historico-memoryredact": "apagando-o-histórico-memoryredact", "atestacao-memoryverify": "atestação-memoryverify", "evidencia-de-quais-turnos-um-fato-veio": "evidência-de-quais-turnos-um-fato-veio", "operacoes": "operações", "versoes-memoryhistory": "versões-memoryhistory"}, - "/pt-BR/features/memory/procedures-and-learnings": {"aprendendo-com-as-execucoes": "aprendendo-com-as-execuções", "configuracoes": "configurações", "correspondencia": "correspondência", "fila-de-revisao-de-learnings": "fila-de-revisão-de-learnings", "operacoes": "operações", "orientacao-localizada": "orientação-localizada", "reflexoes": "reflexões", "revisoes-passam-por-um-portao": "revisões-passam-por-um-portão"}, - "/pt-BR/features/memory/working-memory-and-profiles": {"configuracoes": "configurações", "memoria-de-trabalho": "memória-de-trabalho"}, - "/pt-BR/features/observability/audit": {"configuracoes": "configurações"}, - "/pt-BR/features/runs": {"configuracoes": "configurações", "execucoes-avaliadas": "execuções-avaliadas", "o-que-acontece-com-as-linhas-que-uma-execucao-escreveu": "o-que-acontece-com-as-linhas-que-uma-execução-escreveu", "operacoes": "operações", "orcamentos": "orçamentos", "recuperado-nao-e-o-mesmo-que-utilizado": "recuperado-não-é-o-mesmo-que-utilizado", "reflexoes": "reflexões"}, - "/pt-BR/features/tracker/github-feed": {"configurar-e-agendar-um-repositorio": "configurar-e-agendar-um-repositório", "visibilidade-e-exclusao": "visibilidade-e-exclusão"}, - "/pt-BR/features/tracker/overview": {"as-operacoes": "as-operações", "bissecao": "bisseção", "configuracoes-que-alteram-o-comportamento": "configurações-que-alteram-o-comportamento", "historico-de-testes-de-ci": "histórico-de-testes-de-ci", "verificacao-de-duplicatas": "verificação-de-duplicatas", "vinculando-um-tracker-a-um-repositorio": "vinculando-um-tracker-a-um-repositório", "vinculos-com-prs-de-correcao": "vínculos-com-prs-de-correção"}, - "/pt-BR/getting-started/agent-setup": {"3-execute-a-verificacao": "3-execute-a-verificação", "4-verifique-a-conexao-do-agente": "4-verifique-a-conexão-do-agente", "fixacoes": "fixações", "relatorio": "relatório"}, - "/pt-BR/getting-started/evaluate": {"1-teste-de-fumaca-do-produto": "1-teste-de-fumaça-do-produto", "escolha-uma-avaliacao": "escolha-uma-avaliação", "inteligencia-de-codigo": "inteligência-de-código", "mantenha-a-comparacao-justa": "mantenha-a-comparação-justa", "memoria-e-rag": "memória-e-rag", "proximos-passos": "próximos-passos"}, - "/pt-BR/getting-started/models-and-keys": {"aplicar-as-alteracoes-e-verificar-o-resultado": "aplicar-as-alterações-e-verificar-o-resultado", "definir-a-configuracao-do-servidor": "definir-a-configuração-do-servidor", "escolha-uma-configuracao": "escolha-uma-configuração", "openai-para-as-duas-funcoes": "openai-para-as-duas-funções", "por-meio-de-um-gateway-de-inferencia": "por-meio-de-um-gateway-de-inferência", "um-servidor-de-modelos-na-sua-maquina-sem-chave-de-api": "um-servidor-de-modelos-na-sua-máquina-sem-chave-de-api"}, - "/pt-BR/getting-started/overview": {"checklist-de-decisao": "checklist-de-decisão", "pre-requisitos": "pré-requisitos", "proximos-passos": "próximos-passos", "quando-nao-se-encaixa": "quando-não-se-encaixa", "quando-o-loom-e-indicado": "quando-o-loom-é-indicado"}, - "/pt-BR/getting-started/quickstart": {"4-primeira-memoria-via-http": "4-primeira-memória-via-http", "5-primeira-memoria-com-python": "5-primeira-memória-com-python", "6-primeira-memoria-a-partir-de-um-agente-de-codigo": "6-primeira-memória-a-partir-de-um-agente-de-código", "caminho-rapido-imagem-publicada-sem-clonar": "caminho-rápido-imagem-publicada-sem-clonar", "inicie-no-modo-multiusuario": "inicie-no-modo-multiusuário", "o-que-o-env-padrao-inicia": "o-que-o-env-padrão-inicia", "opcional-faca-uma-pergunta-sobre-um-documento": "opcional-faça-uma-pergunta-sobre-um-documento", "opcional-indexar-um-repositorio-na-stack-lancada": "opcional-indexar-um-repositório-na-stack-lançada", "pre-requisitos": "pré-requisitos", "proximos-passos": "próximos-passos"}, - "/pt-BR/getting-started/whats-included": {"acesso-governanca-e-operacoes": "acesso-governança-e-operações", "documentos-codigo-e-registros-de-trabalho": "documentos-código-e-registros-de-trabalho", "memoria": "memória"}, - "/pt-BR/guides/debugging": {"1-capture-os-ids-da-requisicao": "1-capture-os-ids-da-requisição", "2-correlacione-a-requisicao-entre-sistemas": "2-correlacione-a-requisição-entre-sistemas"}, - "/pt-BR/guides/extraction-pipeline": {"o-pipeline-padrao": "o-pipeline-padrão"}, - "/pt-BR/guides/importing-clickgap-memory": {"1-execucao-de-teste": "1-execução-de-teste", "2-importacao": "2-importação", "3-validar-antes-da-migracao-final": "3-validar-antes-da-migração-final", "consolidar-opcional-apos-a-validacao": "consolidar-opcional-após-a-validação", "usar-memorias-de-supressao": "usar-memórias-de-supressão"}, - "/pt-BR/guides/optimize-namespace": {"3-obter-aprovacao": "3-obter-aprovação", "6-nao-aposente-nada": "6-não-aposente-nada", "as-duas-operacoes": "as-duas-operações"}, - "/pt-BR/guides/performance-tuning": {"conexoes-e-prazos-do-clickhouse": "conexões-e-prazos-do-clickhouse", "meca-primeiro": "meça-primeiro"}, - "/pt-BR/guides/query-from-postgres": {"1-criar-um-usuario-sql-para-o-tenant": "1-criar-um-usuário-sql-para-o-tenant", "2-instalar-a-extensao": "2-instalar-a-extensão", "3-apontar-para-o-servico-clickhouse": "3-apontar-para-o-serviço-clickhouse", "copias-e-exclusao": "cópias-e-exclusão", "revogacao": "revogação"}, - "/pt-BR/guides/teaching": {"configuracao": "configuração", "distribua-os-laboratorios-como-uma-tarefa": "distribua-os-laboratórios-como-uma-tarefa", "lab-2-busca-em-documentos-com-citacoes": "lab-2-busca-em-documentos-com-citações", "lab-3-um-indice-de-codigo": "lab-3-um-índice-de-código", "lab-4-memoria-como-banco-de-dados": "lab-4-memória-como-banco-de-dados", "laboratorio-1-um-agente-que-lembra": "laboratório-1-um-agente-que-lembra", "quais-laboratorios-se-encaixam-em-cada-curso": "quais-laboratórios-se-encaixam-em-cada-curso"}, - "/pt-BR/guides/without-the-dashboard": {"visao-do-painel-comando-e-chamada-do-sdk": "visão-do-painel--comando-e-chamada-do-sdk"}, - "/pt-BR/operations/monitoring": {"limites-de-taxa-e-classes-de-trafego": "limites-de-taxa-e-classes-de-tráfego", "logs-traces-e-atribuicao-de-consultas": "logs-traces-e-atribuição-de-consultas", "metricas": "métricas", "operacao-opshealth": "operação-opshealth", "paineis": "painéis", "teste-de-fumaca": "teste-de-fumaça", "verificacoes-de-saude": "verificações-de-saúde"}, - "/pt-BR/operations/replicas": {"divergencia-de-configuracao": "divergência-de-configuração", "parando-uma-replica": "parando-uma-réplica", "repositorios-de-codigo": "repositórios-de-código"}, - "/pt-BR/operations/runtime-settings": {"sobrescreva-uma-configuracao-live": "sobrescreva-uma-configuração-live", "veja-e-desfaca-alteracoes-passadas": "veja-e-desfaça-alterações-passadas", "veja-o-que-esta-em-vigor": "veja-o-que-está-em-vigor"}, - "/pt-BR/operations/sso": {"acesso-de-emergencia": "acesso-de-emergência", "alteracao-do-e-mail-de-uma-pessoa": "alteração-do-e-mail-de-uma-pessoa", "atras-de-um-proxy": "atrás-de-um-proxy", "configuracao-do-okta": "configuração-do-okta", "sessoes-e-logout": "sessões-e-logout"}, - "/pt-BR/operations/supported-versions": {"plugins-de-agentes-de-codigo": "plugins-de-agentes-de-código", "remocao-de-algo": "remoção-de-algo"}, - "/pt-BR/reference": {"escritas-a-mao": "escritas-à-mão", "gerado-a-partir-do-codigo": "gerado-a-partir-do-código", "qual-pagina-responde": "qual-página-responde"}, - "/pt-BR/reference/environment": {"imagem-de-conteiner-e-uvicorn": "imagem-de-contêiner-e-uvicorn", "plugins-de-agentes-de-codigo-e-scripts-de-hook": "plugins-de-agentes-de-código-e-scripts-de-hook"}, - "/pt-BR/reference/sql-surface": {"versao-e-compatibilidade": "versão-e-compatibilidade", "visoes": "visões"}, - "/pt-BR/use-cases/agent-memory": {"medicoes": "medições", "o-que-voce-recebe": "o-que-você-recebe", "um-assistente-de-pesquisa-que-lembra-suas-preferencias-de-leitura": "um-assistente-de-pesquisa-que-lembra-suas-preferências-de-leitura"}, - "/pt-BR/use-cases/autonomous-agents": {"o-que-voce-recebe": "o-que-você-recebe"}, - "/pt-BR/use-cases/code-intelligence": {"comecar": "começar", "medicoes": "medições", "o-que-voce-recebe": "o-que-você-recebe", "um-agente-de-programacao-que-le-a-definicao-de-que-precisa": "um-agente-de-programação-que-lê-a-definição-de-que-precisa"}, - "/pt-BR/use-cases/code-intelligence-by-language": {"infraestrutura-como-codigo": "infraestrutura-como-código", "sql-e-migracoes": "sql-e-migrações"}, - "/pt-BR/use-cases/document-search": {"medicoes": "medições", "o-que-voce-recebe": "o-que-você-recebe"}, - "/pt-BR/use-cases/memory-linked-to-code": {"o-que-voce-obtem": "o-que-você-obtém"}, - "/pt-BR/use-cases/multi-agent": {"o-que-voce-recebe": "o-que-você-recebe"}, - "/pt-BR/use-cases/runs-and-pr-history": {"medicoes": "medições", "o-que-voce-recebe": "o-que-você-recebe"}, - "/pt-BR/use-cases/self-hosted-clickhouse": {"inicio": "início", "medicoes": "medições", "o-que-voce-recebe": "o-que-você-recebe"}, - "/reference/configuration": {"code_1": "code-1", "memory_1": "memory-1", "observability_1": "observability-1", "timeouts-budgets-and-caches_1": "timeouts-budgets-and-caches-1", "timeouts-budgets-and-caches_10": "timeouts-budgets-and-caches-10", "timeouts-budgets-and-caches_2": "timeouts-budgets-and-caches-2", "timeouts-budgets-and-caches_3": "timeouts-budgets-and-caches-3", "timeouts-budgets-and-caches_4": "timeouts-budgets-and-caches-4", "timeouts-budgets-and-caches_5": "timeouts-budgets-and-caches-5", "timeouts-budgets-and-caches_6": "timeouts-budgets-and-caches-6", "timeouts-budgets-and-caches_7": "timeouts-budgets-and-caches-7", "timeouts-budgets-and-caches_8": "timeouts-budgets-and-caches-8", "timeouts-budgets-and-caches_9": "timeouts-budgets-and-caches-9", "tracker_1": "tracker-1"}, - "/zh-CN": {"1": "1-快速入门", "2": "2-安装并运行服务器", "3-agent": "3-连接-agent", "4-sdk-api": "4-sdk-与-api", "5": "5-命名空间访问与记忆模型", "6": "6-代码索引", "_1": "从这里开始", "_2": "使用场景", "_3": "指南", "_4": "功能", "_5": "架构", "_6": "基准测试", "_7": "开发", "_8": "另请参阅"}, - "/zh-CN/architecture/agent-framework-adapter": {"_1": "不变量", "_2": "对话保护", "_3": "源码入口"}, - "/zh-CN/architecture/agno-adapter": {"_1": "不变量", "_2": "源码入口"}, - "/zh-CN/architecture/claude-memory-adapter": {"_1": "源码入口", "_2": "不变量"}, - "/zh-CN/architecture/cost-budgets": {"_2": "启用与回滚", "_3": "源码入口", "_4": "不变量"}, - "/zh-CN/architecture/definition-drafts": {"_2": "证据与访问", "_3": "一次模型尝试", "_4": "审核与发布", "_5": "删除审计与升级", "_6": "源码入口", "_7": "不变量"}, - "/zh-CN/architecture/dify-adapter": {"_1": "不变量", "_2": "源码入口"}, - "/zh-CN/architecture/document-extraction": {"_10": "服务级别", "_11": "数据集", "_12": "查询", "_13": "依赖", "_14": "不变量", "_15": "源码入口", "_2": "服务边界", "_3": "产物", "_4": "参考提取器支持的格式", "_5": "鉴定", "_6": "检索下限", "_7": "结构化分块", "_8": "摄取", "_9": "故障"}, - "/zh-CN/architecture/documentation-translation": {"_2": "请求规划", "_3": "原始单元对账", "_4": "组装后验证", "_5": "源拼写约定", "_6": "不变量", "_7": "源码入口"}, - "/zh-CN/architecture/github-feed": {"_1": "所有权与凭据", "_2": "记录与进度", "_3": "验证与上线", "_4": "源码入口", "_5": "不变式"}, - "/zh-CN/architecture/google-adk-adapter": {"_1": "源码入口", "_2": "不变量"}, - "/zh-CN/architecture/haystack-adapter": {"_1": "不变量", "_2": "源码入口"}, - "/zh-CN/architecture/llm-architecture": {"_1": "目标与非目标", "_10": "重试超时与回退", "_11": "响应缓存", "_12": "模型调用的客户", "_13": "身份请求头", "_14": "提示词", "_15": "成本核算", "_16": "更改默认值", "_17": "不变量", "_18": "源码入口", "_19": "相关内容", "_2": "嵌入器", "_3": "选择", "_4": "协议与路径", "_5": "提供方调用", "_6": "更换嵌入器", "_7": "自适应阈值", "_8": "选择-1", "_9": "协议", "llm": "llm-客户端", "llm_1": "llm-驱动与确定性的部分", "llm_2": "不使用-llm-的读取", "provider": "模拟-provider"}, - "/zh-CN/architecture/n8n-adapter": {"_1": "接口与存储", "_2": "打包", "_3": "不变量", "_4": "源码入口"}, - "/zh-CN/architecture/openai-agents-sessions": {"_1": "源码入口", "_2": "不变量"}, - "/zh-CN/architecture/provider-reconfiguration": {"_1": "激活与准入", "_2": "重建暂存", "_3": "发布原语", "_4": "恢复与擦除", "_5": "当前实现边界", "docker": "docker-验证"}, - "/zh-CN/architecture/server-layout": {"_2": "包", "_3": "层级", "_4": "导入约定", "_5": "添加模块", "_6": "相关内容", "extractor": "extractor-模块"}, - "/zh-CN/architecture/source-push": {"_2": "源码入口", "_3": "不变量", "_4": "注册与身份验证", "_5": "生命周期与存储", "_6": "替代方案", "_7": "提供方约定", "drive": "drive-覆盖范围与续期"}, - "/zh-CN/architecture/storage-authority": {"_1": "为什么用两个存储", "_10": "搜索", "_11": "投递", "_12": "只发布持久的修订", "_13": "幂等性", "_14": "擦除", "_15": "脱敏", "_16": "知识文档", "_17": "知识搜索", "_18": "摄取作业", "_19": "数据集", "_2": "表", "_20": "故障", "_21": "已记录的权威", "_22": "迁移", "_23": "部署配置", "_24": "发布关口", "_3": "修订元数据", "_4": "被否决的布局", "_5": "每个租户一个数据库", "_6": "写入路径", "_7": "发布", "_8": "审计", "_9": "并发下的准入", "cells": "单元cells", "payload": "payload-清除", "postgres": "postgres-分支"}, - "/zh-CN/benchmarks/adding-a-case": {"_2": "向现有集合添加用例", "_3": "提取与图回归", "_4": "接入新数据集", "_5": "相关内容", "agent-benchfixturescoding_agent_qajson": "编码-agent-经验教训benchfixturescoding_agent_qajson", "harness": "编写新的-harness", "op-benchfixturesop_planning_tasksjsonl": "op-规划任务benchfixturesop_planning_tasksjsonl", "qabenchdatasetssynthetic_memory_qajson": "记忆-qabenchdatasetssynthetic_memory_qajson", "qabenchfixturescode_intel_qajsonl": "代码平面-qabenchfixturescode_intel_qajsonl", "skill-eval": "skill-eval-任务"}, - "/zh-CN/benchmarks/coverage": {"_2": "状态", "_3": "全流程矩阵", "_4": "待发布事项", "_5": "相关内容", "readme": "readme-中应包含的内容"}, - "/zh-CN/benchmarks/methodology": {"_10": "判定结果", "_11": "区间有多宽", "_12": "数据集规模", "_13": "评判器校准", "_14": "两个数字何时可比", "_15": "可复现性控制", "_16": "偏差来源", "_17": "源码入口", "_18": "相关内容", "_2": "召回率与答案准确率是两个独立的指标", "_3": "任务类别", "_4": "基准真值", "_5": "评判模型", "_6": "指标", "_7": "基线", "_8": "统计", "_9": "重复运行与多数标签", "bench": "bench-命名空间", "bootstrap": "配对聚类-bootstrap", "http": "http-策略", "provider": "伪造-provider-会让分数失去意义"}, - "/zh-CN/benchmarks/overview": {"_2": "测试套件衡量什么", "_3": "入口", "_4": "覆盖范围与未涵盖的内容", "_5": "通过并不能证明什么", "_6": "相关内容", "bench": "bench-与生产调用方的区别"}, - "/zh-CN/benchmarks/skill-eval": {"_10": "添加任务", "_11": "本文不衡量的内容", "_12": "相关内容", "_2": "组成部分", "_3": "评分", "_4": "运行", "_5": "回放不调用模型", "_6": "与基线对比", "_7": "输出", "_8": "插件评测套件", "_9": "解读失败", "agent": "其他任意-agent", "skill-agent": "加载-skill-的实时-agent"}, - "/zh-CN/concepts/identities-and-namespaces": {"_10": "命名空间内的读取范围", "_11": "身份模式", "_12": "集合", "_13": "相关内容", "_2": "命名空间的定位", "_3": "身份元组", "_4": "服务器写入的内容", "_5": "组织与命名空间", "_6": "可见性加入与限制", "_7": "角色", "_8": "谁可以调用什么", "_9": "读取多个命名空间", "agent": "agent-写入的行与共享层", "definition": "搜索中的受管-definition"}, - "/zh-CN/concepts/memory": {"_10": "时间", "_11": "版本与历史", "_12": "来源追溯", "_13": "内容该放在哪里", "_14": "保留策略", "_15": "一个事实随时间的变化", "_16": "示例", "_17": "相关内容", "_2": "写入派生读取循环", "_3": "键", "_4": "记忆类型", "_5": "状态", "_6": "写入如何被判定", "_7": "记忆的生命周期", "_8": "标签实体与文件", "_9": "与代码关联的记忆", "clickhouse": "clickhouse-中的行", "loommemory": "loommemory-行"}, - "/zh-CN/concepts/retrieval-and-ranking": {"_2": "检索通道", "_3": "融合", "_4": "排序表达式", "_5": "弃答", "_6": "为什么这条结果排在这里", "_7": "限制", "_8": "相关内容"}, - "/zh-CN/development/adding-a-table": {"1-schema": "1-编写迁移并重新生成-schema", "2-replacingmergetree": "2-在-replacingmergetree-写入路径上镜像每一列", "3": "3-为擦除对表进行分类", "4-mutation": "4-对任何-mutation-进行分类", "_1": "检查清单", "_2": "相关内容"}, - "/zh-CN/development/adding-a-worker": {"1-pass": "1-编写-pass", "2": "2-标记其查询归属", "3": "3-添加相应设置", "4": "4-添加注册表行", "5": "5-了解它在哪里运行", "6": "6-在测试中固定行为", "7": "7-检查是否运行", "_1": "相关内容"}, - "/zh-CN/development/adding-an-operation": {"1": "1-定义输入和输出模型", "2-handler": "2-编写-handler", "3": "3-声明操作", "4-mcp": "4-决定-mcp-可见性", "5": "5-检查覆盖范围与成熟度", "6": "6-编写测试", "7": "7-重新生成并运行检查", "_2": "相关内容", "id-op": "通过组织范围-id-寻址的-op", "pr": "提交-pr-之前"}, - "/zh-CN/development/code-generation": {"_2": "生成器", "_3": "作为测试而非生成器的快照", "_4": "推送之前", "_5": "相关内容", "agent_plugin_sync": "插件同步agent_plugin_sync", "langfuse-push_langfuse_prompts": "推送-langfuse-提示词push_langfuse_prompts", "op_reach_census": "触达统计op_reach_census", "python-gen_py_library_methods": "python-标准库方法生成gen_py_library_methods", "schema": "schema-导出", "sdk_py_gen-sdk_ts_gen": "sdk_py_gen-和-sdk_ts_gen", "wire": "客户端服务器协议wire变更日志"}, - "/zh-CN/development/extending-loom": {"_1": "选择扩展点", "_2": "所有扩展的共同点", "_3": "添加设置", "_4": "添加集成", "_5": "相关内容", "provider": "添加-provider"}, - "/zh-CN/development/repository-guide": {"_2": "顶层布局", "_3": "新贡献者的阅读顺序", "_4": "不太明显的约定", "_5": "相关内容", "server": "server-内部", "tests": "tests-目录内部"}, - "/zh-CN/development/testing": {"_2": "测试套件", "_3": "单元测试", "_4": "集成测试", "_5": "框架适配器", "_6": "测试如何跳过", "_7": "分析器语句语料库", "_8": "相关内容", "ci": "ci-关卡", "ci_1": "ci-工作流"}, - "/zh-CN/faq": {"_10": "项目", "_11": "检索效果如何你们怎么知道", "_2": "使用", "_3": "为什么我的搜索结果毫无意义", "_4": "为什么我的写入被标记为冲突或被拒绝", "_5": "什么时候应该使用知识文档而不是记忆", "_6": "如何查明某条结果为什么排在当前位置", "_7": "运行", "_8": "如何为他人授予访问权限", "_9": "出了问题该从哪里开始", "agent": "两个-agent-能看到彼此的记忆吗", "agent_1": "为什么我的编码-agent-不使用代码索引", "anthropic-gemini": "我可以使用-anthropic-或-gemini-的模型吗", "claude-codecodex-cursor": "如何为-claude-codecodex-或-cursor-提供长期记忆", "clickhouse-cloud": "我需要-clickhouse-cloud-吗", "loom": "试用-loom-最快的方式是什么", "loom_1": "我可以只给自己使用-loom-吗", "loom_2": "如何让-loom-忘记某些内容", "loom_3": "loom-能回答关于我的代码的问题吗", "loom_4": "loom-与在应用旁边放一个向量数据库有什么不同", "mcp": "为什么我的-mcp-工具列表中缺少某个操作", "memorysearch-abstain": "为什么-memorysearch-返回-abstain-而不是返回一些结果"}, - "/zh-CN/features/code-index/freshness": {"_2": "镜像自身的时效", "_3": "某个提交是否已进入所有层级", "_4": "无需轮询即可等待覆盖", "_5": "设置", "_6": "限制", "_7": "相关内容", "as_of": "as_of-块", "ci": "从-ci-推送新鲜度"}, - "/zh-CN/features/code-index/operations": {"_2": "查找", "_3": "结构与变更", "_4": "状态与管理", "_5": "相关内容", "code-op": "调用-code-op", "pr": "历史pr-与发布"}, - "/zh-CN/features/code-index/overview": {"_1": "它能回答什么", "_2": "一个命名空间对应一个分支", "_3": "两个层级", "_4": "工作进程", "_5": "语言支持", "_6": "解读返回结果", "_7": "限制", "_8": "故障排查", "_9": "相关内容", "agent": "agent-如何使用"}, - "/zh-CN/features/code-index/repositories": {"_2": "自助仓库", "_3": "仓库配置档案与编译器预检", "_4": "运营方配置的仓库", "_5": "谁可以读取", "_6": "故障模式", "_7": "相关内容"}, - "/zh-CN/features/conversations-and-sessions": {"_10": "会话简报", "_11": "示例", "_12": "设置", "_13": "限制", "_14": "相关内容", "_2": "对话", "_3": "是否记录由所有者决定", "_4": "写入回合", "_5": "保存单条消息", "_6": "读取与搜索", "_7": "压缩与删除", "_8": "线程标题", "_9": "从客户端捕获会话"}, - "/zh-CN/features/entity-graph": {"_2": "图中保存的内容", "_3": "图的构建方式", "_4": "操作", "_5": "示例", "_6": "维护图谱", "_7": "设置", "_8": "限制", "_9": "相关内容"}, - "/zh-CN/features/integrations/agent-instructions": {"_1": "代码块", "_2": "各客户端读取的位置", "_3": "为什么是这些规则", "_4": "相关内容"}, - "/zh-CN/features/integrations/agent-substrate": {"1-loom": "1-在集群中安装-loom", "2-agent": "2-每个-agent-一个令牌", "3-agent-actor": "3-配置-agent-并创建其-actor", "4-actor-loom": "4-允许-actor-使用其令牌访问-loom", "_1": "各部分如何配合", "_2": "相关内容", "agent_1": "多个-agent"}, - "/zh-CN/features/integrations/claude-code": {"_1": "数据处理", "_10": "故障排查", "_11": "其他客户端", "_12": "相关内容", "_2": "要求", "_3": "安装", "_4": "配置", "_5": "召回的内容与本地数据", "_6": "调优参数", "_7": "代码分流", "_8": "技能", "_9": "检查是否正常工作", "hooks": "hooks-的作用", "mcp": "mcp-条目及其请求头辅助脚本"}, - "/zh-CN/features/integrations/clickstack": {"_1": "选择导出路径", "_2": "控制台与告警", "_3": "擦除", "_4": "设置", "_5": "相关内容", "hyperdx": "将-hyperdx-指向这些表"}, - "/zh-CN/features/integrations/cursor": {"_1": "插件", "_2": "对话记录捕获", "_3": "安装", "_4": "捕获范围", "_5": "行为", "_6": "限制", "_7": "相关内容", "hook": "hook-读取的内容", "mcp": "mcp-工具"}, - "/zh-CN/features/integrations/grep-shim": {"_1": "安装", "_2": "保证", "_3": "依赖图块", "_4": "开关", "_5": "限制", "_6": "相关内容", "codeenclosing": "服务端codeenclosing"}, - "/zh-CN/features/integrations/langfuse": {"_1": "设置", "_2": "追踪", "_3": "评分", "_4": "提示词版本", "_5": "关联请求", "_6": "相关内容", "erasure": "删除erasure", "loom": "哪些文本会离开-loom"}, - "/zh-CN/features/integrations/okf": {"_1": "导出", "_2": "代码检查", "_3": "导入", "_4": "在本地运行门禁", "_5": "限制", "_6": "相关内容", "ci": "ci-门禁"}, - "/zh-CN/features/integrations/vscode": {"_1": "本地单用户服务器", "_2": "其他服务器", "_3": "相关内容", "agent": "agent-指令"}, - "/zh-CN/features/memory/history-and-provenance": {"_2": "操作", "_3": "证据事实来自哪些对话轮次", "_4": "溯源", "_5": "审计日志", "_6": "限制", "_7": "相关内容", "actor-source-class": "谁写入的actor-和-source-class", "memoryhistory": "版本memoryhistory", "memoryredact": "清除历史memoryredact", "memoryverify": "证明memoryverify", "namespacerollback": "回滚命名空间namespacerollback", "namespacesnapshot-namespacerestore": "快照namespacesnapshot-和-namespacerestore"}, - "/zh-CN/features/memory/working-memory-and-profiles": {"_2": "工作记忆", "_3": "大小限制", "_4": "档案", "_5": "结构化画像", "_6": "设置", "_7": "限制", "_8": "相关内容", "contextpack": "contextpack-如何加载它们"}, - "/zh-CN/features/observability/audit": {"_10": "限制与故障模式", "_11": "相关内容", "_2": "哪些操作会留下审计行", "_3": "行结构", "_4": "每行哈希与检查点", "_5": "检查点滞后", "_6": "查看审计记录", "_7": "离线验证", "_8": "擦除与审计日志", "_9": "设置", "worker": "验证-worker"}, - "/zh-CN/features/runs": {"_1": "运行记录了什么", "_10": "限制", "_11": "相关内容", "_2": "预算", "_3": "召回不等于依赖", "_4": "反思", "_5": "运行写入的行会怎样", "_6": "评分的运行", "_7": "操作", "_8": "示例", "_9": "设置"}, - "/zh-CN/features/tasks-and-decisions": {"_10": "决策", "_11": "从文档中提取决策", "_12": "历史策略", "_13": "模式", "_14": "限制", "_15": "相关内容", "_2": "任务收件箱", "_3": "状态", "_4": "注册收件箱", "_5": "发布任务", "_6": "拉取处理完成", "_7": "跟踪结果", "_8": "操作", "_9": "设置"}, - "/zh-CN/features/tracker/github-feed": {"_1": "准备记录", "_2": "配置并调度仓库", "_3": "可见性与删除"}, - "/zh-CN/features/tracker/overview": {"_1": "可移植性与记录类型", "_2": "操作", "_3": "重复检查", "_4": "二分定位", "_5": "影响它的设置", "_6": "限制与故障模式", "_7": "相关内容", "ci": "ci-测试历史", "pr": "从缺陷草稿到候选-pr", "pr_1": "指向修复-pr-的关联", "tracker": "tracker-命名空间", "tracker_1": "将-tracker-链接到仓库", "tracker_2": "从控制台添加-tracker"}, - "/zh-CN/features/tracker/record-contract": {"_1": "配置", "_10": "检查数据源", "_11": "相关内容", "_2": "数据源条目选项", "_3": "公开与私有", "_4": "契约", "_5": "必需的表", "_6": "可选的表", "_7": "特性列", "_8": "别名", "_9": "映射模式", "tracker_1": "添加-tracker-来源"}, - "/zh-CN/getting-started/agent-setup": {"1": "1-安装发布版本", "2": "2-安装插件", "3": "3-运行检查", "4-agent": "4-检查-agent-的连接", "_1": "固定版本", "_2": "规则", "_3": "报告"}, - "/zh-CN/getting-started/evaluate": {"1": "1-产品冒烟测试", "2": "2-评估你的工作负载", "3": "3-审计或复现已发布的结果", "_1": "选择评估方式", "_2": "运行之前", "_3": "代码智能", "_4": "保持比较公平", "_5": "发布哪些内容", "_6": "下一步", "rag": "记忆与-rag"}, - "/zh-CN/getting-started/overview": {"_2": "功能介绍", "_3": "命名空间的定位", "_4": "不适用的场景", "_5": "每项特性的代价", "_6": "决策清单", "_7": "前提条件", "_8": "下一步", "loom": "loom-适用场景"}, - "/zh-CN/getting-started/quickstart": {"1": "1-启动堆栈", "2": "2-打开控制台", "3": "3-获取令牌", "4-http": "4-通过-http-写入第一条记忆", "5-python": "5-用-python-创建第一条记忆", "6-agent": "6-通过编码-agent-创建第一条记忆", "7": "7-在控制台中查看", "_10": "下一步", "_2": "前置条件", "_3": "快速路径使用发布的镜像无需克隆", "_4": "以多用户模式启动", "_5": "贡献者路径构建检出的代码", "_6": "检查堆栈", "_7": "可选在已发布的栈上为仓库建立索引", "_8": "可选针对文档提问", "_9": "常见问题", "env": "默认-env-启动的内容", "github-codespaces": "在-github-codespaces-中试用"}, - "/zh-CN/getting-started/whats-included": {"_2": "记忆", "_3": "文档代码与工作记录", "_4": "访问治理与运维", "_5": "连接方式"}, - "/zh-CN/guides/debugging": {"1-id": "1-获取请求的-id", "2": "2-跨系统关联请求", "3": "3-解释搜索结果", "4": "4-解释一次写入", "_2": "相关内容"}, - "/zh-CN/guides/extraction-pipeline": {"_2": "默认流水线", "_3": "运行更短的流水线", "_4": "步骤行为", "_5": "注册进程内步骤", "_6": "限制", "_7": "相关内容"}, - "/zh-CN/guides/headless-bots": {"1-bot": "1-为-bot-分配身份", "2": "2-首次运行前检查连接", "3": "3-连接运行时", "4-bot": "4-决定-bot-写入什么", "5-bot": "5-bot-没有动静时", "_2": "相关内容", "bot-sdk": "在-bot-自身进程中使用-sdk", "claude-agent-sdk-claude-p": "claude-agent-sdk-或-claude--p"}, - "/zh-CN/guides/importing-clickgap-memory": {"1": "1-试运行", "2": "2-导入", "3": "3-切换前验证", "_1": "导入器保留的内容", "_2": "召回信号", "_3": "使用抑制记忆", "_4": "回滚", "_5": "合并可选在验证之后", "_6": "相关内容"}, - "/zh-CN/guides/optimize-namespace": {"1": "1-审计", "2": "2-方案", "3": "3-获得批准", "4": "4-应用", "5": "5-度量", "6": "6-不要退役任何内容", "_2": "两个操作", "_3": "相关内容"}, - "/zh-CN/guides/performance-tuning": {"_1": "先测量", "_2": "排序与阈值", "_3": "向量读取", "_4": "服务提供方", "_5": "嵌入模型的选择", "_6": "客户端优化手段", "_7": "相关内容", "clickhouse": "clickhouse-连接与超时", "workers": "workers-与批处理"}, - "/zh-CN/guides/query-from-postgres": {"1-sql": "1-为租户创建-sql-用户", "2": "2-安装扩展", "3-clickhouse": "3-指向-clickhouse-服务", "4": "4-导入视图", "5": "5-查询与关联", "_1": "成本与规模", "_2": "副本与删除", "_3": "撤销"}, - "/zh-CN/guides/teaching": {"1-agent": "实验-1会记忆的-agent", "3": "实验-3代码索引", "_1": "环境准备", "_2": "将实验作为作业布置", "_3": "哪些实验适合哪门课程", "lab-2": "lab-2带引用的文档搜索", "lab-4": "lab-4作为数据库的记忆"}, - "/zh-CN/guides/without-the-dashboard": {"_1": "登录", "bot-ci": "bot-与-ci-作业", "loom-call-api": "loom-call完整的-api", "sdk": "控制台视图--命令与-sdk-调用"}, - "/zh-CN/operations/analytics-export": {"_2": "文件", "_3": "哈希名称", "_4": "凭据", "kubernetes": "在-kubernetes-上", "loom": "哪些内容绝不会离开-loom"}, - "/zh-CN/operations/clickhouse-cloud": {"_1": "服务", "_2": "安装", "_3": "连接", "_4": "安装之后", "_5": "恢复服务", "_6": "相关内容", "ca": "轮换密码和-ca", "secrets": "密钥secrets", "sql": "sql-接口用户"}, - "/zh-CN/operations/deployment": {"_10": "记忆行为", "_11": "可选的平面与集成", "_12": "仅记忆和文档", "_13": "身份模式", "_14": "容器镜像", "_15": "发布文件", "_16": "零停机双栈部署", "_17": "生产环境检查清单", "_18": "相关内容", "_2": "部署阶梯", "_3": "从克隆运行本地栈", "_4": "设置如何读取", "_5": "必需的环境变量", "_6": "身份与认证", "_7": "进程与扩展", "_8": "提供方", "_9": "按任务配置模型", "clickhouse": "选择-clickhouse", "clickhouse_1": "clickhouse-连接", "clickhouse_2": "clickhouse-要求", "clickhouse_3": "推荐的-clickhouse-设置", "gateway": "gateway上游身份提供方", "llm-worker": "开启由-llm-驱动的-worker", "loom-tls": "loom-端口上的-tls", "n": "n-个相同的副本", "single-user": "single-user笔记本电脑无认证", "tls": "代理与-tls", "trust-network": "trust-network自助注册", "url": "公开-url-与客户端", "web-worker": "web-与-worker-分离"}, - "/zh-CN/operations/maintenance": {"_10": "磁盘压力的日常维护", "_11": "相关内容", "_2": "执行写入之前", "_3": "重新嵌入与重新提取", "_4": "回填与修复", "_5": "记忆写入丢弃", "_6": "实体图维护", "_7": "擦除", "_8": "保留策略", "_9": "交换之后的检查发现的内容", "clickstack": "clickstack-擦除索引", "optimize": "压缩与-optimize"}, - "/zh-CN/operations/monitoring": {"_10": "速率限制与流量类别", "_11": "相关内容", "_2": "运行运维命令", "_3": "健康检查", "_4": "冒烟测试", "_5": "告警项", "_6": "完整性不变量", "_7": "指标", "_8": "控制台", "_9": "日志追踪与查询归因", "loom-doctor": "loom-doctor-命令", "opshealth": "opshealth-操作", "slo": "管道-slo", "v1health": "v1health-端点", "worker": "worker-状态"}, - "/zh-CN/operations/okf-sync": {"_1": "一次运行会写入什么", "_2": "防护机制", "_3": "一次运行的开销", "_4": "令牌", "_5": "复制的命名空间会被发布", "_6": "网络", "_7": "相关内容"}, - "/zh-CN/operations/replicas": {"_1": "配置漂移", "_2": "限流", "_3": "代码仓库", "_4": "停止副本", "env": "所有副本使用同一份-env"}, - "/zh-CN/operations/runtime-settings": {"_2": "查看当前生效的设置", "_3": "查看并撤销过去的更改", "_4": "滚动升级期间", "live": "覆盖-live-设置"}, - "/zh-CN/operations/supported-versions": {"_2": "发布线", "_3": "移除功能", "_4": "发布产物", "agent": "编码-agent-插件", "sdk": "sdk-与服务器"}, - "/zh-CN/reference": {"_2": "由代码生成", "_3": "手写页面", "_4": "该看哪一页"}, - "/zh-CN/reference/sql-surface": {"_1": "版本与兼容性", "_2": "视图", "_3": "读取的开销", "_4": "视图从不显示的内容", "_5": "数据新鲜度", "_6": "访问", "_7": "查询"}, - "/zh-CN/reference/workers": {"_1": "表格说明", "_2": "工作进程", "_3": "相关内容", "worker": "worker-如何运行", "worker_1": "哪个进程运行-worker", "worker_2": "开启或关闭-worker", "worker_3": "查看-worker-做了什么", "worker_4": "固定-worker-集合的测试"}, - "/zh-CN/use-cases/agent-memory": {"_1": "你能获得什么", "_2": "实测结果", "_3": "记住你阅读偏好的研究助手", "_4": "开始"}, - "/zh-CN/use-cases/autonomous-agents": {"_1": "你能获得什么"}, - "/zh-CN/use-cases/code-intelligence": {"_1": "你能得到什么", "_2": "实测结果", "_3": "开始", "agent_1": "只读取所需定义的编码-agent"}, - "/zh-CN/use-cases/code-intelligence-by-language": {"_1": "基础设施即代码", "_2": "开始", "_3": "相关内容", "c-c": "c-和-c", "rust-java": "rust-和-java", "sql": "sql-和迁移", "typescript-javascript": "typescript-和-javascript"}, - "/zh-CN/use-cases/coding-agent-cost": {"_1": "测量内容", "_2": "插件的节省设计"}, - "/zh-CN/use-cases/document-search": {"_1": "你能获得什么", "_2": "实测结果", "_3": "开始使用"}, - "/zh-CN/use-cases/memory-linked-to-code": {"_1": "你能得到什么", "_2": "开始"}, - "/zh-CN/use-cases/multi-agent": {"_1": "你能得到什么", "_2": "开始", "agent_1": "两个-agent-共享一条研究笔记"}, - "/zh-CN/use-cases/runs-and-pr-history": {"_1": "你能得到什么", "_2": "实测结果", "_3": "开始使用"}, - "/zh-CN/use-cases/self-hosted-clickhouse": {"_1": "你将获得", "_2": "实测", "_3": "开始"} -} diff --git a/scripts/docs_site/redirect_pages.py b/scripts/docs_site/redirect_pages.py deleted file mode 100644 index 802d751426..0000000000 --- a/scripts/docs_site/redirect_pages.py +++ /dev/null @@ -1,131 +0,0 @@ -"""Point legacy Pages HTML and agent exports at the canonical documentation.""" - -from __future__ import annotations - -import json -import re -import sys -from html import escape -from pathlib import Path -from urllib.parse import quote - -from scripts.docs_site.hooks import _TOKEN - -DOCS_URL = "https://loom.clickhouse.com/docs" -# The fragment map inverts the pins reported by Blume's pin-heading-ids.mjs -# when comparing the legacy and canonical site builds. -FRAGMENT_MAP = Path(__file__).with_name("legacy_fragments.json") - - -def _export_destinations(legacy_site_url: str, route: str, target: str) -> dict[str, str]: - old = legacy_site_url.rstrip("/") + quote(route).rstrip("/") - markdown = f"{target}.md" if route != "/" else f"{target}/index.md" - return { - old: target, - f"{old}/": target, - f"{old}/index.html": target, - f"{old}/index.md": markdown, - f"{old}/index.html.md": markdown, - f"{old}.md" if route != "/" else f"{old}/index.md": markdown, - } - - -def _retarget_exports(site: Path, legacy_site_url: str, destinations: dict[str, str]) -> None: - legacy = re.escape(legacy_site_url.rstrip("/") + "/") - urls = re.compile(rf"{_TOKEN.pattern}|(?P{legacy}[^\s<>\[\]#?()\"`]*)", _TOKEN.flags) - - def replace(match: re.Match[str]) -> str: - if match.group("link"): - target, separator, query = match.group("target").partition("?") - destination = destinations.get(target) - if destination is not None: - start, end = match.span("target") - return ( - match[0][: start - match.start()] - + destination - + separator - + query - + match[0][end - match.start() :] - ) - elif bare_url := match.group("bare_url"): - return destinations.get(bare_url, bare_url) - return match[0] - - for path in (*site.rglob("*.md"), site / "llms.txt", site / "llms-full.txt"): - if path.is_file(): - original = path.read_text(encoding="utf-8") - updated = urls.sub(replace, original) - if updated != original: - path.write_text(updated, encoding="utf-8") - - -def redirect_pages(site: Path, legacy_site_url: str) -> None: - if not (site / "index.html").is_file(): - raise SystemExit(f"Missing documentation build at {site}") - fragments = json.loads(FRAGMENT_MAP.read_text(encoding="utf-8")) - destinations = { - f"{legacy_site_url.rstrip('/')}/{name}": f"{DOCS_URL}/{name}" - for name in ("llms.txt", "llms-full.txt", "llms-install.md") - } - for page in site.rglob("index.html"): - path = page.parent.relative_to(site).as_posix() - route = "/" if path == "." else f"/{path}" - target = DOCS_URL + quote(route.rstrip("/")) - destinations.update(_export_destinations(legacy_site_url, route, target)) - aliases = json.dumps(list(fragments.get(route, {}).items())).replace("<", r"\u003c") - page.write_text( - f""" - - - - ClickHouse Loom documentation - - - - -

Continue to the ClickHouse Loom documentation.

- - - -""", - encoding="utf-8", - ) - (site / "404.html").write_text( - f""" - - - - - - Page not found | ClickHouse Loom - - -
-

Page not found

-

Find the page in the ClickHouse Loom documentation.

-
- - -""", - encoding="utf-8", - ) - _retarget_exports(site, legacy_site_url, destinations) - - -if __name__ == "__main__": - redirect_pages(Path(sys.argv[1]), sys.argv[2]) diff --git a/tests/unit/test_docs_site_indexnow.py b/tests/unit/test_docs_site_indexnow.py index 51ec69c9f2..921b844f38 100644 --- a/tests/unit/test_docs_site_indexnow.py +++ b/tests/unit/test_docs_site_indexnow.py @@ -164,11 +164,7 @@ def test_a_change_to_the_build_submits_every_page() -> None: every = indexnow.every_page() assert SITE in every and SITE + "use-cases/" in every for path in ( - "docs/blume.config.ts", - "docs/lib/documentation-routes.mjs", - "docs/lib/site-identity.mjs", - "docs/scripts/prepare-content.mjs", - "docs/theme.css", + "scripts/i18n/site.py", ): assert indexnow.urls_for({path: "M"}) == every # Changing the submitter itself, or a file that only looks like a build input, renders diff --git a/tests/unit/test_i18n.py b/tests/unit/test_i18n.py index 30c943ce66..49adf58437 100644 --- a/tests/unit/test_i18n.py +++ b/tests/unit/test_i18n.py @@ -505,7 +505,7 @@ def test_generated_readme_uses_the_documentation_site_base() -> None: from scripts.i18n import site config = (ROOT / "docs/blume.config.ts").read_text() - assert 'site: new URL(siteUrl).origin' in config + assert "site: new URL(siteUrl).origin" in config assert 'base: "/docs"' in config assert site.SITE == "https://loom.clickhouse.com/docs/" From 9f471d5b8206969e2021b7c05dabce28376cd321 Mon Sep 17 00:00:00 2001 From: Shaun Struwig <41984034+Blargian@users.noreply.github.com> Date: Fri, 27 Nov 2026 18:08:16 +0100 Subject: [PATCH 15/16] Submit translated documentation URLs The translation finalizer dispatches IndexNow after the validated merge and the site maps retired locale index links to generated files. Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com> --- .github/workflows/i18n.yml | 2 +- docs/scripts/prepare-content.mjs | 2 ++ docs/scripts/prepare-content.test.mjs | 2 +- scripts/i18n/automation.py | 1 + tests/unit/test_docs_site_indexnow.py | 4 +--- tests/unit/test_i18n_automation.py | 5 ++++- 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/i18n.yml b/.github/workflows/i18n.yml index 6ff9f4874e..bd9355bbfd 100644 --- a/.github/workflows/i18n.yml +++ b/.github/workflows/i18n.yml @@ -103,7 +103,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 permissions: - actions: read # Read the validating CI run when finalizing translations. + actions: write # Read validating CI and dispatch IndexNow after the translation merge. contents: write # Write the validated squash merge to main. pull-requests: write # Squash-merge the validated translation pull request. steps: diff --git a/docs/scripts/prepare-content.mjs b/docs/scripts/prepare-content.mjs index 3986250d33..14bd1a11db 100644 --- a/docs/scripts/prepare-content.mjs +++ b/docs/scripts/prepare-content.mjs @@ -659,6 +659,8 @@ export function rewriteSourceLinks(text, from) { const generated = { "https://github.com/ClickHouse/loom/blob/main/llms.txt": "/docs/llms.txt", "https://github.com/ClickHouse/loom/blob/main/llms-full.txt": "/docs/llms-full.txt", + "https://clickhouse.github.io/loom/llms.txt": "/docs/llms.txt", + "https://clickhouse.github.io/loom/llms-full.txt": "/docs/llms-full.txt", }[target]; if (generated) return `${prefix}${generated}${suffix}`; if (/^(?:[a-z]+:|\/|#)/i.test(target)) return whole; diff --git a/docs/scripts/prepare-content.test.mjs b/docs/scripts/prepare-content.test.mjs index 3bd52729fe..bcd0db2e84 100644 --- a/docs/scripts/prepare-content.test.mjs +++ b/docs/scripts/prepare-content.test.mjs @@ -278,7 +278,7 @@ test("marks a stale translation after its stamped source comment", () => { test("rewrites retired repository llms links to the generated site files", () => { const source = - "[index](https://github.com/ClickHouse/loom/blob/main/llms.txt) [full](https://github.com/ClickHouse/loom/blob/main/llms-full.txt)\n"; + "[index](https://github.com/ClickHouse/loom/blob/main/llms.txt) [full](https://clickhouse.github.io/loom/llms-full.txt)\n"; const expected = "[index](/docs/llms.txt) [full](/docs/llms-full.txt)\n"; assert.equal(rewriteSourceLinks(source, "ja/index.md"), expected); diff --git a/scripts/i18n/automation.py b/scripts/i18n/automation.py index 0c133f04ff..3618c07a83 100644 --- a/scripts/i18n/automation.py +++ b/scripts/i18n/automation.py @@ -478,6 +478,7 @@ def finalize() -> None: merged = api(f"repos/{repository}/pulls/{pr['number']}") if not merged["merged"] or merged["head"]["sha"] != sha: raise ValueError("translation merge readback does not match validated head") + command("gh", "workflow", "run", "docs-site.yml", "--ref", "main") def main(argv: list[str] | None = None) -> int: diff --git a/tests/unit/test_docs_site_indexnow.py b/tests/unit/test_docs_site_indexnow.py index 921b844f38..50472d451e 100644 --- a/tests/unit/test_docs_site_indexnow.py +++ b/tests/unit/test_docs_site_indexnow.py @@ -163,9 +163,7 @@ def test_the_key_file_is_named_after_its_own_content_and_the_payload_points_at_i def test_a_change_to_the_build_submits_every_page() -> None: every = indexnow.every_page() assert SITE in every and SITE + "use-cases/" in every - for path in ( - "scripts/i18n/site.py", - ): + for path in ("scripts/i18n/site.py",): assert indexnow.urls_for({path: "M"}) == every # Changing the submitter itself, or a file that only looks like a build input, renders # nothing differently. diff --git a/tests/unit/test_i18n_automation.py b/tests/unit/test_i18n_automation.py index 36769ba185..6747aaba9b 100644 --- a/tests/unit/test_i18n_automation.py +++ b/tests/unit/test_i18n_automation.py @@ -447,7 +447,10 @@ def command(*args: str, **kwargs: Any) -> str: ) assert merge_calls[0][-2:] == ("--match-head-commit", sha) assert "--admin" not in merge_calls[0] and "--auto" not in merge_calls[0] - assert calls[-1] == merge_calls[0] + assert calls[-2:] == [ + merge_calls[0], + ("gh", "workflow", "run", "docs-site.yml", "--ref", "main"), + ] assert build_environments == [ { key: value From 6028b241f760c9479b0cabf588b7a0eb631ea363 Mon Sep 17 00:00:00 2001 From: Shaun Struwig <41984034+Blargian@users.noreply.github.com> Date: Fri, 27 Nov 2026 19:59:59 +0100 Subject: [PATCH 16/16] Retry missed IndexNow submissions The finalizer retries a failed documentation submission after the translation queue empties. Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com> --- docs/scripts/prepare-content.test.mjs | 22 ----------- scripts/i18n/automation.py | 23 +++++++++++ tests/unit/test_i18n_automation.py | 57 +++++++++++++++++++++++++++ 3 files changed, 80 insertions(+), 22 deletions(-) diff --git a/docs/scripts/prepare-content.test.mjs b/docs/scripts/prepare-content.test.mjs index bcd0db2e84..bb7fb60f2c 100644 --- a/docs/scripts/prepare-content.test.mjs +++ b/docs/scripts/prepare-content.test.mjs @@ -254,28 +254,6 @@ test("keeps a translated multiline code span on one line for link validation", ( assert.equal(prepareTranslatedMarkup(source, new Set()), expected); }); -test("renders numbered source sections as Steps only in prepared content", () => { - const source = - "# Quickstart\n\nIntro.\n\n## 1. Boot the stack\n\nRun it.\n\n## 2. Open the dashboard\n\nOpen it.\n\n## Optional\n\nMore.\n"; - const expected = - '# Quickstart\n\nIntro.\n\n\n\n\n\n\nRun it.\n\n\n\n\n\n\nOpen it.\n\n\n\n\n\n## Optional\n\nMore.\n'; - - assert.equal(procedureMdx(source), expected); -}); - -test("marks a stale translation after its stamped source comment", () => { - const source = "# Quickstart\n"; - const translation = - "\n" + - "# Inicio rápido\n"; - - assert.equal( - staleTranslationNotice(translation, source, "/docs/getting-started/quickstart/"), - "\n\n" + - "> **Translation notice:** The English source has changed. Read the [English page](/docs/getting-started/quickstart/).\n\n# Inicio rápido\n", - ); -}); - test("rewrites retired repository llms links to the generated site files", () => { const source = "[index](https://github.com/ClickHouse/loom/blob/main/llms.txt) [full](https://clickhouse.github.io/loom/llms-full.txt)\n"; diff --git a/scripts/i18n/automation.py b/scripts/i18n/automation.py index 3618c07a83..0e34a99e81 100644 --- a/scripts/i18n/automation.py +++ b/scripts/i18n/automation.py @@ -428,6 +428,29 @@ def finalize() -> None: repository = os.environ["GITHUB_REPOSITORY"] owner = repository.split("/")[0] prs = api(f"repos/{repository}/pulls?state=open&head={owner}:i18n/update&base=main&per_page=2") + if not prs: + closed = api( + f"repos/{repository}/pulls?state=closed&head={owner}:i18n/update&base=main&" + "sort=updated&direction=desc&per_page=100" + ) + merged = max( + (pr for pr in closed if pr.get("merged_at")), + key=lambda pr: pr["merged_at"], + default=None, + ) + if merged is None: + return + runs = api( + f"repos/{repository}/actions/workflows/docs-site.yml/runs?branch=main&" + "status=completed&per_page=100" + ) + submitted = any( + run.get("conclusion") == "success" and run.get("created_at", "") >= merged["merged_at"] + for run in runs["workflow_runs"] + ) + if not submitted: + command("gh", "workflow", "run", "docs-site.yml", "--ref", "main") + return if len(prs) != 1: return pr = prs[0] diff --git a/tests/unit/test_i18n_automation.py b/tests/unit/test_i18n_automation.py index 6747aaba9b..87196ee4c0 100644 --- a/tests/unit/test_i18n_automation.py +++ b/tests/unit/test_i18n_automation.py @@ -340,6 +340,63 @@ def test_finalizer_requires_nonempty_successful_checks(checks: list[dict[str, An assert not a.checks_succeeded(checks) +@pytest.mark.parametrize(("conclusion", "dispatches"), [("failure", True), ("success", False)]) +def test_finalizer_retries_unsubmitted_indexnow_after_translation_merge( + monkeypatch: pytest.MonkeyPatch, + conclusion: str, + dispatches: bool, +) -> None: + monkeypatch.setenv("GITHUB_REPOSITORY", "ClickHouse/loom") + calls: list[tuple[str, ...]] = [] + + def api(path: str) -> Any: + if "state=open" in path: + return [] + if "state=closed" in path: + return [{"merged_at": "2026-11-27T18:00:00Z"}] + if "actions/workflows/docs-site.yml/runs" in path: + return { + "workflow_runs": [{"created_at": "2026-11-27T18:01:00Z", "conclusion": conclusion}] + } + raise AssertionError(path) + + monkeypatch.setattr(a, "api", api) + monkeypatch.setattr(a, "command", lambda *args, **kwargs: calls.append(args) or "") + + a.finalize() + + expected = [("gh", "workflow", "run", "docs-site.yml", "--ref", "main")] + assert calls == (expected if dispatches else []) + + +def test_finalizer_retries_the_latest_unsubmitted_translation_merge( + monkeypatch: pytest.MonkeyPatch, +) -> None: + monkeypatch.setenv("GITHUB_REPOSITORY", "ClickHouse/loom") + calls: list[tuple[str, ...]] = [] + + def api(path: str) -> Any: + if "state=open" in path: + return [] + if "state=closed" in path: + return [ + {"merged_at": "2026-11-27T17:00:00Z"}, + {"merged_at": "2026-11-27T19:00:00Z"}, + ] + if "actions/workflows/docs-site.yml/runs" in path: + return { + "workflow_runs": [{"created_at": "2026-11-27T18:00:00Z", "conclusion": "success"}] + } + raise AssertionError(path) + + monkeypatch.setattr(a, "api", api) + monkeypatch.setattr(a, "command", lambda *args, **kwargs: calls.append(args) or "") + + a.finalize() + + assert calls == [("gh", "workflow", "run", "docs-site.yml", "--ref", "main")] + + @pytest.mark.parametrize( "review,merge_state,merged", [